diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..42fd29d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +# IDEs/editors +.idea/ +.vs/ +xcuserdata +/bytecoin.cbp +*swp +WorkspaceSettings.xcsettings + +# cmake specific +CMakeLists.txt.user* +cmake-build-* + +# Build +bin/ +libs/ +build/ + +# Tests +tests/scratchpad/ + +# Mac specific +.DS_Store diff --git a/CMakeLists.txt b/CMakeLists.txt index 46f8e727..a538abe2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,8 @@ set(CMAKE_CXX_STANDARD 14) set(CMAKE_C_STANDARD 11) set(CRYPTONOTE_NAME bytecoin) add_definitions(-DCRYPTONOTE_NAME=\"${CRYPTONOTE_NAME}\") +option(WITH_TREZOR "Builds with support of Trezor hardware wallets" ON) +option(WITH_LEDGER "Builds with support of Ledger hardware wallets" OFF) option(USE_INSTRUMENTATION "For testing - builds with address sanitizer instrument" OFF) option(WITH_THREAD_SANITIZER "For testing - builds with thread sanitizer instrument, USE_INSTRUMENTATION must be also set" OFF) option(BETTER_DEBUG "Disables optimizations. We do not use standard debug/realease configurations because they change too much" OFF) @@ -86,18 +88,24 @@ file(GLOB SRC_COMMON src/common/*.cpp src/common/*.hpp) file(GLOB SRC_SERIA src/seria/*.cpp src/seria/*.hpp) file(GLOB SRC_LOGGING src/logging/*.cpp src/logging/*.hpp) file(GLOB SRC_P2P src/p2p/*.cpp src/p2p/*.hpp) -file(GLOB SRC_CORE src/Core/*.cpp src/Core/*.hpp src/Core/hw/*.cpp src/Core/hw/*.hpp src/CryptoNote.hpp src/CryptoNote.cpp src/rpc_api.hpp src/rpc_api.cpp) +file(GLOB SRC_CORE src/Core/*.cpp src/Core/*.hpp + src/Core/hardware/*.cpp src/Core/hardware/*.hpp + src/CryptoNote.hpp src/CryptoNote.cpp + src/rpc_api.hpp src/rpc_api.cpp) file(GLOB SRC_HTTP src/http/*.cpp src/http/*.hpp) file(GLOB SRC_PLATFORM - src/platform/ExclusiveLock.cpp src/platform/ExclusiveLock.hpp - src/platform/Files.cpp src/platform/Files.hpp - src/platform/Ledger.cpp src/platform/Ledger.hpp - src/platform/Time.cpp src/platform/Time.hpp - src/platform/Network.cpp src/platform/Network.hpp - src/platform/PathTools.cpp src/platform/PathTools.hpp - src/platform/PreventSleep.cpp src/platform/PreventSleep.hpp - src/platform/Windows.hpp src/platform/DB.hpp -) + src/platform/ExclusiveLock.cpp src/platform/ExclusiveLock.hpp + src/platform/Files.cpp src/platform/Files.hpp + src/platform/Ledger.cpp src/platform/Ledger.hpp + src/platform/Time.cpp src/platform/Time.hpp + src/platform/Network.cpp src/platform/Network.hpp + src/platform/PathTools.cpp src/platform/PathTools.hpp + src/platform/PreventSleep.cpp src/platform/PreventSleep.hpp + src/platform/Windows.hpp src/platform/DB.hpp + ) +#file(GLOB SRC_HARDWARE +# src/Core/hw/trezor/protob/*.cpp src/Core/hw/trezor/protob/*.hpp +# ) # We compile those folders with full optimization even in debug mode, otherwise binaries will run much slower in debug if(WIN32) set_property(SOURCE ${SRC_CRYPTO} PROPERTY COMPILE_FLAGS -Ot) @@ -129,11 +137,41 @@ set(SOURCE_FILES src/rpc_api.hpp src/version.hpp ) + + +if(WITH_TREZOR) + include_directories(${PARENT_DIR}/trezor-core/vendor/trezor-common) + add_definitions(-Dcn_WITH_TREZOR=1) + # howto not working, best attempt at https://stackoverflow.com/questions/20824194/cmake-with-google-protocol-buffers + # file(GLOB ProtoFiles "../trezor-core/vendor/trezor-common/protob/*.proto") + #protobuf_generate(LANGUAGE cpp TARGET bytecoin-core PROTOS ${ProtoFiles}) + set(Protobuf_USE_STATIC_LIBS ON) + find_package(Protobuf REQUIRED) + file(GLOB SRC_PROTOB ../trezor-core/vendor/trezor-common/protob/*.h ../trezor-core/vendor/trezor-common/protob/*.cc) + include_directories(${PROTOBUF_INCLUDE_DIR}) + message(STATUS "Protobuf version " ${Protobuf_VERSION} " protoc is " ${Protobuf_PROTOC_EXECUTABLE} " headers are in " ${PROTOBUF_INCLUDE_DIR} " and static libs are in " ${PROTOBUF_LIBRARY}) + message(STATUS "Proto files found " ${ProtoFiles}) +else() +endif() +if(WITH_LEDGER) + # on Linux - apt-get install libusb-1.0-0-dev + # permission problem - https://raw.githubusercontent.com/LedgerHQ/udev-rules/master/add_udev_rules.sh + add_definitions(-Dcn_WITH_LEDGER=1) +if(WIN32) + set(USBLIB_LIBRARY ${PARENT_DIR}/libusb/x64/Release/lib/libusb-1.0.lib) +else() + set(USBLIB_LIBRARY "usb-1.0") +endif() + message(STATUS "With ledger " ${USBLIB_LIBRARY}) + include_directories(${PARENT_DIR}/libusb) +else() +endif() + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin") set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/libs") add_library(bytecoin-crypto ${SRC_CRYPTO}) -add_library(bytecoin-core ${SOURCE_FILES}) -target_link_libraries(bytecoin-core bytecoin-crypto) +add_library(bytecoin-core ${SOURCE_FILES} ${SRC_PROTOB}) +target_link_libraries(bytecoin-core bytecoin-crypto ${PROTOBUF_LIBRARY} ${USBLIB_LIBRARY}) if(WIN32) add_executable(walletd src/main_walletd.cpp src/bytecoin.rc) # .rc works only if referenced directly in add_executable add_executable(${CRYPTONOTE_NAME}d src/main_bytecoind.cpp src/bytecoin.rc) # .rc works only if referenced directly in add_executable @@ -141,6 +179,7 @@ else() add_executable(walletd src/main_walletd.cpp) add_executable(${CRYPTONOTE_NAME}d src/main_bytecoind.cpp) endif() + add_executable(tests src/main_tests.cpp tests/io.hpp tests/Random.hpp tests/blockchain/test_blockchain.cpp tests/blockchain/test_blockchain.hpp tests/crypto/test_crypto.cpp tests/crypto/test_crypto.hpp @@ -165,9 +204,9 @@ else() endif() include_directories(${Boost_INCLUDE_DIRS}) -target_link_libraries(walletd bytecoin-crypto bytecoin-core) -target_link_libraries(${CRYPTONOTE_NAME}d bytecoin-crypto bytecoin-core) -target_link_libraries(tests bytecoin-crypto bytecoin-core) +target_link_libraries(walletd bytecoin-crypto bytecoin-core ${PROTOBUF_LIBRARY}) +target_link_libraries(${CRYPTONOTE_NAME}d bytecoin-crypto bytecoin-core ${PROTOBUF_LIBRARY}) +target_link_libraries(tests bytecoin-crypto bytecoin-core ${PROTOBUF_LIBRARY}) if(NOT WIN32) if(APPLE) diff --git a/README.md b/README.md index 6aea9e70..d810201a 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,12 @@ To go futher you have to have a number of packages and utilities. You need at le Please note, we use LMDB only when building 64-bit daemons. For 32-bit daemons SQLite is used instead. ``` $bcndev> git clone https://github.com/bcndev/lmdb.git + + ``` + +* Protobuf (if building walletd with Trezor support) + ``` + $bcndev> sudo apt-get install libprotobuf-dev ``` Git-clone (or git-pull) Bytecoin source code in that folder: @@ -238,3 +244,13 @@ Currently bytecoin does not work out of the box on any Big-Endian platform, due ## Building with parameters If you want to use tools like `clang-tidy`, run `cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..` instead of `cmake ..` + +## Building daemons with hardware wallet support on Linux 64-bit + +1. Clone `trezor-core` repository into the same folder where `bytecoin` resides. +2. Install all Google protobuf stuff: +``` +sudo apt install protobuf-compiler libprotobuf-dev +``` +3. If your version of proto buffers library is not `3.0.0`, you should run `protoc` on proto files in `trezor-core/vendor/trezor-common/protob` overwriting `bytecoin/src/Core/hardware/trezor/protob`. +4. Clean your `bytecoin/build` folder if you have built the Bytecoin source code before. diff --git a/ReleaseNotes.md b/ReleaseNotes.md index eae714b5..6c5327dc 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,15 @@ ## Release Notes +### hardware-wallets-alpha-20190214 + +- Added an early support for hardware wallets. +- Fully working Trezor Model T prototype. +- Partial support for Ledger Nano. + +*Current Limitations* +- If you disconnect a hardware wallet while `walletd` is running, it will immediately crash. +- Works in the stagenet only. + ### v3.4.0 (Amethyst) - Sendproofs are now in base58 format, which eases copying and sharing. diff --git a/src/Core/BlockChainState.cpp b/src/Core/BlockChainState.cpp index 3bf81f30..271826ed 100644 --- a/src/Core/BlockChainState.cpp +++ b/src/Core/BlockChainState.cpp @@ -229,8 +229,8 @@ BlockChainState::BlockChainState(logging::ILogger &log, const Config &config, co } // Upgrades from 5 should restart internal import if m_internal_import_chain is not empty if (version != version_current) - throw std::runtime_error("Blockchain database format unknown (version=" + version + "), please delete " + - config.get_data_folder() + "/blockchain"); + throw Exception("Blockchain database format too new (version=" + version + "), please delete " + + config.get_data_folder() + "/blockchain"); if (get_tip_height() == (Height)-1) { // Block genesis_block; // genesis_block.header = currency.genesis_block_template; @@ -522,8 +522,11 @@ void BlockChainState::create_mining_block_template(const Hash &parent_bid, const b->previous_block_hash = parent_bid; const Timestamp next_median_timestamp = calculate_next_median_timestamp(parent_info); - b->root_block.timestamp = std::max(platform::now_unix_timestamp(), next_median_timestamp); - b->timestamp = b->root_block.timestamp; + auto now = platform::now_unix_timestamp(); + if (*height < 100) // Tweak for testnet so first 100 blocks are mined quickly + now -= (100 - *height) * m_currency.difficulty_target; + b->root_block.timestamp = std::max(now, next_median_timestamp); + b->timestamp = b->root_block.timestamp; size_t max_txs_size = 0; size_t effective_size_median = 0; diff --git a/src/Core/BlockChainState.hpp b/src/Core/BlockChainState.hpp index 82919238..68568b41 100644 --- a/src/Core/BlockChainState.hpp +++ b/src/Core/BlockChainState.hpp @@ -37,6 +37,10 @@ class IBlockChainState { class BlockChainState : public BlockChain, private IBlockChainState { public: + class Exception : public std::runtime_error { + public: + using std::runtime_error::runtime_error; + }; BlockChainState(logging::ILogger &, const Config &, const Currency &, bool read_only); std::vector get_random_outputs(uint8_t block_major_version, Amount, size_t output_count, Height, diff --git a/src/Core/Currency.cpp b/src/Core/Currency.cpp index 90988e1a..1e614695 100644 --- a/src/Core/Currency.cpp +++ b/src/Core/Currency.cpp @@ -314,9 +314,9 @@ Transaction Currency::construct_miner_tx( Amount summary_amounts = 0; for (size_t out_index = 0; out_index < out_amounts.size(); out_index++) { - const KeyPair output_det_keys = crypto::random_keypair(); - OutputKey tk = TransactionBuilder::create_output( - is_tx_amethyst, miner_address, txkey.secret_key, tx_inputs_hash, out_index, output_det_keys.public_key); + const KeyPair output_seed_keys = crypto::random_keypair(); + OutputKey tk = TransactionBuilder::create_output( + is_tx_amethyst, miner_address, txkey.secret_key, tx_inputs_hash, out_index, output_seed_keys.public_key); tk.amount = out_amounts.at(out_index); summary_amounts += tk.amount; tx.outputs.push_back(tk); @@ -575,9 +575,9 @@ Hash cn::get_transaction_hash(const Transaction &tx) { BinaryArray binary_sigs = seria::to_binary(tx.signatures, static_cast(tx)); ha.second = crypto::cn_fast_hash(binary_sigs.data(), binary_sigs.size()); BinaryArray ba = seria::to_binary(ha); -// BinaryArray tx_body = seria::to_binary(static_cast(tx)); -// common::append(tx_body, binary_sigs); -// invariant(tx_body == seria::to_binary(tx), ""); + // BinaryArray tx_body = seria::to_binary(static_cast(tx)); + // common::append(tx_body, binary_sigs); + // invariant(tx_body == seria::to_binary(tx), ""); return crypto::cn_fast_hash(ba.data(), ba.size()); } BinaryArray ba = seria::to_binary(tx); diff --git a/src/Core/Multicore.cpp b/src/Core/Multicore.cpp index 27438d9f..0c5b06ed 100644 --- a/src/Core/Multicore.cpp +++ b/src/Core/Multicore.cpp @@ -250,38 +250,42 @@ WalletPreparatorMulticore::~WalletPreparatorMulticore() { th.join(); } -PreparedWalletTransaction::PreparedWalletTransaction(TransactionPrefix &&ttx, const Wallet::OutputHandler &o_handler) +PreparedWalletTransaction::PreparedWalletTransaction( + TransactionPrefix &&ttx, const Wallet::OutputHandler &o_handler, const SecretKey &view_secret_key) : tx(std::move(ttx)) { // We ignore results of most crypto calls here and absence of tx_public_key - // All errors will lead to spend_key not found in our wallet + // All errors will lead to spend_key not found in our wallet for legacy crypto PublicKey tx_public_key = extra_get_transaction_public_key(tx.extra); - prefix_hash = get_transaction_prefix_hash(tx); - inputs_hash = get_transaction_inputs_hash(tx); + derivation = generate_key_derivation(tx_public_key, view_secret_key); + + prefix_hash = get_transaction_prefix_hash(tx); + inputs_hash = get_transaction_inputs_hash(tx); KeyPair tx_keys; address_public_keys.resize(tx.outputs.size()); - output_spend_scalars.resize(tx.outputs.size()); + output_secret_hashes.resize(tx.outputs.size()); for (size_t out_index = 0; out_index != tx.outputs.size(); ++out_index) { const auto &output = tx.outputs.at(out_index); if (output.type() != typeid(OutputKey)) continue; const auto &key_output = boost::get(output); - o_handler(tx.version, tx_public_key, &derivation, inputs_hash, out_index, key_output, - &address_public_keys.at(out_index), &output_spend_scalars.at(out_index)); + o_handler(tx.version, derivation, inputs_hash, out_index, key_output, &address_public_keys.at(out_index), + &output_secret_hashes.at(out_index)); } } -PreparedWalletTransaction::PreparedWalletTransaction(Transaction &&tx, const Wallet::OutputHandler &o_handler) - : PreparedWalletTransaction(std::move(static_cast(tx)), o_handler) {} +PreparedWalletTransaction::PreparedWalletTransaction( + Transaction &&tx, const Wallet::OutputHandler &o_handler, const SecretKey &view_secret_key) + : PreparedWalletTransaction(std::move(static_cast(tx)), o_handler, view_secret_key) {} PreparedWalletBlock::PreparedWalletBlock(BlockTemplate &&bc_header, std::vector &&raw_transactions, - Hash base_transaction_hash, const Wallet::OutputHandler &o_handler) + Hash base_transaction_hash, const Wallet::OutputHandler &o_handler, const SecretKey &view_secret_key) : base_transaction_hash(base_transaction_hash) { header = bc_header; - base_transaction = PreparedWalletTransaction(std::move(bc_header.base_transaction), o_handler); + base_transaction = PreparedWalletTransaction(std::move(bc_header.base_transaction), o_handler, view_secret_key); transactions.reserve(raw_transactions.size()); for (size_t tx_index = 0; tx_index != raw_transactions.size(); ++tx_index) { - transactions.emplace_back(std::move(raw_transactions.at(tx_index)), o_handler); + transactions.emplace_back(std::move(raw_transactions.at(tx_index)), o_handler, view_secret_key); } } @@ -308,7 +312,7 @@ void WalletPreparatorMulticore::thread_run() { work.blocks.erase(work.blocks.begin()); } PreparedWalletBlock result(std::move(sync_block.raw_header), std::move(sync_block.raw_transactions), - sync_block.transactions.at(0).hash, o_handler); + sync_block.transactions.at(0).hash, o_handler, m_view_secret_key); { std::unique_lock lock(mu); if (local_work_counter == work_counter) { @@ -326,11 +330,12 @@ void WalletPreparatorMulticore::cancel_work() { work_counter += 1; } -void WalletPreparatorMulticore::start_work( - const api::cnd::SyncBlocks::Response &new_work, Wallet::OutputHandler &&o_handler) { +void WalletPreparatorMulticore::start_work(const api::cnd::SyncBlocks::Response &new_work, + Wallet::OutputHandler &&o_handler, const SecretKey &view_secret_key) { std::unique_lock lock(mu); - work = new_work; - m_o_handler = std::move(o_handler); + work = new_work; + m_o_handler = std::move(o_handler); + m_view_secret_key = view_secret_key; work_counter += 1; have_work.notify_all(); } diff --git a/src/Core/Multicore.hpp b/src/Core/Multicore.hpp index aa66c6b2..04197f34 100644 --- a/src/Core/Multicore.hpp +++ b/src/Core/Multicore.hpp @@ -93,13 +93,15 @@ struct PreparedWalletTransaction { TransactionPrefix tx; Hash prefix_hash; Hash inputs_hash; - boost::optional derivation; // Will be assigned on first actual use + KeyDerivation derivation; // Will be KeyDerivation{} if invalid or no tx_public_key std::vector address_public_keys; - std::vector output_spend_scalars; + std::vector output_secret_hashes; PreparedWalletTransaction() = default; - PreparedWalletTransaction(TransactionPrefix &&tx, const Wallet::OutputHandler &o_handler); - PreparedWalletTransaction(Transaction &&tx, const Wallet::OutputHandler &o_handler); + PreparedWalletTransaction( + TransactionPrefix &&tx, const Wallet::OutputHandler &o_handler, const SecretKey &view_secret_key); + PreparedWalletTransaction( + Transaction &&tx, const Wallet::OutputHandler &o_handler, const SecretKey &view_secret_key); }; struct PreparedWalletBlock { @@ -109,7 +111,7 @@ struct PreparedWalletBlock { std::vector transactions; PreparedWalletBlock() = default; PreparedWalletBlock(BlockTemplate &&bc_header, std::vector &&raw_transactions, - Hash base_transaction_hash, const Wallet::OutputHandler &o_handler); + Hash base_transaction_hash, const Wallet::OutputHandler &o_handler, const SecretKey &view_secret_key); }; class WalletPreparatorMulticore { @@ -123,13 +125,15 @@ class WalletPreparatorMulticore { api::cnd::SyncBlocks::Response work; int work_counter = 0; Wallet::OutputHandler m_o_handler; + SecretKey m_view_secret_key; void thread_run(); public: WalletPreparatorMulticore(); ~WalletPreparatorMulticore(); void cancel_work(); - void start_work(const api::cnd::SyncBlocks::Response &new_work, Wallet::OutputHandler &&o_handler); + void start_work(const api::cnd::SyncBlocks::Response &new_work, Wallet::OutputHandler &&o_handler, + const SecretKey &view_secret_key); PreparedWalletBlock get_ready_work(Height height); }; } // namespace cn diff --git a/src/Core/Node.cpp b/src/Core/Node.cpp index 5b5eba5f..432f4366 100644 --- a/src/Core/Node.cpp +++ b/src/Core/Node.cpp @@ -786,9 +786,9 @@ void Node::check_sendproof(const BinaryArray &data_inside_base58, api::cnd::Chec api::cnd::CheckSendproof::FAILED_TO_PARSE, "Failed to parse proof object - too many bytes"); const auto proof_body = seria::to_binary(sp); -// std::cout << "Proof body: " << common::to_hex(proof_body) << std::endl; + // std::cout << "Proof body: " << common::to_hex(proof_body) << std::endl; const auto proof_prefix_hash = crypto::cn_fast_hash(proof_body); -// std::cout << "Proof hash: " << proof_prefix_hash << std::endl; + // std::cout << "Proof hash: " << proof_prefix_hash << std::endl; std::vector all_keyimages{in.key_image}; std::vector> all_output_keys{m_block_chain.get_mixed_public_keys(in)}; diff --git a/src/Core/TransactionBuilder.cpp b/src/Core/TransactionBuilder.cpp index 10e783ea..efbfec42 100644 --- a/src/Core/TransactionBuilder.cpp +++ b/src/Core/TransactionBuilder.cpp @@ -29,8 +29,8 @@ OutputKey TransactionBuilder::create_output(bool tx_amethyst, const AccountAddre Hash output_secret_address_type; TransactionBuilder::generate_output_secrets( output_det_key, &output_secret_scalar, &output_secret_point, &output_secret_address_type); -// std::cout << "generate_output_secrets=" << output_secret_scalar << " " << output_secret_point << " " -// << output_secret_address_type << std::endl; + // std::cout << "generate_output_secrets=" << output_secret_scalar << " " << output_secret_point << " " + // << output_secret_address_type << std::endl; if (!tx_amethyst) { if (to.type() == typeid(AccountAddressSimple)) { @@ -47,8 +47,8 @@ OutputKey TransactionBuilder::create_output(bool tx_amethyst, const AccountAddre out_key.public_key = crypto::linkable_derive_output_public_key( output_secret_scalar, tx_inputs_hash, output_index, addr.S, addr.V, &out_key.encrypted_secret); out_key.encrypted_address_type = AccountAddressSimple::type_tag ^ output_secret_address_type.data[0]; -// std::cout << "AccountAddressSimple=" << addr.S << " " << addr.V << " " << out_key.public_key << " " -// << out_key.encrypted_secret << std::endl; + // std::cout << "AccountAddressSimple=" << addr.S << " " << addr.V << " " << out_key.public_key << " " + // << out_key.encrypted_secret << std::endl; return out_key; } if (to.type() == typeid(AccountAddressUnlinkable)) { @@ -56,8 +56,8 @@ OutputKey TransactionBuilder::create_output(bool tx_amethyst, const AccountAddre out_key.public_key = crypto::unlinkable_derive_output_public_key( output_secret_point, tx_inputs_hash, output_index, addr.S, addr.Sv, &out_key.encrypted_secret); out_key.encrypted_address_type = AccountAddressUnlinkable::type_tag ^ output_secret_address_type.data[0]; -// std::cout << "AccountAddressUnlinkable=" << addr.S << " " << addr.Sv << " " << out_key.public_key << " " -// << out_key.encrypted_secret << std::endl; + // std::cout << "AccountAddressUnlinkable=" << addr.S << " " << addr.Sv << " " << out_key.public_key << " " + // << out_key.encrypted_secret << std::endl; return out_key; } throw std::runtime_error("TransactionBuilder::create_output unknown address type"); @@ -84,24 +84,24 @@ bool TransactionBuilder::detect_not_our_output(const Wallet *wallet, bool tx_ame return false; } // In amethyst, we should always detect out outputs if we know tx_derivation_seed - PublicKey output_det_public_key; + PublicKey output_seed; if (wallet->get_hw()) { - wallet->get_hw()->generate_output_secret(tx_inputs_hash, out_index, &output_det_public_key); + wallet->get_hw()->generate_output_seed(tx_inputs_hash, out_index, &output_seed); } else { - output_det_public_key = TransactionBuilder::deterministic_keys_from_seed( + output_seed = TransactionBuilder::deterministic_keys_from_seed( tx_inputs_hash, wallet->get_tx_derivation_seed(), common::get_varint_data(out_index)) - .public_key; + .public_key; } - return detect_not_our_output_amethyst(tx_inputs_hash, output_det_public_key, out_index, key_output, address); + return detect_not_our_output_amethyst(tx_inputs_hash, output_seed, out_index, key_output, address); } -bool TransactionBuilder::detect_not_our_output_amethyst(const Hash &tx_inputs_hash, - const PublicKey &output_det_public_key, size_t out_index, const OutputKey &key_output, AccountAddress *address) { +bool TransactionBuilder::detect_not_our_output_amethyst(const Hash &tx_inputs_hash, const PublicKey &output_seed, + size_t out_index, const OutputKey &key_output, AccountAddress *address) { SecretKey output_secret_scalar; PublicKey output_secret_point; Hash output_secret_address_type; TransactionBuilder::generate_output_secrets( - output_det_public_key, &output_secret_scalar, &output_secret_point, &output_secret_address_type); + output_seed, &output_secret_scalar, &output_secret_point, &output_secret_address_type); const uint8_t address_type = key_output.encrypted_address_type ^ output_secret_address_type.data[0]; if (address_type == AccountAddressSimple::type_tag) { @@ -183,39 +183,6 @@ Transaction TransactionBuilder::sign( std::stable_sort(m_output_descs.begin(), m_output_descs.end(), OutputDesc::less_amount); std::stable_sort(m_input_descs.begin(), m_input_descs.end(), InputDesc::less_amount); std::cout << "TransactionBuilder::sign" << std::endl << std::endl; - if (wallet->get_hw()) { - size_t change_record_index = 0; - bool change_record_index_set = false; - boost::optional destination_address; - for (size_t out_index = 0; out_index != m_output_descs.size(); ++out_index) { - size_t record_index = 0; - WalletRecord record; - if (wallet->get_record(m_output_descs.at(out_index).addr, &record_index, &record)) { - if (change_record_index_set && change_record_index != record_index) - throw std::runtime_error("You can have max 1 change address when sending via hardware wallet"); - change_record_index = record_index; - change_record_index_set = true; - } else { - if (destination_address && destination_address.get() != m_output_descs.at(out_index).addr) - throw std::runtime_error("You can send to max 1 address via hardware wallet"); - destination_address = m_output_descs.at(out_index).addr; - } - } - AccountAddress to = destination_address ? destination_address.get() : AccountAddress{}; - if (to.type() == typeid(AccountAddressSimple)) { - auto &addr = boost::get(to); - wallet->get_hw()->sign_start(m_transaction.version, m_transaction.unlock_block_or_timestamp, - m_input_descs.size(), m_output_descs.size(), m_transaction.extra.size(), change_record_index, - AccountAddressSimple::type_tag, addr.S, addr.V); - } else if (to.type() == typeid(AccountAddressUnlinkable)) { - auto &addr = boost::get(to); - wallet->get_hw()->sign_start(m_transaction.version, m_transaction.unlock_block_or_timestamp, - m_input_descs.size(), m_output_descs.size(), m_transaction.extra.size(), change_record_index, - AccountAddressUnlinkable::type_tag, addr.S, addr.Sv); - } else - throw std::runtime_error("TransactionBuilder::sign unknown address type"); - } - const bool is_tx_amethyst = m_transaction.version >= wallet_state.get_currency().amethyst_transaction_version; // First we create inputs, because we need tx_inputs_hash m_transaction.inputs.reserve(m_input_descs.size()); @@ -225,7 +192,7 @@ Transaction TransactionBuilder::sign( std::vector all_sec_indexes; std::vector all_keyimages; std::vector> all_output_keys; - std::vector spend_scalars; // for hw + std::vector output_secret_hashes; // for hw std::vector address_indexes; for (size_t i = 0; i != m_input_descs.size(); ++i) { const InputDesc &desc = m_input_descs[i]; @@ -247,54 +214,43 @@ Transaction TransactionBuilder::sign( "Originating transaction for output not found"); const auto &key_output = boost::get(ptx.outputs.at(our_output.index_in_transaction)); Hash other_inputs_hash = get_transaction_inputs_hash(ptx); + KeyDerivation other_kd = crypto::generate_key_derivation(atx.public_key, wallet->get_view_secret_key()); + AccountAddress address; if (!wallet_state.get_currency().parse_account_address_string(our_output.address, &address)) throw json_rpc::Error(json_rpc::INTERNAL_ERROR, "Could not parse address " + our_output.address); invariant(!only_records || only_records->count(address) != 0, "Output with wrong address selected by selector"); - size_t record_index = 0; - WalletRecord record; - if (!wallet->get_record(address, &record_index, &record)) - throw json_rpc::Error(json_rpc::INTERNAL_ERROR, "No keys in wallet for address " + our_output.address); -// std::cout << "record.spend_public_key[" << i << "]=" << record.spend_public_key << std::endl; -// std::cout << "record.spend_secret_key[" << i << "]=" << record.spend_secret_key << std::endl; all_keyimages.push_back(our_output.key_image); all_output_keys.push_back(output_keys); all_sec_indexes.push_back(desc.real_output_index); - address_indexes.push_back(record_index); - if (wallet->get_hw()) { - auto mulled_key = wallet->get_hw()->mul_by_view_secret_key({key_output.public_key}); - SecretKey spend_scalar; - crypto::unlinkable_underive_address_S_step2(mulled_key.at(0), other_inputs_hash, - our_output.index_in_transaction, key_output.public_key, key_output.encrypted_secret, &spend_scalar); - spend_scalars.push_back(spend_scalar); - wallet->get_hw()->add_input( - input_key.amount, input_key.output_indexes, crypto::sc_invert(spend_scalar), record_index); - } else { - SecretKey output_secret_key_s; - SecretKey output_secret_key_a; - boost::optional kd; - PublicKey address_S; - SecretKey spend_scalar; - wallet->get_output_handler()(ptx.version, atx.public_key, &kd, other_inputs_hash, - our_output.index_in_transaction, key_output, &address_S, &spend_scalar); - Amount other_amount = 0; - AccountAddress other_address; - size_t record_index = 0; - KeyImage other_key_image; - if (!wallet->detect_our_output(ptx.version, atx.hash, other_inputs_hash, kd, - our_output.index_in_transaction, address_S, spend_scalar, key_output, &other_amount, - &output_secret_key_s, &output_secret_key_a, &other_address, &record_index, &other_key_image)) - throw json_rpc::Error(json_rpc::INTERNAL_ERROR, "No keys in wallet for address " + our_output.address); - invariant(other_key_image == our_output.key_image, "generated key_image does not match input"); - spend_scalars.push_back(spend_scalar); - all_secret_keys_s.push_back(output_secret_key_s); - all_secret_keys_a.push_back(output_secret_key_a); + + size_t record_index = 0; + SecretKey output_secret_key_s; + SecretKey output_secret_key_a; + SecretKey output_secret_hash; + if (!wallet->prepare_input_for_spend(ptx.version, other_kd, other_inputs_hash, our_output.index_in_transaction, + key_output, &output_secret_hash, &output_secret_key_s, &output_secret_key_a, &record_index)) { + throw json_rpc::Error(json_rpc::INTERNAL_ERROR, "No keys in wallet for address " + our_output.address); } + output_secret_hashes.push_back(output_secret_hash); + all_secret_keys_s.push_back(output_secret_key_s); + all_secret_keys_a.push_back(output_secret_key_a); + address_indexes.push_back(record_index); + m_transaction.inputs.push_back(input_key); } + if (wallet->get_hw()) { + wallet->get_hw()->sign_start(m_transaction.version, m_transaction.unlock_block_or_timestamp, + m_input_descs.size(), m_output_descs.size(), m_transaction.extra.size()); + for (size_t i = 0; i != m_input_descs.size(); ++i) { + const InputKey &input_key = boost::get(m_transaction.inputs.at(i)); + wallet->get_hw()->sign_add_input(input_key.amount, input_key.output_indexes, + crypto::sc_invert(output_secret_hashes.at(i)), address_indexes.at(i)); + } + } // Deterministic generation of tx private key. const Hash tx_inputs_hash = get_transaction_inputs_hash(m_transaction); -// std::cout << "tx_inputs_hash=" << tx_inputs_hash << std::endl; + // std::cout << "tx_inputs_hash=" << tx_inputs_hash << std::endl; const KeyPair tx_keys = transaction_keys_from_seed(tx_inputs_hash, wallet->get_tx_derivation_seed()); if (!is_tx_amethyst) // Never in case of hw, because we set extra size beforehand @@ -303,70 +259,52 @@ Transaction TransactionBuilder::sign( m_transaction.outputs.resize(m_output_descs.size()); for (size_t out_index = 0; out_index != m_output_descs.size(); ++out_index) { OutputKey out_key; - Amount amount = m_output_descs.at(out_index).amount; + Amount amount = m_output_descs.at(out_index).amount; + const AccountAddress &to = m_output_descs.at(out_index).addr; if (wallet->get_hw()) { - bool is_change = wallet->is_our_address(m_output_descs.at(out_index).addr); - wallet->get_hw()->add_output( - is_change, amount, &out_key.public_key, &out_key.encrypted_secret, &out_key.encrypted_address_type); + size_t record_index = 0; + WalletRecord record; + if (wallet->get_record(to, &record_index, &record)) { + wallet->get_hw()->sign_add_output(true, amount, record_index, 0, PublicKey{}, PublicKey{}, + &out_key.public_key, &out_key.encrypted_secret, &out_key.encrypted_address_type); + } else { + if (to.type() == typeid(AccountAddressSimple)) { + auto &addr = boost::get(to); + wallet->get_hw()->sign_add_output(false, amount, 0, AccountAddressSimple::type_tag, addr.S, addr.V, + &out_key.public_key, &out_key.encrypted_secret, &out_key.encrypted_address_type); + } else if (to.type() == typeid(AccountAddressUnlinkable)) { + auto &addr = boost::get(to); + wallet->get_hw()->sign_add_output(false, amount, 0, AccountAddressUnlinkable::type_tag, addr.S, + addr.Sv, &out_key.public_key, &out_key.encrypted_secret, &out_key.encrypted_address_type); + } else + throw std::runtime_error("TransactionBuilder::sign unknown address type"); + } } else { - KeyPair output_det_keys = deterministic_keys_from_seed( + KeyPair output_seed_keys = deterministic_keys_from_seed( tx_inputs_hash, wallet->get_tx_derivation_seed(), common::get_varint_data(out_index)); out_key = TransactionBuilder::create_output(is_tx_amethyst, m_output_descs.at(out_index).addr, - tx_keys.secret_key, tx_inputs_hash, out_index, output_det_keys.public_key); + tx_keys.secret_key, tx_inputs_hash, out_index, output_seed_keys.public_key); } out_key.amount = amount; m_transaction.outputs.at(out_index) = out_key; } if (wallet->get_hw()) { - wallet->get_hw()->add_extra(m_transaction.extra); + wallet->get_hw()->sign_add_extra(m_transaction.extra); } -/* for (size_t i = 0; i != m_input_descs.size(); ++i) { - if (i < all_secret_keys_s.size()) - std::cout << "all_secret_keys_s[" << i << "]=" << all_secret_keys_s.at(i) << std::endl; - if (i < all_secret_keys_a.size()) - std::cout << "all_secret_keys_a[" << i << "]=" << all_secret_keys_a.at(i) << std::endl; - std::cout << "all_keyimages[" << i << "]=" << all_keyimages.at(i) << std::endl; - std::cout << "spend_scalars[" << i << "]=" << spend_scalars.at(i) << std::endl; - std::cout << "address_indexes[" << i << "]=" << address_indexes.at(i) << std::endl; - }*/ + /* for (size_t i = 0; i != m_input_descs.size(); ++i) { + if (i < all_secret_keys_s.size()) + std::cout << "all_secret_keys_s[" << i << "]=" << all_secret_keys_s.at(i) << std::endl; + if (i < all_secret_keys_a.size()) + std::cout << "all_secret_keys_a[" << i << "]=" << all_secret_keys_a.at(i) << std::endl; + std::cout << "all_keyimages[" << i << "]=" << all_keyimages.at(i) << std::endl; + std::cout << "output_secret_hashes[" << i << "]=" << output_secret_hashes.at(i) << std::endl; + std::cout << "address_indexes[" << i << "]=" << address_indexes.at(i) << std::endl; + }*/ const Hash tx_prefix_hash = get_transaction_prefix_hash(m_transaction); -// std::cout << "tx_prefix_hash=" << tx_prefix_hash << std::endl; + // std::cout << "tx_prefix_hash=" << tx_prefix_hash << std::endl; if (wallet->get_hw()) { - RingSignatureAmethyst rsa; - rsa.p.resize(m_input_descs.size()); - rsa.ra.resize(m_input_descs.size()); - rsa.rb.resize(m_input_descs.size()); - rsa.rc.resize(m_input_descs.size()); - - for (size_t i = 0; i != m_input_descs.size(); ++i) { - PublicKey x; - PublicKey y; - wallet->get_hw()->add_sig_a(crypto::sc_invert(spend_scalars[i]), address_indexes[i], &rsa.p.at(i), &x, &y); - - const crypto::P3 b_coin_p3(hash_to_good_point_p3(all_keyimages[i])); - const crypto::P3 p_p3(rsa.p.at(i)); - const crypto::P3 G_plus_B_p3 = crypto::P3(crypto::G) + b_coin_p3; - const crypto::P3 image_p3(all_keyimages[i]); - - crypto::generate_ring_signature_auditable_loop1(i, tx_prefix_hash, image_p3, p_p3, G_plus_B_p3, - all_sec_indexes[i], all_output_keys[i], &rsa.ra[i], &x, &y); - BinaryArray ba = x.as_binary_array() | y.as_binary_array(); - for (const auto &pk : all_output_keys.at(i)) - ba |= pk.as_binary_array(); - wallet->get_hw()->add_sig_a_more_data(ba, &rsa.c0); - } - for (size_t i = 0; i != m_input_descs.size(); ++i) { - const crypto::P3 b_coin_p3(hash_to_good_point_p3(all_keyimages[i])); - const crypto::P3 p_p3(rsa.p.at(i)); - const crypto::P3 G_plus_B_p3 = crypto::P3(crypto::G) + b_coin_p3; - const crypto::P3 image_p3(all_keyimages[i]); - - crypto::EllipticCurveScalar next_c = rsa.c0; - crypto::generate_ring_signature_auditable_loop2(i, tx_prefix_hash, image_p3, p_p3, G_plus_B_p3, - all_sec_indexes[i], all_output_keys[i], &rsa.ra[i], &next_c); - wallet->get_hw()->add_sig_b(crypto::sc_invert(spend_scalars[i]), address_indexes[i], next_c, - &rsa.ra.at(i).at(all_sec_indexes.at(i)), &rsa.rb.at(i), &rsa.rc.at(i)); - } + auto rsa = wallet->get_hw()->generate_ring_signature_auditable( + tx_prefix_hash, output_secret_hashes, address_indexes, all_keyimages, all_output_keys, all_sec_indexes); invariant(crypto::check_ring_signature_auditable(tx_prefix_hash, all_keyimages, all_output_keys, rsa), ""); m_transaction.signatures = std::move(rsa); } else if (is_tx_amethyst) { diff --git a/src/Core/TransactionBuilder.hpp b/src/Core/TransactionBuilder.hpp index 5acaad05..092afe57 100644 --- a/src/Core/TransactionBuilder.hpp +++ b/src/Core/TransactionBuilder.hpp @@ -52,7 +52,7 @@ class TransactionBuilder { static bool detect_not_our_output(const Wallet *wallet, bool tx_amethyst, const Hash &tid, const Hash &tx_inputs_hash, boost::optional *, KeyPair *tx_keys, size_t out_index, const OutputKey &, AccountAddress *); - static bool detect_not_our_output_amethyst(const Hash &tx_inputs_hash, const PublicKey &output_det_public_key, + static bool detect_not_our_output_amethyst(const Hash &tx_inputs_hash, const PublicKey &output_seed, size_t out_index, const OutputKey &, AccountAddress *); }; diff --git a/src/Core/Wallet.cpp b/src/Core/Wallet.cpp index 326ae9a2..c6e08d98 100644 --- a/src/Core/Wallet.cpp +++ b/src/Core/Wallet.cpp @@ -127,6 +127,18 @@ bool Wallet::is_our_address(const AccountAddress &v_addr) const { return get_record(v_addr, &index, &wr); } +bool Wallet::prepare_input_for_spend(uint8_t tx_version, const KeyDerivation &kd, const Hash &tx_inputs_hash, + size_t out_index, const OutputKey &key_output, SecretKey *output_secret_hash, SecretKey *output_secret_key_s, + SecretKey *output_secret_key_a, size_t *record_index) { + PublicKey address_S; + get_output_handler()(tx_version, kd, tx_inputs_hash, out_index, key_output, &address_S, output_secret_hash); + Amount amount = 0; + AccountAddress other_address; + KeyImage key_image; + return detect_our_output(tx_version, kd, out_index, address_S, *output_secret_hash, key_output, &amount, + output_secret_key_s, output_secret_key_a, &other_address, record_index, &key_image); +} + size_t WalletContainerStorage::wallet_file_size(size_t records) { return 1 + sizeof(ContainerStoragePrefix) + sizeof(uint64_t) * 2 + sizeof(EncryptedWalletRecord) * records; } @@ -608,30 +620,25 @@ Wallet::OutputHandler WalletContainerStorage::get_output_handler() const { SecretKey vsk_copy = m_view_secret_key; SecretKey inv_vsk_copy = m_inv_view_secret_key; uint8_t amethyst_transaction_version = m_currency.amethyst_transaction_version; - return [vsk_copy, inv_vsk_copy, amethyst_transaction_version](uint8_t tx_version, const PublicKey &tx_public_key, - boost::optional *kd, const Hash &tx_inputs_hash, size_t output_index, - const OutputKey &key_output, PublicKey *address_S, SecretKey *secret_scalar) { + return [vsk_copy, inv_vsk_copy, amethyst_transaction_version](uint8_t tx_version, const KeyDerivation &kd, + const Hash &tx_inputs_hash, size_t output_index, const OutputKey &key_output, PublicKey *address_S, + SecretKey *output_secret_hash) { if (tx_version >= amethyst_transaction_version) { *address_S = linkable_underive_address_S(inv_vsk_copy, tx_inputs_hash, output_index, key_output.public_key, - key_output.encrypted_secret, secret_scalar); + key_output.encrypted_secret, output_secret_hash); return; } - if (!*kd) { - try { - *kd = generate_key_derivation(tx_public_key, vsk_copy); - // tx_public_key is not checked by daemon, so can be invalid - } catch (const std::exception &) { - *kd = KeyDerivation{}; - } - } - *address_S = underive_address_S(kd->get(), output_index, key_output.public_key); + if (kd == KeyDerivation{}) + *address_S = PublicKey{}; + else + *address_S = underive_address_S(kd, output_index, key_output.public_key); }; } -bool WalletContainerStorage::detect_our_output(uint8_t tx_version, const Hash &tid, const Hash &tx_inputs_hash, - const boost::optional &kd, size_t out_index, const PublicKey &address_S, - const SecretKey &secret_scalar, const OutputKey &key_output, Amount *amount, SecretKey *output_secret_key_s, - SecretKey *output_secret_key_a, AccountAddress *address, size_t *record_index, KeyImage *keyimage) { +bool WalletContainerStorage::detect_our_output(uint8_t tx_version, const KeyDerivation &kd, size_t out_index, + const PublicKey &address_S, const SecretKey &output_secret_hash, const OutputKey &key_output, Amount *amount, + SecretKey *output_secret_key_s, SecretKey *output_secret_key_a, AccountAddress *address, size_t *record_index, + KeyImage *keyimage) { WalletRecord record; AccountAddress addr; if (!get_look_ahead_record(address_S, record_index, &record, &addr)) @@ -639,13 +646,13 @@ bool WalletContainerStorage::detect_our_output(uint8_t tx_version, const Hash &t if (record.spend_secret_key != SecretKey{}) { const bool is_tx_amethyst = tx_version >= m_currency.amethyst_transaction_version; if (is_tx_amethyst) { - *output_secret_key_a = linkable_derive_output_secret_key(record.spend_secret_key, secret_scalar); + *output_secret_key_a = linkable_derive_output_secret_key(record.spend_secret_key, output_secret_hash); } else { - if (!kd) // tx_public_key was invalid + if (kd == KeyDerivation{}) // tx_public_key was invalid return false; // We do some calcs twice here, but only for our outputs (which are usually very small %) - PublicKey output_public_key2 = derive_output_public_key(kd.get(), out_index, address_S); - *output_secret_key_a = derive_output_secret_key(kd.get(), out_index, record.spend_secret_key); + PublicKey output_public_key2 = derive_output_public_key(kd, out_index, address_S); + *output_secret_key_a = derive_output_secret_key(kd, out_index, record.spend_secret_key); if (output_public_key2 != key_output.public_key) return false; } @@ -761,10 +768,10 @@ WalletHD::WalletHD(const Currency ¤cy, logging::ILogger &log, const std::s m_db_dbi.open_check_create(readonly ? platform::O_READ_EXISTING : platform::O_OPEN_EXISTING, path, &created); if (get_is_hardware()) { - auto connected = hw::HardwareWallet::get_connected(); + auto connected = hardware::HardwareWallet::get_connected(); for (auto &&c : connected) { try { - m_wallet_key = c->get_wallet_key(); + m_wallet_key = crypto::chacha_key{c->get_wallet_key()}; std::string version; if (get("version", version)) { m_hw = std::move(c); @@ -813,7 +820,7 @@ WalletHD::WalletHD(const Currency ¤cy, logging::ILogger &log, const std::s if (!password.empty()) throw Exception(api::WALLET_FILE_HARDWARE_DECRYPT_ERROR, "Wallet password should be empty when backed by hardware, wallet file will be encrypted using key stored in hardware wallet"); - auto connected = hw::HardwareWallet::get_connected(); + auto connected = hardware::HardwareWallet::get_connected(); if (connected.empty()) throw Exception(api::WALLET_FILE_HARDWARE_DECRYPT_ERROR, "No hardware wallets connected, please connect one and try again."); @@ -821,7 +828,7 @@ WalletHD::WalletHD(const Currency ¤cy, logging::ILogger &log, const std::s throw Exception(api::WALLET_FILE_HARDWARE_DECRYPT_ERROR, "More than 1 hardware wallet connected, please disconnect all but one you wish to use to create wallet file."); m_hw = std::move(connected.back()); - m_wallet_key = m_hw->get_wallet_key(); + m_wallet_key = crypto::chacha_key{m_hw->get_wallet_key()}; put_is_hardware(true); } else { salt |= as_binary_array(password); @@ -862,13 +869,18 @@ void WalletHD::load() { throw Exception(api::WALLET_FILE_DECRYPT_ERROR, "Wallet is for different coin - " + coinname); std::string mnemonic; if (m_hw) { - m_A_plus_SH = m_hw->get_A_plus_SH(); - m_v_mul_A_plus_SH = m_hw->get_v_mul_A_plus_SH(); + m_A_plus_sH = m_hw->get_A_plus_SH(); + m_v_mul_A_plus_sH = m_hw->get_v_mul_A_plus_SH(); m_view_public_key = m_hw->get_public_view_key(); - invariant(crypto::key_in_main_subgroup(m_A_plus_SH), "Hardware wallet error - spend key base is invalid"); - invariant(crypto::key_in_main_subgroup(m_v_mul_A_plus_SH), "Hardware wallet error - view key base is invalid"); + invariant(crypto::key_in_main_subgroup(m_A_plus_sH), "Hardware wallet error - spend key base is invalid"); + invariant(crypto::key_in_main_subgroup(m_v_mul_A_plus_sH), "Hardware wallet error - view key base is invalid"); invariant( crypto::key_in_main_subgroup(m_view_public_key), "Hardware wallet error - view public key is invalid"); + BinaryArray ba; + if (get("view_key", ba)) { // hardware wallet with a view key + seria::from_binary(m_view_secret_key, ba); + invariant(crypto::keys_match(m_view_secret_key, m_view_public_key), "Hardware-backed wallet corrupted"); + } } else { PublicKey sH; if (get("mnemonic", mnemonic)) { @@ -914,8 +926,8 @@ void WalletHD::load() { } invariant(crypto::secret_key_to_public_key(m_view_secret_key, &m_view_public_key), ""); invariant(crypto::secret_key_to_public_key(m_audit_key_base.secret_key, &m_audit_key_base.public_key), ""); - m_A_plus_SH = crypto::A_plus_B(m_audit_key_base.public_key, sH); - m_v_mul_A_plus_SH = A_mul_b(m_A_plus_SH, m_view_secret_key); // for hw debug only + m_A_plus_sH = crypto::A_plus_B(m_audit_key_base.public_key, sH); + m_v_mul_A_plus_sH = A_mul_b(m_A_plus_sH, m_view_secret_key); // for hw debug only } { BinaryArray ba; @@ -975,7 +987,7 @@ bool WalletHD::check_view_signatures(const SecretKey &audit_secret_key, const Pu void WalletHD::generate_ahead1(size_t counter, std::vector &result) const { std::vector key_result; key_result.resize(result.size()); - crypto::generate_hd_spendkeys(m_audit_key_base.secret_key, m_A_plus_SH, counter, &key_result); + crypto::generate_hd_spendkeys(m_audit_key_base.secret_key, m_A_plus_sH, counter, &key_result); for (size_t i = 0; i != result.size(); ++i) { WalletRecord &record = result[i]; record.spend_secret_key = key_result.at(i).secret_key; @@ -1141,7 +1153,7 @@ AccountAddress WalletHD::record_to_address(size_t index) const { const WalletRecord &record = m_wallet_records.at(index); Hash view_seed; memcpy(view_seed.data, m_audit_key_base.public_key.data, sizeof(m_audit_key_base.public_key.data)); - PublicKey sv2 = crypto::generate_hd_spendkey(m_v_mul_A_plus_SH, m_A_plus_SH, m_view_public_key, index); + PublicKey sv2 = crypto::generate_hd_spendkey(m_v_mul_A_plus_sH, m_A_plus_sH, m_view_public_key, index); if (m_view_secret_key != SecretKey{}) { PublicKey sv = A_mul_b(record.spend_public_key, m_view_secret_key); invariant(sv == sv2, ""); @@ -1202,7 +1214,6 @@ void WalletHD::export_wallet(const std::string &export_path, const std::string & WalletHD other(m_currency, m_log.get_logger(), export_path, new_password, std::string(), 0, std::string(), false); if (!is_view_only() && view_only) { - other.put("m_A_plus_SH", m_A_plus_SH.as_binary_array(), true); if (m_hw) { SecretKey audit_key_base_secret_key; PublicKey A; @@ -1212,7 +1223,7 @@ void WalletHD::export_wallet(const std::string &export_path, const std::string & m_hw->export_view_only( &audit_key_base_secret_key, &view_secret_key, &tx_derivation_seed, &view_secrets_signature); invariant(crypto::secret_key_to_public_key(audit_key_base_secret_key, &A), ""); - PublicKey sH = crypto::A_minus_B(m_A_plus_SH, A); + PublicKey sH = crypto::A_minus_B(m_A_plus_sH, A); other.put("view_key", view_secret_key.as_binary_array(), true); other.put("sH", sH.as_binary_array(), true); other.put("audit_key_base", audit_key_base_secret_key.as_binary_array(), true); @@ -1250,6 +1261,21 @@ void WalletHD::export_wallet(const std::string &export_path, const std::string & other.commit(); } +void WalletHD::import_view_key() { + if (!m_hw || m_view_secret_key != SecretKey{}) + return; + SecretKey audit_key_base_secret_key; + Hash tx_derivation_seed; + Signature view_secrets_signature; + m_hw->export_view_only( + &audit_key_base_secret_key, &m_view_secret_key, &tx_derivation_seed, &view_secrets_signature); + // We do not store other secrets and will continue using hardware wallet for them + invariant(crypto::secret_key_to_public_key(m_view_secret_key, &m_view_public_key), ""); + + put("view_key", m_view_secret_key.as_binary_array(), true); + commit(); +} + std::string WalletHD::export_keys() const { std::string mnemonic; if (!get("mnemonic", mnemonic)) @@ -1407,31 +1433,39 @@ std::string WalletHD::get_label(const std::string &address) const { } Wallet::OutputHandler WalletHD::get_output_handler() const { - if (m_hw) - throw std::logic_error("WalletHD::get_output_handler when using hw"); - SecretKey vsk_copy = m_view_secret_key; - return [vsk_copy](uint8_t tx_version, const PublicKey &tx_public_key, boost::optional *kd, - const Hash &tx_inputs_hash, size_t output_index, const OutputKey &key_output, PublicKey *address_S, - SecretKey *secret_scalar) { - *address_S = crypto::unlinkable_underive_address_S( - vsk_copy, tx_inputs_hash, output_index, key_output.public_key, key_output.encrypted_secret, secret_scalar); + SecretKey vsk_copy = m_view_secret_key; + hardware::HardwareWallet *hw_copy = m_view_secret_key == SecretKey{} ? m_hw.get() : nullptr; + // When we have imported view key, we can scan as usual + return [vsk_copy, hw_copy](uint8_t tx_version, const KeyDerivation &kd, const Hash &tx_inputs_hash, + size_t output_index, const OutputKey &key_output, PublicKey *address_S, SecretKey *output_secret_hash) { + // multicore preparator should be never used with hardware wallet, otherwise crash + // we will remake architecture later + if (hw_copy) { + auto Pv = hw_copy->mul_by_view_secret_key({key_output.public_key}).at(0); + *address_S = crypto::unlinkable_underive_address_S_step2(Pv, tx_inputs_hash, output_index, + key_output.public_key, key_output.encrypted_secret, output_secret_hash); + } else { + *address_S = crypto::unlinkable_underive_address_S(vsk_copy, tx_inputs_hash, output_index, + key_output.public_key, key_output.encrypted_secret, output_secret_hash); + } }; } -bool WalletHD::detect_our_output(uint8_t tx_version, const Hash &tid, const Hash &tx_inputs_hash, - const boost::optional &kd, size_t out_index, const PublicKey &address_S, - const SecretKey &secret_scalar, const OutputKey &key_output, Amount *amount, SecretKey *output_secret_key_s, - SecretKey *output_secret_key_a, AccountAddress *address, size_t *record_index, KeyImage *keyimage) { +bool WalletHD::detect_our_output(uint8_t tx_version, const KeyDerivation &kd, size_t out_index, + const PublicKey &address_S, const SecretKey &output_secret_hash, const OutputKey &key_output, Amount *amount, + SecretKey *output_secret_key_s, SecretKey *output_secret_key_a, AccountAddress *address, size_t *record_index, + KeyImage *keyimage) { WalletRecord record; AccountAddress addr; if (!get_look_ahead_record(address_S, record_index, &record, &addr)) return false; if (m_hw) { - *keyimage = m_hw->generate_keyimage(key_output.public_key, crypto::sc_invert(secret_scalar), *record_index); + *keyimage = + m_hw->generate_keyimage(key_output.public_key, crypto::sc_invert(output_secret_hash), *record_index); } else { - *output_secret_key_a = crypto::unlinkable_derive_output_secret_key(record.spend_secret_key, secret_scalar); + *output_secret_key_a = crypto::unlinkable_derive_output_secret_key(record.spend_secret_key, output_secret_hash); if (m_spend_secret_key != SecretKey{}) { - *output_secret_key_s = crypto::unlinkable_derive_output_secret_key(m_spend_secret_key, secret_scalar); + *output_secret_key_s = crypto::unlinkable_derive_output_secret_key(m_spend_secret_key, output_secret_hash); PublicKey output_public_key = crypto::secret_keys_to_public_key(*output_secret_key_a, *output_secret_key_s); if (output_public_key != key_output.public_key) return false; diff --git a/src/Core/Wallet.hpp b/src/Core/Wallet.hpp index 2a569fba..b6c46982 100644 --- a/src/Core/Wallet.hpp +++ b/src/Core/Wallet.hpp @@ -3,13 +3,12 @@ #pragma once -#include #include #include #include "CryptoNote.hpp" #include "Currency.hpp" #include "crypto/chacha.hpp" -#include "hw/HardwareWallet.hpp" +#include "hardware/HardwareWallet.hpp" #include "logging/LoggerMessage.hpp" #include "platform/DBsqlite3.hpp" #include "platform/Files.hpp" @@ -58,7 +57,9 @@ class Wallet { }; Wallet(const Currency ¤cy, logging::ILogger &log, const std::string &path); virtual ~Wallet() = default; - virtual const hw::HardwareWallet *get_hw() const { return nullptr; } + virtual hardware::HardwareWallet *get_hw() const { return nullptr; } + bool scan_outputs_via_hw() const { return get_hw() && m_view_secret_key == SecretKey{}; } + virtual void import_view_key() {} virtual void set_password(const std::string &password) = 0; virtual void export_wallet(const std::string &export_path, const std::string &new_password, bool view_only, bool view_outgoing_addresses) const = 0; @@ -104,15 +105,19 @@ class Wallet { virtual void set_label(const std::string &address, const std::string &label) = 0; virtual std::string get_label(const std::string &address) const = 0; - typedef std::function *, - const Hash &tx_inputs_hash, size_t out_index, const OutputKey &, PublicKey *, SecretKey *)> + typedef std::function OutputHandler; // Self-contain functor with all info copied to be called from other threads - virtual OutputHandler get_output_handler() const = 0; - virtual bool detect_our_output(uint8_t tx_version, const Hash &tid, const Hash &tx_inputs_hash, - const boost::optional &kd, size_t out_index, const PublicKey &address_S, - const SecretKey &secret_scalar, const OutputKey &, Amount *, SecretKey *output_secret_key_s, - SecretKey *output_secret_key_a, AccountAddress *, size_t *record_index, KeyImage *keyimage) = 0; + virtual OutputHandler get_output_handler() const = 0; + virtual bool detect_our_output(uint8_t tx_version, const KeyDerivation &kd, size_t out_index, + const PublicKey &address_S, const SecretKey &output_secret_hash, const OutputKey &, Amount *, + SecretKey *output_secret_key_s, SecretKey *output_secret_key_a, AccountAddress *, size_t *record_index, + KeyImage *keyimage) = 0; + + bool prepare_input_for_spend(uint8_t tx_version, const KeyDerivation &kd, const Hash &tx_inputs_hash, + size_t out_index, const OutputKey &, SecretKey *output_secret_hash, SecretKey *output_secret_key_s, + SecretKey *output_secret_key_a, size_t *record_index); }; // stores at most 1 view secret key. 1 or more spend secret keys @@ -174,9 +179,8 @@ class WalletContainerStorage : public Wallet { std::string get_label(const std::string &address) const override { return std::string(); } OutputHandler get_output_handler() const override; - bool detect_our_output(uint8_t tx_version, const Hash &tid, const Hash &tx_inputs_hash, - const boost::optional &kd, size_t out_index, const PublicKey &address_S, - const SecretKey &secret_scalar, const OutputKey &, Amount *, SecretKey *output_secret_key_s, + bool detect_our_output(uint8_t tx_version, const KeyDerivation &kd, size_t out_index, const PublicKey &address_S, + const SecretKey &output_secret_hash, const OutputKey &, Amount *, SecretKey *output_secret_key_s, SecretKey *output_secret_key_a, AccountAddress *, size_t *record_index, KeyImage *keyimage) override; }; @@ -186,11 +190,11 @@ class WalletHD : public Wallet { platform::sqlite::Dbi m_db_dbi; SecretKey m_spend_secret_key; KeyPair m_audit_key_base; - PublicKey m_A_plus_SH; - PublicKey m_v_mul_A_plus_SH; + PublicKey m_A_plus_sH; + PublicKey m_v_mul_A_plus_sH; size_t m_used_address_count = 1; std::map m_labels; - std::unique_ptr m_hw; // quick prototyping, will refactor later + std::unique_ptr m_hw; // quick prototyping, will refactor later static BinaryArray encrypt_data(const crypto::chacha_key &wallet_key, const BinaryArray &data); static BinaryArray decrypt_data(const crypto::chacha_key &wallet_key, const uint8_t *value_data, size_t value_size); @@ -229,7 +233,8 @@ class WalletHD : public Wallet { WalletHD(const Currency ¤cy, logging::ILogger &log, const std::string &path, const std::string &password, const std::string &mnemonic, Timestamp creation_timestamp, const std::string &mnemonic_password, bool hardware_wallet); - const hw::HardwareWallet *get_hw() const override { return m_hw.get(); } + hardware::HardwareWallet *get_hw() const override { return m_hw.get(); } + void import_view_key() override; bool is_view_only() const override { return !m_hw && m_spend_secret_key == SecretKey{}; } bool is_amethyst() const override { return true; } bool can_view_outgoing_addresses() const override; @@ -243,8 +248,8 @@ class WalletHD : public Wallet { bool view_outgoing_addresses) const override; std::string export_keys() const override; - // Date first unlinkable addresses appeared in stagenet blockchain - Timestamp get_oldest_timestamp() const override { return std::max(m_oldest_timestamp, 1540489975); } + // Date first amethyst addresses appeared in stagenet blockchain - Thursday, February 7, 2019 4:05:55 UTC + Timestamp get_oldest_timestamp() const override { return std::max(m_oldest_timestamp, 1540555555); } void on_first_output_found(Timestamp ts) override; void create_look_ahead_records(size_t count) override; @@ -260,9 +265,8 @@ class WalletHD : public Wallet { std::string get_label(const std::string &address) const override; OutputHandler get_output_handler() const override; - bool detect_our_output(uint8_t tx_version, const Hash &tid, const Hash &tx_inputs_hash, - const boost::optional &kd, size_t out_index, const PublicKey &address_S, - const SecretKey &secret_scalar, const OutputKey &, Amount *, SecretKey *output_secret_key_s, + bool detect_our_output(uint8_t tx_version, const KeyDerivation &kd, size_t out_index, const PublicKey &address_S, + const SecretKey &output_secret_hash, const OutputKey &, Amount *, SecretKey *output_secret_key_s, SecretKey *output_secret_key_a, AccountAddress *, size_t *record_index, KeyImage *keyimage) override; }; diff --git a/src/Core/WalletState.cpp b/src/Core/WalletState.cpp index b60bbe5e..cece0f17 100644 --- a/src/Core/WalletState.cpp +++ b/src/Core/WalletState.cpp @@ -21,17 +21,17 @@ static const std::string ADDRESSES_PREFIX = "a"; // this is not undone using namespace cn; using namespace platform; -Amount WalletState::DeltaState::add_incoming_output(const api::Output &output, const Hash &tid) { +bool WalletState::DeltaState::add_incoming_output(const api::Output &output) { m_unspents[output.public_key].push_back(output); - return output.amount; + return true; } Amount WalletState::DeltaState::add_incoming_keyimage(Height height, const KeyImage &key_image) { auto tit = m_transactions.find(m_last_added_transaction); if (tit == m_transactions.end()) return 0; - if (tit->second.used_ki_or_pk.insert(key_image).second) - m_used_kis_or_pks[key_image] += 1; + if (tit->second.used_keyimages.insert(key_image).second) + m_used_keyimages[key_image] += 1; return 0; // It does not know } @@ -62,19 +62,32 @@ void WalletState::DeltaState::undo_transaction(const Hash &tid) { uit = m_unspents.erase(uit); } } - for (const auto &ki_or_pk : tit->second.used_ki_or_pk) { - auto kit = m_used_kis_or_pks.find(ki_or_pk); - invariant(kit != m_used_kis_or_pks.end(), ""); + for (const auto &ki_or_pk : tit->second.used_keyimages) { + auto kit = m_used_keyimages.find(ki_or_pk); + invariant(kit != m_used_keyimages.end(), ""); kit->second -= 1; invariant(kit->second >= 0, ""); if (kit->second == 0) - kit = m_used_kis_or_pks.erase(kit); + kit = m_used_keyimages.erase(kit); } tit = m_transactions.erase(tit); } +void WalletState::DeltaState::apply(IWalletState *parent_state, Height height) const { + for (const auto &tx : m_transactions) + parent_state->add_transaction(height, tx.first, tx.second.tx, tx.second.atx); + for (const auto &pk : m_unspents) + for (const auto &output : pk.second) + parent_state->add_incoming_output(output); + for (const auto &ki : m_used_keyimages) { + invariant(ki.second > 0, "DeltaState keyimages index corrupted"); + parent_state->add_incoming_keyimage(height, ki.first); + } + // TODO test before 3.5 +} + void WalletState::DeltaState::clear() { - m_used_kis_or_pks.clear(); + m_used_keyimages.clear(); m_unspents.clear(); m_transactions.clear(); } @@ -287,23 +300,11 @@ void WalletState::add_transaction_to_mempool(Hash tid, Transaction &&tx, bool fr << " is in MS size before adding=" << m_memory_state.get_transactions().size() << std::endl; std::vector global_indices(tx.outputs.size(), 0); PreparedWalletTransaction pwtx; - if (m_wallet.get_hw()) { - // TODO - very inefficient code for now - std::vector output_public_keys; - fill_tx_output_public_keys(&output_public_keys, tx); - auto P_v = m_wallet.get_hw()->mul_by_view_secret_key(output_public_keys); - size_t key_counter = 0; - pwtx = PreparedWalletTransaction(std::move(tx), - [&](bool is_tx_amethyst, const PublicKey &tx_public_key, boost::optional *kd, - const Hash &tx_inputs_hash, size_t output_index, const OutputKey &key_output, PublicKey *address_S, - SecretKey *secret_scalar) { - *address_S = crypto::unlinkable_underive_address_S_step2(P_v.at(key_counter++), tx_inputs_hash, - output_index, key_output.public_key, key_output.encrypted_secret, secret_scalar); - }); - - } else { - pwtx = PreparedWalletTransaction(std::move(tx), m_wallet.get_output_handler()); - } + std::vector output_public_keys; + fill_tx_output_public_keys(&output_public_keys, tx); + if (m_wallet.scan_outputs_via_hw()) + m_wallet.get_hw()->precache_mul_by_view_secret_key(output_public_keys); + pwtx = PreparedWalletTransaction(std::move(tx), m_wallet.get_output_handler(), m_wallet.get_view_secret_key()); if (!redo_transaction(pwtx, global_indices, 0, &m_memory_state, false, tid, get_tip_height() + 1, Hash{}, now)) { } // just ignore result } @@ -346,9 +347,9 @@ bool WalletState::sync_with_blockchain(api::cnd::SyncBlocks::Response &resp) { } if (empty_chain()) reset_chain(resp.start_height); - if (!m_wallet.get_hw()) { + if (!m_wallet.scan_outputs_via_hw()) { preparator.cancel_work(); - preparator.start_work(resp, m_wallet.get_output_handler()); + preparator.start_work(resp, m_wallet.get_output_handler(), m_wallet.get_view_secret_key()); } while (get_tip_height() + 1 < resp.start_height + resp.blocks.size()) { size_t bin = get_tip_height() + 1 - resp.start_height; @@ -359,24 +360,17 @@ bool WalletState::sync_with_blockchain(api::cnd::SyncBlocks::Response &resp) { auto &sync_block = resp.blocks.at(bin); const auto &block_gi = sync_block.output_stack_indexes; PreparedWalletBlock pb; - if (m_wallet.get_hw()) { + if (m_wallet.scan_outputs_via_hw()) { // TODO - very inefficient code for now // Also will repeat getting blocks for sync indefinetely when hw is disconnected std::vector output_public_keys; fill_tx_output_public_keys(&output_public_keys, sync_block.raw_header.base_transaction); for (const auto &tx : sync_block.raw_transactions) fill_tx_output_public_keys(&output_public_keys, tx); - auto P_v = m_wallet.get_hw()->mul_by_view_secret_key(output_public_keys); - size_t key_counter = 0; + m_wallet.get_hw()->precache_mul_by_view_secret_key(output_public_keys); pb = PreparedWalletBlock(std::move(sync_block.raw_header), std::move(sync_block.raw_transactions), - sync_block.transactions.at(0).hash, - [&](bool is_tx_amethyst, const PublicKey &tx_public_key, boost::optional *kd, - const Hash &tx_inputs_hash, size_t output_index, const OutputKey &key_output, - PublicKey *address_S, SecretKey *secret_scalar) { - *address_S = - crypto::unlinkable_underive_address_S_step2(P_v.at(key_counter++), tx_inputs_hash, - output_index, key_output.public_key, key_output.encrypted_secret, secret_scalar); - }); + sync_block.transactions.at(0).hash, m_wallet.get_output_handler(), + m_wallet.get_view_secret_key()); } else pb = preparator.get_ready_work(get_tip_height() + 1); // pb = PreparedWalletBlock(std::move(sync_block.raw_header), @@ -443,9 +437,10 @@ bool WalletState::redo_block(const api::BlockHeader &header, const PreparedWalle size_t key_outputs_count = get_tx_key_outputs_count(pb.base_transaction.tx); for (const auto &tx : pb.transactions) key_outputs_count += get_tx_key_outputs_count(tx.tx); + DeltaState delta_state; size_t start_global_key_output_index = header.already_generated_key_outputs - key_outputs_count; - if (!redo_transaction(pb.base_transaction, global_indices[0], start_global_key_output_index, this, true, base_hash, - get_tip_height() + 1, header.hash, pb.header.timestamp)) { + if (!redo_transaction(pb.base_transaction, global_indices[0], start_global_key_output_index, &delta_state, true, + base_hash, get_tip_height() + 1, header.hash, pb.header.timestamp)) { } // Just ignore - TODO start_global_key_output_index += get_tx_key_outputs_count(pb.base_transaction.tx); for (size_t tx_index = 0; tx_index != pb.transactions.size(); ++tx_index) { @@ -454,13 +449,16 @@ bool WalletState::redo_block(const api::BlockHeader &header, const PreparedWalle remove_transaction_from_mempool(tid, false); m_memory_state.undo_transaction(tid); if (!redo_transaction(pb.transactions.at(tx_index), global_indices.at(tx_index + 1), - start_global_key_output_index, this, false, tid, get_tip_height() + 1, header.hash, + start_global_key_output_index, &delta_state, false, tid, get_tip_height() + 1, header.hash, pb.header.timestamp)) { } // just ignore - TODO start_global_key_output_index += get_tx_key_outputs_count(pb.transactions.at(tx_index).tx); } invariant(header.already_generated_key_outputs == start_global_key_output_index, ""); + // no exceptions starting from here + delta_state.apply(this, get_tip_height() + 1); unlock(height, header.timestamp_median); + // till here // If ex has lock_time in the past, it will be added to lock index in redo, then immediately unlocked here return true; } @@ -525,9 +523,9 @@ bool WalletState::parse_raw_transaction(bool is_base, api::Transaction *ptx, const auto &output = tx.outputs.at(out_index); if (output.type() != typeid(OutputKey)) continue; - const auto &key_output = boost::get(output); - const auto &address_S = pwtx.address_public_keys.at(out_index); - const auto &spend_scalar = pwtx.output_spend_scalars.at(out_index); + const auto &key_output = boost::get(output); + const auto &address_S = pwtx.address_public_keys.at(out_index); + const auto &output_secret_hash = pwtx.output_secret_hashes.at(out_index); if (!add_amount(output_amount, key_output.amount)) return false; api::Output out; @@ -545,17 +543,16 @@ bool WalletState::parse_raw_transaction(bool is_base, api::Transaction *ptx, size_t record_index = 0; SecretKey output_secret_key_s; SecretKey output_secret_key_a; - if (m_wallet.detect_our_output(tx.version, tid, pwtx.inputs_hash, pwtx.derivation, out_index, address_S, - spend_scalar, key_output, &out.amount, &output_secret_key_s, &output_secret_key_a, &address, - &record_index, &out.key_image)) { + if (m_wallet.detect_our_output(tx.version, pwtx.derivation, out_index, address_S, output_secret_hash, + key_output, &out.amount, &output_secret_key_s, &output_secret_key_a, &address, &record_index, + &out.key_image)) { // out.dust = m_currency.is_dust(key_output.amount); api::Transfer &transfer = transfer_map_outputs[true][address]; if (transfer.address.empty()) transfer.address = m_currency.account_address_as_string(address); - out.address = transfer.address; - Amount confirmed_balance_delta = 0; - if (try_add_incoming_output(out, &confirmed_balance_delta)) { - transfer.amount += confirmed_balance_delta; + out.address = transfer.address; + if (try_add_incoming_output(out)) { + transfer.amount += out.amount; transfer.outputs.push_back(out); } our_outputs = true; @@ -600,23 +597,11 @@ bool WalletState::parse_raw_transaction(bool is_base, api::Transaction &ptx, Tra std::vector global_indices(tx.outputs.size(), 0); Amount unrecognized_inputs_amount = 0; PreparedWalletTransaction pwtx; - if (m_wallet.get_hw()) { - // TODO - very inefficient code for now - std::vector output_public_keys; - fill_tx_output_public_keys(&output_public_keys, tx); - auto P_v = m_wallet.get_hw()->mul_by_view_secret_key(output_public_keys); - size_t key_counter = 0; - pwtx = PreparedWalletTransaction(std::move(tx), - [&](bool is_tx_amethyst, const PublicKey &tx_public_key, boost::optional *kd, - const Hash &tx_inputs_hash, size_t output_index, const OutputKey &key_output, PublicKey *address_S, - SecretKey *secret_scalar) { - *address_S = crypto::unlinkable_underive_address_S_step2(P_v.at(key_counter++), tx_inputs_hash, - output_index, key_output.public_key, key_output.encrypted_secret, secret_scalar); - }); - - } else { - pwtx = PreparedWalletTransaction(std::move(tx), m_wallet.get_output_handler()); - } + std::vector output_public_keys; + fill_tx_output_public_keys(&output_public_keys, tx); + if (m_wallet.scan_outputs_via_hw()) + m_wallet.get_hw()->precache_mul_by_view_secret_key(output_public_keys); + pwtx = PreparedWalletTransaction(std::move(tx), m_wallet.get_output_handler(), m_wallet.get_view_secret_key()); std::vector input_transfers; std::vector output_transfers; parse_raw_transaction(is_base, &ptx, &input_transfers, &output_transfers, &unrecognized_inputs_amount, pwtx, tid, @@ -633,15 +618,15 @@ bool WalletState::parse_raw_transaction(bool is_base, api::Transaction &ptx, Tra return true; } -const std::map &WalletState::get_mempool_kis_or_pks() const { - return m_memory_state.get_used_kis_or_pks(); +const std::map &WalletState::get_mempool_keyimages() const { + return m_memory_state.get_used_keyimages(); } void WalletState::on_first_transaction_found(Timestamp ts) { m_wallet.on_first_output_found(ts); } bool WalletState::redo_transaction(const PreparedWalletTransaction &pwtx, const std::vector &global_indices, size_t start_global_key_output_index, IWalletState *delta_state, bool is_base, Hash tid, Height block_height, - Hash bid, Timestamp tx_timestamp) { + Hash bid, Timestamp tx_timestamp) const { api::Transaction ptx; Amount unrecognized_inputs_amount = 0; std::vector input_transfers; @@ -658,8 +643,7 @@ bool WalletState::redo_transaction(const PreparedWalletTransaction &pwtx, const if (!tr.ours) continue; for (auto &&out : tr.outputs) { - Amount adjusted_amount = delta_state->add_incoming_output(out, tid); - out.amount = adjusted_amount; + invariant(delta_state->add_incoming_output(out), ""); // TODO - double check before 3.5 } } for (auto &&tr : input_transfers) { @@ -759,27 +743,27 @@ std::string WalletState::api_create_proof(const TransactionPrefix &tx, if (output.type() != typeid(OutputKey)) continue; const auto &key_output = boost::get(output); - KeyPair output_det_keys; + KeyPair output_seed_keys; if (m_wallet.get_hw()) { - m_wallet.get_hw()->generate_output_secret(tx_inputs_hash, out_index, &output_det_keys.public_key); + m_wallet.get_hw()->generate_output_seed(tx_inputs_hash, out_index, &output_seed_keys.public_key); } else { - output_det_keys = TransactionBuilder::deterministic_keys_from_seed( + output_seed_keys = TransactionBuilder::deterministic_keys_from_seed( tx_inputs_hash, m_wallet.get_tx_derivation_seed(), common::get_varint_data(out_index)); } OutputKey should_be_output = TransactionBuilder::create_output( - true, address, SecretKey{}, tx_inputs_hash, out_index, output_det_keys.public_key); + true, address, SecretKey{}, tx_inputs_hash, out_index, output_seed_keys.public_key); if (should_be_output.public_key != key_output.public_key || should_be_output.encrypted_secret != key_output.encrypted_secret || should_be_output.encrypted_address_type != key_output.encrypted_address_type) continue; // output to different address or crypto protocol violated - sp.elements.push_back(SendproofAmethyst::Element{out_index, output_det_keys.public_key}); - all_output_det_keys.push_back(output_det_keys); + sp.elements.push_back(SendproofAmethyst::Element{out_index, output_seed_keys.public_key}); + all_output_det_keys.push_back(output_seed_keys); total_amount += key_output.amount; } const auto proof_body = seria::to_binary(sp); -// std::cout << "Proof body: " << common::to_hex(proof_body) << std::endl; + // std::cout << "Proof body: " << common::to_hex(proof_body) << std::endl; const auto proof_prefix_hash = crypto::cn_fast_hash(proof_body); -// std::cout << "Proof hash: " << proof_prefix_hash << std::endl; + // std::cout << "Proof hash: " << proof_prefix_hash << std::endl; if (tx.inputs.empty() || tx.inputs.at(0).type() != typeid(InputKey) || mixed_public_keys.empty()) return std::string(); // TODO - throw? const InputKey &in = boost::get(tx.inputs.at(0)); @@ -796,58 +780,50 @@ std::string WalletState::api_create_proof(const TransactionPrefix &tx, return std::string(); const auto &key_output = boost::get(other_tx.outputs.at(heamgi.index_in_transaction)); Hash other_inputs_hash = get_transaction_inputs_hash(other_tx); - size_t sec_index = - std::find(mixed_public_keys.at(0).begin(), mixed_public_keys.at(0).end(), key_output.public_key) - - mixed_public_keys.at(0).begin(); - if (sec_index == mixed_public_keys.size()) + size_t sec_index = static_cast( + std::find(mixed_public_keys.at(0).begin(), mixed_public_keys.at(0).end(), key_output.public_key) - + mixed_public_keys.at(0).begin()); + if (sec_index == mixed_public_keys.at(0).size()) return std::string(); - std::vector all_secret_keys_s; // empty if hw - std::vector all_secret_keys_a; // empty if hw + KeyDerivation other_kd = crypto::generate_key_derivation(other_atx.public_key, m_wallet.get_view_secret_key()); + size_t record_index = 0; + SecretKey output_secret_key_s; + SecretKey output_secret_key_a; + SecretKey output_secret_hash; + if (!m_wallet.prepare_input_for_spend(other_tx.version, other_kd, other_inputs_hash, heamgi.index_in_transaction, + key_output, &output_secret_hash, &output_secret_key_s, &output_secret_key_a, &record_index)) { + throw json_rpc::Error(json_rpc::INTERNAL_ERROR, "No keys in wallet to sign sendproof"); + } + + std::vector all_secret_keys_s{output_secret_key_s}; + std::vector all_secret_keys_a{output_secret_key_a}; std::vector all_sec_indexes{sec_index}; std::vector all_keyimages{in.key_image}; std::vector> all_output_keys{mixed_public_keys.at(0)}; - std::vector spend_scalars; // for hw - std::vector address_indexes; - PublicKey address_S; - SecretKey spend_scalar; - boost::optional kd; + std::vector output_secret_hashes{output_secret_hash}; + std::vector address_indexes{record_index}; + + RingSignatureAmethyst rsa; if (m_wallet.get_hw()) { - auto mulled_key = m_wallet.get_hw()->mul_by_view_secret_key({key_output.public_key}); - crypto::unlinkable_underive_address_S_step2(mulled_key.at(0), other_inputs_hash, heamgi.index_in_transaction, - key_output.public_key, key_output.encrypted_secret, &spend_scalar); - // TODO + if (proof_body.empty()) + return std::string(); + BinaryArray body_minus_guard(proof_body.begin() + 1, proof_body.end()); + m_wallet.get_hw()->proof_start(body_minus_guard); + rsa = m_wallet.get_hw()->generate_ring_signature_auditable( + proof_prefix_hash, output_secret_hashes, address_indexes, all_keyimages, all_output_keys, all_sec_indexes); } else { - m_wallet.get_output_handler()(other_tx.version, other_atx.public_key, &kd, other_inputs_hash, - heamgi.index_in_transaction, key_output, &address_S, &spend_scalar); + rsa = generate_ring_signature_auditable( + proof_prefix_hash, all_keyimages, all_output_keys, all_secret_keys_s, all_secret_keys_a, all_sec_indexes); } - Amount other_amount = 0; - AccountAddress other_address; - size_t record_index = 0; - KeyImage other_key_image; - SecretKey output_secret_key_s; - SecretKey output_secret_key_a; - if (!m_wallet.detect_our_output(other_tx.version, other_atx.hash, other_inputs_hash, kd, - heamgi.index_in_transaction, address_S, spend_scalar, key_output, &other_amount, &output_secret_key_s, - &output_secret_key_a, &other_address, &record_index, &other_key_image)) - return std::string(); - if (other_key_image != in.key_image) - return std::string(); - spend_scalars.push_back(spend_scalar); - all_secret_keys_s.push_back(output_secret_key_s); - all_secret_keys_a.push_back(output_secret_key_a); - address_indexes.push_back(record_index); - const RingSignatureAmethyst rsa = generate_ring_signature_auditable( - proof_prefix_hash, all_keyimages, all_output_keys, all_secret_keys_s, all_secret_keys_a, all_sec_indexes); invariant(crypto::check_ring_signature_auditable(proof_prefix_hash, all_keyimages, all_output_keys, rsa), ""); TransactionPrefix fake_prefix; fake_prefix.version = tx.version; fake_prefix.inputs.push_back(in); BinaryArray sig_body = seria::to_binary(rsa, fake_prefix); -// std::cout << "Sig body: " << common::to_hex(sig_body) << std::endl; + // std::cout << "Sig body: " << common::to_hex(sig_body) << std::endl; - // TODO - refactor, common code with TransactionBuilder BinaryArray total_body = proof_body; common::append(total_body, sig_body); diff --git a/src/Core/WalletState.hpp b/src/Core/WalletState.hpp index 73528b0f..6c573dfb 100644 --- a/src/Core/WalletState.hpp +++ b/src/Core/WalletState.hpp @@ -22,32 +22,32 @@ class Config; class WalletState : public WalletStateBasic { class DeltaState : public IWalletState { typedef std::map> Unspents; - + // TODO - change PublicKey to KeyImage in 3.5 public: struct DeltaStateTransaction { TransactionPrefix tx; api::Transaction atx; - std::set used_ki_or_pk; + std::set used_keyimages; }; explicit DeltaState() {} void clear(); const Unspents &get_unspents() const { return m_unspents; } - const std::map &get_used_kis_or_pks() const { return m_used_kis_or_pks; } + const std::map &get_used_keyimages() const { return m_used_keyimages; } const std::map &get_transactions() const { return m_transactions; } - void undo_transaction(const Hash &tid); // For mem pool + void undo_transaction(const Hash &tid); // For mem pool + void apply(IWalletState *parent_state, Height height) const; // For redoing blocks - Amount add_incoming_output(const api::Output &, const Hash &tid) override; // added amount may be lower + bool add_incoming_output(const api::Output &) override; // added amount may be lower Amount add_incoming_keyimage(Height, const KeyImage &) override; void add_transaction( Height, const Hash &tid, const TransactionPrefix &tx, const api::Transaction &ptx) override; private: Unspents m_unspents; - std::map - m_used_kis_or_pks; // counter, because double spends are allowed in pool + std::map m_used_keyimages; // counter, because double spends are allowed in pool std::map m_transactions; Hash m_last_added_transaction; }; @@ -100,8 +100,8 @@ class WalletState : public WalletStateBasic { Height block_heights) const; bool redo_transaction(const PreparedWalletTransaction &pwtx, const std::vector &global_indices, size_t start_global_key_output_index, IWalletState *delta_state, bool is_base, Hash tid, Height block_height, - Hash bid, Timestamp tx_timestamp); - const std::map &get_mempool_kis_or_pks() const override; + Hash bid, Timestamp tx_timestamp) const; + const std::map &get_mempool_keyimages() const override; void on_first_transaction_found(Timestamp ts) override; struct QueueEntry { diff --git a/src/Core/WalletStateBasic.cpp b/src/Core/WalletStateBasic.cpp index 686823f5..340e46a4 100644 --- a/src/Core/WalletStateBasic.cpp +++ b/src/Core/WalletStateBasic.cpp @@ -300,7 +300,7 @@ void WalletStateBasic::undo_db_state(Height state) { } } -bool WalletStateBasic::try_add_incoming_output(const api::Output &output, Amount *confirmed_balance_delta) const { +bool WalletStateBasic::try_add_incoming_output(const api::Output &output) const { HeightGi heamgi; bool ki_exists = read_by_keyimage(output.key_image, &heamgi); api::Output existing_output; @@ -308,35 +308,32 @@ bool WalletStateBasic::try_add_incoming_output(const api::Output &output, Amount if (ki_exists && !is_existing_unspent) return false; if (output.unlock_block_or_timestamp != 0) { - *confirmed_balance_delta = output.amount; // It will be locked by transfer.locked == true return true; } - *confirmed_balance_delta = output.amount; return !ki_exists; // We fixed problem on crypto level, but retain code to keep indexes invariants } -Amount WalletStateBasic::add_incoming_output(const api::Output &output, const Hash &tid, bool just_unlocked) { +bool WalletStateBasic::add_incoming_output(const api::Output &output, bool just_unlocked) { HeightGi heamgi; bool ki_exists = read_by_keyimage(output.key_image, &heamgi); api::Output existing_output; bool is_existing_unspent = ki_exists && read_from_unspent_index(heamgi, &existing_output); if (ki_exists && !is_existing_unspent) { m_log(logging::WARNING) << " Duplicate key_output attack, ignoring output because already spent" << std::endl; - return 0; + return false; } if (output.unlock_block_or_timestamp != 0 && !just_unlocked) { // incoming // if (is_det_viewonly) // put_am_gi_he(output); - add_to_lock_index(output, tid); - return output.amount; + add_to_lock_index(output); + return true; } - Amount added_amount = output.amount; if (ki_exists) { // We fixed problem on crypto level, but retain code to keep indexes invariants m_log(logging::WARNING) << " Duplicate key_output attack, ignoring output because have another one unspent with same or larger amount or different address, " << format_output(existing_output) << std::endl; - return 0; + return false; } add_to_unspent_index(output); heamgi.height = output.height; @@ -346,23 +343,17 @@ Amount WalletStateBasic::add_incoming_output(const api::Output &output, const Ha update_keyimage(output.key_image, heamgi); // if (is_det_viewonly) // put_am_gi_he(output); - return added_amount; + return true; } -Amount WalletStateBasic::add_incoming_output(const api::Output &output, const Hash &tid) { +bool WalletStateBasic::add_incoming_output(const api::Output &output) { m_log(LEVEL) << "Incoming output " << format_output(output) << std::endl; - return add_incoming_output(output, tid, false); + return add_incoming_output(output, false); } Amount WalletStateBasic::add_incoming_keyimage(Height block_height, const KeyImage &key_image) { - // if (is_det_viewonly) - // return 0; - return add_incoming_ki_or_pk(block_height, key_image); -} - -Amount WalletStateBasic::add_incoming_ki_or_pk(Height block_height, const crypto::EllipticCurvePoint &ki_or_pk) { - m_log(LEVEL) << "Incoming ki_or_pk " << ki_or_pk << std::endl; - std::string prefix = LOCKED_INDEX_KI_GI + DB::to_binary_key(ki_or_pk.data, sizeof(ki_or_pk.data)); + m_log(LEVEL) << "Incoming ki_or_pk " << key_image << std::endl; + std::string prefix = LOCKED_INDEX_KI_GI + DB::to_binary_key(key_image.data, sizeof(key_image.data)); // find and remove in locked std::vector found_in_locked; for (DB::Cursor cur = m_db.begin(prefix); !cur.end(); cur.next()) { @@ -382,7 +373,7 @@ Amount WalletStateBasic::add_incoming_ki_or_pk(Height block_height, const crypto } Amount removed_amount = 0; HeightGi heamgi; - bool ki_exists = read_by_keyimage(ki_or_pk, &heamgi); + bool ki_exists = read_by_keyimage(key_image, &heamgi); api::Output existing_output; if (ki_exists && read_from_unspent_index(heamgi, &existing_output)) { removed_amount = existing_output.amount; @@ -392,20 +383,13 @@ Amount WalletStateBasic::add_incoming_ki_or_pk(Height block_height, const crypto } bool WalletStateBasic::try_adding_incoming_keyimage(const KeyImage &key_image, api::Output *spending_output) const { - // if (is_det_viewonly) - // return false; - return try_adding_incoming_ki_or_pk(key_image, spending_output); -} - -bool WalletStateBasic::try_adding_incoming_ki_or_pk( - const crypto::EllipticCurvePoint &ki_or_pk, api::Output *spending_output) const { bool candidate_found = false; HeightGi heamgi; - bool ki_exists = read_by_keyimage(ki_or_pk, &heamgi); + bool ki_exists = read_by_keyimage(key_image, &heamgi); if (ki_exists && read_from_unspent_index(heamgi, spending_output)) { candidate_found = true; } - std::string prefix = LOCKED_INDEX_KI_GI + DB::to_binary_key(ki_or_pk.data, sizeof(ki_or_pk.data)); + std::string prefix = LOCKED_INDEX_KI_GI + DB::to_binary_key(key_image.data, sizeof(key_image.data)); for (DB::Cursor cur = m_db.begin(prefix); !cur.end(); cur.next()) { size_t gi = common::integer_cast(common::read_varint_sqlite4(cur.get_suffix())); if (candidate_found) @@ -577,7 +561,7 @@ api::Balance WalletStateBasic::get_balance(const std::string &address, Height co if (lou.second.height <= confirmed_height) combine_balance(balance, existing_output, 1, -1); } - for (auto &&kit : get_mempool_kis_or_pks()) { + for (auto &&kit : get_mempool_keyimages()) { HeightGi heamgi; bool ki_exists = read_by_keyimage(kit.first, &heamgi); api::Output existing_output; @@ -699,25 +683,23 @@ void WalletStateBasic::modify_balance(const api::Output &output, int locked_op, put_with_undo(bakey2, seria::to_binary(balance2), false); } -static const std::map empty_kis_or_pks; -const std::map &WalletStateBasic::get_mempool_kis_or_pks() const { - return empty_kis_or_pks; -} +static const std::map empty_kis_or_pks; +const std::map &WalletStateBasic::get_mempool_keyimages() const { return empty_kis_or_pks; } void WalletStateBasic::unlock(Height now_height, api::Output &&output) { remove_from_lock_index(output); - Amount adjusted_amount = add_incoming_output(output, Hash{}, true); + bool add = add_incoming_output(output, true); // TODO - check before 3.5 // if( adjusted_amount == 0) // Unlocked and have coin with the same ki and amount // continue; // We decided to put in DB anyway, so that we know we did not miss unlock // We add into index with original amount as a key because otherwise there could be ambiguity in index auto unkey = UNLOCKED_INDEX_REALHE_GI_to_OUTPUT + common::write_varint_sqlite4(now_height) + common::write_varint_sqlite4(output.global_index); - output.amount = adjusted_amount; + // output.amount = adjusted_amount; BinaryArray ba = seria::to_binary(output); put_with_undo(unkey, ba, true); } -void WalletStateBasic::add_to_lock_index(const api::Output &output, const Hash &tid) { +void WalletStateBasic::add_to_lock_index(const api::Output &output) { m_log(LEVEL) << " Adding output to lock index, " << format_output(output) << std::endl; // put_am_gi_tid(output.amount, output.index, tid); @@ -819,7 +801,7 @@ void WalletStateBasic::remove_from_unspent_index(const api::Output &output) { del_with_undo(keyun, true); } -bool WalletStateBasic::read_by_keyimage(const crypto::EllipticCurvePoint &ki, HeightGi *value) const { +bool WalletStateBasic::read_by_keyimage(const KeyImage &ki, HeightGi *value) const { auto keyun = INDEX_KEYIMAGE_to_HE_GI + DB::to_binary_key(ki.data, sizeof(ki.data)); BinaryArray ba; if (!m_db.get(keyun, ba)) @@ -827,7 +809,7 @@ bool WalletStateBasic::read_by_keyimage(const crypto::EllipticCurvePoint &ki, He seria::from_binary(*value, ba); return true; } -void WalletStateBasic::update_keyimage(const crypto::EllipticCurvePoint &ki, const HeightGi &value) { +void WalletStateBasic::update_keyimage(const KeyImage &ki, const HeightGi &value) { if (ki == KeyImage{}) // linkable view-only wallet cannot calculate keyimages return; auto keyun = INDEX_KEYIMAGE_to_HE_GI + DB::to_binary_key(ki.data, sizeof(ki.data)); @@ -842,7 +824,7 @@ void WalletStateBasic::test_undo_blocks() { std::cout << "---- After undo everything ---- " << std::endl; counter = 0; for (DB::Cursor cur = m_db.begin(std::string()); !cur.end(); cur.next()) { - if (cur.get_suffix().find("ad/") == 0) + if (cur.get_suffix().find("a") == 0) continue; std::cout << DB::clean_key(cur.get_suffix()) << std::endl; if (counter++ > 2000) diff --git a/src/Core/WalletStateBasic.hpp b/src/Core/WalletStateBasic.hpp index 67dd60b1..5c8e89af 100644 --- a/src/Core/WalletStateBasic.hpp +++ b/src/Core/WalletStateBasic.hpp @@ -25,7 +25,7 @@ class IWalletState { public: virtual ~IWalletState() = default; - virtual Amount add_incoming_output(const api::Output &, const Hash &tid) = 0; // added amount may be lower + virtual bool add_incoming_output(const api::Output &) = 0; // added amount may be lower virtual Amount add_incoming_keyimage(Height block_height, const KeyImage &) = 0; virtual void add_transaction( Height block_height, const Hash &tid, const TransactionPrefix &tx, const api::Transaction &ptx) = 0; @@ -98,30 +98,27 @@ class WalletStateBasic : protected IWalletState { api::BlockHeader read_chain(Height) const; bool is_memory_spent(const api::Output &output) const { - return get_mempool_kis_or_pks().count(output.key_image) != 0; + return get_mempool_keyimages().count(output.key_image) != 0; } - virtual const std::map &get_mempool_kis_or_pks() const; + virtual const std::map &get_mempool_keyimages() const; virtual void on_first_transaction_found(Timestamp ts) {} void unlock(Height now_height, Timestamp now); bool read_from_unspent_index(const HeightGi &value, api::Output *) const; - bool read_by_keyimage(const crypto::EllipticCurvePoint &ki, HeightGi *value) const; + bool read_by_keyimage(const KeyImage &ki, HeightGi *value) const; - bool try_add_incoming_output(const api::Output &, Amount *confirmed_balance_delta) const; + bool try_add_incoming_output(const api::Output &) const; bool try_adding_incoming_keyimage(const KeyImage &, api::Output *spending_output) const; // returns true if our keyimage // methods to add incoming tx - Amount add_incoming_output(const api::Output &, const Hash &tid) override; // added amount may be lower + bool add_incoming_output(const api::Output &) override; // added amount may be lower Amount add_incoming_keyimage(Height block_height, const KeyImage &) override; void add_transaction(Height, const Hash &tid, const TransactionPrefix &tx, const api::Transaction &ptx) override; std::string format_output(const api::Output &output); private: - bool try_adding_incoming_ki_or_pk(const crypto::EllipticCurvePoint &, api::Output *spending_output) const; - Amount add_incoming_ki_or_pk(Height block_height, const crypto::EllipticCurvePoint &); - Height m_tip_height = -1; Height m_tail_height = 0; api::BlockHeader m_tip; @@ -139,10 +136,10 @@ class WalletStateBasic : protected IWalletState { void undo_db_state(Height state); // indices implemenation - Amount add_incoming_output(const api::Output &, const Hash &tid, bool just_unlocked); + bool add_incoming_output(const api::Output &, bool just_unlocked); void modify_balance(const api::Output &output, int locked_op, int spendable_op); // lock/unlock - void add_to_lock_index(const api::Output &, const Hash &tid); + void add_to_lock_index(const api::Output &); void remove_from_lock_index(const api::Output &); void unlock(Height now_height, api::Output &&output); @@ -156,7 +153,7 @@ class WalletStateBasic : protected IWalletState { void remove_from_unspent_index(const api::Output &); bool for_each_in_unspent_index( const std::string &address, Height from, Height to, std::function fun) const; - void update_keyimage(const crypto::EllipticCurvePoint &m, const HeightGi &value); + void update_keyimage(const KeyImage &m, const HeightGi &value); }; } // namespace cn diff --git a/src/Core/hw/HardwareWallet.cpp b/src/Core/hardware/Emulator.cpp similarity index 56% rename from src/Core/hw/HardwareWallet.cpp rename to src/Core/hardware/Emulator.cpp index c48c4471..46e8cbeb 100644 --- a/src/Core/hw/HardwareWallet.cpp +++ b/src/Core/hardware/Emulator.cpp @@ -1,7 +1,7 @@ // Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers. // Licensed under the GNU Lesser General Public License. See LICENSE for details. -#include "HardwareWallet.hpp" +#include "Emulator.hpp" #include #include #include "Core/TransactionBuilder.hpp" @@ -16,132 +16,10 @@ static const bool debug_print = true; -using namespace cn::hw; +using namespace cn::hardware; using namespace crypto; using namespace common; -std::vector> HardwareWallet::get_connected() { - std::vector> result; - // TODO - add all real connected wallets here - - // Now we create emulator and if hardware wallet found with the same mnemonic, we connect it through emulator - std::unique_ptr em; - try { - em = std::make_unique(std::unique_ptr()); - } catch (const std::exception &) { - // no debug mnemonics set - no problem - } - for (auto &&r : result) { - if (em && r->get_public_view_key() == em->get_public_view_key()) { - em = std::unique_ptr(); - r = std::make_unique(std::move(r)); - } - } - if (em) - result.push_back(std::move(em)); - if (!result.empty()) - std::cout << "Connected hardware wallets" << std::endl; - for (auto &&r : result) { - std::cout << "\t" << r->get_hardware_type() << std::endl; - } - return result; -} - -void HardwareWallet::test_all_methods() { - const PublicKey pk = get_public_view_key(); - const PublicKey test_point1 = crypto::hash_to_good_point(pk.data, sizeof(pk.data)); - std::cout << "---- testing hashes for m_spend_key_base_public_key =" << pk << std::endl; - { - std::cout << "hash_to_bad_point = " << crypto::hash_to_bad_point(pk.data, sizeof(pk.data)) << std::endl; - std::cout << "hash_to_good_point = " << test_point1 << std::endl; - Hash h = cn_fast_hash(pk.data, sizeof(pk.data)); - Hash h2 = cn_fast_hash(h.data, sizeof(h.data)); - std::cout << "hash32 = " << h << std::endl; - std::cout << "hash64 = " << h << h2 << std::endl; - std::cout << "hash_to_scalar64 = " << crypto::hash_to_scalar64(pk.data, sizeof(pk.data)) << std::endl; - } - const SecretKey test_scalar1 = crypto::hash_to_scalar(test_point1.data, sizeof(test_point1.data)); - const Hash test_hash1 = crypto::cn_fast_hash(test_scalar1.data, sizeof(test_scalar1.data)); - const PublicKey test_address1_s = crypto::hash_to_good_point(test_hash1.data, sizeof(test_hash1.data)); - const PublicKey test_address1_v = crypto::hash_to_good_point(test_address1_s.data, sizeof(test_address1_s.data)); - const PublicKey test_point2 = crypto::hash_to_good_point(test_address1_v.data, sizeof(test_address1_v.data)); - const PublicKey test_point3 = crypto::hash_to_good_point(test_point2.data, sizeof(test_point2.data)); - const SecretKey test_scalar2 = crypto::hash_to_scalar(test_point3.data, sizeof(test_point3.data)); - - std::cout << "---- mul_by_view_secret_key" << std::endl; - std::cout << mul_by_view_secret_key({test_point1}).at(0) << std::endl; - std::cout << "---- generate_keyimage" << std::endl; - std::cout << generate_keyimage(test_point1, test_scalar1, 0) << std::endl; - std::cout << "---- generate_output_secret" << std::endl; - PublicKey result_point1, result_point2, result_point3; - generate_output_secret(test_hash1, 0, &result_point1); - std::cout << result_point1 << std::endl; - std::vector extra{1, 2, 3, 4, 5}; - const size_t my_address = 1; - std::cout << "---- sign_start" << std::endl; - sign_start( - 4, 5, 1, 2, extra.size(), my_address, cn::AccountAddressSimple::type_tag, test_address1_s, test_address1_v); - std::cout << "---- add_input" << std::endl; - uint8_t result_byte = 0; - add_input(1000, {0, 1, 2}, test_scalar1, my_address); - std::cout << result_point1 << std::endl; - std::cout << result_point2 << std::endl; - std::cout << "---- add_output" << std::endl; - add_output(false, 400, &result_point1, &result_point2, &result_byte); - std::cout << result_point1 << std::endl; - std::cout << result_point2 << std::endl; - std::cout << int(result_byte) << std::endl; - std::cout << "---- add_output" << std::endl; - add_output(true, 500, &result_point1, &result_point2, &result_byte); - std::cout << result_point1 << std::endl; - std::cout << result_point2 << std::endl; - std::cout << int(result_byte) << std::endl; - std::cout << "---- add_extra_chunk" << std::endl; - add_extra(extra); - std::cout << "---- add_sig_get_xy" << std::endl; - add_sig_a(test_scalar1, my_address, &result_point1, &result_point2, &result_point3); - std::cout << result_point1 << std::endl; - std::cout << result_point2 << std::endl; - std::cout << result_point3 << std::endl; - std::cout << "---- add_sig_a" << std::endl; - SecretKey result_scalar1, result_scalar2, result_scalar3; - add_sig_a_more_data(test_point1.as_binary_array() | test_point2.as_binary_array(), &result_scalar1); - std::cout << "---- add_sig_c0" << std::endl; - std::cout << result_scalar1 << std::endl; - std::cout << "---- add_sig_b" << std::endl; - add_sig_b(test_scalar1, my_address, test_scalar1, &result_scalar1, &result_scalar2, &result_scalar3); - std::cout << result_scalar1 << std::endl; - std::cout << result_scalar2 << std::endl; - std::cout << result_scalar3 << std::endl; - - // repeat first steps to check output generation to unlinkable address - std::cout << "---- sign_start" << std::endl; - sign_start( - 4, 0, 1, 2, extra.size(), my_address, cn::AccountAddressUnlinkable::type_tag, test_address1_s, test_address1_v); - std::cout << "---- add_input" << std::endl; - add_input(1000, {0, 1, 2}, test_scalar1, my_address); - std::cout << result_point1 << std::endl; - std::cout << result_point2 << std::endl; - std::cout << "---- add_output" << std::endl; - add_output(false, 400, &result_point1, &result_point2, &result_byte); - std::cout << result_point1 << std::endl; - std::cout << result_point2 << std::endl; - std::cout << int(result_byte) << std::endl; - - Signature result_sig0; - std::cout << "---- generate_sendproof" << std::endl; - generate_sendproof(test_hash1, 1, test_hash1, test_hash1, "mega address", 5, &result_sig0); - std::cout << result_sig0.c << result_sig0.r << std::endl; - std::cout << "---- export_view_only" << std::endl; - Hash result_hash1; - export_view_only(&result_scalar1, &result_scalar2, &result_hash1, &result_sig0); - std::cout << result_scalar1 << std::endl; - std::cout << result_scalar2 << std::endl; - std::cout << result_hash1 << std::endl; - std::cout << result_sig0.c << result_sig0.r << std::endl; - std::cout << "---- tests finished" << std::endl; -} - static Hash derive_from_seed(const Hash &seed, const std::string &append) { BinaryArray seed_data = seed.as_binary_array() | as_binary_array(append); return crypto::cn_fast_hash(seed_data.data(), seed_data.size()); @@ -157,7 +35,26 @@ Hash Emulator::KeccakStream::cn_fast_hash() const { return result; } SecretKey Emulator::KeccakStream::hash_to_scalar() const { return crypto::hash_to_scalar(ba.data(), ba.size()); } -SecretKey Emulator::KeccakStream::hash_to_scalar64() const { return crypto::hash_to_scalar(ba.data(), ba.size()); } +SecretKey Emulator::KeccakStream::hash_to_scalar64() const { + return crypto::hash_to_scalar(ba.data(), ba.size()); + /* SecretKey k1 = crypto::hash_to_scalar64(ba.data(), ba.size()); + Hash h = crypto::cn_fast_hash(ba.data(), ba.size()); + Hash h2 = crypto::cn_fast_hash(h.data, sizeof(h.data)); + SecretKey s_h; + sc_reduce32(&s_h, h.data); + SecretKey s_h2; + sc_reduce32(&s_h2, h2.data); + unsigned char ff[32]; + memset(ff, 0xff, sizeof(ff)); + SecretKey s_max; + SecretKey s_one; + sc_reduce32(&s_max, ff); + sc_1(&s_one); + SecretKey hi = s_h2 * s_max; + SecretKey res = hi + s_h; + return res;*/ +} + PublicKey Emulator::KeccakStream::hash_to_good_point() const { return crypto::hash_to_good_point(ba.data(), ba.size()); } @@ -169,14 +66,10 @@ inline bool add_amount(uint64_t &sum, uint64_t amount) { return true; } -std::string debug_mnemonic; - -void Emulator::debug_set_mnemonic(const std::string &mnemonic) { debug_mnemonic = mnemonic; } - -Emulator::Emulator(std::unique_ptr &&proxy) : m_proxy(std::move(proxy)) { +Emulator::Emulator(const std::string &mnemonic, std::unique_ptr &&proxy) : m_proxy(std::move(proxy)) { // read m_wallet_key, m_spend_key_base_public_key from device - m_mnemonics = cn::Bip32Key::check_bip39_mnemonic(debug_mnemonic); + m_mnemonics = cn::Bip32Key::check_bip39_mnemonic(mnemonic); const cn::Bip32Key master_key = cn::Bip32Key::create_master_key(m_mnemonics, std::string()); const cn::Bip32Key k0 = master_key.derive_key(0x8000002c); @@ -199,11 +92,10 @@ Emulator::Emulator(std::unique_ptr &&proxy) : m_proxy(std::move( invariant(crypto::secret_key_to_public_key(m_view_secret_key, &m_view_public_key), ""); PublicKey A; invariant(crypto::secret_key_to_public_key(m_audit_key_base_secret_key, &A), ""); - m_A_plus_SH = crypto::A_plus_B(A, m_sH); - m_v_mul_A_plus_SH = A_mul_b(m_A_plus_SH, m_view_secret_key); // for hw debug only + m_A_plus_sH = crypto::A_plus_B(A, m_sH); + m_v_mul_A_plus_sH = A_mul_b(m_A_plus_sH, m_view_secret_key); // for hw debug only - const Hash wallet_key_hash = derive_from_seed(m_seed, "wallet_key"); - m_wallet_key = chacha_key{wallet_key_hash}; + m_wallet_key = derive_from_seed(m_seed, "wallet_key"); if (debug_print) { std::cout << "bip44 child private key " << common::to_hex(k4.get_priv_key()) << std::endl; @@ -215,13 +107,13 @@ Emulator::Emulator(std::unique_ptr &&proxy) : m_proxy(std::move( std::cout << "m_view_public_key " << m_view_public_key << std::endl; std::cout << "m_spend_secret_key " << m_spend_secret_key << std::endl; std::cout << "m_sH " << m_sH << std::endl; - std::cout << "m_wallet_key " << wallet_key_hash << std::endl; + std::cout << "m_wallet_key " << m_wallet_key << std::endl; } if (m_proxy) { invariant(get_A_plus_SH() == m_proxy->get_A_plus_SH(), ""); invariant(get_v_mul_A_plus_SH() == m_proxy->get_v_mul_A_plus_SH(), ""); invariant(get_public_view_key() == m_proxy->get_public_view_key(), ""); - // TODO - compare chacha keys + invariant(get_wallet_key() == m_proxy->get_wallet_key(), ""); } test_all_methods(); } @@ -240,7 +132,7 @@ void Emulator::prepare_address(size_t address_index) const { if (address_index != last_address_index) { last_address_index = address_index; last_address_audit_secret_key = - crypto::generate_hd_secretkey(m_audit_key_base_secret_key, m_A_plus_SH, address_index); + crypto::generate_hd_secretkey(m_audit_key_base_secret_key, m_A_plus_sH, address_index); std::cout << "HW::prepare_address[" << address_index << "]=" << last_address_audit_secret_key << std::endl; } } @@ -254,7 +146,7 @@ void Emulator::prepare_address(size_t address_index, PublicKey *address_S, Publi *address_Sv = crypto::A_mul_b(*address_S, m_view_secret_key); } -std::vector Emulator::mul_by_view_secret_key(const std::vector &output_public_keys) const { +std::vector Emulator::mul_by_view_secret_key(const std::vector &output_public_keys) { // multiply by m_view_secret_key on device, throw if PublicKey detected to be invalid by device std::vector result(output_public_keys.size()); for (size_t i = 0; i != result.size(); ++i) @@ -265,44 +157,44 @@ std::vector Emulator::mul_by_view_secret_key(const std::vectorgenerate_keyimage(output_public_key, inv_spend_scalar, address_index) == result, ""); + invariant(m_proxy->generate_keyimage(output_public_key, inv_output_secret_hash, address_index) == result, ""); return result; } -void Emulator::generate_output_secret(const Hash &tx_inputs_hash, size_t out_index, PublicKey *output_secret_Q) const { - *output_secret_Q = cn::TransactionBuilder::deterministic_keys_from_seed( +void Emulator::generate_output_seed(const Hash &tx_inputs_hash, size_t out_index, PublicKey *output_seed) { + *output_seed = cn::TransactionBuilder::deterministic_keys_from_seed( tx_inputs_hash, m_tx_derivation_seed, common::get_varint_data(out_index)) - .public_key; + .public_key; if (m_proxy) { - PublicKey p_output_secret_Q; - m_proxy->generate_output_secret(tx_inputs_hash, out_index, &p_output_secret_Q); - invariant(*output_secret_Q == p_output_secret_Q, ""); + PublicKey p_output_seed; + m_proxy->generate_output_seed(tx_inputs_hash, out_index, &p_output_seed); + invariant(*output_seed == p_output_seed, ""); } } // TODO - check sig methods for resuls with proxy -void Emulator::sign_start(size_t version, size_t ut, size_t inputs_size, size_t outputs_size, size_t extra_size, - size_t change_address_index, uint8_t dst_address_tag, PublicKey dst_address_s, PublicKey dst_address_s_v) const { +void Emulator::sign_start(size_t version, uint64_t ut, size_t inputs_size, size_t outputs_size, size_t extra_size) { invariant(inputs_size != 0, ""); // 0 inputs not allowed in consensus invariant(outputs_size != 0, ""); // 0 outputs allowed in consensus, we prohibit it to simplify our state machine - sign = SigningState{}; - sign.version = version; - sign.ut = ut; - sign.inputs_size = inputs_size; - sign.outputs_size = outputs_size; - sign.extra_size = extra_size; - sign.dst_address_tag = dst_address_tag; - sign.dst_address_s = dst_address_s; - sign.dst_address_s_v = dst_address_s_v; - sign.state = SigningState::EXPECT_INPUT; - - prepare_address(change_address_index, &sign.change_address_s, &sign.change_address_s_v); + invariant(version != 0, "Wrong transaction version "); + sign = SigningState{}; + sign.inputs_size = inputs_size; + sign.outputs_size = outputs_size; + sign.extra_size = extra_size; + sign.state = SigningState::EXPECT_ADD_INPUT; sign.tx_prefix_stream.append(version); sign.tx_prefix_stream.append(ut); @@ -310,6 +202,9 @@ void Emulator::sign_start(size_t version, size_t ut, size_t inputs_size, size_t sign.tx_inputs_stream.append(inputs_size); sign.random_seed = Hash{}; // = crypto::rand(); - uncomment in final code for full security + if (m_proxy) { + m_proxy->sign_start(version, ut, inputs_size, outputs_size, extra_size); + } } SecretKey Emulator::generate_sign_secret(size_t i, const char secret_name[2]) const { @@ -325,15 +220,18 @@ SecretKey Emulator::generate_sign_secret(size_t i, const char secret_name[2]) co return b; } -void Emulator::add_input(uint64_t amount, const std::vector &output_indexes, SecretKey inv_spend_scalar, - size_t address_index) const { - invariant(sign.state == SigningState::EXPECT_INPUT && sign.inputs_counter < sign.inputs_size, ""); +void Emulator::sign_add_input(uint64_t amount, const std::vector &output_indexes, + SecretKey inv_output_secret_hash, size_t address_index) { + if (m_proxy) { + m_proxy->sign_add_input(amount, output_indexes, inv_output_secret_hash, address_index); + } + invariant(sign.state == SigningState::EXPECT_ADD_INPUT && sign.inputs_counter < sign.inputs_size, ""); + invariant(add_amount(sign.inputs_amount, amount), ""); const uint8_t tag = cn::InputKey::type_tag; sign.tx_prefix_stream.append_byte(tag); sign.tx_inputs_stream.append_byte(tag); sign.tx_prefix_stream.append(amount); sign.tx_inputs_stream.append(amount); - invariant(add_amount(sign.inputs_amount, amount), ""); sign.tx_prefix_stream.append(output_indexes.size()); sign.tx_inputs_stream.append(output_indexes.size()); for (size_t j = 0; j != output_indexes.size(); ++j) { @@ -341,8 +239,8 @@ void Emulator::add_input(uint64_t amount, const std::vector &output_inde sign.tx_inputs_stream.append(output_indexes[j]); } prepare_address(address_index); - SecretKey output_secret_key_a = crypto::sc_mul(last_address_audit_secret_key, inv_spend_scalar); - SecretKey output_secret_key_s = crypto::sc_mul(m_spend_secret_key, inv_spend_scalar); + SecretKey output_secret_key_a = crypto::sc_mul(last_address_audit_secret_key, inv_output_secret_hash); + SecretKey output_secret_key_s = crypto::sc_mul(m_spend_secret_key, inv_output_secret_hash); PublicKey output_public_key = crypto::secret_keys_to_public_key(output_secret_key_a, output_secret_key_s); KeyImage key_image = crypto::generate_key_image(output_public_key, output_secret_key_a); @@ -351,22 +249,28 @@ void Emulator::add_input(uint64_t amount, const std::vector &output_inde if (++sign.inputs_counter < sign.inputs_size) return; - sign.state = SigningState::EXPECT_OUTPUT; + sign.state = SigningState::EXPECT_ADD_OUTPUT; sign.tx_inputs_hash = sign.tx_inputs_stream.cn_fast_hash(); - sign.tx_prefix_stream.append_byte(sign.outputs_size); + sign.tx_prefix_stream.append(sign.outputs_size); } void Emulator::add_output_or_change(uint64_t amount, uint8_t dst_address_tag, PublicKey dst_address_s, PublicKey dst_address_s_v, PublicKey *public_key, PublicKey *encrypted_secret, uint8_t *encrypted_address_type) const { - KeyPair output_det_keys = cn::TransactionBuilder::deterministic_keys_from_seed( + KeyPair output_seed_keys = cn::TransactionBuilder::deterministic_keys_from_seed( sign.tx_inputs_hash, m_tx_derivation_seed, common::get_varint_data(sign.outputs_counter)); + if (debug_print) + std::cout << "output_seed_keys=" << output_seed_keys.public_key << std::endl; SecretKey output_secret_scalar; PublicKey output_secret_point; Hash output_secret_address_type; cn::TransactionBuilder::generate_output_secrets( - output_det_keys.public_key, &output_secret_scalar, &output_secret_point, &output_secret_address_type); - + output_seed_keys.public_key, &output_secret_scalar, &output_secret_point, &output_secret_address_type); + if (debug_print) { + std::cout << "output_secret_scalar=" << output_secret_scalar << std::endl; + std::cout << "output_secret_point=" << output_secret_point << std::endl; + std::cout << "output_secret_address_type=" << output_secret_address_type << std::endl; + } uint8_t output_tag = cn::OutputKey::type_tag; *encrypted_address_type = dst_address_tag ^ output_secret_address_type.data[0]; @@ -385,18 +289,44 @@ void Emulator::add_output_or_change(uint64_t amount, uint8_t dst_address_tag, Pu sign.tx_prefix_stream.append_byte(*encrypted_address_type); } -void Emulator::add_output(bool change, uint64_t amount, PublicKey *public_key, PublicKey *encrypted_secret, - uint8_t *encrypted_address_type) const { - invariant(sign.state == SigningState::EXPECT_OUTPUT && sign.outputs_counter < sign.outputs_size, ""); +void Emulator::sign_add_output(bool change, uint64_t amount, size_t change_address_index, uint8_t dst_address_tag, + PublicKey dst_address_s, PublicKey dst_address_s_v, PublicKey *public_key, PublicKey *encrypted_secret, + uint8_t *encrypted_address_type) { + invariant(sign.state == SigningState::EXPECT_ADD_OUTPUT && sign.outputs_counter < sign.outputs_size, ""); if (change) { invariant(add_amount(sign.change_amount, amount), ""); - add_output_or_change(amount, cn::AccountAddressUnlinkable::type_tag, sign.change_address_s, - sign.change_address_s_v, public_key, encrypted_secret, encrypted_address_type); + PublicKey change_address_s; + PublicKey change_address_s_v; + prepare_address(change_address_index, &change_address_s, &change_address_s_v); + + add_output_or_change(amount, cn::AccountAddressUnlinkable::type_tag, change_address_s, change_address_s_v, + public_key, encrypted_secret, encrypted_address_type); } else { + if (!sign.dst_address_set) { + sign.dst_address_set = true; + sign.dst_address_tag = dst_address_tag; + sign.dst_address_s = dst_address_s; + sign.dst_address_s_v = dst_address_s_v; + } else { + invariant(sign.dst_address_tag == dst_address_tag && sign.dst_address_s == dst_address_s && + sign.dst_address_s_v == dst_address_s_v, + ""); + } invariant(add_amount(sign.dst_amount, amount), ""); add_output_or_change(amount, sign.dst_address_tag, sign.dst_address_s, sign.dst_address_s_v, public_key, encrypted_secret, encrypted_address_type); } + if (m_proxy) { + PublicKey encrypted_secret2; + PublicKey public_key2; + uint8_t encrypted_address_type2 = 0; + m_proxy->sign_add_output(change, amount, change_address_index, dst_address_tag, dst_address_s, dst_address_s_v, + &public_key2, &encrypted_secret2, &encrypted_address_type2); + invariant(*public_key == public_key2 && *encrypted_secret == encrypted_secret2 && + *encrypted_address_type == encrypted_address_type2, + ""); + } + if (++sign.outputs_counter < sign.outputs_size) return; uint64_t outputs_amount = sign.dst_amount; @@ -408,31 +338,38 @@ void Emulator::add_output(bool change, uint64_t amount, PublicKey *public_key, P // 1. Do you wish to send 'dst_amount' to 'dst_address'? // 2. Fee will be 'fee' // If both answered yes, continue to signing. Otherwise cancel - sign.state = SigningState::EXPECT_EXTRA_CHUNK; + sign.state = SigningState::EXPECT_ADD_EXTRA_CHUNK; sign.tx_prefix_stream.append(sign.extra_size); } -void Emulator::add_extra(const BinaryArray &chunk) const { - invariant(sign.state == SigningState::EXPECT_EXTRA_CHUNK, ""); +void Emulator::sign_add_extra(const BinaryArray &chunk) { + if (m_proxy) { + m_proxy->sign_add_extra(chunk); + } + invariant(sign.state == SigningState::EXPECT_ADD_EXTRA_CHUNK, ""); invariant(sign.extra_counter + chunk.size() <= sign.extra_size, ""); // <= because we call it also for empty extra sign.tx_prefix_stream.append(chunk.data(), chunk.size()); sign.extra_counter += chunk.size(); if (sign.extra_counter < sign.extra_size) return; - sign.state = SigningState::EXPECT_SIGN_A; + sign.state = SigningState::EXPECT_STEP_A; sign.tx_prefix_hash = sign.tx_prefix_stream.cn_fast_hash(); sign.inputs_counter = 0; sign.tx_inputs_stream = KeccakStream{}; sign.tx_inputs_stream.append(sign.tx_prefix_hash.data, 32); } -void Emulator::add_sig_a(SecretKey inv_spend_scalar, size_t address_index, EllipticCurvePoint *sig_p, - EllipticCurvePoint *x, EllipticCurvePoint *y) const { - invariant(sign.state == SigningState::EXPECT_SIGN_A && sign.inputs_counter < sign.inputs_size, ""); +void Emulator::sign_step_a(SecretKey inv_output_secret_hash, size_t address_index, EllipticCurvePoint *sig_p, + EllipticCurvePoint *x, EllipticCurvePoint *y) { + if (sign.state == SigningState::EXPECT_STEP_A_MORE_DATA && sign.inputs_counter + 1 < sign.inputs_size) { + sign.inputs_counter += 1; + sign.state = SigningState::EXPECT_STEP_A; + } + invariant(sign.state == SigningState::EXPECT_STEP_A && sign.inputs_counter < sign.inputs_size, ""); prepare_address(address_index); - SecretKey output_secret_key_a = crypto::sc_mul(last_address_audit_secret_key, inv_spend_scalar); - SecretKey output_secret_key_s = crypto::sc_mul(m_spend_secret_key, inv_spend_scalar); + SecretKey output_secret_key_a = crypto::sc_mul(last_address_audit_secret_key, inv_output_secret_hash); + SecretKey output_secret_key_s = crypto::sc_mul(m_spend_secret_key, inv_output_secret_hash); PublicKey output_public_key = crypto::secret_keys_to_public_key(output_secret_key_a, output_secret_key_s); KeyImage key_image = crypto::generate_key_image(output_public_key, output_secret_key_a); @@ -452,52 +389,64 @@ void Emulator::add_sig_a(SecretKey inv_spend_scalar, size_t address_index, Ellip const SecretKey kc = generate_sign_secret(sign.inputs_counter, "kc"); const PublicKey z = to_bytes(kb * H + kc * b_coin_p3); + if (debug_print) + std::cout << "z[" << sign.inputs_counter << "]=" << z << std::endl; sign.tx_inputs_stream.append(z.data, 32); const P3 G_plus_B_p3 = P3(G) + b_coin_p3; if (debug_print) - std::cout << "pk[" << sign.inputs_counter << ", " - << "my" - << "]=" << output_public_key << std::endl; + std::cout << "pk[" << sign.inputs_counter << ", my]=" << output_public_key << std::endl; *x = to_bytes(ka * G_plus_B_p3); if (debug_print) - std::cout << "x[" << sign.inputs_counter << ", " - << "my" - << "]=" << *x << std::endl; + std::cout << "x[" << sign.inputs_counter << ", my]=" << *x << std::endl; *y = to_bytes(ka * hash_pubs_sec_p3); if (debug_print) - std::cout << "y[" << sign.inputs_counter << ", " - << "my" - << "]=" << *y << std::endl; + std::cout << "y[" << sign.inputs_counter << ", my]=" << *y << std::endl; + + sign.state = SigningState::EXPECT_STEP_A_MORE_DATA; + if (m_proxy) { + EllipticCurvePoint sigp2; + EllipticCurvePoint x2, y2; - sign.state = SigningState::EXPECT_SIGN_A_MORE_DATA; + m_proxy->sign_step_a(inv_output_secret_hash, address_index, &sigp2, &x2, &y2); + invariant(*sig_p == sigp2 && *x == x2 && *y == y2, ""); + } } -void Emulator::add_sig_a_more_data(const BinaryArray &data, EllipticCurveScalar *c0) const { - invariant(sign.state == SigningState::EXPECT_SIGN_A_MORE_DATA, ""); +void Emulator::sign_step_a_more_data(const BinaryArray &data) { + if (m_proxy) { + m_proxy->sign_step_a_more_data(data); + } + invariant(sign.state == SigningState::EXPECT_STEP_A_MORE_DATA, ""); sign.tx_inputs_stream.append(data.data(), data.size()); +} + +crypto::EllipticCurveScalar Emulator::sign_get_c0() { + invariant(sign.state == SigningState::EXPECT_STEP_A_MORE_DATA && sign.inputs_counter + 1 == sign.inputs_size, ""); - if (++sign.inputs_counter < sign.inputs_size) { - *c0 = EllipticCurveScalar{}; - sign.state = SigningState::EXPECT_SIGN_A; - return; - } sign.c0 = sign.tx_inputs_stream.hash_to_scalar(); - *c0 = sign.c0; if (debug_print) std::cout << "c0=" << sign.c0 << std::endl; - sign.state = SigningState::EXPECT_SIGN_B; + + sign.state = SigningState::EXPECT_STEP_B; sign.inputs_counter = 0; + + if (m_proxy) { + auto c02 = m_proxy->sign_get_c0(); + invariant(c02 == sign.c0, ""); + } + + return sign.c0; } -void Emulator::add_sig_b(SecretKey inv_spend_scalar, size_t address_index, EllipticCurveScalar my_c, - EllipticCurveScalar *sig_my_ra, EllipticCurveScalar *sig_rb, EllipticCurveScalar *sig_rc) const { - invariant(sign.state == SigningState::EXPECT_SIGN_B, ""); +void Emulator::sign_step_b(SecretKey inv_output_secret_hash, size_t address_index, EllipticCurveScalar my_c, + EllipticCurveScalar *sig_my_ra, EllipticCurveScalar *sig_rb, EllipticCurveScalar *sig_rc) { + invariant(sign.state == SigningState::EXPECT_STEP_B && sign.inputs_counter < sign.inputs_size, ""); prepare_address(address_index); - SecretKey output_secret_key_a = crypto::sc_mul(last_address_audit_secret_key, inv_spend_scalar); - SecretKey output_secret_key_s = crypto::sc_mul(m_spend_secret_key, inv_spend_scalar); + SecretKey output_secret_key_a = crypto::sc_mul(last_address_audit_secret_key, inv_output_secret_hash); + SecretKey output_secret_key_s = crypto::sc_mul(m_spend_secret_key, inv_output_secret_hash); const SecretKey ka = generate_sign_secret(sign.inputs_counter, "ka"); const SecretKey kb = generate_sign_secret(sign.inputs_counter, "kb"); @@ -514,22 +463,35 @@ void Emulator::add_sig_b(SecretKey inv_spend_scalar, size_t address_index, Ellip if (debug_print) std::cout << "rc[" << sign.inputs_counter << "]=" << *sig_rc << std::endl; + if (m_proxy) { + crypto::EllipticCurveScalar sig_my_ra2, rb2, rc2; + m_proxy->sign_step_b(inv_output_secret_hash, address_index, my_c, &sig_my_ra2, &rb2, &rc2); + invariant(*sig_my_ra == sig_my_ra2 && *sig_rb == rb2 && *sig_rc == rc2, ""); + } + if (++sign.inputs_counter < sign.inputs_size) return; sign.state = SigningState::FINISHED; } -void Emulator::generate_sendproof(const Hash &tx_inputs_hash, size_t out_index, const Hash &transaction_hash, - const Hash &message_hash, const std::string &address, size_t outputs_count, Signature *signature) const { - // KeyPair output_det_keys = cn::TransactionBuilder::deterministic_keys_from_seed( - // tx_inputs_hash, m_tx_derivation_seed, common::get_varint_data(out_index)); - // *signature = - // crypto::amethyst_generate_sendproof(output_det_keys, transaction_hash, message_hash, address, - // outputs_count); +void Emulator::proof_start(const common::BinaryArray &data) { + sign = SigningState{}; + sign.inputs_size = 1; + + sign.tx_prefix_stream.append_byte(0); // guard_byte + sign.tx_prefix_stream.append(data.data(), data.size()); // will require separate sign.state on real device + sign.tx_prefix_hash = sign.tx_prefix_stream.cn_fast_hash(); + sign.random_seed = Hash{}; // = crypto::rand(); - uncomment in final code for full security + + sign.tx_inputs_stream.append(sign.tx_prefix_hash.data, 32); + sign.state = SigningState::EXPECT_STEP_A; + if (m_proxy) { + m_proxy->proof_start(data); + } } void Emulator::export_view_only(SecretKey *audit_key_base_secret_key, SecretKey *view_secret_key, - Hash *tx_derivation_seed, Signature *view_secrets_signature) const { + Hash *tx_derivation_seed, Signature *view_secrets_signature) { *view_secret_key = m_view_secret_key; *audit_key_base_secret_key = m_audit_key_base_secret_key; // Ask user if he wants view wallet to view outgoing addresses @@ -549,4 +511,15 @@ void Emulator::export_view_only(SecretKey *audit_key_base_secret_key, SecretKey std::cout << "view_secrets_hash=" << view_secrets_hash << std::endl; std::cout << "view_secrets_signature=" << view_secrets_signature->c << view_secrets_signature->r << std::endl; } + if (m_proxy) { + SecretKey audit_key_base_secret_key2, view_secret_key2; + Hash tx_derivation_seed2; + Signature view_secrets_signature2; + m_proxy->export_view_only( + &audit_key_base_secret_key2, &view_secret_key2, &tx_derivation_seed2, &view_secrets_signature2); + invariant(*audit_key_base_secret_key == audit_key_base_secret_key2 && *view_secret_key == view_secret_key2 && + *tx_derivation_seed == tx_derivation_seed2, + ""); + // Cannot compare signatures - they include random component + } } diff --git a/src/Core/hardware/Emulator.hpp b/src/Core/hardware/Emulator.hpp new file mode 100644 index 00000000..0cdf99a9 --- /dev/null +++ b/src/Core/hardware/Emulator.hpp @@ -0,0 +1,120 @@ +// Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers. +// Licensed under the GNU Lesser General Public License. See LICENSE for details. + +#pragma once + +#include +#include +#include "HardwareWallet.hpp" + +namespace cn { namespace hardware { + +class Emulator : public HardwareWallet { + Hash m_wallet_key; // wallet encryption key, derived from secret + PublicKey m_A_plus_sH; + PublicKey m_v_mul_A_plus_sH; + PublicKey m_view_public_key; + + const size_t m_address_type = 1; + + // following vars reside inside hw wallet + std::string m_mnemonics; + SecretKey m_view_secret_key; + SecretKey m_spend_secret_key; + SecretKey m_audit_key_base_secret_key; + Hash m_tx_derivation_seed; + PublicKey m_sH; + + mutable size_t last_address_index = std::numeric_limits::max(); + mutable SecretKey last_address_audit_secret_key; + void prepare_address(size_t address_index) const; + void prepare_address(size_t address_index, PublicKey *address_S, PublicKey *address_Sv) const; + struct KeccakStream { // Naive implemenatation, real hardware will use fixed 200+4 bytes rep + common::BinaryArray ba; + + void append(const unsigned char *data, size_t size); + void append(uint64_t a); + void append_byte(uint8_t b); + Hash cn_fast_hash() const; + SecretKey hash_to_scalar() const; + SecretKey hash_to_scalar64() const; + PublicKey hash_to_good_point() const; + }; + struct SigningState { + // FINISHED is default state. + // sign_start can be called in any state to restart signing + // other sign methods require specific state, and + // move system into subsequent state until moved to FINISHED + enum State { + FINISHED, + EXPECT_ADD_INPUT, // inputs_counter as a substate + EXPECT_ADD_OUTPUT, // outputs_counter as a substate + EXPECT_ADD_EXTRA_CHUNK, // extra_counter as a substate + EXPECT_STEP_A, // inputs_counter as a substate for (EXPECT_STEP_A, EXPECT_STEP_A_MORE_DATA) + EXPECT_STEP_A_MORE_DATA, + EXPECT_STEP_B // inputs_counter as a substate + }; + State state = FINISHED; + size_t inputs_size = 0; + size_t outputs_size = 0; + size_t extra_size = 0; + bool dst_address_set = false; + uint8_t dst_address_tag = 0; + PublicKey dst_address_s; + PublicKey dst_address_s_v; + + size_t inputs_counter = 0; + size_t outputs_counter = 0; + size_t extra_counter = 0; + Hash random_seed; // single seed for the whole transaction + KeccakStream tx_inputs_stream; // we reuse it during sig_a, sig_b for c0 = Hash(... + Hash tx_inputs_hash; + KeccakStream tx_prefix_stream; + Hash tx_prefix_hash; + uint64_t inputs_amount = 0; + uint64_t dst_amount = 0; + uint64_t change_amount = 0; + crypto::EllipticCurveScalar c0; + }; + mutable SigningState sign; + void add_output_or_change(uint64_t amount, uint8_t dst_address_tag, PublicKey dst_address_s, + PublicKey dst_address_s_v, PublicKey *public_key, PublicKey *encrypted_secret, + uint8_t *encrypted_address_type) const; + SecretKey generate_sign_secret(size_t i, const char secret_name[2]) const; + + std::unique_ptr m_proxy; + +public: + explicit Emulator(const std::string &mnemonic, std::unique_ptr &&proxy); + ~Emulator() override; + std::string get_hardware_type() const override; + Hash get_wallet_key() const override { return m_wallet_key; } + PublicKey get_A_plus_SH() const override { return m_A_plus_sH; } + PublicKey get_v_mul_A_plus_SH() const override { return m_v_mul_A_plus_sH; } + PublicKey get_public_view_key() const override { return m_view_public_key; } + + std::vector mul_by_view_secret_key(const std::vector &output_public_keys) override; + KeyImage generate_keyimage( + const PublicKey &output_public_key, const SecretKey &inv_output_secret_hash, size_t address_index) override; + void generate_output_seed(const Hash &tx_inputs_hash, size_t out_index, PublicKey *output_seed) override; + void sign_start(size_t version, uint64_t ut, size_t inputs_size, size_t outputs_size, size_t extra_size) override; + void sign_add_input(uint64_t amount, const std::vector &output_indexes, SecretKey inv_output_secret_hash, + size_t address_index) override; + void sign_add_output(bool change, uint64_t amount, size_t change_address_index, uint8_t dst_address_tag, + PublicKey dst_address_s, PublicKey dst_address_s_v, PublicKey *public_key, PublicKey *encrypted_secret, + uint8_t *encrypted_address_type) override; + void sign_add_extra(const common::BinaryArray &extra) override; + void sign_step_a(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurvePoint *sig_p, + crypto::EllipticCurvePoint *x, crypto::EllipticCurvePoint *y) override; + void sign_step_a_more_data(const common::BinaryArray &data) override; + crypto::EllipticCurveScalar sign_get_c0() override; + void sign_step_b(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurveScalar my_c, + crypto::EllipticCurveScalar *sig_my_ra, crypto::EllipticCurveScalar *sig_rb, + crypto::EllipticCurveScalar *sig_rc) override; + void export_view_only(SecretKey *audit_key_base_secret_key, SecretKey *view_secret_key, Hash *tx_derivation_seed, + Signature *view_secrets_signature) override; + + void proof_start(const common::BinaryArray &data) override; +}; + +}} // namespace cn::hardware diff --git a/src/Core/hardware/HardwareWallet.cpp b/src/Core/hardware/HardwareWallet.cpp new file mode 100644 index 00000000..94867f29 --- /dev/null +++ b/src/Core/hardware/HardwareWallet.cpp @@ -0,0 +1,194 @@ +// Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers. +// Licensed under the GNU Lesser General Public License. See LICENSE for details. + +#include "HardwareWallet.hpp" +#include +#include +#include "CryptoNote.hpp" +#include "Emulator.hpp" +#include "Ledger.hpp" +#include "Trezor.hpp" +#include "common/Invariant.hpp" +#include "common/exception.hpp" +#include "crypto/bernstein/crypto-ops.h" +#include "crypto/crypto_helpers.hpp" + +using namespace cn::hardware; +using namespace crypto; +using namespace common; + +static std::string debug_mnemonic; + +void HardwareWallet::debug_set_mnemonic(const std::string &mnemonic) { debug_mnemonic = mnemonic; } + +std::vector> HardwareWallet::get_connected() { + std::vector> result; + +#if cn_WITH_TREZOR + Trezor::add_connected(&result); +#endif +#if cn_WITH_LEDGER + Ledger::add_connected(&result); +#endif + // Now we create emulator and if hardware wallet found with the same mnemonic, we connect it through emulator + std::unique_ptr em; + try { + if (!debug_mnemonic.empty()) + em = std::make_unique(debug_mnemonic, std::unique_ptr()); + } catch (const std::exception &ex) { + std::cout << "Failed to create hardware wallet emulator, reason=" << common::what(ex) << std::endl; + } + for (auto &&r : result) { + if (em && r->get_wallet_key() == em->get_wallet_key()) { + em = std::unique_ptr(); + r = std::make_unique(debug_mnemonic, std::move(r)); + } + } + if (em) + result.push_back(std::move(em)); + if (!result.empty()) + std::cout << "Connected hardware wallets" << std::endl; + for (auto &&r : result) { + std::cout << "\t" << r->get_hardware_type() << std::endl; + } + return result; +} + +RingSignatureAmethyst HardwareWallet::generate_ring_signature_auditable(const Hash &tx_prefix_hash, + const std::vector &output_secret_hashes, const std::vector &address_indexes, + const std::vector &images, const std::vector> &pubs, + const std::vector &sec_indexes) { + RingSignatureAmethyst rsa; + rsa.p.resize(output_secret_hashes.size()); + rsa.ra.resize(output_secret_hashes.size()); + rsa.rb.resize(output_secret_hashes.size()); + rsa.rc.resize(output_secret_hashes.size()); + + for (size_t i = 0; i != output_secret_hashes.size(); ++i) { + PublicKey x; + PublicKey y; + sign_step_a(crypto::sc_invert(output_secret_hashes.at(i)), address_indexes.at(i), &rsa.p.at(i), &x, &y); + + const crypto::P3 b_coin_p3(hash_to_good_point_p3(images.at(i))); + const crypto::P3 p_p3(rsa.p.at(i)); + const crypto::P3 G_plus_B_p3 = crypto::P3(crypto::G) + b_coin_p3; + const crypto::P3 image_p3(images.at(i)); + + crypto::generate_ring_signature_auditable_loop1( + i, tx_prefix_hash, image_p3, p_p3, G_plus_B_p3, sec_indexes.at(i), pubs.at(i), &rsa.ra.at(i), &x, &y); + BinaryArray ba = x.as_binary_array() | y.as_binary_array(); + for (const auto &pk : pubs.at(i)) + ba |= pk.as_binary_array(); + sign_step_a_more_data(ba); + } + rsa.c0 = sign_get_c0(); + for (size_t i = 0; i != output_secret_hashes.size(); ++i) { + const crypto::P3 b_coin_p3(hash_to_good_point_p3(images.at(i))); + const crypto::P3 p_p3(rsa.p.at(i)); + const crypto::P3 G_plus_B_p3 = crypto::P3(crypto::G) + b_coin_p3; + const crypto::P3 image_p3(images.at(i)); + + crypto::EllipticCurveScalar next_c = rsa.c0; + crypto::generate_ring_signature_auditable_loop2( + i, tx_prefix_hash, image_p3, p_p3, G_plus_B_p3, sec_indexes.at(i), pubs.at(i), &rsa.ra.at(i), &next_c); + sign_step_b(crypto::sc_invert(output_secret_hashes.at(i)), address_indexes.at(i), next_c, + &rsa.ra.at(i).at(sec_indexes.at(i)), &rsa.rb.at(i), &rsa.rc.at(i)); + } + return rsa; +} + +void HardwareWallet::test_all_methods() { + const PublicKey pk = get_public_view_key(); + const PublicKey test_point1 = crypto::hash_to_good_point(pk.data, sizeof(pk.data)); + std::cout << "---- testing hashes for m_spend_key_base_public_key =" << pk << std::endl; + { + std::cout << "hash_to_bad_point = " << crypto::hash_to_bad_point(pk.data, sizeof(pk.data)) << std::endl; + std::cout << "hash_to_good_point = " << test_point1 << std::endl; + Hash h = cn_fast_hash(pk.data, sizeof(pk.data)); + Hash h2 = cn_fast_hash(h.data, sizeof(h.data)); + std::cout << "hash32 = " << h << std::endl; + std::cout << "hash64 = " << h << h2 << std::endl; + std::cout << "hash_to_scalar64 = " << crypto::hash_to_scalar64(pk.data, sizeof(pk.data)) << std::endl; + } + const SecretKey test_scalar1 = crypto::hash_to_scalar(test_point1.data, sizeof(test_point1.data)); + const Hash test_hash1 = crypto::cn_fast_hash(test_scalar1.data, sizeof(test_scalar1.data)); + const PublicKey test_address1_s = crypto::hash_to_good_point(test_hash1.data, sizeof(test_hash1.data)); + const PublicKey test_address1_v = crypto::hash_to_good_point(test_address1_s.data, sizeof(test_address1_s.data)); + const PublicKey test_point2 = crypto::hash_to_good_point(test_address1_v.data, sizeof(test_address1_v.data)); + const PublicKey test_point3 = crypto::hash_to_good_point(test_point2.data, sizeof(test_point2.data)); + const SecretKey test_scalar2 = crypto::hash_to_scalar(test_point3.data, sizeof(test_point3.data)); + + std::cout << "---- mul_by_view_secret_key" << std::endl; + std::cout << mul_by_view_secret_key({test_point1}).at(0) << std::endl; + std::cout << "---- generate_keyimage" << std::endl; + std::cout << generate_keyimage(test_point1, test_scalar1, 0) << std::endl; + std::cout << "---- generate_output_seed" << std::endl; + PublicKey result_point1, result_point2, result_point3; + generate_output_seed(test_hash1, 0, &result_point1); + std::cout << result_point1 << std::endl; + std::vector extra{1, 2, 3, 4, 5}; + const size_t my_address = 0; + std::cout << "---- sign_start" << std::endl; + sign_start(4, 5, 1, 2, extra.size()); + std::cout << "---- sign_add_input" << std::endl; + uint8_t result_byte = 0; + sign_add_input(1000, {0, 1, 2}, test_scalar1, my_address); + std::cout << result_point1 << std::endl; + std::cout << result_point2 << std::endl; + std::cout << "---- sign_add_output" << std::endl; + sign_add_output(false, 400, my_address, cn::AccountAddressSimple::type_tag, test_address1_s, test_address1_v, + &result_point1, &result_point2, &result_byte); + std::cout << result_point1 << std::endl; + std::cout << result_point2 << std::endl; + std::cout << int(result_byte) << std::endl; + std::cout << "---- sign_add_output" << std::endl; + sign_add_output(true, 500, my_address, cn::AccountAddressSimple::type_tag, test_address1_s, test_address1_v, + &result_point1, &result_point2, &result_byte); + std::cout << result_point1 << std::endl; + std::cout << result_point2 << std::endl; + std::cout << int(result_byte) << std::endl; + std::cout << "---- add_extra_chunk" << std::endl; + sign_add_extra(extra); + std::cout << "---- sign_step_a" << std::endl; + sign_step_a(test_scalar1, my_address, &result_point1, &result_point2, &result_point3); + std::cout << result_point1 << std::endl; + std::cout << result_point2 << std::endl; + std::cout << result_point3 << std::endl; + std::cout << "---- sign_step_a" << std::endl; + SecretKey result_scalar1, result_scalar2, result_scalar3; + sign_step_a_more_data(test_point1.as_binary_array() | test_point2.as_binary_array()); + std::cout << "---- sign_get_c0" << std::endl; + std::cout << sign_get_c0() << std::endl; + std::cout << "---- sign_step_b" << std::endl; + sign_step_b(test_scalar1, my_address, test_scalar1, &result_scalar1, &result_scalar2, &result_scalar3); + std::cout << result_scalar1 << std::endl; + std::cout << result_scalar2 << std::endl; + std::cout << result_scalar3 << std::endl; + + // repeat first steps to check output generation to unlinkable address + std::cout << "---- sign_start" << std::endl; + sign_start(4, 0, 1, 2, extra.size()); + std::cout << "---- sign_add_input" << std::endl; + sign_add_input(1000, {0, 1, 2}, test_scalar1, my_address); + std::cout << result_point1 << std::endl; + std::cout << result_point2 << std::endl; + std::cout << "---- sign_add_output" << std::endl; + sign_add_output(false, 400, my_address, cn::AccountAddressUnlinkable::type_tag, test_address1_s, test_address1_v, + &result_point1, &result_point2, &result_byte); + std::cout << result_point1 << std::endl; + std::cout << result_point2 << std::endl; + std::cout << int(result_byte) << std::endl; + + Signature result_sig0; + // std::cout << "---- generate_sendproof" << std::endl; + // generate_sendproof(test_hash1, 1, test_hash1, test_hash1, "mega address", 5, &result_sig0); + std::cout << result_sig0.c << result_sig0.r << std::endl; + std::cout << "---- export_view_only" << std::endl; + Hash result_hash1; + export_view_only(&result_scalar1, &result_scalar2, &result_hash1, &result_sig0); + std::cout << result_scalar1 << std::endl; + std::cout << result_scalar2 << std::endl; + std::cout << result_hash1 << std::endl; + std::cout << result_sig0.c << result_sig0.r << std::endl; + std::cout << "---- tests finished" << std::endl; +} diff --git a/src/Core/hardware/HardwareWallet.hpp b/src/Core/hardware/HardwareWallet.hpp new file mode 100644 index 00000000..d0164791 --- /dev/null +++ b/src/Core/hardware/HardwareWallet.hpp @@ -0,0 +1,74 @@ +// Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers. +// Licensed under the GNU Lesser General Public License. See LICENSE for details. + +#pragma once + +#include +#include +#include "CryptoNote.hpp" + +namespace cn { namespace hardware { + +// Prototype - max simplified synchronous calls + +// All funs including constructor throw std::runtime_error when connection to hardware wallet lost before end of fun. +// All funs must quickly try reestablishing connection at the start if it was lost during previous call +// Calls might be from different threads, but will be externally synchronized + +class HardwareWallet { +public: + virtual ~HardwareWallet() = default; + virtual std::string get_hardware_type() const = 0; + + // In constructor read those secrets from device at once + virtual Hash get_wallet_key() const = 0; + virtual PublicKey get_A_plus_SH() const = 0; + virtual PublicKey get_v_mul_A_plus_SH() const = 0; + virtual PublicKey get_public_view_key() const = 0; + + // We multiply in batches, because we have lots of them (for all outputs) + // Hardware is expected to divide into chunks of size that fit + virtual std::vector mul_by_view_secret_key(const std::vector &output_public_keys) = 0; + // We generate key images by one because we have a few of them (only for 'our' outputs) + virtual KeyImage generate_keyimage( + const PublicKey &output_public_key, const SecretKey &inv_output_secret_hash, size_t address_index) = 0; + virtual void generate_output_seed(const Hash &tx_inputs_hash, size_t out_index, PublicKey *output_seed) = 0; + virtual void sign_start( + size_t version, uint64_t ut, size_t inputs_size, size_t outputs_size, size_t extra_size) = 0; + virtual void sign_add_input(uint64_t amount, const std::vector &output_indexes, + SecretKey inv_output_secret_hash, size_t address_index) = 0; + virtual void sign_add_output(bool change, uint64_t amount, size_t change_address_index, uint8_t dst_address_tag, + PublicKey dst_address_s, PublicKey dst_address_s_v, PublicKey *public_key, PublicKey *encrypted_secret, + uint8_t *encrypted_address_type) = 0; + // sign_add_extra called even when empty, to simplify state machine + virtual void sign_add_extra(const common::BinaryArray &extra) = 0; + // add_sig_a1, then add_sig_a2 is called for each input + virtual void sign_step_a(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurvePoint *sig_p, + crypto::EllipticCurvePoint *x, crypto::EllipticCurvePoint *y) = 0; + virtual void sign_step_a_more_data(const common::BinaryArray &data) = 0; + virtual crypto::EllipticCurveScalar sign_get_c0() = 0; + virtual void sign_step_b(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurveScalar my_c, + crypto::EllipticCurveScalar *sig_my_ra, crypto::EllipticCurveScalar *sig_rb, + crypto::EllipticCurveScalar *sig_rc) = 0; + virtual void export_view_only(SecretKey *audit_key_base_secret_key, SecretKey *view_secret_key, + Hash *tx_derivation_seed, Signature *view_secrets_signature) = 0; + virtual void proof_start(const common::BinaryArray &data) = 0; + + virtual void precache_mul_by_view_secret_key(const std::vector &output_public_keys) { + // this method is optional, will be used for future latency optimization - TBD + } + + static void debug_set_mnemonic(const std::string &mnemonic); + + void test_all_methods(); + + static std::vector> get_connected(); + + // Common helper algos + RingSignatureAmethyst generate_ring_signature_auditable(const Hash &tx_prefix_hash, + const std::vector &output_secret_hashes, const std::vector &address_indexes, + const std::vector &images, const std::vector> &pubs, + const std::vector &sec_indexes); +}; + +}} // namespace cn::hardware diff --git a/src/Core/hardware/Ledger.cpp b/src/Core/hardware/Ledger.cpp new file mode 100644 index 00000000..7b9f854f --- /dev/null +++ b/src/Core/hardware/Ledger.cpp @@ -0,0 +1,185 @@ +// Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers. +// Licensed under the GNU Lesser General Public License. See LICENSE for details. + +#include "Ledger.hpp" +#include +#include +#include "Core/TransactionBuilder.hpp" +#include "CryptoNote.hpp" +#include "common/BIPs.hpp" +#include "common/Invariant.hpp" +#include "common/MemoryStreams.hpp" +#include "common/StringTools.hpp" +#include "common/Varint.hpp" +#include "http/ResponseParser.hpp" +#include "seria/BinaryInputStream.hpp" + +#if cn_WITH_LEDGER + +using namespace cn::hardware; +using namespace common; +using namespace crypto; + +// Good description is here - https://github.com/trezor/trezord-go/blob/master/README.md + +#define BTCHIP_VID 0x2c97 +#define BTCHIP_PID 0x0001 + +struct USBLib { + bool good = false; + USBLib() : good(libusb_init(nullptr) >= 0) {} + ~USBLib() { + if (good) + libusb_exit(nullptr); + } +}; + +USBDevice::~USBDevice() { + libusb_close(handle); + handle = nullptr; +} + +static USBLib usb_lib; // do not do that aha + +void Ledger::add_connected(std::vector> *result) { + if (!usb_lib.good) + return; + // libusb_device_handle *rd = libusb_open_device_with_vid_pid(NULL, BTCHIP_VID, BTCHIP_PID); + + libusb_device **devs = nullptr; + ssize_t cnt = libusb_get_device_list(nullptr, &devs); + if (cnt < 0) + return; + + libusb_device *dev = nullptr; + int i = 0, j = 0; + uint8_t path[8]; + + while ((dev = devs[i++]) != NULL) { + struct libusb_device_descriptor desc {}; + int r = libusb_get_device_descriptor(dev, &desc); + if (r < 0) { + fprintf(stderr, "failed to get device descriptor"); + break; + } + printf("%04x:%04x (bus %d, device %d)", desc.idVendor, desc.idProduct, libusb_get_bus_number(dev), + libusb_get_device_address(dev)); + + r = libusb_get_port_numbers(dev, path, sizeof(path)); + if (r > 0) { + printf(" path: %d", path[0]); + for (j = 1; j < r; j++) + printf(".%d", path[j]); + } + printf("\n"); + if (desc.idVendor == BTCHIP_VID && desc.idProduct == BTCHIP_PID) { + libusb_device_handle *dev_handle = nullptr; + int open_r = libusb_open(dev, &dev_handle); + if (open_r == 0) + result->push_back(std::make_unique(dev_handle)); + else + fprintf(stderr, "failed to open device"); + } + } + libusb_free_device_list(devs, 1); +} + +Ledger::Ledger(libusb_device_handle *dev_handle) : m_device(dev_handle) {} + +Ledger::~Ledger() {} + +std::string Ledger::get_hardware_type() const { return "Ledger"; } + +const size_t SCAN_OUTPUTS_MAX_SIZE = 10; + +std::vector Ledger::mul_by_view_secret_key(const std::vector &output_public_keys) { + std::vector result; + for (size_t i = 0; i != output_public_keys.size();) { + size_t stop = std::min(output_public_keys.size(), i + SCAN_OUTPUTS_MAX_SIZE); + // hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest req; + for (; i != stop; ++i) { + // req.add_output_public_key(output_public_keys.at(i).data, sizeof(PublicKey)); + } + // auto http_resp = trezor_post(m_socket, "/call/" + m_session, encode(req, + // hw::trezor::messages::MessageType_BytecoinScanOutputsRequest)); + // hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse resp; + // invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinScanOutputsResponse, m_socket, + // m_session, http_resp.body), ""); for(int j = 0; j != resp.pv_size(); ++j){ + // PublicKey pv; + // seria::from_binary(pv, resp.pv(j)); + // result.push_back(pv); + // } + } + return result; +} + +cn::KeyImage Ledger::generate_keyimage( + const PublicKey &output_public_key, const SecretKey &inv_output_secret_hash, size_t address_index) { + KeyImage result; + return result; +} + +void Ledger::generate_output_seed(const Hash &tx_inputs_hash, size_t out_index, PublicKey *output_seed) {} + +void Ledger::sign_start(size_t version, uint64_t ut, size_t inputs_size, size_t outputs_size, size_t extra_size) {} + +void Ledger::sign_add_input(uint64_t amount, const std::vector &output_indexes, + SecretKey inv_output_secret_hash, size_t address_index) {} + +void Ledger::sign_add_output(bool change, uint64_t amount, size_t change_address_index, uint8_t dst_address_tag, + PublicKey dst_address_s, PublicKey dst_address_s_v, PublicKey *public_key, PublicKey *encrypted_secret, + uint8_t *encrypted_address_type) {} + +const size_t MAX_EXTRA_CHUNK = 128; + +void Ledger::sign_add_extra(const BinaryArray &chunk) { + size_t pos = 0; + while (true) { + size_t stop = std::min(chunk.size(), pos + MAX_EXTRA_CHUNK); + // hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest req; + // req.set_extra_chunk(chunk.data() + pos, stop - pos); + // auto http_resp = trezor_post(m_socket, "/call/" + m_session, encode(req, + // hw::trezor::messages::MessageType_BytecoinSignAddExtraRequest)); + // hw::trezor::messages::bytecoin::BytecoinEmptyResponse resp; + // invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinEmptyResponse, m_socket, m_session, + // http_resp.body), ""); + pos = stop; + if (pos == chunk.size()) + break; + } +} + +void Ledger::sign_step_a(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurvePoint *sig_p, + crypto::EllipticCurvePoint *x, crypto::EllipticCurvePoint *y) {} + +void Ledger::sign_step_a_more_data(const BinaryArray &data) { + size_t pos = 0; + while (true) { + size_t stop = std::min(data.size(), pos + MAX_EXTRA_CHUNK); + // hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest req; + // req.set_data_chunk(data.data() + pos, stop - pos); + // auto http_resp = trezor_post(m_socket, "/call/" + m_session, encode(req, + // hw::trezor::messages::MessageType_BytecoinSignStepAMoreDataRequest)); + // hw::trezor::messages::bytecoin::BytecoinEmptyResponse resp; + // invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinEmptyResponse, m_socket, m_session, + // http_resp.body), ""); + pos = stop; + if (pos == data.size()) + break; + } +} + +crypto::EllipticCurveScalar Ledger::sign_get_c0() { + crypto::EllipticCurveScalar c0; + return c0; +} + +void Ledger::sign_step_b(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurveScalar my_c, + crypto::EllipticCurveScalar *sig_my_ra, crypto::EllipticCurveScalar *sig_rb, crypto::EllipticCurveScalar *sig_rc) {} + +void Ledger::proof_start(const common::BinaryArray &data) {} + +void Ledger::export_view_only(SecretKey *audit_key_base_secret_key, SecretKey *view_secret_key, + Hash *tx_derivation_seed, Signature *view_secrets_signature) {} + +#endif // cn_WITH_LEDGER diff --git a/src/Core/hardware/Ledger.hpp b/src/Core/hardware/Ledger.hpp new file mode 100644 index 00000000..402c1dfc --- /dev/null +++ b/src/Core/hardware/Ledger.hpp @@ -0,0 +1,76 @@ +// Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers. +// Licensed under the GNU Lesser General Public License. See LICENSE for details. + +#pragma once + +#include +#include +#include "HardwareWallet.hpp" + +#if cn_WITH_LEDGER + +#ifdef _WIN32 +#include +#include "platform/Windows.hpp" +// libusb leaks windows.h garbage pile into our project, have to do damage prevention +#else +#include +#endif +// For now will work with only libusb as transport + +namespace cn { namespace hardware { + +struct USBDevice { + libusb_device_handle *handle = nullptr; + explicit USBDevice(libusb_device_handle *dev_handle) : handle(dev_handle) {} + ~USBDevice(); +}; + +class Ledger : public HardwareWallet { + Hash m_wallet_key; + PublicKey m_A_plus_sH; + PublicKey m_v_mul_A_plus_sH; + PublicKey m_view_public_key; + + const size_t m_address_type = 1; + + USBDevice m_device; + +public: + static void add_connected(std::vector> *result); + + explicit Ledger(libusb_device_handle *dev_handle); + ~Ledger() override; + std::string get_hardware_type() const override; + Hash get_wallet_key() const override { return m_wallet_key; } + PublicKey get_A_plus_SH() const override { return m_A_plus_sH; } + PublicKey get_v_mul_A_plus_SH() const override { return m_v_mul_A_plus_sH; } + PublicKey get_public_view_key() const override { return m_view_public_key; } + + std::vector mul_by_view_secret_key(const std::vector &output_public_keys) override; + KeyImage generate_keyimage( + const PublicKey &output_public_key, const SecretKey &inv_output_secret_hash, size_t address_index) override; + void generate_output_seed(const Hash &tx_inputs_hash, size_t out_index, PublicKey *output_seed) override; + void sign_start(size_t version, uint64_t ut, size_t inputs_size, size_t outputs_size, size_t extra_size) override; + void sign_add_input(uint64_t amount, const std::vector &output_indexes, SecretKey inv_output_secret_hash, + size_t address_index) override; + void sign_add_output(bool change, uint64_t amount, size_t change_address_index, uint8_t dst_address_tag, + PublicKey dst_address_s, PublicKey dst_address_s_v, PublicKey *public_key, PublicKey *encrypted_secret, + uint8_t *encrypted_address_type) override; + void sign_add_extra(const common::BinaryArray &extra) override; + void sign_step_a(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurvePoint *sig_p, + crypto::EllipticCurvePoint *x, crypto::EllipticCurvePoint *y) override; + void sign_step_a_more_data(const common::BinaryArray &data) override; + crypto::EllipticCurveScalar sign_get_c0() override; + void sign_step_b(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurveScalar my_c, + crypto::EllipticCurveScalar *sig_my_ra, crypto::EllipticCurveScalar *sig_rb, + crypto::EllipticCurveScalar *sig_rc) override; + void export_view_only(SecretKey *audit_key_base_secret_key, SecretKey *view_secret_key, Hash *tx_derivation_seed, + Signature *view_secrets_signature) override; + + void proof_start(const common::BinaryArray &data) override; +}; + +}} // namespace cn::hardware + +#endif // cn_WITH_LEDGER diff --git a/src/Core/hardware/Trezor.cpp b/src/Core/hardware/Trezor.cpp new file mode 100644 index 00000000..15f97719 --- /dev/null +++ b/src/Core/hardware/Trezor.cpp @@ -0,0 +1,510 @@ +// Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers. +// Licensed under the GNU Lesser General Public License. See LICENSE for details. + +#include "Trezor.hpp" +#include +#include +#include "Core/TransactionBuilder.hpp" +#include "CryptoNote.hpp" +#include "common/BIPs.hpp" +#include "common/Invariant.hpp" +#include "common/MemoryStreams.hpp" +#include "common/StringTools.hpp" +#include "common/Varint.hpp" +#include "http/ResponseParser.hpp" +#include "seria/BinaryInputStream.hpp" + +#if cn_WITH_TREZOR + +#include "protob/messages-bytecoin.pb.h" +#include "protob/messages-common.pb.h" +#include "protob/messages.pb.h" + +using namespace cn::hardware; +using namespace common; + +using namespace boost::asio::ip; + +// Good description is here - https://github.com/trezor/trezord-go/blob/master/README.md + +static http::ResponseBody sync_http_request(tcp::socket &socket, const http::RequestBody &req) { + std::string str = req.r.to_string(); + boost::system::error_code error; + boost::asio::write(socket, boost::asio::buffer(str.data(), str.size()), error); + if (error) + throw boost::system::system_error(error); + boost::asio::write(socket, boost::asio::buffer(req.body.data(), req.body.size()), error); + if (error) + throw boost::system::system_error(error); + + http::ResponseBody response; + http::ResponseParser parser; + bool receiving_body = false; + + while (!receiving_body || response.body.size() < response.r.content_length) { + boost::array buf; + char *ptr = buf.data(); + boost::system::error_code error; + + size_t len = socket.read_some(boost::asio::buffer(ptr, buf.size()), error); + if (error == boost::asio::error::eof) + throw boost::system::system_error(error); + if (error) + throw boost::system::system_error(error); + if (!receiving_body) { + auto header_end = parser.parse(response.r, ptr, ptr + len) - ptr; + if (!parser.is_bad() && !parser.is_good()) + continue; + if (!response.r.has_content_length()) + throw std::runtime_error("no content length in reply"); + ptr += header_end; + len -= header_end; + receiving_body = true; + } + if (len + response.body.size() > response.r.content_length) + throw std::runtime_error("too much body"); + response.body += std::string(ptr, len); + } + return response; +} + +static http::ResponseBody trezor_post(tcp::socket &socket, std::string uri, std::string &&body) { + http::RequestBody req; + req.r.set_firstline("POST", uri, 1, 1); + req.r.headers.push_back({"Host", "127.0.0.1:21325"}); + req.r.headers.push_back({"Accept", "*/*"}); + req.r.headers.push_back({"Origin", "https://beta-wallet.trezor.io"}); + req.set_body(std::move(body)); + return sync_http_request(socket, req); +} + +template +std::string encode(const M &mbody, int mid) { + std::string str = mbody.SerializeAsString(); + uint8_t header[6]; + common::uint_be_to_bytes(header, 2, unsigned(mid)); + common::uint_be_to_bytes(header + 2, 4, str.size()); + return common::to_hex(header, 6) + common::to_hex(str.data(), str.size()); +} + +template +bool decode_any(M &msg, int should_be_mid, tcp::socket &socket, const std::string &session, const std::string &body) { + std::cout << body << std::endl; + unsigned char header[6]; + if (!common::from_hex(body.substr(0, 12), header, 6)) + return false; + size_t mid = common::uint_be_from_bytes(header, 2); + std::string str2 = common::as_string(common::from_hex(body.substr(12))); + std::cout << "mid=" << mid << " body=" << str2 << std::endl; + if (mid == hw::trezor::messages::MessageType_Failure) { + hw::trezor::messages::common::Failure mad; + mad.ParseFromString(str2); + std::cout << mad.code() << " " << mad.message() << std::endl; + return false; + } + if (mid == hw::trezor::messages::MessageType_ButtonRequest) { + hw::trezor::messages::common::ButtonRequest mad; + mad.ParseFromString(str2); + std::cout << mad.code() << " " << mad.data() << std::endl; + hw::trezor::messages::common::ButtonAck bac; + auto resp = trezor_post(socket, "/call/" + session, encode(bac, hw::trezor::messages::MessageType_ButtonAck)); + return decode_any(msg, should_be_mid, socket, session, resp.body); + } + if (mid == size_t(should_be_mid)) { + msg.ParseFromString(str2); + return true; + } + return false; +} + +void Trezor::add_connected(std::vector> *result) { + tcp::socket socket(platform::EventLoop::current()->io()); + // boost::system::error_code error; + // if (error) + // return; + try { + tcp::endpoint trezor_ep(boost::asio::ip::address::from_string("127.0.0.1"), 21325); + socket.connect(trezor_ep); + auto resp = trezor_post(socket, "/enumerate", ""); + std::cout << resp.body << std::endl; + + auto en = common::JsonValue::from_string(resp.body); + if (en.get_array().size() == 0) { + std::cout << "No device connected" << std::endl; + return; + } + for (const auto &o : en.get_array()) { + auto path = o("path").get_string(); + auto s = o("session"); + if (s.is_string()) { + std::cout << "Trezor device locked, try again or disconnect and reconnect it from USB. path=" << path + << " session=" << s.get_string() << std::endl; + auto resp = trezor_post(socket, "/release/" + s.get_string(), ""); + std::cout << resp.body << std::endl; + } + // else + result->emplace_back(std::make_unique(path)); + } + } catch (const std::exception &) { + } +} + +void Trezor::acquire() { + // invariant(m_session.empty(), "Trezor device locked"); + // auto resp = trezor_post(m_socket, "/acquire/" + m_path + "/null", ""); + // std::cout << resp.body << std::endl; + // auto en = common::JsonValue::from_string(resp.body); + // m_session = en("session").get_string(); +} + +void Trezor::release() { + // invariant(!m_session.empty(), "Trezor device locked"); + // auto resp = trezor_post(m_socket, "/release/" + m_session, ""); + // std::cout << resp.body << std::endl; + // m_session.clear(); +} + +Trezor::Trezor(const std::string &path) : m_path(path), m_socket(platform::EventLoop::current()->io()) { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + tcp::endpoint trezor_ep(boost::asio::ip::address::from_string("127.0.0.1"), 21325); + m_socket.connect(trezor_ep); + + { + invariant(m_session.empty(), "Trezor device locked"); + auto resp = trezor_post(m_socket, "/acquire/" + m_path + "/null", ""); + std::cout << resp.body << std::endl; + auto en = common::JsonValue::from_string(resp.body); + m_session = en("session").get_string(); + } + acquire(); + + // hw::trezor::messages::monero::MoneroGetWatchKey ga; + // ga.add_address_n(0x8000002c); // 0x80000031 + // ga.add_address_n(0x80000080); // 0x80000080 + // ga.add_address_n(0x80000000); + // ga.add_address_n(0); + // ga.add_address_n(0); + // auto http_resp = trezor_post(m_socket, "/call/" + m_session, encode(ga, + // hw::trezor::messages::MessageType_MoneroGetWatchKey)); hw::trezor::messages::monero::MoneroWatchKey resp2; + // invariant(decode_any(resp2, hw::trezor::messages::MessageType_MoneroWatchKey, m_socket, m_session, + // http_resp.body), ""); + + hw::trezor::messages::bytecoin::BytecoinStartRequest req; + req.set_debug_request("computer"); + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinStartRequest)); + hw::trezor::messages::bytecoin::BytecoinStartResponse resp; + invariant( + decode_any(resp, hw::trezor::messages::MessageType_BytecoinStartResponse, m_socket, m_session, http_resp.body), + ""); + + auto dr = resp.debug_response(); + std::cout << common::to_hex(dr.data(), dr.size()) << std::endl; + + seria::from_binary(m_wallet_key, resp.wallet_key()); + seria::from_binary(m_A_plus_sH, resp.a_plus_sh()); + seria::from_binary(m_v_mul_A_plus_sH, resp.v_mul_a_plus_sh()); + seria::from_binary(m_view_public_key, resp.view_public_key()); + + release(); + std::cout << "That's all" << std::endl; + // hw::trezor::messages::monero::MoneroGetAddress ga; + // std::string str = ga.SerializeAsString(); + // uint8_t header[6]; + // common::uint_be_to_bytes(header, 2, unsigned(hw::trezor::messages::MessageType_MoneroGetAddress)); + // common::uint_be_to_bytes(header, 2, unsigned(hw::trezor::messages::MessageType_BytecoinStartRequest)); + // common::uint_be_to_bytes(header + 2, 4, str.size()); + // resp = trezor_post(socket, "/call/" + session, common::to_hex(header, 6) + common::to_hex(str.data(), + // str.size())); decode_any(socket, session, resp.body); resp = trezor_post(socket, "/release/" + session, ""); + // std::cout << resp.body << std::endl; +} + +Trezor::~Trezor() {} + +std::string Trezor::get_hardware_type() const { return "Trezor path=" + m_path; } + +const size_t SCAN_OUTPUTS_MAX_SIZE = 10; + +std::vector Trezor::mul_by_view_secret_key(const std::vector &output_public_keys) { + std::vector result; + acquire(); + for (size_t i = 0; i != output_public_keys.size();) { + size_t stop = std::min(output_public_keys.size(), i + SCAN_OUTPUTS_MAX_SIZE); + hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest req; + for (; i != stop; ++i) { + req.add_output_public_key(output_public_keys.at(i).data, sizeof(PublicKey)); + } + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinScanOutputsRequest)); + hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse resp; + invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinScanOutputsResponse, m_socket, m_session, + http_resp.body), + ""); + for (int j = 0; j != resp.pv_size(); ++j) { + PublicKey pv; + seria::from_binary(pv, resp.pv(j)); + result.push_back(pv); + } + } + release(); + return result; +} + +cn::KeyImage Trezor::generate_keyimage( + const PublicKey &output_public_key, const SecretKey &inv_output_secret_hash, size_t address_index) { + acquire(); + hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest req; + req.set_output_public_key(output_public_key.data, sizeof(PublicKey)); + req.set_inv_output_main_hash(inv_output_secret_hash.data, sizeof(SecretKey)); + req.set_address_index(static_cast(address_index)); + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinGenerateKeyimageRequest)); + hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse resp; + invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinGenerateKeyimageResponse, m_socket, m_session, + http_resp.body), + ""); + KeyImage result; + seria::from_binary(result, resp.keyimage()); + release(); + return result; +} + +void Trezor::generate_output_seed(const Hash &tx_inputs_hash, size_t out_index, PublicKey *output_seed) { + acquire(); + hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest req; + req.set_tx_inputs_hash(tx_inputs_hash.data, sizeof(Hash)); + req.set_out_index(static_cast(out_index)); + auto http_resp = trezor_post(m_socket, "/call/" + m_session, + encode(req, hw::trezor::messages::MessageType_BytecoinGenerateOutputSeedRequest)); + hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse resp; + invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinGenerateOutputSeedResponse, m_socket, + m_session, http_resp.body), + ""); + seria::from_binary(*output_seed, resp.output_seed()); + release(); +} + +void Trezor::sign_start(size_t version, uint64_t ut, size_t inputs_size, size_t outputs_size, size_t extra_size) { + acquire(); + hw::trezor::messages::bytecoin::BytecoinSignStartRequest req; + req.set_version(static_cast(version)); + req.set_ut(ut); + req.set_inputs_size(static_cast(inputs_size)); + req.set_outputs_size(static_cast(outputs_size)); + req.set_extra_size(static_cast(extra_size)); + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinSignStartRequest)); + hw::trezor::messages::bytecoin::BytecoinEmptyResponse resp; + invariant( + decode_any(resp, hw::trezor::messages::MessageType_BytecoinEmptyResponse, m_socket, m_session, http_resp.body), + ""); + release(); +} + +void Trezor::sign_add_input(uint64_t amount, const std::vector &output_indexes, + SecretKey inv_output_secret_hash, size_t address_index) { + acquire(); + hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest req; + req.set_amount(amount); + for (auto index : output_indexes) + req.add_output_indexes(static_cast(index)); + req.set_inv_output_main_hash(inv_output_secret_hash.data, sizeof(SecretKey)); + req.set_address_index(static_cast(address_index)); + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinSignAddInputRequest)); + hw::trezor::messages::bytecoin::BytecoinEmptyResponse resp; + invariant( + decode_any(resp, hw::trezor::messages::MessageType_BytecoinEmptyResponse, m_socket, m_session, http_resp.body), + ""); + release(); +} + +void Trezor::sign_add_output(bool change, uint64_t amount, size_t change_address_index, uint8_t dst_address_tag, + PublicKey dst_address_s, PublicKey dst_address_s_v, PublicKey *public_key, PublicKey *encrypted_secret, + uint8_t *encrypted_address_type) { + acquire(); + hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest req; + req.set_change(change); + req.set_amount(amount); + req.set_change_address_index(static_cast(change_address_index)); + req.set_dst_address_tag(dst_address_tag); + req.set_dst_address_s(dst_address_s.data, sizeof(PublicKey)); + req.set_dst_address_sv(dst_address_s_v.data, sizeof(PublicKey)); + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinSignAddOutputRequest)); + hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse resp; + invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinSignAddOutputResponse, m_socket, m_session, + http_resp.body), + ""); + seria::from_binary(*public_key, resp.public_key()); + seria::from_binary(*encrypted_secret, resp.encrypted_secret()); + *encrypted_address_type = common::integer_cast(resp.encrypted_address_type()); + release(); +} + +const size_t MAX_EXTRA_CHUNK = 128; + +void Trezor::sign_add_extra(const BinaryArray &chunk) { + acquire(); + size_t pos = 0; + while (true) { + size_t stop = std::min(chunk.size(), pos + MAX_EXTRA_CHUNK); + hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest req; + req.set_extra_chunk(chunk.data() + pos, stop - pos); + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinSignAddExtraRequest)); + hw::trezor::messages::bytecoin::BytecoinEmptyResponse resp; + invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinEmptyResponse, m_socket, m_session, + http_resp.body), + ""); + pos = stop; + if (pos == chunk.size()) + break; + } + release(); +} + +void Trezor::sign_step_a(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurvePoint *sig_p, + crypto::EllipticCurvePoint *x, crypto::EllipticCurvePoint *y) { + acquire(); + hw::trezor::messages::bytecoin::BytecoinSignStepARequest req; + req.set_inv_output_main_hash(inv_output_secret_hash.data, sizeof(SecretKey)); + req.set_address_index(static_cast(address_index)); + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinSignStepARequest)); + hw::trezor::messages::bytecoin::BytecoinSignStepAResponse resp; + invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinSignStepAResponse, m_socket, m_session, + http_resp.body), + ""); + seria::from_binary(*sig_p, resp.sig_p()); + seria::from_binary(*x, resp.x()); + seria::from_binary(*y, resp.y()); + release(); +} + +void Trezor::sign_step_a_more_data(const BinaryArray &data) { + acquire(); + size_t pos = 0; + while (true) { + size_t stop = std::min(data.size(), pos + MAX_EXTRA_CHUNK); + hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest req; + req.set_data_chunk(data.data() + pos, stop - pos); + auto http_resp = trezor_post(m_socket, "/call/" + m_session, + encode(req, hw::trezor::messages::MessageType_BytecoinSignStepAMoreDataRequest)); + hw::trezor::messages::bytecoin::BytecoinEmptyResponse resp; + invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinEmptyResponse, m_socket, m_session, + http_resp.body), + ""); + pos = stop; + if (pos == data.size()) + break; + } + release(); +} + +crypto::EllipticCurveScalar Trezor::sign_get_c0() { + acquire(); + hw::trezor::messages::bytecoin::BytecoinSignGetC0Request req; + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinSignGetC0Request)); + hw::trezor::messages::bytecoin::BytecoinSignGetC0Response resp; + invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinSignGetC0Response, m_socket, m_session, + http_resp.body), + ""); + crypto::EllipticCurveScalar c0; + seria::from_binary(c0, resp.c0()); + release(); + return c0; +} + +void Trezor::sign_step_b(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurveScalar my_c, + crypto::EllipticCurveScalar *sig_my_ra, crypto::EllipticCurveScalar *sig_rb, crypto::EllipticCurveScalar *sig_rc) { + acquire(); + hw::trezor::messages::bytecoin::BytecoinSignStepBRequest req; + req.set_inv_output_main_hash(inv_output_secret_hash.data, sizeof(SecretKey)); + req.set_address_index(static_cast(address_index)); + req.set_my_c(my_c.data, sizeof(crypto::EllipticCurveScalar)); + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinSignStepBRequest)); + hw::trezor::messages::bytecoin::BytecoinSignStepBResponse resp; + invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinSignStepBResponse, m_socket, m_session, + http_resp.body), + ""); + seria::from_binary(*sig_my_ra, resp.my_ra()); + seria::from_binary(*sig_rb, resp.rb()); + seria::from_binary(*sig_rc, resp.rc()); + release(); +} + +void Trezor::proof_start(const common::BinaryArray &data) { + acquire(); + hw::trezor::messages::bytecoin::BytecoinStartProofRequest req; + req.set_data_size(common::integer_cast(data.size())); + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinStartProofRequest)); + hw::trezor::messages::bytecoin::BytecoinEmptyResponse resp; + invariant( + decode_any(resp, hw::trezor::messages::MessageType_BytecoinEmptyResponse, m_socket, m_session, http_resp.body), + ""); + release(); + sign_add_extra(data); +} + +void Trezor::export_view_only(SecretKey *audit_key_base_secret_key, SecretKey *view_secret_key, + Hash *tx_derivation_seed, Signature *view_secrets_signature) { + acquire(); + hw::trezor::messages::bytecoin::BytecoinExportViewWalletRequest req; + auto http_resp = trezor_post( + m_socket, "/call/" + m_session, encode(req, hw::trezor::messages::MessageType_BytecoinExportViewWalletRequest)); + hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse resp; + invariant(decode_any(resp, hw::trezor::messages::MessageType_BytecoinExportViewWalletResponse, m_socket, m_session, + http_resp.body), + ""); + seria::from_binary(*audit_key_base_secret_key, resp.audit_key_base_secret_key()); + seria::from_binary(*view_secret_key, resp.view_secret_key()); + seria::from_binary(*tx_derivation_seed, resp.tx_derivation_seed()); + seria::from_binary(*view_secrets_signature, resp.view_secrets_signature()); + release(); +} + +/* +struct Success { + std::string message; // id = 1 + bool ba = false; // id = 2 + + struct Inside { + int ha = 0; // id = 1 + void save(nanoproto::Ostream * s)const{ + return nanoproto::save_uint32(s, 1, ha); + } + }; + std::vector inside; // id = 5 + + void save(nanoproto::Ostream * s)const{ + nanoproto::save_string(s, 1, message); + nanoproto::save_bool(s, 2, ba); + nanoproto::save_array(s, 5, inside); + } + void parse(nanoproto::Istream * s){ + while(!s->empty()){ + int id = 0; + int type = nanproto::read_type_data(s, &id); + switch(id){ + case 1: + nanoproto::read_string(s, &message); + break; + case 2: + nanoproto::read_bool(s, &ba); + break; + case 5: + nanoproto::read_array(s, &inside); + break; + default: + nanoproto::skip_by_type(s, type); + } + } + } +};*/ + +#endif // cn_WITH_TREZOR diff --git a/src/Core/hardware/Trezor.hpp b/src/Core/hardware/Trezor.hpp new file mode 100644 index 00000000..239176a2 --- /dev/null +++ b/src/Core/hardware/Trezor.hpp @@ -0,0 +1,71 @@ +// Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers. +// Licensed under the GNU Lesser General Public License. See LICENSE for details. + +#pragma once + +#include +#include +#include "HardwareWallet.hpp" + +#if cn_WITH_TREZOR + +#include "platform/Network.hpp" + +// For now will work with only boost::asio as a network layer + +namespace cn { namespace hardware { + +class Trezor : public HardwareWallet { + Hash m_wallet_key; + PublicKey m_A_plus_sH; + PublicKey m_v_mul_A_plus_sH; + PublicKey m_view_public_key; + + const size_t m_address_type = 1; + + std::string m_path; + std::string m_session; + + boost::asio::ip::tcp::socket m_socket; + + void acquire(); + void release(); + +public: + static void add_connected(std::vector> *result); + + explicit Trezor(const std::string &path); + ~Trezor() override; + std::string get_hardware_type() const override; + Hash get_wallet_key() const override { return m_wallet_key; } + PublicKey get_A_plus_SH() const override { return m_A_plus_sH; } + PublicKey get_v_mul_A_plus_SH() const override { return m_v_mul_A_plus_sH; } + PublicKey get_public_view_key() const override { return m_view_public_key; } + + std::vector mul_by_view_secret_key(const std::vector &output_public_keys) override; + KeyImage generate_keyimage( + const PublicKey &output_public_key, const SecretKey &inv_output_secret_hash, size_t address_index) override; + void generate_output_seed(const Hash &tx_inputs_hash, size_t out_index, PublicKey *output_seed) override; + void sign_start(size_t version, uint64_t ut, size_t inputs_size, size_t outputs_size, size_t extra_size) override; + void sign_add_input(uint64_t amount, const std::vector &output_indexes, SecretKey inv_output_secret_hash, + size_t address_index) override; + void sign_add_output(bool change, uint64_t amount, size_t change_address_index, uint8_t dst_address_tag, + PublicKey dst_address_s, PublicKey dst_address_s_v, PublicKey *public_key, PublicKey *encrypted_secret, + uint8_t *encrypted_address_type) override; + void sign_add_extra(const common::BinaryArray &extra) override; + void sign_step_a(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurvePoint *sig_p, + crypto::EllipticCurvePoint *x, crypto::EllipticCurvePoint *y) override; + void sign_step_a_more_data(const common::BinaryArray &data) override; + crypto::EllipticCurveScalar sign_get_c0() override; + void sign_step_b(SecretKey inv_output_secret_hash, size_t address_index, crypto::EllipticCurveScalar my_c, + crypto::EllipticCurveScalar *sig_my_ra, crypto::EllipticCurveScalar *sig_rb, + crypto::EllipticCurveScalar *sig_rc) override; + void export_view_only(SecretKey *audit_key_base_secret_key, SecretKey *view_secret_key, Hash *tx_derivation_seed, + Signature *view_secrets_signature) override; + + void proof_start(const common::BinaryArray &data) override; +}; + +}} // namespace cn::hardware + +#endif // cn_WITH_TREZOR diff --git a/src/Core/hardware/trezor/protob/messages-bitcoin.pb.cc b/src/Core/hardware/trezor/protob/messages-bitcoin.pb.cc new file mode 100644 index 00000000..25e65138 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-bitcoin.pb.cc @@ -0,0 +1,8679 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-bitcoin.proto + +#include "messages-bitcoin.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dbitcoin_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dbitcoin_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TxAck_TransactionType_TxOutputBinType; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dbitcoin_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TxRequest_TxRequestDetailsType; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dbitcoin_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TxRequest_TxRequestSerializedType; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dbitcoin_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MultisigRedeemScriptType_HDNodePathType; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dbitcoin_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TxAck_TransactionType_TxInputType; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dbitcoin_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TxAck_TransactionType_TxOutputType; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dbitcoin_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_MultisigRedeemScriptType; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dbitcoin_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_TxAck_TransactionType; +} // namespace protobuf_messages_2dbitcoin_2eproto +namespace protobuf_messages_2dcommon_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HDNodeType; +} // namespace protobuf_messages_2dcommon_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace bitcoin { +class MultisigRedeemScriptType_HDNodePathTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MultisigRedeemScriptType_HDNodePathType_default_instance_; +class MultisigRedeemScriptTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MultisigRedeemScriptType_default_instance_; +class GetPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetPublicKey_default_instance_; +class PublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PublicKey_default_instance_; +class GetAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetAddress_default_instance_; +class AddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed
+ _instance; +} _Address_default_instance_; +class SignMessageDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SignMessage_default_instance_; +class MessageSignatureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MessageSignature_default_instance_; +class VerifyMessageDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _VerifyMessage_default_instance_; +class SignTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SignTx_default_instance_; +class TxRequest_TxRequestDetailsTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TxRequest_TxRequestDetailsType_default_instance_; +class TxRequest_TxRequestSerializedTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TxRequest_TxRequestSerializedType_default_instance_; +class TxRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TxRequest_default_instance_; +class TxAck_TransactionType_TxInputTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TxAck_TransactionType_TxInputType_default_instance_; +class TxAck_TransactionType_TxOutputBinTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TxAck_TransactionType_TxOutputBinType_default_instance_; +class TxAck_TransactionType_TxOutputTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TxAck_TransactionType_TxOutputType_default_instance_; +class TxAck_TransactionTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TxAck_TransactionType_default_instance_; +class TxAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TxAck_default_instance_; +} // namespace bitcoin +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dbitcoin_2eproto { +static void InitDefaultsMultisigRedeemScriptType_HDNodePathType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_MultisigRedeemScriptType_HDNodePathType_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MultisigRedeemScriptType_HDNodePathType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMultisigRedeemScriptType_HDNodePathType}, { + &protobuf_messages_2dcommon_2eproto::scc_info_HDNodeType.base,}}; + +static void InitDefaultsMultisigRedeemScriptType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_MultisigRedeemScriptType_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_MultisigRedeemScriptType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsMultisigRedeemScriptType}, { + &protobuf_messages_2dbitcoin_2eproto::scc_info_MultisigRedeemScriptType_HDNodePathType.base, + &protobuf_messages_2dcommon_2eproto::scc_info_HDNodeType.base,}}; + +static void InitDefaultsGetPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.DefaultConstruct(); + *::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get_mutable() = ::std::string("Bitcoin", 7); + ::google::protobuf::internal::OnShutdownDestroyString( + ::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get_mutable()); + { + void* ptr = &::hw::trezor::messages::bitcoin::_GetPublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::GetPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::GetPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetPublicKey}, {}}; + +static void InitDefaultsPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_PublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::PublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::PublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_PublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPublicKey}, { + &protobuf_messages_2dcommon_2eproto::scc_info_HDNodeType.base,}}; + +static void InitDefaultsGetAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.DefaultConstruct(); + *::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get_mutable() = ::std::string("Bitcoin", 7); + ::google::protobuf::internal::OnShutdownDestroyString( + ::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get_mutable()); + { + void* ptr = &::hw::trezor::messages::bitcoin::_GetAddress_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::GetAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::GetAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetAddress}, { + &protobuf_messages_2dbitcoin_2eproto::scc_info_MultisigRedeemScriptType.base,}}; + +static void InitDefaultsAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_Address_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::Address(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::Address::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Address = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddress}, {}}; + +static void InitDefaultsSignMessage() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.DefaultConstruct(); + *::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get_mutable() = ::std::string("Bitcoin", 7); + ::google::protobuf::internal::OnShutdownDestroyString( + ::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get_mutable()); + { + void* ptr = &::hw::trezor::messages::bitcoin::_SignMessage_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::SignMessage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::SignMessage::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SignMessage = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSignMessage}, {}}; + +static void InitDefaultsMessageSignature() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_MessageSignature_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::MessageSignature(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::MessageSignature::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MessageSignature = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMessageSignature}, {}}; + +static void InitDefaultsVerifyMessage() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.DefaultConstruct(); + *::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get_mutable() = ::std::string("Bitcoin", 7); + ::google::protobuf::internal::OnShutdownDestroyString( + ::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get_mutable()); + { + void* ptr = &::hw::trezor::messages::bitcoin::_VerifyMessage_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::VerifyMessage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::VerifyMessage::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_VerifyMessage = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVerifyMessage}, {}}; + +static void InitDefaultsSignTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.DefaultConstruct(); + *::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get_mutable() = ::std::string("Bitcoin", 7); + ::google::protobuf::internal::OnShutdownDestroyString( + ::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get_mutable()); + { + void* ptr = &::hw::trezor::messages::bitcoin::_SignTx_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::SignTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::SignTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SignTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSignTx}, {}}; + +static void InitDefaultsTxRequest_TxRequestDetailsType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_TxRequest_TxRequestDetailsType_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TxRequest_TxRequestDetailsType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTxRequest_TxRequestDetailsType}, {}}; + +static void InitDefaultsTxRequest_TxRequestSerializedType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_TxRequest_TxRequestSerializedType_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TxRequest_TxRequestSerializedType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTxRequest_TxRequestSerializedType}, {}}; + +static void InitDefaultsTxRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_TxRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::TxRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::TxRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TxRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTxRequest}, { + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxRequest_TxRequestDetailsType.base, + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxRequest_TxRequestSerializedType.base,}}; + +static void InitDefaultsTxAck_TransactionType_TxInputType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_TxAck_TransactionType_TxInputType_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TxAck_TransactionType_TxInputType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTxAck_TransactionType_TxInputType}, { + &protobuf_messages_2dbitcoin_2eproto::scc_info_MultisigRedeemScriptType.base,}}; + +static void InitDefaultsTxAck_TransactionType_TxOutputBinType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_TxAck_TransactionType_TxOutputBinType_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TxAck_TransactionType_TxOutputBinType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTxAck_TransactionType_TxOutputBinType}, {}}; + +static void InitDefaultsTxAck_TransactionType_TxOutputType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_TxAck_TransactionType_TxOutputType_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TxAck_TransactionType_TxOutputType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTxAck_TransactionType_TxOutputType}, { + &protobuf_messages_2dbitcoin_2eproto::scc_info_MultisigRedeemScriptType.base,}}; + +static void InitDefaultsTxAck_TransactionType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_TxAck_TransactionType_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::TxAck_TransactionType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::TxAck_TransactionType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_TxAck_TransactionType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsTxAck_TransactionType}, { + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType_TxInputType.base, + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType_TxOutputBinType.base, + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType_TxOutputType.base,}}; + +static void InitDefaultsTxAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bitcoin::_TxAck_default_instance_; + new (ptr) ::hw::trezor::messages::bitcoin::TxAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bitcoin::TxAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TxAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTxAck}, { + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType.base,}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_MultisigRedeemScriptType_HDNodePathType.base); + ::google::protobuf::internal::InitSCC(&scc_info_MultisigRedeemScriptType.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_PublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_Address.base); + ::google::protobuf::internal::InitSCC(&scc_info_SignMessage.base); + ::google::protobuf::internal::InitSCC(&scc_info_MessageSignature.base); + ::google::protobuf::internal::InitSCC(&scc_info_VerifyMessage.base); + ::google::protobuf::internal::InitSCC(&scc_info_SignTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_TxRequest_TxRequestDetailsType.base); + ::google::protobuf::internal::InitSCC(&scc_info_TxRequest_TxRequestSerializedType.base); + ::google::protobuf::internal::InitSCC(&scc_info_TxRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_TxAck_TransactionType_TxInputType.base); + ::google::protobuf::internal::InitSCC(&scc_info_TxAck_TransactionType_TxOutputBinType.base); + ::google::protobuf::internal::InitSCC(&scc_info_TxAck_TransactionType_TxOutputType.base); + ::google::protobuf::internal::InitSCC(&scc_info_TxAck_TransactionType.base); + ::google::protobuf::internal::InitSCC(&scc_info_TxAck.base); +} + +::google::protobuf::Metadata file_level_metadata[18]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType, node_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType, address_n_), + 0, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType, pubkeys_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType, signatures_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType, m_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType, nodes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType, address_n_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetPublicKey, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetPublicKey, ecdsa_curve_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetPublicKey, show_display_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetPublicKey, coin_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetPublicKey, script_type_), + ~0u, + 0, + 2, + 1, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::PublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::PublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::PublicKey, node_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::PublicKey, xpub_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetAddress, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetAddress, coin_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetAddress, show_display_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetAddress, multisig_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::GetAddress, script_type_), + ~0u, + 0, + 2, + 1, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::Address, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::Address, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::Address, address_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignMessage, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignMessage, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignMessage, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignMessage, coin_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignMessage, script_type_), + ~0u, + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MessageSignature, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MessageSignature, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MessageSignature, address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::MessageSignature, signature_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::VerifyMessage, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::VerifyMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::VerifyMessage, address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::VerifyMessage, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::VerifyMessage, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::VerifyMessage, coin_name_), + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, outputs_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, inputs_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, coin_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, lock_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, expiry_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, overwintered_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, version_group_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, timestamp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::SignTx, branch_id_), + 1, + 2, + 0, + 9, + 3, + 4, + 5, + 6, + 7, + 8, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType, request_index_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType, tx_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType, extra_data_len_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType, extra_data_offset_), + 1, + 0, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType, signature_index_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType, serialized_tx_), + 2, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest, request_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest, details_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxRequest, serialized_), + 2, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, prev_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, prev_index_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, script_sig_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, sequence_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, script_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, multisig_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, decred_tree_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, decred_script_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, prev_block_hash_bip115_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType, prev_block_height_bip115_), + ~0u, + 0, + 4, + 1, + 10, + 5, + 3, + 6, + 7, + 8, + 2, + 9, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType, script_pubkey_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType, decred_script_version_), + 1, + 0, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType, address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType, script_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType, multisig_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType, op_return_data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType, decred_script_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType, block_hash_bip115_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType, block_height_bip115_), + 0, + ~0u, + 4, + 5, + 3, + 1, + 6, + 2, + 7, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, bin_outputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, lock_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, outputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, inputs_cnt_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, outputs_cnt_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, extra_data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, extra_data_len_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, expiry_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, overwintered_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, version_group_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, timestamp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck_TransactionType, branch_id_), + 1, + ~0u, + ~0u, + 2, + ~0u, + 3, + 4, + 0, + 5, + 6, + 7, + 8, + 9, + 10, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bitcoin::TxAck, tx_), + 0, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType)}, + { 9, 19, sizeof(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType)}, + { 24, 34, sizeof(::hw::trezor::messages::bitcoin::GetPublicKey)}, + { 39, 46, sizeof(::hw::trezor::messages::bitcoin::PublicKey)}, + { 48, 58, sizeof(::hw::trezor::messages::bitcoin::GetAddress)}, + { 63, 69, sizeof(::hw::trezor::messages::bitcoin::Address)}, + { 70, 79, sizeof(::hw::trezor::messages::bitcoin::SignMessage)}, + { 83, 90, sizeof(::hw::trezor::messages::bitcoin::MessageSignature)}, + { 92, 101, sizeof(::hw::trezor::messages::bitcoin::VerifyMessage)}, + { 105, 120, sizeof(::hw::trezor::messages::bitcoin::SignTx)}, + { 130, 139, sizeof(::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType)}, + { 143, 151, sizeof(::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType)}, + { 154, 162, sizeof(::hw::trezor::messages::bitcoin::TxRequest)}, + { 165, 182, sizeof(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType)}, + { 194, 202, sizeof(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType)}, + { 205, 219, sizeof(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType)}, + { 228, 247, sizeof(::hw::trezor::messages::bitcoin::TxAck_TransactionType)}, + { 261, 267, sizeof(::hw::trezor::messages::bitcoin::TxAck)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::bitcoin::_MultisigRedeemScriptType_HDNodePathType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_MultisigRedeemScriptType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_GetPublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_PublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_GetAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_Address_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_SignMessage_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_MessageSignature_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_VerifyMessage_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_SignTx_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_TxRequest_TxRequestDetailsType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_TxRequest_TxRequestSerializedType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_TxRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_TxAck_TransactionType_TxInputType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_TxAck_TransactionType_TxOutputBinType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_TxAck_TransactionType_TxOutputType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_TxAck_TransactionType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bitcoin::_TxAck_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-bitcoin.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 18); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\026messages-bitcoin.proto\022\032hw.trezor.mess" + "ages.bitcoin\032\025messages-common.proto\"\262\002\n\030" + "MultisigRedeemScriptType\022T\n\007pubkeys\030\001 \003(" + "\0132C.hw.trezor.messages.bitcoin.MultisigR" + "edeemScriptType.HDNodePathType\022\022\n\nsignat" + "ures\030\002 \003(\014\022\t\n\001m\030\003 \001(\r\0224\n\005nodes\030\004 \003(\0132%.h" + "w.trezor.messages.common.HDNodeType\022\021\n\ta" + "ddress_n\030\005 \003(\r\032X\n\016HDNodePathType\0223\n\004node" + "\030\001 \002(\0132%.hw.trezor.messages.common.HDNod" + "eType\022\021\n\taddress_n\030\002 \003(\r\"\275\001\n\014GetPublicKe" + "y\022\021\n\taddress_n\030\001 \003(\r\022\030\n\020ecdsa_curve_name" + "\030\002 \001(\t\022\024\n\014show_display\030\003 \001(\010\022\032\n\tcoin_nam" + "e\030\004 \001(\t:\007Bitcoin\022N\n\013script_type\030\005 \001(\0162+." + "hw.trezor.messages.bitcoin.InputScriptTy" + "pe:\014SPENDADDRESS\"N\n\tPublicKey\0223\n\004node\030\001 " + "\002(\0132%.hw.trezor.messages.common.HDNodeTy" + "pe\022\014\n\004xpub\030\002 \001(\t\"\351\001\n\nGetAddress\022\021\n\taddre" + "ss_n\030\001 \003(\r\022\032\n\tcoin_name\030\002 \001(\t:\007Bitcoin\022\024" + "\n\014show_display\030\003 \001(\010\022F\n\010multisig\030\004 \001(\01324" + ".hw.trezor.messages.bitcoin.MultisigRede" + "emScriptType\022N\n\013script_type\030\005 \001(\0162+.hw.t" + "rezor.messages.bitcoin.InputScriptType:\014" + "SPENDADDRESS\"\032\n\007Address\022\017\n\007address\030\001 \002(\t" + "\"\235\001\n\013SignMessage\022\021\n\taddress_n\030\001 \003(\r\022\017\n\007m" + "essage\030\002 \002(\014\022\032\n\tcoin_name\030\003 \001(\t:\007Bitcoin" + "\022N\n\013script_type\030\004 \001(\0162+.hw.trezor.messag" + "es.bitcoin.InputScriptType:\014SPENDADDRESS" + "\"6\n\020MessageSignature\022\017\n\007address\030\001 \001(\t\022\021\n" + "\tsignature\030\002 \001(\014\"`\n\rVerifyMessage\022\017\n\007add" + "ress\030\001 \001(\t\022\021\n\tsignature\030\002 \001(\014\022\017\n\007message" + "\030\003 \001(\014\022\032\n\tcoin_name\030\004 \001(\t:\007Bitcoin\"\341\001\n\006S" + "ignTx\022\025\n\routputs_count\030\001 \002(\r\022\024\n\014inputs_c" + "ount\030\002 \002(\r\022\032\n\tcoin_name\030\003 \001(\t:\007Bitcoin\022\022" + "\n\007version\030\004 \001(\r:\0011\022\024\n\tlock_time\030\005 \001(\r:\0010" + "\022\016\n\006expiry\030\006 \001(\r\022\024\n\014overwintered\030\007 \001(\010\022\030" + "\n\020version_group_id\030\010 \001(\r\022\021\n\ttimestamp\030\t " + "\001(\r\022\021\n\tbranch_id\030\n \001(\r\"\234\004\n\tTxRequest\022G\n\014" + "request_type\030\001 \001(\01621.hw.trezor.messages." + "bitcoin.TxRequest.RequestType\022K\n\007details" + "\030\002 \001(\0132:.hw.trezor.messages.bitcoin.TxRe" + "quest.TxRequestDetailsType\022Q\n\nserialized" + "\030\003 \001(\0132=.hw.trezor.messages.bitcoin.TxRe" + "quest.TxRequestSerializedType\032q\n\024TxReque" + "stDetailsType\022\025\n\rrequest_index\030\001 \001(\r\022\017\n\007" + "tx_hash\030\002 \001(\014\022\026\n\016extra_data_len\030\003 \001(\r\022\031\n" + "\021extra_data_offset\030\004 \001(\r\032\\\n\027TxRequestSer" + "ializedType\022\027\n\017signature_index\030\001 \001(\r\022\021\n\t" + "signature\030\002 \001(\014\022\025\n\rserialized_tx\030\003 \001(\014\"U" + "\n\013RequestType\022\013\n\007TXINPUT\020\000\022\014\n\010TXOUTPUT\020\001" + "\022\n\n\006TXMETA\020\002\022\016\n\nTXFINISHED\020\003\022\017\n\013TXEXTRAD" + "ATA\020\004\"\220\014\n\005TxAck\022=\n\002tx\030\001 \001(\01321.hw.trezor." + "messages.bitcoin.TxAck.TransactionType\032\307" + "\013\n\017TransactionType\022\017\n\007version\030\001 \001(\r\022M\n\006i" + "nputs\030\002 \003(\0132=.hw.trezor.messages.bitcoin" + ".TxAck.TransactionType.TxInputType\022V\n\013bi" + "n_outputs\030\003 \003(\0132A.hw.trezor.messages.bit" + "coin.TxAck.TransactionType.TxOutputBinTy" + "pe\022\021\n\tlock_time\030\004 \001(\r\022O\n\007outputs\030\005 \003(\0132>" + ".hw.trezor.messages.bitcoin.TxAck.Transa" + "ctionType.TxOutputType\022\022\n\ninputs_cnt\030\006 \001" + "(\r\022\023\n\013outputs_cnt\030\007 \001(\r\022\022\n\nextra_data\030\010 " + "\001(\014\022\026\n\016extra_data_len\030\t \001(\r\022\016\n\006expiry\030\n " + "\001(\r\022\024\n\014overwintered\030\013 \001(\010\022\030\n\020version_gro" + "up_id\030\014 \001(\r\022\021\n\ttimestamp\030\r \001(\r\022\021\n\tbranch" + "_id\030\016 \001(\r\032\227\003\n\013TxInputType\022\021\n\taddress_n\030\001" + " \003(\r\022\021\n\tprev_hash\030\002 \002(\014\022\022\n\nprev_index\030\003 " + "\002(\r\022\022\n\nscript_sig\030\004 \001(\014\022\034\n\010sequence\030\005 \001(" + "\r:\n4294967295\022N\n\013script_type\030\006 \001(\0162+.hw." + "trezor.messages.bitcoin.InputScriptType:" + "\014SPENDADDRESS\022F\n\010multisig\030\007 \001(\01324.hw.tre" + "zor.messages.bitcoin.MultisigRedeemScrip" + "tType\022\016\n\006amount\030\010 \001(\004\022\023\n\013decred_tree\030\t \001" + "(\r\022\035\n\025decred_script_version\030\n \001(\r\022\036\n\026pre" + "v_block_hash_bip115\030\013 \001(\014\022 \n\030prev_block_" + "height_bip115\030\014 \001(\r\032W\n\017TxOutputBinType\022\016" + "\n\006amount\030\001 \002(\004\022\025\n\rscript_pubkey\030\002 \002(\014\022\035\n" + "\025decred_script_version\030\003 \001(\r\032\351\003\n\014TxOutpu" + "tType\022\017\n\007address\030\001 \001(\t\022\021\n\taddress_n\030\002 \003(" + "\r\022\016\n\006amount\030\003 \002(\004\022d\n\013script_type\030\004 \002(\0162O" + ".hw.trezor.messages.bitcoin.TxAck.Transa" + "ctionType.TxOutputType.OutputScriptType\022" + "F\n\010multisig\030\005 \001(\01324.hw.trezor.messages.b" + "itcoin.MultisigRedeemScriptType\022\026\n\016op_re" + "turn_data\030\006 \001(\014\022\035\n\025decred_script_version" + "\030\007 \001(\r\022\031\n\021block_hash_bip115\030\010 \001(\014\022\033\n\023blo" + "ck_height_bip115\030\t \001(\r\"\207\001\n\020OutputScriptT" + "ype\022\020\n\014PAYTOADDRESS\020\000\022\023\n\017PAYTOSCRIPTHASH" + "\020\001\022\021\n\rPAYTOMULTISIG\020\002\022\021\n\rPAYTOOPRETURN\020\003" + "\022\020\n\014PAYTOWITNESS\020\004\022\024\n\020PAYTOP2SHWITNESS\020\005" + "*l\n\017InputScriptType\022\020\n\014SPENDADDRESS\020\000\022\021\n" + "\rSPENDMULTISIG\020\001\022\014\n\010EXTERNAL\020\002\022\020\n\014SPENDW" + "ITNESS\020\003\022\024\n\020SPENDP2SHWITNESS\020\004B;\n#com.sa" + "toshilabs.trezor.lib.protobufB\024TrezorMes" + "sageBitcoin" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 3731); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-bitcoin.proto", &protobuf_RegisterTypes); + ::protobuf_messages_2dcommon_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dbitcoin_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace bitcoin { +const ::google::protobuf::EnumDescriptor* TxRequest_RequestType_descriptor() { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dbitcoin_2eproto::file_level_enum_descriptors[0]; +} +bool TxRequest_RequestType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const TxRequest_RequestType TxRequest::TXINPUT; +const TxRequest_RequestType TxRequest::TXOUTPUT; +const TxRequest_RequestType TxRequest::TXMETA; +const TxRequest_RequestType TxRequest::TXFINISHED; +const TxRequest_RequestType TxRequest::TXEXTRADATA; +const TxRequest_RequestType TxRequest::RequestType_MIN; +const TxRequest_RequestType TxRequest::RequestType_MAX; +const int TxRequest::RequestType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* TxAck_TransactionType_TxOutputType_OutputScriptType_descriptor() { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dbitcoin_2eproto::file_level_enum_descriptors[1]; +} +bool TxAck_TransactionType_TxOutputType_OutputScriptType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const TxAck_TransactionType_TxOutputType_OutputScriptType TxAck_TransactionType_TxOutputType::PAYTOADDRESS; +const TxAck_TransactionType_TxOutputType_OutputScriptType TxAck_TransactionType_TxOutputType::PAYTOSCRIPTHASH; +const TxAck_TransactionType_TxOutputType_OutputScriptType TxAck_TransactionType_TxOutputType::PAYTOMULTISIG; +const TxAck_TransactionType_TxOutputType_OutputScriptType TxAck_TransactionType_TxOutputType::PAYTOOPRETURN; +const TxAck_TransactionType_TxOutputType_OutputScriptType TxAck_TransactionType_TxOutputType::PAYTOWITNESS; +const TxAck_TransactionType_TxOutputType_OutputScriptType TxAck_TransactionType_TxOutputType::PAYTOP2SHWITNESS; +const TxAck_TransactionType_TxOutputType_OutputScriptType TxAck_TransactionType_TxOutputType::OutputScriptType_MIN; +const TxAck_TransactionType_TxOutputType_OutputScriptType TxAck_TransactionType_TxOutputType::OutputScriptType_MAX; +const int TxAck_TransactionType_TxOutputType::OutputScriptType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* InputScriptType_descriptor() { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dbitcoin_2eproto::file_level_enum_descriptors[2]; +} +bool InputScriptType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + + +// =================================================================== + +void MultisigRedeemScriptType_HDNodePathType::InitAsDefaultInstance() { + ::hw::trezor::messages::bitcoin::_MultisigRedeemScriptType_HDNodePathType_default_instance_._instance.get_mutable()->node_ = const_cast< ::hw::trezor::messages::common::HDNodeType*>( + ::hw::trezor::messages::common::HDNodeType::internal_default_instance()); +} +void MultisigRedeemScriptType_HDNodePathType::clear_node() { + if (node_ != NULL) node_->Clear(); + clear_has_node(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MultisigRedeemScriptType_HDNodePathType::kNodeFieldNumber; +const int MultisigRedeemScriptType_HDNodePathType::kAddressNFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MultisigRedeemScriptType_HDNodePathType::MultisigRedeemScriptType_HDNodePathType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_MultisigRedeemScriptType_HDNodePathType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) +} +MultisigRedeemScriptType_HDNodePathType::MultisigRedeemScriptType_HDNodePathType(const MultisigRedeemScriptType_HDNodePathType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_node()) { + node_ = new ::hw::trezor::messages::common::HDNodeType(*from.node_); + } else { + node_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) +} + +void MultisigRedeemScriptType_HDNodePathType::SharedCtor() { + node_ = NULL; +} + +MultisigRedeemScriptType_HDNodePathType::~MultisigRedeemScriptType_HDNodePathType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + SharedDtor(); +} + +void MultisigRedeemScriptType_HDNodePathType::SharedDtor() { + if (this != internal_default_instance()) delete node_; +} + +void MultisigRedeemScriptType_HDNodePathType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MultisigRedeemScriptType_HDNodePathType::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MultisigRedeemScriptType_HDNodePathType& MultisigRedeemScriptType_HDNodePathType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_MultisigRedeemScriptType_HDNodePathType.base); + return *internal_default_instance(); +} + + +void MultisigRedeemScriptType_HDNodePathType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(node_ != NULL); + node_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MultisigRedeemScriptType_HDNodePathType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hw.trezor.messages.common.HDNodeType node = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node())); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 address_n = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 16u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + return false; +#undef DO_ +} + +void MultisigRedeemScriptType_HDNodePathType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .hw.trezor.messages.common.HDNodeType node = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_node(), output); + } + + // repeated uint32 address_n = 2; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 2, this->address_n(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) +} + +::google::protobuf::uint8* MultisigRedeemScriptType_HDNodePathType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .hw.trezor.messages.common.HDNodeType node = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_node(), deterministic, target); + } + + // repeated uint32 address_n = 2; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(2, this->address_n_, target); + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + return target; +} + +size_t MultisigRedeemScriptType_HDNodePathType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // required .hw.trezor.messages.common.HDNodeType node = 1; + if (has_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *node_); + } + // repeated uint32 address_n = 2; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MultisigRedeemScriptType_HDNodePathType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + GOOGLE_DCHECK_NE(&from, this); + const MultisigRedeemScriptType_HDNodePathType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + MergeFrom(*source); + } +} + +void MultisigRedeemScriptType_HDNodePathType::MergeFrom(const MultisigRedeemScriptType_HDNodePathType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_node()) { + mutable_node()->::hw::trezor::messages::common::HDNodeType::MergeFrom(from.node()); + } +} + +void MultisigRedeemScriptType_HDNodePathType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MultisigRedeemScriptType_HDNodePathType::CopyFrom(const MultisigRedeemScriptType_HDNodePathType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MultisigRedeemScriptType_HDNodePathType::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + if (has_node()) { + if (!this->node_->IsInitialized()) return false; + } + return true; +} + +void MultisigRedeemScriptType_HDNodePathType::Swap(MultisigRedeemScriptType_HDNodePathType* other) { + if (other == this) return; + InternalSwap(other); +} +void MultisigRedeemScriptType_HDNodePathType::InternalSwap(MultisigRedeemScriptType_HDNodePathType* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(node_, other->node_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MultisigRedeemScriptType_HDNodePathType::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MultisigRedeemScriptType::InitAsDefaultInstance() { +} +void MultisigRedeemScriptType::clear_nodes() { + nodes_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MultisigRedeemScriptType::kPubkeysFieldNumber; +const int MultisigRedeemScriptType::kSignaturesFieldNumber; +const int MultisigRedeemScriptType::kMFieldNumber; +const int MultisigRedeemScriptType::kNodesFieldNumber; +const int MultisigRedeemScriptType::kAddressNFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MultisigRedeemScriptType::MultisigRedeemScriptType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_MultisigRedeemScriptType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) +} +MultisigRedeemScriptType::MultisigRedeemScriptType(const MultisigRedeemScriptType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + pubkeys_(from.pubkeys_), + signatures_(from.signatures_), + nodes_(from.nodes_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + m_ = from.m_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) +} + +void MultisigRedeemScriptType::SharedCtor() { + m_ = 0u; +} + +MultisigRedeemScriptType::~MultisigRedeemScriptType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + SharedDtor(); +} + +void MultisigRedeemScriptType::SharedDtor() { +} + +void MultisigRedeemScriptType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MultisigRedeemScriptType::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MultisigRedeemScriptType& MultisigRedeemScriptType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_MultisigRedeemScriptType.base); + return *internal_default_instance(); +} + + +void MultisigRedeemScriptType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + pubkeys_.Clear(); + signatures_.Clear(); + nodes_.Clear(); + address_n_.Clear(); + m_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MultisigRedeemScriptType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType pubkeys = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_pubkeys())); + } else { + goto handle_unusual; + } + break; + } + + // repeated bytes signatures = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_signatures())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 m = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_m(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &m_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.common.HDNodeType nodes = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_nodes())); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 address_n = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 40u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + return false; +#undef DO_ +} + +void MultisigRedeemScriptType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType pubkeys = 1; + for (unsigned int i = 0, + n = static_cast(this->pubkeys_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->pubkeys(static_cast(i)), + output); + } + + // repeated bytes signatures = 2; + for (int i = 0, n = this->signatures_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->signatures(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional uint32 m = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->m(), output); + } + + // repeated .hw.trezor.messages.common.HDNodeType nodes = 4; + for (unsigned int i = 0, + n = static_cast(this->nodes_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->nodes(static_cast(i)), + output); + } + + // repeated uint32 address_n = 5; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 5, this->address_n(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) +} + +::google::protobuf::uint8* MultisigRedeemScriptType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType pubkeys = 1; + for (unsigned int i = 0, + n = static_cast(this->pubkeys_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->pubkeys(static_cast(i)), deterministic, target); + } + + // repeated bytes signatures = 2; + for (int i = 0, n = this->signatures_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(2, this->signatures(i), target); + } + + cached_has_bits = _has_bits_[0]; + // optional uint32 m = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->m(), target); + } + + // repeated .hw.trezor.messages.common.HDNodeType nodes = 4; + for (unsigned int i = 0, + n = static_cast(this->nodes_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->nodes(static_cast(i)), deterministic, target); + } + + // repeated uint32 address_n = 5; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(5, this->address_n_, target); + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + return target; +} + +size_t MultisigRedeemScriptType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType pubkeys = 1; + { + unsigned int count = static_cast(this->pubkeys_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->pubkeys(static_cast(i))); + } + } + + // repeated bytes signatures = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->signatures_size()); + for (int i = 0, n = this->signatures_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signatures(i)); + } + + // repeated .hw.trezor.messages.common.HDNodeType nodes = 4; + { + unsigned int count = static_cast(this->nodes_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->nodes(static_cast(i))); + } + } + + // repeated uint32 address_n = 5; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional uint32 m = 3; + if (has_m()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->m()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MultisigRedeemScriptType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + GOOGLE_DCHECK_NE(&from, this); + const MultisigRedeemScriptType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + MergeFrom(*source); + } +} + +void MultisigRedeemScriptType::MergeFrom(const MultisigRedeemScriptType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + pubkeys_.MergeFrom(from.pubkeys_); + signatures_.MergeFrom(from.signatures_); + nodes_.MergeFrom(from.nodes_); + address_n_.MergeFrom(from.address_n_); + if (from.has_m()) { + set_m(from.m()); + } +} + +void MultisigRedeemScriptType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MultisigRedeemScriptType::CopyFrom(const MultisigRedeemScriptType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MultisigRedeemScriptType::IsInitialized() const { + if (!::google::protobuf::internal::AllAreInitialized(this->pubkeys())) return false; + if (!::google::protobuf::internal::AllAreInitialized(this->nodes())) return false; + return true; +} + +void MultisigRedeemScriptType::Swap(MultisigRedeemScriptType* other) { + if (other == this) return; + InternalSwap(other); +} +void MultisigRedeemScriptType::InternalSwap(MultisigRedeemScriptType* other) { + using std::swap; + CastToBase(&pubkeys_)->InternalSwap(CastToBase(&other->pubkeys_)); + signatures_.InternalSwap(CastToBase(&other->signatures_)); + CastToBase(&nodes_)->InternalSwap(CastToBase(&other->nodes_)); + address_n_.InternalSwap(&other->address_n_); + swap(m_, other->m_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MultisigRedeemScriptType::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetPublicKey::InitAsDefaultInstance() { +} +::google::protobuf::internal::ExplicitlyConstructed<::std::string> GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetPublicKey::kAddressNFieldNumber; +const int GetPublicKey::kEcdsaCurveNameFieldNumber; +const int GetPublicKey::kShowDisplayFieldNumber; +const int GetPublicKey::kCoinNameFieldNumber; +const int GetPublicKey::kScriptTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetPublicKey::GetPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_GetPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.GetPublicKey) +} +GetPublicKey::GetPublicKey(const GetPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ecdsa_curve_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_ecdsa_curve_name()) { + ecdsa_curve_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ecdsa_curve_name_); + } + coin_name_.UnsafeSetDefault(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get()); + if (from.has_coin_name()) { + coin_name_.AssignWithDefault(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get(), from.coin_name_); + } + ::memcpy(&show_display_, &from.show_display_, + static_cast(reinterpret_cast(&script_type_) - + reinterpret_cast(&show_display_)) + sizeof(script_type_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.GetPublicKey) +} + +void GetPublicKey::SharedCtor() { + ecdsa_curve_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + coin_name_.UnsafeSetDefault(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get()); + ::memset(&show_display_, 0, static_cast( + reinterpret_cast(&script_type_) - + reinterpret_cast(&show_display_)) + sizeof(script_type_)); +} + +GetPublicKey::~GetPublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.GetPublicKey) + SharedDtor(); +} + +void GetPublicKey::SharedDtor() { + ecdsa_curve_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + coin_name_.DestroyNoArena(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} + +void GetPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* GetPublicKey::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const GetPublicKey& GetPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_GetPublicKey.base); + return *internal_default_instance(); +} + + +void GetPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.GetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + ecdsa_curve_name_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + coin_name_.UnsafeMutablePointer()->assign(*&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get()); + } + } + if (cached_has_bits & 12u) { + ::memset(&show_display_, 0, static_cast( + reinterpret_cast(&script_type_) - + reinterpret_cast(&show_display_)) + sizeof(script_type_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool GetPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.GetPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional string ecdsa_curve_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_ecdsa_curve_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ecdsa_curve_name().data(), static_cast(this->ecdsa_curve_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.bitcoin.GetPublicKey.ecdsa_curve_name"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string coin_name = 4 [default = "Bitcoin"]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_coin_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.bitcoin.GetPublicKey.coin_name"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::bitcoin::InputScriptType_IsValid(value)) { + set_script_type(static_cast< ::hw::trezor::messages::bitcoin::InputScriptType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 5, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.GetPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.GetPublicKey) + return false; +#undef DO_ +} + +void GetPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.GetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional string ecdsa_curve_name = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ecdsa_curve_name().data(), static_cast(this->ecdsa_curve_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.GetPublicKey.ecdsa_curve_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->ecdsa_curve_name(), output); + } + + // optional bool show_display = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->show_display(), output); + } + + // optional string coin_name = 4 [default = "Bitcoin"]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.GetPublicKey.coin_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->coin_name(), output); + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->script_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.GetPublicKey) +} + +::google::protobuf::uint8* GetPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.GetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional string ecdsa_curve_name = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ecdsa_curve_name().data(), static_cast(this->ecdsa_curve_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.GetPublicKey.ecdsa_curve_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->ecdsa_curve_name(), target); + } + + // optional bool show_display = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->show_display(), target); + } + + // optional string coin_name = 4 [default = "Bitcoin"]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.GetPublicKey.coin_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->coin_name(), target); + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->script_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.GetPublicKey) + return target; +} + +size_t GetPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.GetPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 15u) { + // optional string ecdsa_curve_name = 2; + if (has_ecdsa_curve_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->ecdsa_curve_name()); + } + + // optional string coin_name = 4 [default = "Bitcoin"]; + if (has_coin_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->coin_name()); + } + + // optional bool show_display = 3; + if (has_show_display()) { + total_size += 1 + 1; + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; + if (has_script_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->script_type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.GetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const GetPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.GetPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.GetPublicKey) + MergeFrom(*source); + } +} + +void GetPublicKey::MergeFrom(const GetPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.GetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ecdsa_curve_name_); + } + if (cached_has_bits & 0x00000002u) { + set_has_coin_name(); + coin_name_.AssignWithDefault(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get(), from.coin_name_); + } + if (cached_has_bits & 0x00000004u) { + show_display_ = from.show_display_; + } + if (cached_has_bits & 0x00000008u) { + script_type_ = from.script_type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GetPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.GetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetPublicKey::CopyFrom(const GetPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.GetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPublicKey::IsInitialized() const { + return true; +} + +void GetPublicKey::Swap(GetPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void GetPublicKey::InternalSwap(GetPublicKey* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + ecdsa_curve_name_.Swap(&other->ecdsa_curve_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + coin_name_.Swap(&other->coin_name_, &::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get(), + GetArenaNoVirtual()); + swap(show_display_, other->show_display_); + swap(script_type_, other->script_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata GetPublicKey::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PublicKey::InitAsDefaultInstance() { + ::hw::trezor::messages::bitcoin::_PublicKey_default_instance_._instance.get_mutable()->node_ = const_cast< ::hw::trezor::messages::common::HDNodeType*>( + ::hw::trezor::messages::common::HDNodeType::internal_default_instance()); +} +void PublicKey::clear_node() { + if (node_ != NULL) node_->Clear(); + clear_has_node(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PublicKey::kNodeFieldNumber; +const int PublicKey::kXpubFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PublicKey::PublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_PublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.PublicKey) +} +PublicKey::PublicKey(const PublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + xpub_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_xpub()) { + xpub_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.xpub_); + } + if (from.has_node()) { + node_ = new ::hw::trezor::messages::common::HDNodeType(*from.node_); + } else { + node_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.PublicKey) +} + +void PublicKey::SharedCtor() { + xpub_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + node_ = NULL; +} + +PublicKey::~PublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.PublicKey) + SharedDtor(); +} + +void PublicKey::SharedDtor() { + xpub_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete node_; +} + +void PublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* PublicKey::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PublicKey& PublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_PublicKey.base); + return *internal_default_instance(); +} + + +void PublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.PublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + xpub_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(node_ != NULL); + node_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.PublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hw.trezor.messages.common.HDNodeType node = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node())); + } else { + goto handle_unusual; + } + break; + } + + // optional string xpub = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_xpub())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->xpub().data(), static_cast(this->xpub().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.bitcoin.PublicKey.xpub"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.PublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.PublicKey) + return false; +#undef DO_ +} + +void PublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.PublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .hw.trezor.messages.common.HDNodeType node = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_node(), output); + } + + // optional string xpub = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->xpub().data(), static_cast(this->xpub().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.PublicKey.xpub"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->xpub(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.PublicKey) +} + +::google::protobuf::uint8* PublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.PublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .hw.trezor.messages.common.HDNodeType node = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_node(), deterministic, target); + } + + // optional string xpub = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->xpub().data(), static_cast(this->xpub().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.PublicKey.xpub"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->xpub(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.PublicKey) + return target; +} + +size_t PublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.PublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // required .hw.trezor.messages.common.HDNodeType node = 1; + if (has_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *node_); + } + // optional string xpub = 2; + if (has_xpub()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->xpub()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.PublicKey) + GOOGLE_DCHECK_NE(&from, this); + const PublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.PublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.PublicKey) + MergeFrom(*source); + } +} + +void PublicKey::MergeFrom(const PublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.PublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_xpub(); + xpub_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.xpub_); + } + if (cached_has_bits & 0x00000002u) { + mutable_node()->::hw::trezor::messages::common::HDNodeType::MergeFrom(from.node()); + } + } +} + +void PublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.PublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PublicKey::CopyFrom(const PublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.PublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PublicKey::IsInitialized() const { + if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; + if (has_node()) { + if (!this->node_->IsInitialized()) return false; + } + return true; +} + +void PublicKey::Swap(PublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void PublicKey::InternalSwap(PublicKey* other) { + using std::swap; + xpub_.Swap(&other->xpub_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(node_, other->node_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata PublicKey::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetAddress::InitAsDefaultInstance() { + ::hw::trezor::messages::bitcoin::_GetAddress_default_instance_._instance.get_mutable()->multisig_ = const_cast< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType*>( + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType::internal_default_instance()); +} +::google::protobuf::internal::ExplicitlyConstructed<::std::string> GetAddress::_i_give_permission_to_break_this_code_default_coin_name_; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetAddress::kAddressNFieldNumber; +const int GetAddress::kCoinNameFieldNumber; +const int GetAddress::kShowDisplayFieldNumber; +const int GetAddress::kMultisigFieldNumber; +const int GetAddress::kScriptTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetAddress::GetAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_GetAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.GetAddress) +} +GetAddress::GetAddress(const GetAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + coin_name_.UnsafeSetDefault(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get()); + if (from.has_coin_name()) { + coin_name_.AssignWithDefault(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get(), from.coin_name_); + } + if (from.has_multisig()) { + multisig_ = new ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType(*from.multisig_); + } else { + multisig_ = NULL; + } + ::memcpy(&show_display_, &from.show_display_, + static_cast(reinterpret_cast(&script_type_) - + reinterpret_cast(&show_display_)) + sizeof(script_type_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.GetAddress) +} + +void GetAddress::SharedCtor() { + coin_name_.UnsafeSetDefault(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get()); + ::memset(&multisig_, 0, static_cast( + reinterpret_cast(&script_type_) - + reinterpret_cast(&multisig_)) + sizeof(script_type_)); +} + +GetAddress::~GetAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.GetAddress) + SharedDtor(); +} + +void GetAddress::SharedDtor() { + coin_name_.DestroyNoArena(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get()); + if (this != internal_default_instance()) delete multisig_; +} + +void GetAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* GetAddress::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const GetAddress& GetAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_GetAddress.base); + return *internal_default_instance(); +} + + +void GetAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.GetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + coin_name_.UnsafeMutablePointer()->assign(*&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get()); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(multisig_ != NULL); + multisig_->Clear(); + } + } + if (cached_has_bits & 12u) { + ::memset(&show_display_, 0, static_cast( + reinterpret_cast(&script_type_) - + reinterpret_cast(&show_display_)) + sizeof(script_type_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool GetAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.GetAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional string coin_name = 2 [default = "Bitcoin"]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_coin_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.bitcoin.GetAddress.coin_name"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_multisig())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::bitcoin::InputScriptType_IsValid(value)) { + set_script_type(static_cast< ::hw::trezor::messages::bitcoin::InputScriptType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 5, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.GetAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.GetAddress) + return false; +#undef DO_ +} + +void GetAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.GetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional string coin_name = 2 [default = "Bitcoin"]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.GetAddress.coin_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->coin_name(), output); + } + + // optional bool show_display = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->show_display(), output); + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_multisig(), output); + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->script_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.GetAddress) +} + +::google::protobuf::uint8* GetAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.GetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional string coin_name = 2 [default = "Bitcoin"]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.GetAddress.coin_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->coin_name(), target); + } + + // optional bool show_display = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->show_display(), target); + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 4; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_multisig(), deterministic, target); + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->script_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.GetAddress) + return target; +} + +size_t GetAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.GetAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 15u) { + // optional string coin_name = 2 [default = "Bitcoin"]; + if (has_coin_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->coin_name()); + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 4; + if (has_multisig()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *multisig_); + } + + // optional bool show_display = 3; + if (has_show_display()) { + total_size += 1 + 1; + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; + if (has_script_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->script_type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.GetAddress) + GOOGLE_DCHECK_NE(&from, this); + const GetAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.GetAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.GetAddress) + MergeFrom(*source); + } +} + +void GetAddress::MergeFrom(const GetAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.GetAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_coin_name(); + coin_name_.AssignWithDefault(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get(), from.coin_name_); + } + if (cached_has_bits & 0x00000002u) { + mutable_multisig()->::hw::trezor::messages::bitcoin::MultisigRedeemScriptType::MergeFrom(from.multisig()); + } + if (cached_has_bits & 0x00000004u) { + show_display_ = from.show_display_; + } + if (cached_has_bits & 0x00000008u) { + script_type_ = from.script_type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GetAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.GetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetAddress::CopyFrom(const GetAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.GetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetAddress::IsInitialized() const { + if (has_multisig()) { + if (!this->multisig_->IsInitialized()) return false; + } + return true; +} + +void GetAddress::Swap(GetAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void GetAddress::InternalSwap(GetAddress* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + coin_name_.Swap(&other->coin_name_, &::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get(), + GetArenaNoVirtual()); + swap(multisig_, other->multisig_); + swap(show_display_, other->show_display_); + swap(script_type_, other->script_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata GetAddress::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Address::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Address::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Address::Address() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_Address.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.Address) +} +Address::Address(const Address& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.Address) +} + +void Address::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Address::~Address() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.Address) + SharedDtor(); +} + +void Address::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Address::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* Address::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Address& Address::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_Address.base); + return *internal_default_instance(); +} + + +void Address::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.Address) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool Address::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.Address) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.bitcoin.Address.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.Address) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.Address) + return false; +#undef DO_ +} + +void Address::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.Address) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.Address.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.Address) +} + +::google::protobuf::uint8* Address::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.Address) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.Address.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.Address) + return target; +} + +size_t Address::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.Address) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // required string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Address::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.Address) + GOOGLE_DCHECK_NE(&from, this); + const Address* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.Address) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.Address) + MergeFrom(*source); + } +} + +void Address::MergeFrom(const Address& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.Address) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_address()) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } +} + +void Address::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.Address) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Address::CopyFrom(const Address& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.Address) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Address::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + return true; +} + +void Address::Swap(Address* other) { + if (other == this) return; + InternalSwap(other); +} +void Address::InternalSwap(Address* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata Address::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SignMessage::InitAsDefaultInstance() { +} +::google::protobuf::internal::ExplicitlyConstructed<::std::string> SignMessage::_i_give_permission_to_break_this_code_default_coin_name_; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignMessage::kAddressNFieldNumber; +const int SignMessage::kMessageFieldNumber; +const int SignMessage::kCoinNameFieldNumber; +const int SignMessage::kScriptTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SignMessage::SignMessage() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_SignMessage.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.SignMessage) +} +SignMessage::SignMessage(const SignMessage& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_message()) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + coin_name_.UnsafeSetDefault(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); + if (from.has_coin_name()) { + coin_name_.AssignWithDefault(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), from.coin_name_); + } + script_type_ = from.script_type_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.SignMessage) +} + +void SignMessage::SharedCtor() { + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + coin_name_.UnsafeSetDefault(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); + script_type_ = 0; +} + +SignMessage::~SignMessage() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.SignMessage) + SharedDtor(); +} + +void SignMessage::SharedDtor() { + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + coin_name_.DestroyNoArena(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} + +void SignMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* SignMessage::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SignMessage& SignMessage::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_SignMessage.base); + return *internal_default_instance(); +} + + +void SignMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.SignMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + message_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + coin_name_.UnsafeMutablePointer()->assign(*&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); + } + } + script_type_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SignMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.SignMessage) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // required bytes message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_message())); + } else { + goto handle_unusual; + } + break; + } + + // optional string coin_name = 3 [default = "Bitcoin"]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_coin_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.bitcoin.SignMessage.coin_name"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 4 [default = SPENDADDRESS]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::bitcoin::InputScriptType_IsValid(value)) { + set_script_type(static_cast< ::hw::trezor::messages::bitcoin::InputScriptType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 4, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.SignMessage) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.SignMessage) + return false; +#undef DO_ +} + +void SignMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.SignMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // required bytes message = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->message(), output); + } + + // optional string coin_name = 3 [default = "Bitcoin"]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.SignMessage.coin_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->coin_name(), output); + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 4 [default = SPENDADDRESS]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->script_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.SignMessage) +} + +::google::protobuf::uint8* SignMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.SignMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // required bytes message = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->message(), target); + } + + // optional string coin_name = 3 [default = "Bitcoin"]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.SignMessage.coin_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->coin_name(), target); + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 4 [default = SPENDADDRESS]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->script_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.SignMessage) + return target; +} + +size_t SignMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.SignMessage) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // required bytes message = 2; + if (has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->message()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 6u) { + // optional string coin_name = 3 [default = "Bitcoin"]; + if (has_coin_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->coin_name()); + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 4 [default = SPENDADDRESS]; + if (has_script_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->script_type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SignMessage::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.SignMessage) + GOOGLE_DCHECK_NE(&from, this); + const SignMessage* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.SignMessage) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.SignMessage) + MergeFrom(*source); + } +} + +void SignMessage::MergeFrom(const SignMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.SignMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_message(); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (cached_has_bits & 0x00000002u) { + set_has_coin_name(); + coin_name_.AssignWithDefault(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), from.coin_name_); + } + if (cached_has_bits & 0x00000004u) { + script_type_ = from.script_type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void SignMessage::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.SignMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SignMessage::CopyFrom(const SignMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.SignMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SignMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + return true; +} + +void SignMessage::Swap(SignMessage* other) { + if (other == this) return; + InternalSwap(other); +} +void SignMessage::InternalSwap(SignMessage* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + coin_name_.Swap(&other->coin_name_, &::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), + GetArenaNoVirtual()); + swap(script_type_, other->script_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata SignMessage::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MessageSignature::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MessageSignature::kAddressFieldNumber; +const int MessageSignature::kSignatureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MessageSignature::MessageSignature() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_MessageSignature.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.MessageSignature) +} +MessageSignature::MessageSignature(const MessageSignature& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.MessageSignature) +} + +void MessageSignature::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MessageSignature::~MessageSignature() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.MessageSignature) + SharedDtor(); +} + +void MessageSignature::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MessageSignature::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MessageSignature::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MessageSignature& MessageSignature::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_MessageSignature.base); + return *internal_default_instance(); +} + + +void MessageSignature::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.MessageSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MessageSignature::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.MessageSignature) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.bitcoin.MessageSignature.address"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.MessageSignature) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.MessageSignature) + return false; +#undef DO_ +} + +void MessageSignature::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.MessageSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.MessageSignature.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->signature(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.MessageSignature) +} + +::google::protobuf::uint8* MessageSignature::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.MessageSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.MessageSignature.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->signature(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.MessageSignature) + return target; +} + +size_t MessageSignature::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.MessageSignature) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + // optional bytes signature = 2; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MessageSignature::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.MessageSignature) + GOOGLE_DCHECK_NE(&from, this); + const MessageSignature* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.MessageSignature) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.MessageSignature) + MergeFrom(*source); + } +} + +void MessageSignature::MergeFrom(const MessageSignature& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.MessageSignature) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + if (cached_has_bits & 0x00000002u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + } +} + +void MessageSignature::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.MessageSignature) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MessageSignature::CopyFrom(const MessageSignature& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.MessageSignature) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MessageSignature::IsInitialized() const { + return true; +} + +void MessageSignature::Swap(MessageSignature* other) { + if (other == this) return; + InternalSwap(other); +} +void MessageSignature::InternalSwap(MessageSignature* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MessageSignature::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void VerifyMessage::InitAsDefaultInstance() { +} +::google::protobuf::internal::ExplicitlyConstructed<::std::string> VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VerifyMessage::kAddressFieldNumber; +const int VerifyMessage::kSignatureFieldNumber; +const int VerifyMessage::kMessageFieldNumber; +const int VerifyMessage::kCoinNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +VerifyMessage::VerifyMessage() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_VerifyMessage.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.VerifyMessage) +} +VerifyMessage::VerifyMessage(const VerifyMessage& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_message()) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + coin_name_.UnsafeSetDefault(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); + if (from.has_coin_name()) { + coin_name_.AssignWithDefault(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), from.coin_name_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.VerifyMessage) +} + +void VerifyMessage::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + coin_name_.UnsafeSetDefault(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} + +VerifyMessage::~VerifyMessage() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.VerifyMessage) + SharedDtor(); +} + +void VerifyMessage::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + coin_name_.DestroyNoArena(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} + +void VerifyMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* VerifyMessage::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const VerifyMessage& VerifyMessage::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_VerifyMessage.base); + return *internal_default_instance(); +} + + +void VerifyMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.VerifyMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + message_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + coin_name_.UnsafeMutablePointer()->assign(*&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool VerifyMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.VerifyMessage) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.bitcoin.VerifyMessage.address"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes message = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_message())); + } else { + goto handle_unusual; + } + break; + } + + // optional string coin_name = 4 [default = "Bitcoin"]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_coin_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.bitcoin.VerifyMessage.coin_name"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.VerifyMessage) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.VerifyMessage) + return false; +#undef DO_ +} + +void VerifyMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.VerifyMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.VerifyMessage.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->signature(), output); + } + + // optional bytes message = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->message(), output); + } + + // optional string coin_name = 4 [default = "Bitcoin"]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.VerifyMessage.coin_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->coin_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.VerifyMessage) +} + +::google::protobuf::uint8* VerifyMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.VerifyMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.VerifyMessage.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->signature(), target); + } + + // optional bytes message = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->message(), target); + } + + // optional string coin_name = 4 [default = "Bitcoin"]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.VerifyMessage.coin_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->coin_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.VerifyMessage) + return target; +} + +size_t VerifyMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.VerifyMessage) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + // optional bytes signature = 2; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional bytes message = 3; + if (has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->message()); + } + + // optional string coin_name = 4 [default = "Bitcoin"]; + if (has_coin_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->coin_name()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void VerifyMessage::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.VerifyMessage) + GOOGLE_DCHECK_NE(&from, this); + const VerifyMessage* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.VerifyMessage) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.VerifyMessage) + MergeFrom(*source); + } +} + +void VerifyMessage::MergeFrom(const VerifyMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.VerifyMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + if (cached_has_bits & 0x00000002u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000004u) { + set_has_message(); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (cached_has_bits & 0x00000008u) { + set_has_coin_name(); + coin_name_.AssignWithDefault(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), from.coin_name_); + } + } +} + +void VerifyMessage::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.VerifyMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VerifyMessage::CopyFrom(const VerifyMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.VerifyMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VerifyMessage::IsInitialized() const { + return true; +} + +void VerifyMessage::Swap(VerifyMessage* other) { + if (other == this) return; + InternalSwap(other); +} +void VerifyMessage::InternalSwap(VerifyMessage* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + coin_name_.Swap(&other->coin_name_, &::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata VerifyMessage::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SignTx::InitAsDefaultInstance() { +} +::google::protobuf::internal::ExplicitlyConstructed<::std::string> SignTx::_i_give_permission_to_break_this_code_default_coin_name_; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignTx::kOutputsCountFieldNumber; +const int SignTx::kInputsCountFieldNumber; +const int SignTx::kCoinNameFieldNumber; +const int SignTx::kVersionFieldNumber; +const int SignTx::kLockTimeFieldNumber; +const int SignTx::kExpiryFieldNumber; +const int SignTx::kOverwinteredFieldNumber; +const int SignTx::kVersionGroupIdFieldNumber; +const int SignTx::kTimestampFieldNumber; +const int SignTx::kBranchIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SignTx::SignTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_SignTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.SignTx) +} +SignTx::SignTx(const SignTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + coin_name_.UnsafeSetDefault(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get()); + if (from.has_coin_name()) { + coin_name_.AssignWithDefault(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get(), from.coin_name_); + } + ::memcpy(&outputs_count_, &from.outputs_count_, + static_cast(reinterpret_cast(&version_) - + reinterpret_cast(&outputs_count_)) + sizeof(version_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.SignTx) +} + +void SignTx::SharedCtor() { + coin_name_.UnsafeSetDefault(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get()); + ::memset(&outputs_count_, 0, static_cast( + reinterpret_cast(&branch_id_) - + reinterpret_cast(&outputs_count_)) + sizeof(branch_id_)); + version_ = 1u; +} + +SignTx::~SignTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.SignTx) + SharedDtor(); +} + +void SignTx::SharedDtor() { + coin_name_.DestroyNoArena(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} + +void SignTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* SignTx::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SignTx& SignTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_SignTx.base); + return *internal_default_instance(); +} + + +void SignTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.SignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + coin_name_.UnsafeMutablePointer()->assign(*&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get()); + } + if (cached_has_bits & 254u) { + ::memset(&outputs_count_, 0, static_cast( + reinterpret_cast(×tamp_) - + reinterpret_cast(&outputs_count_)) + sizeof(timestamp_)); + } + if (cached_has_bits & 768u) { + branch_id_ = 0u; + version_ = 1u; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SignTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.SignTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 outputs_count = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_outputs_count(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &outputs_count_))); + } else { + goto handle_unusual; + } + break; + } + + // required uint32 inputs_count = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_inputs_count(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &inputs_count_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string coin_name = 3 [default = "Bitcoin"]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_coin_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.bitcoin.SignTx.coin_name"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 version = 4 [default = 1]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 lock_time = 5 [default = 0]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_lock_time(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &lock_time_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 expiry = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_expiry(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &expiry_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool overwintered = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_overwintered(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &overwintered_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 version_group_id = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_version_group_id(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_group_id_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 timestamp = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_timestamp(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, ×tamp_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 branch_id = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_branch_id(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &branch_id_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.SignTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.SignTx) + return false; +#undef DO_ +} + +void SignTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.SignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 outputs_count = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->outputs_count(), output); + } + + // required uint32 inputs_count = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->inputs_count(), output); + } + + // optional string coin_name = 3 [default = "Bitcoin"]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.SignTx.coin_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->coin_name(), output); + } + + // optional uint32 version = 4 [default = 1]; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->version(), output); + } + + // optional uint32 lock_time = 5 [default = 0]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->lock_time(), output); + } + + // optional uint32 expiry = 6; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->expiry(), output); + } + + // optional bool overwintered = 7; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->overwintered(), output); + } + + // optional uint32 version_group_id = 8; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->version_group_id(), output); + } + + // optional uint32 timestamp = 9; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->timestamp(), output); + } + + // optional uint32 branch_id = 10; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->branch_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.SignTx) +} + +::google::protobuf::uint8* SignTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.SignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 outputs_count = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->outputs_count(), target); + } + + // required uint32 inputs_count = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->inputs_count(), target); + } + + // optional string coin_name = 3 [default = "Bitcoin"]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->coin_name().data(), static_cast(this->coin_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.SignTx.coin_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->coin_name(), target); + } + + // optional uint32 version = 4 [default = 1]; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->version(), target); + } + + // optional uint32 lock_time = 5 [default = 0]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->lock_time(), target); + } + + // optional uint32 expiry = 6; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->expiry(), target); + } + + // optional bool overwintered = 7; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->overwintered(), target); + } + + // optional uint32 version_group_id = 8; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->version_group_id(), target); + } + + // optional uint32 timestamp = 9; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->timestamp(), target); + } + + // optional uint32 branch_id = 10; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->branch_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.SignTx) + return target; +} + +size_t SignTx::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:hw.trezor.messages.bitcoin.SignTx) + size_t total_size = 0; + + if (has_outputs_count()) { + // required uint32 outputs_count = 1; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->outputs_count()); + } + + if (has_inputs_count()) { + // required uint32 inputs_count = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->inputs_count()); + } + + return total_size; +} +size_t SignTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.SignTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (((_has_bits_[0] & 0x00000006) ^ 0x00000006) == 0) { // All required fields are present. + // required uint32 outputs_count = 1; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->outputs_count()); + + // required uint32 inputs_count = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->inputs_count()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + // optional string coin_name = 3 [default = "Bitcoin"]; + if (has_coin_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->coin_name()); + } + + if (_has_bits_[0 / 32] & 248u) { + // optional uint32 lock_time = 5 [default = 0]; + if (has_lock_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->lock_time()); + } + + // optional uint32 expiry = 6; + if (has_expiry()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->expiry()); + } + + // optional bool overwintered = 7; + if (has_overwintered()) { + total_size += 1 + 1; + } + + // optional uint32 version_group_id = 8; + if (has_version_group_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version_group_id()); + } + + // optional uint32 timestamp = 9; + if (has_timestamp()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->timestamp()); + } + + } + if (_has_bits_[8 / 32] & 768u) { + // optional uint32 branch_id = 10; + if (has_branch_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->branch_id()); + } + + // optional uint32 version = 4 [default = 1]; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SignTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.SignTx) + GOOGLE_DCHECK_NE(&from, this); + const SignTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.SignTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.SignTx) + MergeFrom(*source); + } +} + +void SignTx::MergeFrom(const SignTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.SignTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_coin_name(); + coin_name_.AssignWithDefault(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get(), from.coin_name_); + } + if (cached_has_bits & 0x00000002u) { + outputs_count_ = from.outputs_count_; + } + if (cached_has_bits & 0x00000004u) { + inputs_count_ = from.inputs_count_; + } + if (cached_has_bits & 0x00000008u) { + lock_time_ = from.lock_time_; + } + if (cached_has_bits & 0x00000010u) { + expiry_ = from.expiry_; + } + if (cached_has_bits & 0x00000020u) { + overwintered_ = from.overwintered_; + } + if (cached_has_bits & 0x00000040u) { + version_group_id_ = from.version_group_id_; + } + if (cached_has_bits & 0x00000080u) { + timestamp_ = from.timestamp_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 768u) { + if (cached_has_bits & 0x00000100u) { + branch_id_ = from.branch_id_; + } + if (cached_has_bits & 0x00000200u) { + version_ = from.version_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void SignTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.SignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SignTx::CopyFrom(const SignTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.SignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SignTx::IsInitialized() const { + if ((_has_bits_[0] & 0x00000006) != 0x00000006) return false; + return true; +} + +void SignTx::Swap(SignTx* other) { + if (other == this) return; + InternalSwap(other); +} +void SignTx::InternalSwap(SignTx* other) { + using std::swap; + coin_name_.Swap(&other->coin_name_, &::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get(), + GetArenaNoVirtual()); + swap(outputs_count_, other->outputs_count_); + swap(inputs_count_, other->inputs_count_); + swap(lock_time_, other->lock_time_); + swap(expiry_, other->expiry_); + swap(overwintered_, other->overwintered_); + swap(version_group_id_, other->version_group_id_); + swap(timestamp_, other->timestamp_); + swap(branch_id_, other->branch_id_); + swap(version_, other->version_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata SignTx::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TxRequest_TxRequestDetailsType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TxRequest_TxRequestDetailsType::kRequestIndexFieldNumber; +const int TxRequest_TxRequestDetailsType::kTxHashFieldNumber; +const int TxRequest_TxRequestDetailsType::kExtraDataLenFieldNumber; +const int TxRequest_TxRequestDetailsType::kExtraDataOffsetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TxRequest_TxRequestDetailsType::TxRequest_TxRequestDetailsType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxRequest_TxRequestDetailsType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) +} +TxRequest_TxRequestDetailsType::TxRequest_TxRequestDetailsType(const TxRequest_TxRequestDetailsType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tx_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_hash()) { + tx_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_hash_); + } + ::memcpy(&request_index_, &from.request_index_, + static_cast(reinterpret_cast(&extra_data_offset_) - + reinterpret_cast(&request_index_)) + sizeof(extra_data_offset_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) +} + +void TxRequest_TxRequestDetailsType::SharedCtor() { + tx_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&request_index_, 0, static_cast( + reinterpret_cast(&extra_data_offset_) - + reinterpret_cast(&request_index_)) + sizeof(extra_data_offset_)); +} + +TxRequest_TxRequestDetailsType::~TxRequest_TxRequestDetailsType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + SharedDtor(); +} + +void TxRequest_TxRequestDetailsType::SharedDtor() { + tx_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TxRequest_TxRequestDetailsType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TxRequest_TxRequestDetailsType::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TxRequest_TxRequestDetailsType& TxRequest_TxRequestDetailsType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_TxRequest_TxRequestDetailsType.base); + return *internal_default_instance(); +} + + +void TxRequest_TxRequestDetailsType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + tx_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 14u) { + ::memset(&request_index_, 0, static_cast( + reinterpret_cast(&extra_data_offset_) - + reinterpret_cast(&request_index_)) + sizeof(extra_data_offset_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TxRequest_TxRequestDetailsType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 request_index = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_request_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &request_index_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_hash = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 extra_data_len = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_extra_data_len(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &extra_data_len_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 extra_data_offset = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_extra_data_offset(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &extra_data_offset_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + return false; +#undef DO_ +} + +void TxRequest_TxRequestDetailsType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 request_index = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->request_index(), output); + } + + // optional bytes tx_hash = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->tx_hash(), output); + } + + // optional uint32 extra_data_len = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->extra_data_len(), output); + } + + // optional uint32 extra_data_offset = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->extra_data_offset(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) +} + +::google::protobuf::uint8* TxRequest_TxRequestDetailsType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 request_index = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->request_index(), target); + } + + // optional bytes tx_hash = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->tx_hash(), target); + } + + // optional uint32 extra_data_len = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->extra_data_len(), target); + } + + // optional uint32 extra_data_offset = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->extra_data_offset(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + return target; +} + +size_t TxRequest_TxRequestDetailsType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional bytes tx_hash = 2; + if (has_tx_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_hash()); + } + + // optional uint32 request_index = 1; + if (has_request_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->request_index()); + } + + // optional uint32 extra_data_len = 3; + if (has_extra_data_len()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->extra_data_len()); + } + + // optional uint32 extra_data_offset = 4; + if (has_extra_data_offset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->extra_data_offset()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TxRequest_TxRequestDetailsType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + GOOGLE_DCHECK_NE(&from, this); + const TxRequest_TxRequestDetailsType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + MergeFrom(*source); + } +} + +void TxRequest_TxRequestDetailsType::MergeFrom(const TxRequest_TxRequestDetailsType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_tx_hash(); + tx_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_hash_); + } + if (cached_has_bits & 0x00000002u) { + request_index_ = from.request_index_; + } + if (cached_has_bits & 0x00000004u) { + extra_data_len_ = from.extra_data_len_; + } + if (cached_has_bits & 0x00000008u) { + extra_data_offset_ = from.extra_data_offset_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TxRequest_TxRequestDetailsType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TxRequest_TxRequestDetailsType::CopyFrom(const TxRequest_TxRequestDetailsType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TxRequest_TxRequestDetailsType::IsInitialized() const { + return true; +} + +void TxRequest_TxRequestDetailsType::Swap(TxRequest_TxRequestDetailsType* other) { + if (other == this) return; + InternalSwap(other); +} +void TxRequest_TxRequestDetailsType::InternalSwap(TxRequest_TxRequestDetailsType* other) { + using std::swap; + tx_hash_.Swap(&other->tx_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(request_index_, other->request_index_); + swap(extra_data_len_, other->extra_data_len_); + swap(extra_data_offset_, other->extra_data_offset_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TxRequest_TxRequestDetailsType::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TxRequest_TxRequestSerializedType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TxRequest_TxRequestSerializedType::kSignatureIndexFieldNumber; +const int TxRequest_TxRequestSerializedType::kSignatureFieldNumber; +const int TxRequest_TxRequestSerializedType::kSerializedTxFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TxRequest_TxRequestSerializedType::TxRequest_TxRequestSerializedType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxRequest_TxRequestSerializedType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) +} +TxRequest_TxRequestSerializedType::TxRequest_TxRequestSerializedType(const TxRequest_TxRequestSerializedType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + serialized_tx_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_serialized_tx()) { + serialized_tx_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialized_tx_); + } + signature_index_ = from.signature_index_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) +} + +void TxRequest_TxRequestSerializedType::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + serialized_tx_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_index_ = 0u; +} + +TxRequest_TxRequestSerializedType::~TxRequest_TxRequestSerializedType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + SharedDtor(); +} + +void TxRequest_TxRequestSerializedType::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + serialized_tx_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TxRequest_TxRequestSerializedType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TxRequest_TxRequestSerializedType::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TxRequest_TxRequestSerializedType& TxRequest_TxRequestSerializedType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_TxRequest_TxRequestSerializedType.base); + return *internal_default_instance(); +} + + +void TxRequest_TxRequestSerializedType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + serialized_tx_.ClearNonDefaultToEmptyNoArena(); + } + } + signature_index_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TxRequest_TxRequestSerializedType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 signature_index = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_signature_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &signature_index_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes serialized_tx = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_serialized_tx())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + return false; +#undef DO_ +} + +void TxRequest_TxRequestSerializedType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 signature_index = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->signature_index(), output); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->signature(), output); + } + + // optional bytes serialized_tx = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->serialized_tx(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) +} + +::google::protobuf::uint8* TxRequest_TxRequestSerializedType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 signature_index = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->signature_index(), target); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->signature(), target); + } + + // optional bytes serialized_tx = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->serialized_tx(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + return target; +} + +size_t TxRequest_TxRequestSerializedType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes signature = 2; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional bytes serialized_tx = 3; + if (has_serialized_tx()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->serialized_tx()); + } + + // optional uint32 signature_index = 1; + if (has_signature_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->signature_index()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TxRequest_TxRequestSerializedType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + GOOGLE_DCHECK_NE(&from, this); + const TxRequest_TxRequestSerializedType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + MergeFrom(*source); + } +} + +void TxRequest_TxRequestSerializedType::MergeFrom(const TxRequest_TxRequestSerializedType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000002u) { + set_has_serialized_tx(); + serialized_tx_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialized_tx_); + } + if (cached_has_bits & 0x00000004u) { + signature_index_ = from.signature_index_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TxRequest_TxRequestSerializedType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TxRequest_TxRequestSerializedType::CopyFrom(const TxRequest_TxRequestSerializedType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TxRequest_TxRequestSerializedType::IsInitialized() const { + return true; +} + +void TxRequest_TxRequestSerializedType::Swap(TxRequest_TxRequestSerializedType* other) { + if (other == this) return; + InternalSwap(other); +} +void TxRequest_TxRequestSerializedType::InternalSwap(TxRequest_TxRequestSerializedType* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + serialized_tx_.Swap(&other->serialized_tx_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(signature_index_, other->signature_index_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TxRequest_TxRequestSerializedType::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TxRequest::InitAsDefaultInstance() { + ::hw::trezor::messages::bitcoin::_TxRequest_default_instance_._instance.get_mutable()->details_ = const_cast< ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType*>( + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType::internal_default_instance()); + ::hw::trezor::messages::bitcoin::_TxRequest_default_instance_._instance.get_mutable()->serialized_ = const_cast< ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType*>( + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TxRequest::kRequestTypeFieldNumber; +const int TxRequest::kDetailsFieldNumber; +const int TxRequest::kSerializedFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TxRequest::TxRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.TxRequest) +} +TxRequest::TxRequest(const TxRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_details()) { + details_ = new ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType(*from.details_); + } else { + details_ = NULL; + } + if (from.has_serialized()) { + serialized_ = new ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType(*from.serialized_); + } else { + serialized_ = NULL; + } + request_type_ = from.request_type_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.TxRequest) +} + +void TxRequest::SharedCtor() { + ::memset(&details_, 0, static_cast( + reinterpret_cast(&request_type_) - + reinterpret_cast(&details_)) + sizeof(request_type_)); +} + +TxRequest::~TxRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.TxRequest) + SharedDtor(); +} + +void TxRequest::SharedDtor() { + if (this != internal_default_instance()) delete details_; + if (this != internal_default_instance()) delete serialized_; +} + +void TxRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TxRequest::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TxRequest& TxRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_TxRequest.base); + return *internal_default_instance(); +} + + +void TxRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.TxRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(details_ != NULL); + details_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(serialized_ != NULL); + serialized_->Clear(); + } + } + request_type_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TxRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.TxRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.bitcoin.TxRequest.RequestType request_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::bitcoin::TxRequest_RequestType_IsValid(value)) { + set_request_type(static_cast< ::hw::trezor::messages::bitcoin::TxRequest_RequestType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType details = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_details())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType serialized = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_serialized())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.TxRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.TxRequest) + return false; +#undef DO_ +} + +void TxRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.TxRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.bitcoin.TxRequest.RequestType request_type = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->request_type(), output); + } + + // optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType details = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_details(), output); + } + + // optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType serialized = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_serialized(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.TxRequest) +} + +::google::protobuf::uint8* TxRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.TxRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.bitcoin.TxRequest.RequestType request_type = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->request_type(), target); + } + + // optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType details = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_details(), deterministic, target); + } + + // optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType serialized = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_serialized(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.TxRequest) + return target; +} + +size_t TxRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.TxRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType details = 2; + if (has_details()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *details_); + } + + // optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType serialized = 3; + if (has_serialized()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *serialized_); + } + + // optional .hw.trezor.messages.bitcoin.TxRequest.RequestType request_type = 1; + if (has_request_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->request_type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TxRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.TxRequest) + GOOGLE_DCHECK_NE(&from, this); + const TxRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.TxRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.TxRequest) + MergeFrom(*source); + } +} + +void TxRequest::MergeFrom(const TxRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.TxRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + mutable_details()->::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType::MergeFrom(from.details()); + } + if (cached_has_bits & 0x00000002u) { + mutable_serialized()->::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType::MergeFrom(from.serialized()); + } + if (cached_has_bits & 0x00000004u) { + request_type_ = from.request_type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TxRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.TxRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TxRequest::CopyFrom(const TxRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.TxRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TxRequest::IsInitialized() const { + return true; +} + +void TxRequest::Swap(TxRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TxRequest::InternalSwap(TxRequest* other) { + using std::swap; + swap(details_, other->details_); + swap(serialized_, other->serialized_); + swap(request_type_, other->request_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TxRequest::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TxAck_TransactionType_TxInputType::InitAsDefaultInstance() { + ::hw::trezor::messages::bitcoin::_TxAck_TransactionType_TxInputType_default_instance_._instance.get_mutable()->multisig_ = const_cast< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType*>( + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TxAck_TransactionType_TxInputType::kAddressNFieldNumber; +const int TxAck_TransactionType_TxInputType::kPrevHashFieldNumber; +const int TxAck_TransactionType_TxInputType::kPrevIndexFieldNumber; +const int TxAck_TransactionType_TxInputType::kScriptSigFieldNumber; +const int TxAck_TransactionType_TxInputType::kSequenceFieldNumber; +const int TxAck_TransactionType_TxInputType::kScriptTypeFieldNumber; +const int TxAck_TransactionType_TxInputType::kMultisigFieldNumber; +const int TxAck_TransactionType_TxInputType::kAmountFieldNumber; +const int TxAck_TransactionType_TxInputType::kDecredTreeFieldNumber; +const int TxAck_TransactionType_TxInputType::kDecredScriptVersionFieldNumber; +const int TxAck_TransactionType_TxInputType::kPrevBlockHashBip115FieldNumber; +const int TxAck_TransactionType_TxInputType::kPrevBlockHeightBip115FieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TxAck_TransactionType_TxInputType::TxAck_TransactionType_TxInputType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType_TxInputType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) +} +TxAck_TransactionType_TxInputType::TxAck_TransactionType_TxInputType(const TxAck_TransactionType_TxInputType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + prev_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_prev_hash()) { + prev_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.prev_hash_); + } + script_sig_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_script_sig()) { + script_sig_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.script_sig_); + } + prev_block_hash_bip115_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_prev_block_hash_bip115()) { + prev_block_hash_bip115_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.prev_block_hash_bip115_); + } + if (from.has_multisig()) { + multisig_ = new ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType(*from.multisig_); + } else { + multisig_ = NULL; + } + ::memcpy(&prev_index_, &from.prev_index_, + static_cast(reinterpret_cast(&sequence_) - + reinterpret_cast(&prev_index_)) + sizeof(sequence_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) +} + +void TxAck_TransactionType_TxInputType::SharedCtor() { + prev_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + script_sig_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + prev_block_hash_bip115_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&multisig_, 0, static_cast( + reinterpret_cast(&prev_block_height_bip115_) - + reinterpret_cast(&multisig_)) + sizeof(prev_block_height_bip115_)); + sequence_ = 4294967295u; +} + +TxAck_TransactionType_TxInputType::~TxAck_TransactionType_TxInputType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + SharedDtor(); +} + +void TxAck_TransactionType_TxInputType::SharedDtor() { + prev_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + script_sig_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + prev_block_hash_bip115_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete multisig_; +} + +void TxAck_TransactionType_TxInputType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TxAck_TransactionType_TxInputType::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TxAck_TransactionType_TxInputType& TxAck_TransactionType_TxInputType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType_TxInputType.base); + return *internal_default_instance(); +} + + +void TxAck_TransactionType_TxInputType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + prev_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + script_sig_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + prev_block_hash_bip115_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(multisig_ != NULL); + multisig_->Clear(); + } + } + if (cached_has_bits & 240u) { + ::memset(&prev_index_, 0, static_cast( + reinterpret_cast(&decred_tree_) - + reinterpret_cast(&prev_index_)) + sizeof(decred_tree_)); + } + if (cached_has_bits & 1792u) { + ::memset(&decred_script_version_, 0, static_cast( + reinterpret_cast(&prev_block_height_bip115_) - + reinterpret_cast(&decred_script_version_)) + sizeof(prev_block_height_bip115_)); + sequence_ = 4294967295u; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TxAck_TransactionType_TxInputType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // required bytes prev_hash = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_prev_hash())); + } else { + goto handle_unusual; + } + break; + } + + // required uint32 prev_index = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_prev_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &prev_index_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes script_sig = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_script_sig())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 sequence = 5 [default = 4294967295]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_sequence(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &sequence_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 6 [default = SPENDADDRESS]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::bitcoin::InputScriptType_IsValid(value)) { + set_script_type(static_cast< ::hw::trezor::messages::bitcoin::InputScriptType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 6, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_multisig())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 amount = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 decred_tree = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_decred_tree(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &decred_tree_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 decred_script_version = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_decred_script_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &decred_script_version_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes prev_block_hash_bip115 = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_prev_block_hash_bip115())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 prev_block_height_bip115 = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { + set_has_prev_block_height_bip115(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &prev_block_height_bip115_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + return false; +#undef DO_ +} + +void TxAck_TransactionType_TxInputType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // required bytes prev_hash = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->prev_hash(), output); + } + + // required uint32 prev_index = 3; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->prev_index(), output); + } + + // optional bytes script_sig = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->script_sig(), output); + } + + // optional uint32 sequence = 5 [default = 4294967295]; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->sequence(), output); + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 6 [default = SPENDADDRESS]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 6, this->script_type(), output); + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 7; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->_internal_multisig(), output); + } + + // optional uint64 amount = 8; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->amount(), output); + } + + // optional uint32 decred_tree = 9; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->decred_tree(), output); + } + + // optional uint32 decred_script_version = 10; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->decred_script_version(), output); + } + + // optional bytes prev_block_hash_bip115 = 11; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 11, this->prev_block_hash_bip115(), output); + } + + // optional uint32 prev_block_height_bip115 = 12; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->prev_block_height_bip115(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) +} + +::google::protobuf::uint8* TxAck_TransactionType_TxInputType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // required bytes prev_hash = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->prev_hash(), target); + } + + // required uint32 prev_index = 3; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->prev_index(), target); + } + + // optional bytes script_sig = 4; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->script_sig(), target); + } + + // optional uint32 sequence = 5 [default = 4294967295]; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->sequence(), target); + } + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 6 [default = SPENDADDRESS]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 6, this->script_type(), target); + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 7; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->_internal_multisig(), deterministic, target); + } + + // optional uint64 amount = 8; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->amount(), target); + } + + // optional uint32 decred_tree = 9; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->decred_tree(), target); + } + + // optional uint32 decred_script_version = 10; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->decred_script_version(), target); + } + + // optional bytes prev_block_hash_bip115 = 11; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 11, this->prev_block_hash_bip115(), target); + } + + // optional uint32 prev_block_height_bip115 = 12; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->prev_block_height_bip115(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + return target; +} + +size_t TxAck_TransactionType_TxInputType::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + size_t total_size = 0; + + if (has_prev_hash()) { + // required bytes prev_hash = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->prev_hash()); + } + + if (has_prev_index()) { + // required uint32 prev_index = 3; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->prev_index()); + } + + return total_size; +} +size_t TxAck_TransactionType_TxInputType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (((_has_bits_[0] & 0x00000011) ^ 0x00000011) == 0) { // All required fields are present. + // required bytes prev_hash = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->prev_hash()); + + // required uint32 prev_index = 3; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->prev_index()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 14u) { + // optional bytes script_sig = 4; + if (has_script_sig()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->script_sig()); + } + + // optional bytes prev_block_hash_bip115 = 11; + if (has_prev_block_hash_bip115()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->prev_block_hash_bip115()); + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 7; + if (has_multisig()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *multisig_); + } + + } + if (_has_bits_[0 / 32] & 224u) { + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 6 [default = SPENDADDRESS]; + if (has_script_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->script_type()); + } + + // optional uint64 amount = 8; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + // optional uint32 decred_tree = 9; + if (has_decred_tree()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->decred_tree()); + } + + } + if (_has_bits_[8 / 32] & 1792u) { + // optional uint32 decred_script_version = 10; + if (has_decred_script_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->decred_script_version()); + } + + // optional uint32 prev_block_height_bip115 = 12; + if (has_prev_block_height_bip115()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->prev_block_height_bip115()); + } + + // optional uint32 sequence = 5 [default = 4294967295]; + if (has_sequence()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->sequence()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TxAck_TransactionType_TxInputType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + GOOGLE_DCHECK_NE(&from, this); + const TxAck_TransactionType_TxInputType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + MergeFrom(*source); + } +} + +void TxAck_TransactionType_TxInputType::MergeFrom(const TxAck_TransactionType_TxInputType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_prev_hash(); + prev_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.prev_hash_); + } + if (cached_has_bits & 0x00000002u) { + set_has_script_sig(); + script_sig_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.script_sig_); + } + if (cached_has_bits & 0x00000004u) { + set_has_prev_block_hash_bip115(); + prev_block_hash_bip115_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.prev_block_hash_bip115_); + } + if (cached_has_bits & 0x00000008u) { + mutable_multisig()->::hw::trezor::messages::bitcoin::MultisigRedeemScriptType::MergeFrom(from.multisig()); + } + if (cached_has_bits & 0x00000010u) { + prev_index_ = from.prev_index_; + } + if (cached_has_bits & 0x00000020u) { + script_type_ = from.script_type_; + } + if (cached_has_bits & 0x00000040u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000080u) { + decred_tree_ = from.decred_tree_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 1792u) { + if (cached_has_bits & 0x00000100u) { + decred_script_version_ = from.decred_script_version_; + } + if (cached_has_bits & 0x00000200u) { + prev_block_height_bip115_ = from.prev_block_height_bip115_; + } + if (cached_has_bits & 0x00000400u) { + sequence_ = from.sequence_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TxAck_TransactionType_TxInputType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TxAck_TransactionType_TxInputType::CopyFrom(const TxAck_TransactionType_TxInputType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TxAck_TransactionType_TxInputType::IsInitialized() const { + if ((_has_bits_[0] & 0x00000011) != 0x00000011) return false; + if (has_multisig()) { + if (!this->multisig_->IsInitialized()) return false; + } + return true; +} + +void TxAck_TransactionType_TxInputType::Swap(TxAck_TransactionType_TxInputType* other) { + if (other == this) return; + InternalSwap(other); +} +void TxAck_TransactionType_TxInputType::InternalSwap(TxAck_TransactionType_TxInputType* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + prev_hash_.Swap(&other->prev_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + script_sig_.Swap(&other->script_sig_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + prev_block_hash_bip115_.Swap(&other->prev_block_hash_bip115_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(multisig_, other->multisig_); + swap(prev_index_, other->prev_index_); + swap(script_type_, other->script_type_); + swap(amount_, other->amount_); + swap(decred_tree_, other->decred_tree_); + swap(decred_script_version_, other->decred_script_version_); + swap(prev_block_height_bip115_, other->prev_block_height_bip115_); + swap(sequence_, other->sequence_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TxAck_TransactionType_TxInputType::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TxAck_TransactionType_TxOutputBinType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TxAck_TransactionType_TxOutputBinType::kAmountFieldNumber; +const int TxAck_TransactionType_TxOutputBinType::kScriptPubkeyFieldNumber; +const int TxAck_TransactionType_TxOutputBinType::kDecredScriptVersionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TxAck_TransactionType_TxOutputBinType::TxAck_TransactionType_TxOutputBinType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType_TxOutputBinType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) +} +TxAck_TransactionType_TxOutputBinType::TxAck_TransactionType_TxOutputBinType(const TxAck_TransactionType_TxOutputBinType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + script_pubkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_script_pubkey()) { + script_pubkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.script_pubkey_); + } + ::memcpy(&amount_, &from.amount_, + static_cast(reinterpret_cast(&decred_script_version_) - + reinterpret_cast(&amount_)) + sizeof(decred_script_version_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) +} + +void TxAck_TransactionType_TxOutputBinType::SharedCtor() { + script_pubkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&decred_script_version_) - + reinterpret_cast(&amount_)) + sizeof(decred_script_version_)); +} + +TxAck_TransactionType_TxOutputBinType::~TxAck_TransactionType_TxOutputBinType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + SharedDtor(); +} + +void TxAck_TransactionType_TxOutputBinType::SharedDtor() { + script_pubkey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TxAck_TransactionType_TxOutputBinType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TxAck_TransactionType_TxOutputBinType::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TxAck_TransactionType_TxOutputBinType& TxAck_TransactionType_TxOutputBinType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType_TxOutputBinType.base); + return *internal_default_instance(); +} + + +void TxAck_TransactionType_TxOutputBinType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + script_pubkey_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 6u) { + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&decred_script_version_) - + reinterpret_cast(&amount_)) + sizeof(decred_script_version_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TxAck_TransactionType_TxOutputBinType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint64 amount = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // required bytes script_pubkey = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_script_pubkey())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 decred_script_version = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_decred_script_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &decred_script_version_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + return false; +#undef DO_ +} + +void TxAck_TransactionType_TxOutputBinType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint64 amount = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->amount(), output); + } + + // required bytes script_pubkey = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->script_pubkey(), output); + } + + // optional uint32 decred_script_version = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->decred_script_version(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) +} + +::google::protobuf::uint8* TxAck_TransactionType_TxOutputBinType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint64 amount = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->amount(), target); + } + + // required bytes script_pubkey = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->script_pubkey(), target); + } + + // optional uint32 decred_script_version = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->decred_script_version(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + return target; +} + +size_t TxAck_TransactionType_TxOutputBinType::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + size_t total_size = 0; + + if (has_script_pubkey()) { + // required bytes script_pubkey = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->script_pubkey()); + } + + if (has_amount()) { + // required uint64 amount = 1; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + return total_size; +} +size_t TxAck_TransactionType_TxOutputBinType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required bytes script_pubkey = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->script_pubkey()); + + // required uint64 amount = 1; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + // optional uint32 decred_script_version = 3; + if (has_decred_script_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->decred_script_version()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TxAck_TransactionType_TxOutputBinType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + GOOGLE_DCHECK_NE(&from, this); + const TxAck_TransactionType_TxOutputBinType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + MergeFrom(*source); + } +} + +void TxAck_TransactionType_TxOutputBinType::MergeFrom(const TxAck_TransactionType_TxOutputBinType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_script_pubkey(); + script_pubkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.script_pubkey_); + } + if (cached_has_bits & 0x00000002u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000004u) { + decred_script_version_ = from.decred_script_version_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TxAck_TransactionType_TxOutputBinType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TxAck_TransactionType_TxOutputBinType::CopyFrom(const TxAck_TransactionType_TxOutputBinType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TxAck_TransactionType_TxOutputBinType::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + return true; +} + +void TxAck_TransactionType_TxOutputBinType::Swap(TxAck_TransactionType_TxOutputBinType* other) { + if (other == this) return; + InternalSwap(other); +} +void TxAck_TransactionType_TxOutputBinType::InternalSwap(TxAck_TransactionType_TxOutputBinType* other) { + using std::swap; + script_pubkey_.Swap(&other->script_pubkey_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(amount_, other->amount_); + swap(decred_script_version_, other->decred_script_version_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TxAck_TransactionType_TxOutputBinType::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TxAck_TransactionType_TxOutputType::InitAsDefaultInstance() { + ::hw::trezor::messages::bitcoin::_TxAck_TransactionType_TxOutputType_default_instance_._instance.get_mutable()->multisig_ = const_cast< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType*>( + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TxAck_TransactionType_TxOutputType::kAddressFieldNumber; +const int TxAck_TransactionType_TxOutputType::kAddressNFieldNumber; +const int TxAck_TransactionType_TxOutputType::kAmountFieldNumber; +const int TxAck_TransactionType_TxOutputType::kScriptTypeFieldNumber; +const int TxAck_TransactionType_TxOutputType::kMultisigFieldNumber; +const int TxAck_TransactionType_TxOutputType::kOpReturnDataFieldNumber; +const int TxAck_TransactionType_TxOutputType::kDecredScriptVersionFieldNumber; +const int TxAck_TransactionType_TxOutputType::kBlockHashBip115FieldNumber; +const int TxAck_TransactionType_TxOutputType::kBlockHeightBip115FieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TxAck_TransactionType_TxOutputType::TxAck_TransactionType_TxOutputType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType_TxOutputType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) +} +TxAck_TransactionType_TxOutputType::TxAck_TransactionType_TxOutputType(const TxAck_TransactionType_TxOutputType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + op_return_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_op_return_data()) { + op_return_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.op_return_data_); + } + block_hash_bip115_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_block_hash_bip115()) { + block_hash_bip115_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.block_hash_bip115_); + } + if (from.has_multisig()) { + multisig_ = new ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType(*from.multisig_); + } else { + multisig_ = NULL; + } + ::memcpy(&amount_, &from.amount_, + static_cast(reinterpret_cast(&block_height_bip115_) - + reinterpret_cast(&amount_)) + sizeof(block_height_bip115_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) +} + +void TxAck_TransactionType_TxOutputType::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + op_return_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + block_hash_bip115_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&multisig_, 0, static_cast( + reinterpret_cast(&block_height_bip115_) - + reinterpret_cast(&multisig_)) + sizeof(block_height_bip115_)); +} + +TxAck_TransactionType_TxOutputType::~TxAck_TransactionType_TxOutputType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + SharedDtor(); +} + +void TxAck_TransactionType_TxOutputType::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + op_return_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + block_hash_bip115_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete multisig_; +} + +void TxAck_TransactionType_TxOutputType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TxAck_TransactionType_TxOutputType::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TxAck_TransactionType_TxOutputType& TxAck_TransactionType_TxOutputType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType_TxOutputType.base); + return *internal_default_instance(); +} + + +void TxAck_TransactionType_TxOutputType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + op_return_data_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + block_hash_bip115_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(multisig_ != NULL); + multisig_->Clear(); + } + } + if (cached_has_bits & 240u) { + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&block_height_bip115_) - + reinterpret_cast(&amount_)) + sizeof(block_height_bip115_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TxAck_TransactionType_TxOutputType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address"); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 address_n = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 16u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // required uint64 amount = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // required .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.OutputScriptType script_type = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType_OutputScriptType_IsValid(value)) { + set_script_type(static_cast< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType_OutputScriptType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 4, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_multisig())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes op_return_data = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_op_return_data())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 decred_script_version = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_decred_script_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &decred_script_version_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes block_hash_bip115 = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_block_hash_bip115())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 block_height_bip115 = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_block_height_bip115(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &block_height_bip115_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + return false; +#undef DO_ +} + +void TxAck_TransactionType_TxOutputType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + // repeated uint32 address_n = 2; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 2, this->address_n(i), output); + } + + // required uint64 amount = 3; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->amount(), output); + } + + // required .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.OutputScriptType script_type = 4; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->script_type(), output); + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 5; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->_internal_multisig(), output); + } + + // optional bytes op_return_data = 6; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->op_return_data(), output); + } + + // optional uint32 decred_script_version = 7; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->decred_script_version(), output); + } + + // optional bytes block_hash_bip115 = 8; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 8, this->block_hash_bip115(), output); + } + + // optional uint32 block_height_bip115 = 9; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->block_height_bip115(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) +} + +::google::protobuf::uint8* TxAck_TransactionType_TxOutputType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + // repeated uint32 address_n = 2; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(2, this->address_n_, target); + + // required uint64 amount = 3; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->amount(), target); + } + + // required .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.OutputScriptType script_type = 4; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->script_type(), target); + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 5; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->_internal_multisig(), deterministic, target); + } + + // optional bytes op_return_data = 6; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->op_return_data(), target); + } + + // optional uint32 decred_script_version = 7; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->decred_script_version(), target); + } + + // optional bytes block_hash_bip115 = 8; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 8, this->block_hash_bip115(), target); + } + + // optional uint32 block_height_bip115 = 9; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->block_height_bip115(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + return target; +} + +size_t TxAck_TransactionType_TxOutputType::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + size_t total_size = 0; + + if (has_amount()) { + // required uint64 amount = 3; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + if (has_script_type()) { + // required .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.OutputScriptType script_type = 4; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->script_type()); + } + + return total_size; +} +size_t TxAck_TransactionType_TxOutputType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (((_has_bits_[0] & 0x00000030) ^ 0x00000030) == 0) { // All required fields are present. + // required uint64 amount = 3; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + + // required .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.OutputScriptType script_type = 4; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->script_type()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + // repeated uint32 address_n = 2; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 15u) { + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + // optional bytes op_return_data = 6; + if (has_op_return_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->op_return_data()); + } + + // optional bytes block_hash_bip115 = 8; + if (has_block_hash_bip115()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->block_hash_bip115()); + } + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 5; + if (has_multisig()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *multisig_); + } + + } + if (_has_bits_[0 / 32] & 192u) { + // optional uint32 decred_script_version = 7; + if (has_decred_script_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->decred_script_version()); + } + + // optional uint32 block_height_bip115 = 9; + if (has_block_height_bip115()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->block_height_bip115()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TxAck_TransactionType_TxOutputType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + GOOGLE_DCHECK_NE(&from, this); + const TxAck_TransactionType_TxOutputType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + MergeFrom(*source); + } +} + +void TxAck_TransactionType_TxOutputType::MergeFrom(const TxAck_TransactionType_TxOutputType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + if (cached_has_bits & 0x00000002u) { + set_has_op_return_data(); + op_return_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.op_return_data_); + } + if (cached_has_bits & 0x00000004u) { + set_has_block_hash_bip115(); + block_hash_bip115_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.block_hash_bip115_); + } + if (cached_has_bits & 0x00000008u) { + mutable_multisig()->::hw::trezor::messages::bitcoin::MultisigRedeemScriptType::MergeFrom(from.multisig()); + } + if (cached_has_bits & 0x00000010u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000020u) { + script_type_ = from.script_type_; + } + if (cached_has_bits & 0x00000040u) { + decred_script_version_ = from.decred_script_version_; + } + if (cached_has_bits & 0x00000080u) { + block_height_bip115_ = from.block_height_bip115_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TxAck_TransactionType_TxOutputType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TxAck_TransactionType_TxOutputType::CopyFrom(const TxAck_TransactionType_TxOutputType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TxAck_TransactionType_TxOutputType::IsInitialized() const { + if ((_has_bits_[0] & 0x00000030) != 0x00000030) return false; + if (has_multisig()) { + if (!this->multisig_->IsInitialized()) return false; + } + return true; +} + +void TxAck_TransactionType_TxOutputType::Swap(TxAck_TransactionType_TxOutputType* other) { + if (other == this) return; + InternalSwap(other); +} +void TxAck_TransactionType_TxOutputType::InternalSwap(TxAck_TransactionType_TxOutputType* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + op_return_data_.Swap(&other->op_return_data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + block_hash_bip115_.Swap(&other->block_hash_bip115_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(multisig_, other->multisig_); + swap(amount_, other->amount_); + swap(script_type_, other->script_type_); + swap(decred_script_version_, other->decred_script_version_); + swap(block_height_bip115_, other->block_height_bip115_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TxAck_TransactionType_TxOutputType::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TxAck_TransactionType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TxAck_TransactionType::kVersionFieldNumber; +const int TxAck_TransactionType::kInputsFieldNumber; +const int TxAck_TransactionType::kBinOutputsFieldNumber; +const int TxAck_TransactionType::kLockTimeFieldNumber; +const int TxAck_TransactionType::kOutputsFieldNumber; +const int TxAck_TransactionType::kInputsCntFieldNumber; +const int TxAck_TransactionType::kOutputsCntFieldNumber; +const int TxAck_TransactionType::kExtraDataFieldNumber; +const int TxAck_TransactionType::kExtraDataLenFieldNumber; +const int TxAck_TransactionType::kExpiryFieldNumber; +const int TxAck_TransactionType::kOverwinteredFieldNumber; +const int TxAck_TransactionType::kVersionGroupIdFieldNumber; +const int TxAck_TransactionType::kTimestampFieldNumber; +const int TxAck_TransactionType::kBranchIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TxAck_TransactionType::TxAck_TransactionType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.TxAck.TransactionType) +} +TxAck_TransactionType::TxAck_TransactionType(const TxAck_TransactionType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + inputs_(from.inputs_), + bin_outputs_(from.bin_outputs_), + outputs_(from.outputs_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + extra_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_extra_data()) { + extra_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extra_data_); + } + ::memcpy(&version_, &from.version_, + static_cast(reinterpret_cast(&branch_id_) - + reinterpret_cast(&version_)) + sizeof(branch_id_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.TxAck.TransactionType) +} + +void TxAck_TransactionType::SharedCtor() { + extra_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&version_, 0, static_cast( + reinterpret_cast(&branch_id_) - + reinterpret_cast(&version_)) + sizeof(branch_id_)); +} + +TxAck_TransactionType::~TxAck_TransactionType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.TxAck.TransactionType) + SharedDtor(); +} + +void TxAck_TransactionType::SharedDtor() { + extra_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TxAck_TransactionType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TxAck_TransactionType::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TxAck_TransactionType& TxAck_TransactionType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck_TransactionType.base); + return *internal_default_instance(); +} + + +void TxAck_TransactionType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.TxAck.TransactionType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + inputs_.Clear(); + bin_outputs_.Clear(); + outputs_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + extra_data_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 254u) { + ::memset(&version_, 0, static_cast( + reinterpret_cast(&overwintered_) - + reinterpret_cast(&version_)) + sizeof(overwintered_)); + } + if (cached_has_bits & 1792u) { + ::memset(&version_group_id_, 0, static_cast( + reinterpret_cast(&branch_id_) - + reinterpret_cast(&version_group_id_)) + sizeof(branch_id_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TxAck_TransactionType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.TxAck.TransactionType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 version = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType inputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType bin_outputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_bin_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 lock_time = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_lock_time(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &lock_time_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType outputs = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 inputs_cnt = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_inputs_cnt(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &inputs_cnt_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 outputs_cnt = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_outputs_cnt(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &outputs_cnt_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes extra_data = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_extra_data())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 extra_data_len = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_extra_data_len(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &extra_data_len_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 expiry = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_expiry(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &expiry_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool overwintered = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { + set_has_overwintered(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &overwintered_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 version_group_id = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { + set_has_version_group_id(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_group_id_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 timestamp = 13; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { + set_has_timestamp(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, ×tamp_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 branch_id = 14; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { + set_has_branch_id(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &branch_id_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.TxAck.TransactionType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.TxAck.TransactionType) + return false; +#undef DO_ +} + +void TxAck_TransactionType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.TxAck.TransactionType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 version = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->version(), output); + } + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType inputs = 2; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->inputs(static_cast(i)), + output); + } + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType bin_outputs = 3; + for (unsigned int i = 0, + n = static_cast(this->bin_outputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->bin_outputs(static_cast(i)), + output); + } + + // optional uint32 lock_time = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->lock_time(), output); + } + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType outputs = 5; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->outputs(static_cast(i)), + output); + } + + // optional uint32 inputs_cnt = 6; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->inputs_cnt(), output); + } + + // optional uint32 outputs_cnt = 7; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->outputs_cnt(), output); + } + + // optional bytes extra_data = 8; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 8, this->extra_data(), output); + } + + // optional uint32 extra_data_len = 9; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->extra_data_len(), output); + } + + // optional uint32 expiry = 10; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->expiry(), output); + } + + // optional bool overwintered = 11; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->overwintered(), output); + } + + // optional uint32 version_group_id = 12; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->version_group_id(), output); + } + + // optional uint32 timestamp = 13; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->timestamp(), output); + } + + // optional uint32 branch_id = 14; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->branch_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.TxAck.TransactionType) +} + +::google::protobuf::uint8* TxAck_TransactionType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.TxAck.TransactionType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 version = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->version(), target); + } + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType inputs = 2; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->inputs(static_cast(i)), deterministic, target); + } + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType bin_outputs = 3; + for (unsigned int i = 0, + n = static_cast(this->bin_outputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->bin_outputs(static_cast(i)), deterministic, target); + } + + // optional uint32 lock_time = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->lock_time(), target); + } + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType outputs = 5; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->outputs(static_cast(i)), deterministic, target); + } + + // optional uint32 inputs_cnt = 6; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->inputs_cnt(), target); + } + + // optional uint32 outputs_cnt = 7; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->outputs_cnt(), target); + } + + // optional bytes extra_data = 8; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 8, this->extra_data(), target); + } + + // optional uint32 extra_data_len = 9; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->extra_data_len(), target); + } + + // optional uint32 expiry = 10; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->expiry(), target); + } + + // optional bool overwintered = 11; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->overwintered(), target); + } + + // optional uint32 version_group_id = 12; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->version_group_id(), target); + } + + // optional uint32 timestamp = 13; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->timestamp(), target); + } + + // optional uint32 branch_id = 14; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->branch_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.TxAck.TransactionType) + return target; +} + +size_t TxAck_TransactionType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.TxAck.TransactionType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType inputs = 2; + { + unsigned int count = static_cast(this->inputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->inputs(static_cast(i))); + } + } + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType bin_outputs = 3; + { + unsigned int count = static_cast(this->bin_outputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->bin_outputs(static_cast(i))); + } + } + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType outputs = 5; + { + unsigned int count = static_cast(this->outputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->outputs(static_cast(i))); + } + } + + if (_has_bits_[0 / 32] & 255u) { + // optional bytes extra_data = 8; + if (has_extra_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->extra_data()); + } + + // optional uint32 version = 1; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version()); + } + + // optional uint32 lock_time = 4; + if (has_lock_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->lock_time()); + } + + // optional uint32 inputs_cnt = 6; + if (has_inputs_cnt()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->inputs_cnt()); + } + + // optional uint32 outputs_cnt = 7; + if (has_outputs_cnt()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->outputs_cnt()); + } + + // optional uint32 extra_data_len = 9; + if (has_extra_data_len()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->extra_data_len()); + } + + // optional uint32 expiry = 10; + if (has_expiry()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->expiry()); + } + + // optional bool overwintered = 11; + if (has_overwintered()) { + total_size += 1 + 1; + } + + } + if (_has_bits_[8 / 32] & 1792u) { + // optional uint32 version_group_id = 12; + if (has_version_group_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version_group_id()); + } + + // optional uint32 timestamp = 13; + if (has_timestamp()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->timestamp()); + } + + // optional uint32 branch_id = 14; + if (has_branch_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->branch_id()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TxAck_TransactionType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType) + GOOGLE_DCHECK_NE(&from, this); + const TxAck_TransactionType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.TxAck.TransactionType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.TxAck.TransactionType) + MergeFrom(*source); + } +} + +void TxAck_TransactionType::MergeFrom(const TxAck_TransactionType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + inputs_.MergeFrom(from.inputs_); + bin_outputs_.MergeFrom(from.bin_outputs_); + outputs_.MergeFrom(from.outputs_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_extra_data(); + extra_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extra_data_); + } + if (cached_has_bits & 0x00000002u) { + version_ = from.version_; + } + if (cached_has_bits & 0x00000004u) { + lock_time_ = from.lock_time_; + } + if (cached_has_bits & 0x00000008u) { + inputs_cnt_ = from.inputs_cnt_; + } + if (cached_has_bits & 0x00000010u) { + outputs_cnt_ = from.outputs_cnt_; + } + if (cached_has_bits & 0x00000020u) { + extra_data_len_ = from.extra_data_len_; + } + if (cached_has_bits & 0x00000040u) { + expiry_ = from.expiry_; + } + if (cached_has_bits & 0x00000080u) { + overwintered_ = from.overwintered_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 1792u) { + if (cached_has_bits & 0x00000100u) { + version_group_id_ = from.version_group_id_; + } + if (cached_has_bits & 0x00000200u) { + timestamp_ = from.timestamp_; + } + if (cached_has_bits & 0x00000400u) { + branch_id_ = from.branch_id_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TxAck_TransactionType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TxAck_TransactionType::CopyFrom(const TxAck_TransactionType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.TxAck.TransactionType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TxAck_TransactionType::IsInitialized() const { + if (!::google::protobuf::internal::AllAreInitialized(this->inputs())) return false; + if (!::google::protobuf::internal::AllAreInitialized(this->bin_outputs())) return false; + if (!::google::protobuf::internal::AllAreInitialized(this->outputs())) return false; + return true; +} + +void TxAck_TransactionType::Swap(TxAck_TransactionType* other) { + if (other == this) return; + InternalSwap(other); +} +void TxAck_TransactionType::InternalSwap(TxAck_TransactionType* other) { + using std::swap; + CastToBase(&inputs_)->InternalSwap(CastToBase(&other->inputs_)); + CastToBase(&bin_outputs_)->InternalSwap(CastToBase(&other->bin_outputs_)); + CastToBase(&outputs_)->InternalSwap(CastToBase(&other->outputs_)); + extra_data_.Swap(&other->extra_data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(version_, other->version_); + swap(lock_time_, other->lock_time_); + swap(inputs_cnt_, other->inputs_cnt_); + swap(outputs_cnt_, other->outputs_cnt_); + swap(extra_data_len_, other->extra_data_len_); + swap(expiry_, other->expiry_); + swap(overwintered_, other->overwintered_); + swap(version_group_id_, other->version_group_id_); + swap(timestamp_, other->timestamp_); + swap(branch_id_, other->branch_id_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TxAck_TransactionType::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TxAck::InitAsDefaultInstance() { + ::hw::trezor::messages::bitcoin::_TxAck_default_instance_._instance.get_mutable()->tx_ = const_cast< ::hw::trezor::messages::bitcoin::TxAck_TransactionType*>( + ::hw::trezor::messages::bitcoin::TxAck_TransactionType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TxAck::kTxFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TxAck::TxAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bitcoin.TxAck) +} +TxAck::TxAck(const TxAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_tx()) { + tx_ = new ::hw::trezor::messages::bitcoin::TxAck_TransactionType(*from.tx_); + } else { + tx_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bitcoin.TxAck) +} + +void TxAck::SharedCtor() { + tx_ = NULL; +} + +TxAck::~TxAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bitcoin.TxAck) + SharedDtor(); +} + +void TxAck::SharedDtor() { + if (this != internal_default_instance()) delete tx_; +} + +void TxAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TxAck::descriptor() { + ::protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TxAck& TxAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbitcoin_2eproto::scc_info_TxAck.base); + return *internal_default_instance(); +} + + +void TxAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bitcoin.TxAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(tx_ != NULL); + tx_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TxAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bitcoin.TxAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.bitcoin.TxAck.TransactionType tx = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_tx())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bitcoin.TxAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bitcoin.TxAck) + return false; +#undef DO_ +} + +void TxAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bitcoin.TxAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.bitcoin.TxAck.TransactionType tx = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_tx(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bitcoin.TxAck) +} + +::google::protobuf::uint8* TxAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bitcoin.TxAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.bitcoin.TxAck.TransactionType tx = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_tx(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bitcoin.TxAck) + return target; +} + +size_t TxAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bitcoin.TxAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional .hw.trezor.messages.bitcoin.TxAck.TransactionType tx = 1; + if (has_tx()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *tx_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TxAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bitcoin.TxAck) + GOOGLE_DCHECK_NE(&from, this); + const TxAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bitcoin.TxAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bitcoin.TxAck) + MergeFrom(*source); + } +} + +void TxAck::MergeFrom(const TxAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bitcoin.TxAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_tx()) { + mutable_tx()->::hw::trezor::messages::bitcoin::TxAck_TransactionType::MergeFrom(from.tx()); + } +} + +void TxAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bitcoin.TxAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TxAck::CopyFrom(const TxAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bitcoin.TxAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TxAck::IsInitialized() const { + if (has_tx()) { + if (!this->tx_->IsInitialized()) return false; + } + return true; +} + +void TxAck::Swap(TxAck* other) { + if (other == this) return; + InternalSwap(other); +} +void TxAck::InternalSwap(TxAck* other) { + using std::swap; + swap(tx_, other->tx_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TxAck::GetMetadata() const { + protobuf_messages_2dbitcoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbitcoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace bitcoin +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::GetPublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::GetPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::GetPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::PublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::PublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::PublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::GetAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::GetAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::GetAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::Address* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::Address >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::Address >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::SignMessage* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::SignMessage >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::SignMessage >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::MessageSignature* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::MessageSignature >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::MessageSignature >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::VerifyMessage* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::VerifyMessage >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::VerifyMessage >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::SignTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::SignTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::SignTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::TxRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::TxRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::TxRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::TxAck_TransactionType* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::TxAck_TransactionType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::TxAck_TransactionType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bitcoin::TxAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::bitcoin::TxAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bitcoin::TxAck >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-bitcoin.pb.h b/src/Core/hardware/trezor/protob/messages-bitcoin.pb.h new file mode 100644 index 00000000..dd1f282e --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-bitcoin.pb.h @@ -0,0 +1,7079 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-bitcoin.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dbitcoin_2eproto +#define PROTOBUF_INCLUDED_messages_2dbitcoin_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "messages-common.pb.h" +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dbitcoin_2eproto + +namespace protobuf_messages_2dbitcoin_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[18]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dbitcoin_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace bitcoin { +class Address; +class AddressDefaultTypeInternal; +extern AddressDefaultTypeInternal _Address_default_instance_; +class GetAddress; +class GetAddressDefaultTypeInternal; +extern GetAddressDefaultTypeInternal _GetAddress_default_instance_; +class GetPublicKey; +class GetPublicKeyDefaultTypeInternal; +extern GetPublicKeyDefaultTypeInternal _GetPublicKey_default_instance_; +class MessageSignature; +class MessageSignatureDefaultTypeInternal; +extern MessageSignatureDefaultTypeInternal _MessageSignature_default_instance_; +class MultisigRedeemScriptType; +class MultisigRedeemScriptTypeDefaultTypeInternal; +extern MultisigRedeemScriptTypeDefaultTypeInternal _MultisigRedeemScriptType_default_instance_; +class MultisigRedeemScriptType_HDNodePathType; +class MultisigRedeemScriptType_HDNodePathTypeDefaultTypeInternal; +extern MultisigRedeemScriptType_HDNodePathTypeDefaultTypeInternal _MultisigRedeemScriptType_HDNodePathType_default_instance_; +class PublicKey; +class PublicKeyDefaultTypeInternal; +extern PublicKeyDefaultTypeInternal _PublicKey_default_instance_; +class SignMessage; +class SignMessageDefaultTypeInternal; +extern SignMessageDefaultTypeInternal _SignMessage_default_instance_; +class SignTx; +class SignTxDefaultTypeInternal; +extern SignTxDefaultTypeInternal _SignTx_default_instance_; +class TxAck; +class TxAckDefaultTypeInternal; +extern TxAckDefaultTypeInternal _TxAck_default_instance_; +class TxAck_TransactionType; +class TxAck_TransactionTypeDefaultTypeInternal; +extern TxAck_TransactionTypeDefaultTypeInternal _TxAck_TransactionType_default_instance_; +class TxAck_TransactionType_TxInputType; +class TxAck_TransactionType_TxInputTypeDefaultTypeInternal; +extern TxAck_TransactionType_TxInputTypeDefaultTypeInternal _TxAck_TransactionType_TxInputType_default_instance_; +class TxAck_TransactionType_TxOutputBinType; +class TxAck_TransactionType_TxOutputBinTypeDefaultTypeInternal; +extern TxAck_TransactionType_TxOutputBinTypeDefaultTypeInternal _TxAck_TransactionType_TxOutputBinType_default_instance_; +class TxAck_TransactionType_TxOutputType; +class TxAck_TransactionType_TxOutputTypeDefaultTypeInternal; +extern TxAck_TransactionType_TxOutputTypeDefaultTypeInternal _TxAck_TransactionType_TxOutputType_default_instance_; +class TxRequest; +class TxRequestDefaultTypeInternal; +extern TxRequestDefaultTypeInternal _TxRequest_default_instance_; +class TxRequest_TxRequestDetailsType; +class TxRequest_TxRequestDetailsTypeDefaultTypeInternal; +extern TxRequest_TxRequestDetailsTypeDefaultTypeInternal _TxRequest_TxRequestDetailsType_default_instance_; +class TxRequest_TxRequestSerializedType; +class TxRequest_TxRequestSerializedTypeDefaultTypeInternal; +extern TxRequest_TxRequestSerializedTypeDefaultTypeInternal _TxRequest_TxRequestSerializedType_default_instance_; +class VerifyMessage; +class VerifyMessageDefaultTypeInternal; +extern VerifyMessageDefaultTypeInternal _VerifyMessage_default_instance_; +} // namespace bitcoin +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::bitcoin::Address* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::Address>(Arena*); +template<> ::hw::trezor::messages::bitcoin::GetAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::GetAddress>(Arena*); +template<> ::hw::trezor::messages::bitcoin::GetPublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::GetPublicKey>(Arena*); +template<> ::hw::trezor::messages::bitcoin::MessageSignature* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::MessageSignature>(Arena*); +template<> ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::MultisigRedeemScriptType>(Arena*); +template<> ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType>(Arena*); +template<> ::hw::trezor::messages::bitcoin::PublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::PublicKey>(Arena*); +template<> ::hw::trezor::messages::bitcoin::SignMessage* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::SignMessage>(Arena*); +template<> ::hw::trezor::messages::bitcoin::SignTx* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::SignTx>(Arena*); +template<> ::hw::trezor::messages::bitcoin::TxAck* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::TxAck>(Arena*); +template<> ::hw::trezor::messages::bitcoin::TxAck_TransactionType* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::TxAck_TransactionType>(Arena*); +template<> ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType>(Arena*); +template<> ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType>(Arena*); +template<> ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType>(Arena*); +template<> ::hw::trezor::messages::bitcoin::TxRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::TxRequest>(Arena*); +template<> ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType>(Arena*); +template<> ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType>(Arena*); +template<> ::hw::trezor::messages::bitcoin::VerifyMessage* Arena::CreateMaybeMessage<::hw::trezor::messages::bitcoin::VerifyMessage>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace bitcoin { + +enum TxRequest_RequestType { + TxRequest_RequestType_TXINPUT = 0, + TxRequest_RequestType_TXOUTPUT = 1, + TxRequest_RequestType_TXMETA = 2, + TxRequest_RequestType_TXFINISHED = 3, + TxRequest_RequestType_TXEXTRADATA = 4 +}; +bool TxRequest_RequestType_IsValid(int value); +const TxRequest_RequestType TxRequest_RequestType_RequestType_MIN = TxRequest_RequestType_TXINPUT; +const TxRequest_RequestType TxRequest_RequestType_RequestType_MAX = TxRequest_RequestType_TXEXTRADATA; +const int TxRequest_RequestType_RequestType_ARRAYSIZE = TxRequest_RequestType_RequestType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TxRequest_RequestType_descriptor(); +inline const ::std::string& TxRequest_RequestType_Name(TxRequest_RequestType value) { + return ::google::protobuf::internal::NameOfEnum( + TxRequest_RequestType_descriptor(), value); +} +inline bool TxRequest_RequestType_Parse( + const ::std::string& name, TxRequest_RequestType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TxRequest_RequestType_descriptor(), name, value); +} +enum TxAck_TransactionType_TxOutputType_OutputScriptType { + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOADDRESS = 0, + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOSCRIPTHASH = 1, + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOMULTISIG = 2, + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOOPRETURN = 3, + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOWITNESS = 4, + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOP2SHWITNESS = 5 +}; +bool TxAck_TransactionType_TxOutputType_OutputScriptType_IsValid(int value); +const TxAck_TransactionType_TxOutputType_OutputScriptType TxAck_TransactionType_TxOutputType_OutputScriptType_OutputScriptType_MIN = TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOADDRESS; +const TxAck_TransactionType_TxOutputType_OutputScriptType TxAck_TransactionType_TxOutputType_OutputScriptType_OutputScriptType_MAX = TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOP2SHWITNESS; +const int TxAck_TransactionType_TxOutputType_OutputScriptType_OutputScriptType_ARRAYSIZE = TxAck_TransactionType_TxOutputType_OutputScriptType_OutputScriptType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TxAck_TransactionType_TxOutputType_OutputScriptType_descriptor(); +inline const ::std::string& TxAck_TransactionType_TxOutputType_OutputScriptType_Name(TxAck_TransactionType_TxOutputType_OutputScriptType value) { + return ::google::protobuf::internal::NameOfEnum( + TxAck_TransactionType_TxOutputType_OutputScriptType_descriptor(), value); +} +inline bool TxAck_TransactionType_TxOutputType_OutputScriptType_Parse( + const ::std::string& name, TxAck_TransactionType_TxOutputType_OutputScriptType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TxAck_TransactionType_TxOutputType_OutputScriptType_descriptor(), name, value); +} +enum InputScriptType { + SPENDADDRESS = 0, + SPENDMULTISIG = 1, + EXTERNAL = 2, + SPENDWITNESS = 3, + SPENDP2SHWITNESS = 4 +}; +bool InputScriptType_IsValid(int value); +const InputScriptType InputScriptType_MIN = SPENDADDRESS; +const InputScriptType InputScriptType_MAX = SPENDP2SHWITNESS; +const int InputScriptType_ARRAYSIZE = InputScriptType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* InputScriptType_descriptor(); +inline const ::std::string& InputScriptType_Name(InputScriptType value) { + return ::google::protobuf::internal::NameOfEnum( + InputScriptType_descriptor(), value); +} +inline bool InputScriptType_Parse( + const ::std::string& name, InputScriptType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + InputScriptType_descriptor(), name, value); +} +// =================================================================== + +class MultisigRedeemScriptType_HDNodePathType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) */ { + public: + MultisigRedeemScriptType_HDNodePathType(); + virtual ~MultisigRedeemScriptType_HDNodePathType(); + + MultisigRedeemScriptType_HDNodePathType(const MultisigRedeemScriptType_HDNodePathType& from); + + inline MultisigRedeemScriptType_HDNodePathType& operator=(const MultisigRedeemScriptType_HDNodePathType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MultisigRedeemScriptType_HDNodePathType(MultisigRedeemScriptType_HDNodePathType&& from) noexcept + : MultisigRedeemScriptType_HDNodePathType() { + *this = ::std::move(from); + } + + inline MultisigRedeemScriptType_HDNodePathType& operator=(MultisigRedeemScriptType_HDNodePathType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MultisigRedeemScriptType_HDNodePathType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MultisigRedeemScriptType_HDNodePathType* internal_default_instance() { + return reinterpret_cast( + &_MultisigRedeemScriptType_HDNodePathType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(MultisigRedeemScriptType_HDNodePathType* other); + friend void swap(MultisigRedeemScriptType_HDNodePathType& a, MultisigRedeemScriptType_HDNodePathType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MultisigRedeemScriptType_HDNodePathType* New() const final { + return CreateMaybeMessage(NULL); + } + + MultisigRedeemScriptType_HDNodePathType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MultisigRedeemScriptType_HDNodePathType& from); + void MergeFrom(const MultisigRedeemScriptType_HDNodePathType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MultisigRedeemScriptType_HDNodePathType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 2; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 2; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // required .hw.trezor.messages.common.HDNodeType node = 1; + bool has_node() const; + void clear_node(); + static const int kNodeFieldNumber = 1; + private: + const ::hw::trezor::messages::common::HDNodeType& _internal_node() const; + public: + const ::hw::trezor::messages::common::HDNodeType& node() const; + ::hw::trezor::messages::common::HDNodeType* release_node(); + ::hw::trezor::messages::common::HDNodeType* mutable_node(); + void set_allocated_node(::hw::trezor::messages::common::HDNodeType* node); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType) + private: + void set_has_node(); + void clear_has_node(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::hw::trezor::messages::common::HDNodeType* node_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MultisigRedeemScriptType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) */ { + public: + MultisigRedeemScriptType(); + virtual ~MultisigRedeemScriptType(); + + MultisigRedeemScriptType(const MultisigRedeemScriptType& from); + + inline MultisigRedeemScriptType& operator=(const MultisigRedeemScriptType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MultisigRedeemScriptType(MultisigRedeemScriptType&& from) noexcept + : MultisigRedeemScriptType() { + *this = ::std::move(from); + } + + inline MultisigRedeemScriptType& operator=(MultisigRedeemScriptType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MultisigRedeemScriptType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MultisigRedeemScriptType* internal_default_instance() { + return reinterpret_cast( + &_MultisigRedeemScriptType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(MultisigRedeemScriptType* other); + friend void swap(MultisigRedeemScriptType& a, MultisigRedeemScriptType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MultisigRedeemScriptType* New() const final { + return CreateMaybeMessage(NULL); + } + + MultisigRedeemScriptType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MultisigRedeemScriptType& from); + void MergeFrom(const MultisigRedeemScriptType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MultisigRedeemScriptType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MultisigRedeemScriptType_HDNodePathType HDNodePathType; + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType pubkeys = 1; + int pubkeys_size() const; + void clear_pubkeys(); + static const int kPubkeysFieldNumber = 1; + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType* mutable_pubkeys(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType >* + mutable_pubkeys(); + const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType& pubkeys(int index) const; + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType* add_pubkeys(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType >& + pubkeys() const; + + // repeated bytes signatures = 2; + int signatures_size() const; + void clear_signatures(); + static const int kSignaturesFieldNumber = 2; + const ::std::string& signatures(int index) const; + ::std::string* mutable_signatures(int index); + void set_signatures(int index, const ::std::string& value); + #if LANG_CXX11 + void set_signatures(int index, ::std::string&& value); + #endif + void set_signatures(int index, const char* value); + void set_signatures(int index, const void* value, size_t size); + ::std::string* add_signatures(); + void add_signatures(const ::std::string& value); + #if LANG_CXX11 + void add_signatures(::std::string&& value); + #endif + void add_signatures(const char* value); + void add_signatures(const void* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& signatures() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_signatures(); + + // repeated .hw.trezor.messages.common.HDNodeType nodes = 4; + int nodes_size() const; + void clear_nodes(); + static const int kNodesFieldNumber = 4; + ::hw::trezor::messages::common::HDNodeType* mutable_nodes(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::common::HDNodeType >* + mutable_nodes(); + const ::hw::trezor::messages::common::HDNodeType& nodes(int index) const; + ::hw::trezor::messages::common::HDNodeType* add_nodes(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::common::HDNodeType >& + nodes() const; + + // repeated uint32 address_n = 5; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 5; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional uint32 m = 3; + bool has_m() const; + void clear_m(); + static const int kMFieldNumber = 3; + ::google::protobuf::uint32 m() const; + void set_m(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.MultisigRedeemScriptType) + private: + void set_has_m(); + void clear_has_m(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType > pubkeys_; + ::google::protobuf::RepeatedPtrField< ::std::string> signatures_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::common::HDNodeType > nodes_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::uint32 m_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class GetPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.GetPublicKey) */ { + public: + GetPublicKey(); + virtual ~GetPublicKey(); + + GetPublicKey(const GetPublicKey& from); + + inline GetPublicKey& operator=(const GetPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetPublicKey(GetPublicKey&& from) noexcept + : GetPublicKey() { + *this = ::std::move(from); + } + + inline GetPublicKey& operator=(GetPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetPublicKey* internal_default_instance() { + return reinterpret_cast( + &_GetPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(GetPublicKey* other); + friend void swap(GetPublicKey& a, GetPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + GetPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetPublicKey& from); + void MergeFrom(const GetPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional string ecdsa_curve_name = 2; + bool has_ecdsa_curve_name() const; + void clear_ecdsa_curve_name(); + static const int kEcdsaCurveNameFieldNumber = 2; + const ::std::string& ecdsa_curve_name() const; + void set_ecdsa_curve_name(const ::std::string& value); + #if LANG_CXX11 + void set_ecdsa_curve_name(::std::string&& value); + #endif + void set_ecdsa_curve_name(const char* value); + void set_ecdsa_curve_name(const char* value, size_t size); + ::std::string* mutable_ecdsa_curve_name(); + ::std::string* release_ecdsa_curve_name(); + void set_allocated_ecdsa_curve_name(::std::string* ecdsa_curve_name); + + // optional string coin_name = 4 [default = "Bitcoin"]; + bool has_coin_name() const; + void clear_coin_name(); + static const int kCoinNameFieldNumber = 4; + const ::std::string& coin_name() const; + void set_coin_name(const ::std::string& value); + #if LANG_CXX11 + void set_coin_name(::std::string&& value); + #endif + void set_coin_name(const char* value); + void set_coin_name(const char* value, size_t size); + ::std::string* mutable_coin_name(); + ::std::string* release_coin_name(); + void set_allocated_coin_name(::std::string* coin_name); + + // optional bool show_display = 3; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 3; + bool show_display() const; + void set_show_display(bool value); + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; + bool has_script_type() const; + void clear_script_type(); + static const int kScriptTypeFieldNumber = 5; + ::hw::trezor::messages::bitcoin::InputScriptType script_type() const; + void set_script_type(::hw::trezor::messages::bitcoin::InputScriptType value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.GetPublicKey) + private: + void set_has_ecdsa_curve_name(); + void clear_has_ecdsa_curve_name(); + void set_has_show_display(); + void clear_has_show_display(); + void set_has_coin_name(); + void clear_has_coin_name(); + void set_has_script_type(); + void clear_has_script_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr ecdsa_curve_name_; + public: + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_coin_name_; + private: + ::google::protobuf::internal::ArenaStringPtr coin_name_; + bool show_display_; + int script_type_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class PublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.PublicKey) */ { + public: + PublicKey(); + virtual ~PublicKey(); + + PublicKey(const PublicKey& from); + + inline PublicKey& operator=(const PublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PublicKey(PublicKey&& from) noexcept + : PublicKey() { + *this = ::std::move(from); + } + + inline PublicKey& operator=(PublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PublicKey* internal_default_instance() { + return reinterpret_cast( + &_PublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(PublicKey* other); + friend void swap(PublicKey& a, PublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + PublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PublicKey& from); + void MergeFrom(const PublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string xpub = 2; + bool has_xpub() const; + void clear_xpub(); + static const int kXpubFieldNumber = 2; + const ::std::string& xpub() const; + void set_xpub(const ::std::string& value); + #if LANG_CXX11 + void set_xpub(::std::string&& value); + #endif + void set_xpub(const char* value); + void set_xpub(const char* value, size_t size); + ::std::string* mutable_xpub(); + ::std::string* release_xpub(); + void set_allocated_xpub(::std::string* xpub); + + // required .hw.trezor.messages.common.HDNodeType node = 1; + bool has_node() const; + void clear_node(); + static const int kNodeFieldNumber = 1; + private: + const ::hw::trezor::messages::common::HDNodeType& _internal_node() const; + public: + const ::hw::trezor::messages::common::HDNodeType& node() const; + ::hw::trezor::messages::common::HDNodeType* release_node(); + ::hw::trezor::messages::common::HDNodeType* mutable_node(); + void set_allocated_node(::hw::trezor::messages::common::HDNodeType* node); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.PublicKey) + private: + void set_has_node(); + void clear_has_node(); + void set_has_xpub(); + void clear_has_xpub(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr xpub_; + ::hw::trezor::messages::common::HDNodeType* node_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class GetAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.GetAddress) */ { + public: + GetAddress(); + virtual ~GetAddress(); + + GetAddress(const GetAddress& from); + + inline GetAddress& operator=(const GetAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetAddress(GetAddress&& from) noexcept + : GetAddress() { + *this = ::std::move(from); + } + + inline GetAddress& operator=(GetAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetAddress* internal_default_instance() { + return reinterpret_cast( + &_GetAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(GetAddress* other); + friend void swap(GetAddress& a, GetAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + GetAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetAddress& from); + void MergeFrom(const GetAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional string coin_name = 2 [default = "Bitcoin"]; + bool has_coin_name() const; + void clear_coin_name(); + static const int kCoinNameFieldNumber = 2; + const ::std::string& coin_name() const; + void set_coin_name(const ::std::string& value); + #if LANG_CXX11 + void set_coin_name(::std::string&& value); + #endif + void set_coin_name(const char* value); + void set_coin_name(const char* value, size_t size); + ::std::string* mutable_coin_name(); + ::std::string* release_coin_name(); + void set_allocated_coin_name(::std::string* coin_name); + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 4; + bool has_multisig() const; + void clear_multisig(); + static const int kMultisigFieldNumber = 4; + private: + const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& _internal_multisig() const; + public: + const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& multisig() const; + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* release_multisig(); + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* mutable_multisig(); + void set_allocated_multisig(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* multisig); + + // optional bool show_display = 3; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 3; + bool show_display() const; + void set_show_display(bool value); + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; + bool has_script_type() const; + void clear_script_type(); + static const int kScriptTypeFieldNumber = 5; + ::hw::trezor::messages::bitcoin::InputScriptType script_type() const; + void set_script_type(::hw::trezor::messages::bitcoin::InputScriptType value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.GetAddress) + private: + void set_has_coin_name(); + void clear_has_coin_name(); + void set_has_show_display(); + void clear_has_show_display(); + void set_has_multisig(); + void clear_has_multisig(); + void set_has_script_type(); + void clear_has_script_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + public: + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_coin_name_; + private: + ::google::protobuf::internal::ArenaStringPtr coin_name_; + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* multisig_; + bool show_display_; + int script_type_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class Address : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.Address) */ { + public: + Address(); + virtual ~Address(); + + Address(const Address& from); + + inline Address& operator=(const Address& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Address(Address&& from) noexcept + : Address() { + *this = ::std::move(from); + } + + inline Address& operator=(Address&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Address& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Address* internal_default_instance() { + return reinterpret_cast( + &_Address_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(Address* other); + friend void swap(Address& a, Address& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Address* New() const final { + return CreateMaybeMessage
(NULL); + } + + Address* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage
(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Address& from); + void MergeFrom(const Address& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Address* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.Address) + private: + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class SignMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.SignMessage) */ { + public: + SignMessage(); + virtual ~SignMessage(); + + SignMessage(const SignMessage& from); + + inline SignMessage& operator=(const SignMessage& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SignMessage(SignMessage&& from) noexcept + : SignMessage() { + *this = ::std::move(from); + } + + inline SignMessage& operator=(SignMessage&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SignMessage& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SignMessage* internal_default_instance() { + return reinterpret_cast( + &_SignMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(SignMessage* other); + friend void swap(SignMessage& a, SignMessage& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SignMessage* New() const final { + return CreateMaybeMessage(NULL); + } + + SignMessage* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SignMessage& from); + void MergeFrom(const SignMessage& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SignMessage* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // required bytes message = 2; + bool has_message() const; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const void* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // optional string coin_name = 3 [default = "Bitcoin"]; + bool has_coin_name() const; + void clear_coin_name(); + static const int kCoinNameFieldNumber = 3; + const ::std::string& coin_name() const; + void set_coin_name(const ::std::string& value); + #if LANG_CXX11 + void set_coin_name(::std::string&& value); + #endif + void set_coin_name(const char* value); + void set_coin_name(const char* value, size_t size); + ::std::string* mutable_coin_name(); + ::std::string* release_coin_name(); + void set_allocated_coin_name(::std::string* coin_name); + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 4 [default = SPENDADDRESS]; + bool has_script_type() const; + void clear_script_type(); + static const int kScriptTypeFieldNumber = 4; + ::hw::trezor::messages::bitcoin::InputScriptType script_type() const; + void set_script_type(::hw::trezor::messages::bitcoin::InputScriptType value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.SignMessage) + private: + void set_has_message(); + void clear_has_message(); + void set_has_coin_name(); + void clear_has_coin_name(); + void set_has_script_type(); + void clear_has_script_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr message_; + public: + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_coin_name_; + private: + ::google::protobuf::internal::ArenaStringPtr coin_name_; + int script_type_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MessageSignature : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.MessageSignature) */ { + public: + MessageSignature(); + virtual ~MessageSignature(); + + MessageSignature(const MessageSignature& from); + + inline MessageSignature& operator=(const MessageSignature& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MessageSignature(MessageSignature&& from) noexcept + : MessageSignature() { + *this = ::std::move(from); + } + + inline MessageSignature& operator=(MessageSignature&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MessageSignature& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MessageSignature* internal_default_instance() { + return reinterpret_cast( + &_MessageSignature_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(MessageSignature* other); + friend void swap(MessageSignature& a, MessageSignature& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MessageSignature* New() const final { + return CreateMaybeMessage(NULL); + } + + MessageSignature* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MessageSignature& from); + void MergeFrom(const MessageSignature& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MessageSignature* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // optional bytes signature = 2; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 2; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.MessageSignature) + private: + void set_has_address(); + void clear_has_address(); + void set_has_signature(); + void clear_has_signature(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + ::google::protobuf::internal::ArenaStringPtr signature_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class VerifyMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.VerifyMessage) */ { + public: + VerifyMessage(); + virtual ~VerifyMessage(); + + VerifyMessage(const VerifyMessage& from); + + inline VerifyMessage& operator=(const VerifyMessage& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + VerifyMessage(VerifyMessage&& from) noexcept + : VerifyMessage() { + *this = ::std::move(from); + } + + inline VerifyMessage& operator=(VerifyMessage&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const VerifyMessage& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VerifyMessage* internal_default_instance() { + return reinterpret_cast( + &_VerifyMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(VerifyMessage* other); + friend void swap(VerifyMessage& a, VerifyMessage& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline VerifyMessage* New() const final { + return CreateMaybeMessage(NULL); + } + + VerifyMessage* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const VerifyMessage& from); + void MergeFrom(const VerifyMessage& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(VerifyMessage* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // optional bytes signature = 2; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 2; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional bytes message = 3; + bool has_message() const; + void clear_message(); + static const int kMessageFieldNumber = 3; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const void* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // optional string coin_name = 4 [default = "Bitcoin"]; + bool has_coin_name() const; + void clear_coin_name(); + static const int kCoinNameFieldNumber = 4; + const ::std::string& coin_name() const; + void set_coin_name(const ::std::string& value); + #if LANG_CXX11 + void set_coin_name(::std::string&& value); + #endif + void set_coin_name(const char* value); + void set_coin_name(const char* value, size_t size); + ::std::string* mutable_coin_name(); + ::std::string* release_coin_name(); + void set_allocated_coin_name(::std::string* coin_name); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.VerifyMessage) + private: + void set_has_address(); + void clear_has_address(); + void set_has_signature(); + void clear_has_signature(); + void set_has_message(); + void clear_has_message(); + void set_has_coin_name(); + void clear_has_coin_name(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr message_; + public: + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_coin_name_; + private: + ::google::protobuf::internal::ArenaStringPtr coin_name_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class SignTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.SignTx) */ { + public: + SignTx(); + virtual ~SignTx(); + + SignTx(const SignTx& from); + + inline SignTx& operator=(const SignTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SignTx(SignTx&& from) noexcept + : SignTx() { + *this = ::std::move(from); + } + + inline SignTx& operator=(SignTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SignTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SignTx* internal_default_instance() { + return reinterpret_cast( + &_SignTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(SignTx* other); + friend void swap(SignTx& a, SignTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SignTx* New() const final { + return CreateMaybeMessage(NULL); + } + + SignTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SignTx& from); + void MergeFrom(const SignTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SignTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string coin_name = 3 [default = "Bitcoin"]; + bool has_coin_name() const; + void clear_coin_name(); + static const int kCoinNameFieldNumber = 3; + const ::std::string& coin_name() const; + void set_coin_name(const ::std::string& value); + #if LANG_CXX11 + void set_coin_name(::std::string&& value); + #endif + void set_coin_name(const char* value); + void set_coin_name(const char* value, size_t size); + ::std::string* mutable_coin_name(); + ::std::string* release_coin_name(); + void set_allocated_coin_name(::std::string* coin_name); + + // required uint32 outputs_count = 1; + bool has_outputs_count() const; + void clear_outputs_count(); + static const int kOutputsCountFieldNumber = 1; + ::google::protobuf::uint32 outputs_count() const; + void set_outputs_count(::google::protobuf::uint32 value); + + // required uint32 inputs_count = 2; + bool has_inputs_count() const; + void clear_inputs_count(); + static const int kInputsCountFieldNumber = 2; + ::google::protobuf::uint32 inputs_count() const; + void set_inputs_count(::google::protobuf::uint32 value); + + // optional uint32 lock_time = 5 [default = 0]; + bool has_lock_time() const; + void clear_lock_time(); + static const int kLockTimeFieldNumber = 5; + ::google::protobuf::uint32 lock_time() const; + void set_lock_time(::google::protobuf::uint32 value); + + // optional uint32 expiry = 6; + bool has_expiry() const; + void clear_expiry(); + static const int kExpiryFieldNumber = 6; + ::google::protobuf::uint32 expiry() const; + void set_expiry(::google::protobuf::uint32 value); + + // optional bool overwintered = 7; + bool has_overwintered() const; + void clear_overwintered(); + static const int kOverwinteredFieldNumber = 7; + bool overwintered() const; + void set_overwintered(bool value); + + // optional uint32 version_group_id = 8; + bool has_version_group_id() const; + void clear_version_group_id(); + static const int kVersionGroupIdFieldNumber = 8; + ::google::protobuf::uint32 version_group_id() const; + void set_version_group_id(::google::protobuf::uint32 value); + + // optional uint32 timestamp = 9; + bool has_timestamp() const; + void clear_timestamp(); + static const int kTimestampFieldNumber = 9; + ::google::protobuf::uint32 timestamp() const; + void set_timestamp(::google::protobuf::uint32 value); + + // optional uint32 branch_id = 10; + bool has_branch_id() const; + void clear_branch_id(); + static const int kBranchIdFieldNumber = 10; + ::google::protobuf::uint32 branch_id() const; + void set_branch_id(::google::protobuf::uint32 value); + + // optional uint32 version = 4 [default = 1]; + bool has_version() const; + void clear_version(); + static const int kVersionFieldNumber = 4; + ::google::protobuf::uint32 version() const; + void set_version(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.SignTx) + private: + void set_has_outputs_count(); + void clear_has_outputs_count(); + void set_has_inputs_count(); + void clear_has_inputs_count(); + void set_has_coin_name(); + void clear_has_coin_name(); + void set_has_version(); + void clear_has_version(); + void set_has_lock_time(); + void clear_has_lock_time(); + void set_has_expiry(); + void clear_has_expiry(); + void set_has_overwintered(); + void clear_has_overwintered(); + void set_has_version_group_id(); + void clear_has_version_group_id(); + void set_has_timestamp(); + void clear_has_timestamp(); + void set_has_branch_id(); + void clear_has_branch_id(); + + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + public: + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_coin_name_; + private: + ::google::protobuf::internal::ArenaStringPtr coin_name_; + ::google::protobuf::uint32 outputs_count_; + ::google::protobuf::uint32 inputs_count_; + ::google::protobuf::uint32 lock_time_; + ::google::protobuf::uint32 expiry_; + bool overwintered_; + ::google::protobuf::uint32 version_group_id_; + ::google::protobuf::uint32 timestamp_; + ::google::protobuf::uint32 branch_id_; + ::google::protobuf::uint32 version_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TxRequest_TxRequestDetailsType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) */ { + public: + TxRequest_TxRequestDetailsType(); + virtual ~TxRequest_TxRequestDetailsType(); + + TxRequest_TxRequestDetailsType(const TxRequest_TxRequestDetailsType& from); + + inline TxRequest_TxRequestDetailsType& operator=(const TxRequest_TxRequestDetailsType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TxRequest_TxRequestDetailsType(TxRequest_TxRequestDetailsType&& from) noexcept + : TxRequest_TxRequestDetailsType() { + *this = ::std::move(from); + } + + inline TxRequest_TxRequestDetailsType& operator=(TxRequest_TxRequestDetailsType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TxRequest_TxRequestDetailsType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TxRequest_TxRequestDetailsType* internal_default_instance() { + return reinterpret_cast( + &_TxRequest_TxRequestDetailsType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(TxRequest_TxRequestDetailsType* other); + friend void swap(TxRequest_TxRequestDetailsType& a, TxRequest_TxRequestDetailsType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TxRequest_TxRequestDetailsType* New() const final { + return CreateMaybeMessage(NULL); + } + + TxRequest_TxRequestDetailsType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TxRequest_TxRequestDetailsType& from); + void MergeFrom(const TxRequest_TxRequestDetailsType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TxRequest_TxRequestDetailsType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes tx_hash = 2; + bool has_tx_hash() const; + void clear_tx_hash(); + static const int kTxHashFieldNumber = 2; + const ::std::string& tx_hash() const; + void set_tx_hash(const ::std::string& value); + #if LANG_CXX11 + void set_tx_hash(::std::string&& value); + #endif + void set_tx_hash(const char* value); + void set_tx_hash(const void* value, size_t size); + ::std::string* mutable_tx_hash(); + ::std::string* release_tx_hash(); + void set_allocated_tx_hash(::std::string* tx_hash); + + // optional uint32 request_index = 1; + bool has_request_index() const; + void clear_request_index(); + static const int kRequestIndexFieldNumber = 1; + ::google::protobuf::uint32 request_index() const; + void set_request_index(::google::protobuf::uint32 value); + + // optional uint32 extra_data_len = 3; + bool has_extra_data_len() const; + void clear_extra_data_len(); + static const int kExtraDataLenFieldNumber = 3; + ::google::protobuf::uint32 extra_data_len() const; + void set_extra_data_len(::google::protobuf::uint32 value); + + // optional uint32 extra_data_offset = 4; + bool has_extra_data_offset() const; + void clear_extra_data_offset(); + static const int kExtraDataOffsetFieldNumber = 4; + ::google::protobuf::uint32 extra_data_offset() const; + void set_extra_data_offset(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType) + private: + void set_has_request_index(); + void clear_has_request_index(); + void set_has_tx_hash(); + void clear_has_tx_hash(); + void set_has_extra_data_len(); + void clear_has_extra_data_len(); + void set_has_extra_data_offset(); + void clear_has_extra_data_offset(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr tx_hash_; + ::google::protobuf::uint32 request_index_; + ::google::protobuf::uint32 extra_data_len_; + ::google::protobuf::uint32 extra_data_offset_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TxRequest_TxRequestSerializedType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) */ { + public: + TxRequest_TxRequestSerializedType(); + virtual ~TxRequest_TxRequestSerializedType(); + + TxRequest_TxRequestSerializedType(const TxRequest_TxRequestSerializedType& from); + + inline TxRequest_TxRequestSerializedType& operator=(const TxRequest_TxRequestSerializedType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TxRequest_TxRequestSerializedType(TxRequest_TxRequestSerializedType&& from) noexcept + : TxRequest_TxRequestSerializedType() { + *this = ::std::move(from); + } + + inline TxRequest_TxRequestSerializedType& operator=(TxRequest_TxRequestSerializedType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TxRequest_TxRequestSerializedType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TxRequest_TxRequestSerializedType* internal_default_instance() { + return reinterpret_cast( + &_TxRequest_TxRequestSerializedType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(TxRequest_TxRequestSerializedType* other); + friend void swap(TxRequest_TxRequestSerializedType& a, TxRequest_TxRequestSerializedType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TxRequest_TxRequestSerializedType* New() const final { + return CreateMaybeMessage(NULL); + } + + TxRequest_TxRequestSerializedType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TxRequest_TxRequestSerializedType& from); + void MergeFrom(const TxRequest_TxRequestSerializedType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TxRequest_TxRequestSerializedType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 2; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 2; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional bytes serialized_tx = 3; + bool has_serialized_tx() const; + void clear_serialized_tx(); + static const int kSerializedTxFieldNumber = 3; + const ::std::string& serialized_tx() const; + void set_serialized_tx(const ::std::string& value); + #if LANG_CXX11 + void set_serialized_tx(::std::string&& value); + #endif + void set_serialized_tx(const char* value); + void set_serialized_tx(const void* value, size_t size); + ::std::string* mutable_serialized_tx(); + ::std::string* release_serialized_tx(); + void set_allocated_serialized_tx(::std::string* serialized_tx); + + // optional uint32 signature_index = 1; + bool has_signature_index() const; + void clear_signature_index(); + static const int kSignatureIndexFieldNumber = 1; + ::google::protobuf::uint32 signature_index() const; + void set_signature_index(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType) + private: + void set_has_signature_index(); + void clear_has_signature_index(); + void set_has_signature(); + void clear_has_signature(); + void set_has_serialized_tx(); + void clear_has_serialized_tx(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr serialized_tx_; + ::google::protobuf::uint32 signature_index_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TxRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.TxRequest) */ { + public: + TxRequest(); + virtual ~TxRequest(); + + TxRequest(const TxRequest& from); + + inline TxRequest& operator=(const TxRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TxRequest(TxRequest&& from) noexcept + : TxRequest() { + *this = ::std::move(from); + } + + inline TxRequest& operator=(TxRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TxRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TxRequest* internal_default_instance() { + return reinterpret_cast( + &_TxRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(TxRequest* other); + friend void swap(TxRequest& a, TxRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TxRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + TxRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TxRequest& from); + void MergeFrom(const TxRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TxRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TxRequest_TxRequestDetailsType TxRequestDetailsType; + typedef TxRequest_TxRequestSerializedType TxRequestSerializedType; + + typedef TxRequest_RequestType RequestType; + static const RequestType TXINPUT = + TxRequest_RequestType_TXINPUT; + static const RequestType TXOUTPUT = + TxRequest_RequestType_TXOUTPUT; + static const RequestType TXMETA = + TxRequest_RequestType_TXMETA; + static const RequestType TXFINISHED = + TxRequest_RequestType_TXFINISHED; + static const RequestType TXEXTRADATA = + TxRequest_RequestType_TXEXTRADATA; + static inline bool RequestType_IsValid(int value) { + return TxRequest_RequestType_IsValid(value); + } + static const RequestType RequestType_MIN = + TxRequest_RequestType_RequestType_MIN; + static const RequestType RequestType_MAX = + TxRequest_RequestType_RequestType_MAX; + static const int RequestType_ARRAYSIZE = + TxRequest_RequestType_RequestType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RequestType_descriptor() { + return TxRequest_RequestType_descriptor(); + } + static inline const ::std::string& RequestType_Name(RequestType value) { + return TxRequest_RequestType_Name(value); + } + static inline bool RequestType_Parse(const ::std::string& name, + RequestType* value) { + return TxRequest_RequestType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType details = 2; + bool has_details() const; + void clear_details(); + static const int kDetailsFieldNumber = 2; + private: + const ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType& _internal_details() const; + public: + const ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType& details() const; + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType* release_details(); + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType* mutable_details(); + void set_allocated_details(::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType* details); + + // optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType serialized = 3; + bool has_serialized() const; + void clear_serialized(); + static const int kSerializedFieldNumber = 3; + private: + const ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType& _internal_serialized() const; + public: + const ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType& serialized() const; + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType* release_serialized(); + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType* mutable_serialized(); + void set_allocated_serialized(::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType* serialized); + + // optional .hw.trezor.messages.bitcoin.TxRequest.RequestType request_type = 1; + bool has_request_type() const; + void clear_request_type(); + static const int kRequestTypeFieldNumber = 1; + ::hw::trezor::messages::bitcoin::TxRequest_RequestType request_type() const; + void set_request_type(::hw::trezor::messages::bitcoin::TxRequest_RequestType value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.TxRequest) + private: + void set_has_request_type(); + void clear_has_request_type(); + void set_has_details(); + void clear_has_details(); + void set_has_serialized(); + void clear_has_serialized(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType* details_; + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType* serialized_; + int request_type_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TxAck_TransactionType_TxInputType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) */ { + public: + TxAck_TransactionType_TxInputType(); + virtual ~TxAck_TransactionType_TxInputType(); + + TxAck_TransactionType_TxInputType(const TxAck_TransactionType_TxInputType& from); + + inline TxAck_TransactionType_TxInputType& operator=(const TxAck_TransactionType_TxInputType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TxAck_TransactionType_TxInputType(TxAck_TransactionType_TxInputType&& from) noexcept + : TxAck_TransactionType_TxInputType() { + *this = ::std::move(from); + } + + inline TxAck_TransactionType_TxInputType& operator=(TxAck_TransactionType_TxInputType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TxAck_TransactionType_TxInputType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TxAck_TransactionType_TxInputType* internal_default_instance() { + return reinterpret_cast( + &_TxAck_TransactionType_TxInputType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(TxAck_TransactionType_TxInputType* other); + friend void swap(TxAck_TransactionType_TxInputType& a, TxAck_TransactionType_TxInputType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TxAck_TransactionType_TxInputType* New() const final { + return CreateMaybeMessage(NULL); + } + + TxAck_TransactionType_TxInputType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TxAck_TransactionType_TxInputType& from); + void MergeFrom(const TxAck_TransactionType_TxInputType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TxAck_TransactionType_TxInputType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // required bytes prev_hash = 2; + bool has_prev_hash() const; + void clear_prev_hash(); + static const int kPrevHashFieldNumber = 2; + const ::std::string& prev_hash() const; + void set_prev_hash(const ::std::string& value); + #if LANG_CXX11 + void set_prev_hash(::std::string&& value); + #endif + void set_prev_hash(const char* value); + void set_prev_hash(const void* value, size_t size); + ::std::string* mutable_prev_hash(); + ::std::string* release_prev_hash(); + void set_allocated_prev_hash(::std::string* prev_hash); + + // optional bytes script_sig = 4; + bool has_script_sig() const; + void clear_script_sig(); + static const int kScriptSigFieldNumber = 4; + const ::std::string& script_sig() const; + void set_script_sig(const ::std::string& value); + #if LANG_CXX11 + void set_script_sig(::std::string&& value); + #endif + void set_script_sig(const char* value); + void set_script_sig(const void* value, size_t size); + ::std::string* mutable_script_sig(); + ::std::string* release_script_sig(); + void set_allocated_script_sig(::std::string* script_sig); + + // optional bytes prev_block_hash_bip115 = 11; + bool has_prev_block_hash_bip115() const; + void clear_prev_block_hash_bip115(); + static const int kPrevBlockHashBip115FieldNumber = 11; + const ::std::string& prev_block_hash_bip115() const; + void set_prev_block_hash_bip115(const ::std::string& value); + #if LANG_CXX11 + void set_prev_block_hash_bip115(::std::string&& value); + #endif + void set_prev_block_hash_bip115(const char* value); + void set_prev_block_hash_bip115(const void* value, size_t size); + ::std::string* mutable_prev_block_hash_bip115(); + ::std::string* release_prev_block_hash_bip115(); + void set_allocated_prev_block_hash_bip115(::std::string* prev_block_hash_bip115); + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 7; + bool has_multisig() const; + void clear_multisig(); + static const int kMultisigFieldNumber = 7; + private: + const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& _internal_multisig() const; + public: + const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& multisig() const; + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* release_multisig(); + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* mutable_multisig(); + void set_allocated_multisig(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* multisig); + + // required uint32 prev_index = 3; + bool has_prev_index() const; + void clear_prev_index(); + static const int kPrevIndexFieldNumber = 3; + ::google::protobuf::uint32 prev_index() const; + void set_prev_index(::google::protobuf::uint32 value); + + // optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 6 [default = SPENDADDRESS]; + bool has_script_type() const; + void clear_script_type(); + static const int kScriptTypeFieldNumber = 6; + ::hw::trezor::messages::bitcoin::InputScriptType script_type() const; + void set_script_type(::hw::trezor::messages::bitcoin::InputScriptType value); + + // optional uint64 amount = 8; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 8; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // optional uint32 decred_tree = 9; + bool has_decred_tree() const; + void clear_decred_tree(); + static const int kDecredTreeFieldNumber = 9; + ::google::protobuf::uint32 decred_tree() const; + void set_decred_tree(::google::protobuf::uint32 value); + + // optional uint32 decred_script_version = 10; + bool has_decred_script_version() const; + void clear_decred_script_version(); + static const int kDecredScriptVersionFieldNumber = 10; + ::google::protobuf::uint32 decred_script_version() const; + void set_decred_script_version(::google::protobuf::uint32 value); + + // optional uint32 prev_block_height_bip115 = 12; + bool has_prev_block_height_bip115() const; + void clear_prev_block_height_bip115(); + static const int kPrevBlockHeightBip115FieldNumber = 12; + ::google::protobuf::uint32 prev_block_height_bip115() const; + void set_prev_block_height_bip115(::google::protobuf::uint32 value); + + // optional uint32 sequence = 5 [default = 4294967295]; + bool has_sequence() const; + void clear_sequence(); + static const int kSequenceFieldNumber = 5; + ::google::protobuf::uint32 sequence() const; + void set_sequence(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType) + private: + void set_has_prev_hash(); + void clear_has_prev_hash(); + void set_has_prev_index(); + void clear_has_prev_index(); + void set_has_script_sig(); + void clear_has_script_sig(); + void set_has_sequence(); + void clear_has_sequence(); + void set_has_script_type(); + void clear_has_script_type(); + void set_has_multisig(); + void clear_has_multisig(); + void set_has_amount(); + void clear_has_amount(); + void set_has_decred_tree(); + void clear_has_decred_tree(); + void set_has_decred_script_version(); + void clear_has_decred_script_version(); + void set_has_prev_block_hash_bip115(); + void clear_has_prev_block_hash_bip115(); + void set_has_prev_block_height_bip115(); + void clear_has_prev_block_height_bip115(); + + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr prev_hash_; + ::google::protobuf::internal::ArenaStringPtr script_sig_; + ::google::protobuf::internal::ArenaStringPtr prev_block_hash_bip115_; + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* multisig_; + ::google::protobuf::uint32 prev_index_; + int script_type_; + ::google::protobuf::uint64 amount_; + ::google::protobuf::uint32 decred_tree_; + ::google::protobuf::uint32 decred_script_version_; + ::google::protobuf::uint32 prev_block_height_bip115_; + ::google::protobuf::uint32 sequence_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TxAck_TransactionType_TxOutputBinType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) */ { + public: + TxAck_TransactionType_TxOutputBinType(); + virtual ~TxAck_TransactionType_TxOutputBinType(); + + TxAck_TransactionType_TxOutputBinType(const TxAck_TransactionType_TxOutputBinType& from); + + inline TxAck_TransactionType_TxOutputBinType& operator=(const TxAck_TransactionType_TxOutputBinType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TxAck_TransactionType_TxOutputBinType(TxAck_TransactionType_TxOutputBinType&& from) noexcept + : TxAck_TransactionType_TxOutputBinType() { + *this = ::std::move(from); + } + + inline TxAck_TransactionType_TxOutputBinType& operator=(TxAck_TransactionType_TxOutputBinType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TxAck_TransactionType_TxOutputBinType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TxAck_TransactionType_TxOutputBinType* internal_default_instance() { + return reinterpret_cast( + &_TxAck_TransactionType_TxOutputBinType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(TxAck_TransactionType_TxOutputBinType* other); + friend void swap(TxAck_TransactionType_TxOutputBinType& a, TxAck_TransactionType_TxOutputBinType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TxAck_TransactionType_TxOutputBinType* New() const final { + return CreateMaybeMessage(NULL); + } + + TxAck_TransactionType_TxOutputBinType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TxAck_TransactionType_TxOutputBinType& from); + void MergeFrom(const TxAck_TransactionType_TxOutputBinType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TxAck_TransactionType_TxOutputBinType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes script_pubkey = 2; + bool has_script_pubkey() const; + void clear_script_pubkey(); + static const int kScriptPubkeyFieldNumber = 2; + const ::std::string& script_pubkey() const; + void set_script_pubkey(const ::std::string& value); + #if LANG_CXX11 + void set_script_pubkey(::std::string&& value); + #endif + void set_script_pubkey(const char* value); + void set_script_pubkey(const void* value, size_t size); + ::std::string* mutable_script_pubkey(); + ::std::string* release_script_pubkey(); + void set_allocated_script_pubkey(::std::string* script_pubkey); + + // required uint64 amount = 1; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 1; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // optional uint32 decred_script_version = 3; + bool has_decred_script_version() const; + void clear_decred_script_version(); + static const int kDecredScriptVersionFieldNumber = 3; + ::google::protobuf::uint32 decred_script_version() const; + void set_decred_script_version(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType) + private: + void set_has_amount(); + void clear_has_amount(); + void set_has_script_pubkey(); + void clear_has_script_pubkey(); + void set_has_decred_script_version(); + void clear_has_decred_script_version(); + + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr script_pubkey_; + ::google::protobuf::uint64 amount_; + ::google::protobuf::uint32 decred_script_version_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TxAck_TransactionType_TxOutputType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) */ { + public: + TxAck_TransactionType_TxOutputType(); + virtual ~TxAck_TransactionType_TxOutputType(); + + TxAck_TransactionType_TxOutputType(const TxAck_TransactionType_TxOutputType& from); + + inline TxAck_TransactionType_TxOutputType& operator=(const TxAck_TransactionType_TxOutputType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TxAck_TransactionType_TxOutputType(TxAck_TransactionType_TxOutputType&& from) noexcept + : TxAck_TransactionType_TxOutputType() { + *this = ::std::move(from); + } + + inline TxAck_TransactionType_TxOutputType& operator=(TxAck_TransactionType_TxOutputType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TxAck_TransactionType_TxOutputType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TxAck_TransactionType_TxOutputType* internal_default_instance() { + return reinterpret_cast( + &_TxAck_TransactionType_TxOutputType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(TxAck_TransactionType_TxOutputType* other); + friend void swap(TxAck_TransactionType_TxOutputType& a, TxAck_TransactionType_TxOutputType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TxAck_TransactionType_TxOutputType* New() const final { + return CreateMaybeMessage(NULL); + } + + TxAck_TransactionType_TxOutputType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TxAck_TransactionType_TxOutputType& from); + void MergeFrom(const TxAck_TransactionType_TxOutputType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TxAck_TransactionType_TxOutputType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TxAck_TransactionType_TxOutputType_OutputScriptType OutputScriptType; + static const OutputScriptType PAYTOADDRESS = + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOADDRESS; + static const OutputScriptType PAYTOSCRIPTHASH = + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOSCRIPTHASH; + static const OutputScriptType PAYTOMULTISIG = + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOMULTISIG; + static const OutputScriptType PAYTOOPRETURN = + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOOPRETURN; + static const OutputScriptType PAYTOWITNESS = + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOWITNESS; + static const OutputScriptType PAYTOP2SHWITNESS = + TxAck_TransactionType_TxOutputType_OutputScriptType_PAYTOP2SHWITNESS; + static inline bool OutputScriptType_IsValid(int value) { + return TxAck_TransactionType_TxOutputType_OutputScriptType_IsValid(value); + } + static const OutputScriptType OutputScriptType_MIN = + TxAck_TransactionType_TxOutputType_OutputScriptType_OutputScriptType_MIN; + static const OutputScriptType OutputScriptType_MAX = + TxAck_TransactionType_TxOutputType_OutputScriptType_OutputScriptType_MAX; + static const int OutputScriptType_ARRAYSIZE = + TxAck_TransactionType_TxOutputType_OutputScriptType_OutputScriptType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + OutputScriptType_descriptor() { + return TxAck_TransactionType_TxOutputType_OutputScriptType_descriptor(); + } + static inline const ::std::string& OutputScriptType_Name(OutputScriptType value) { + return TxAck_TransactionType_TxOutputType_OutputScriptType_Name(value); + } + static inline bool OutputScriptType_Parse(const ::std::string& name, + OutputScriptType* value) { + return TxAck_TransactionType_TxOutputType_OutputScriptType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 2; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 2; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // optional bytes op_return_data = 6; + bool has_op_return_data() const; + void clear_op_return_data(); + static const int kOpReturnDataFieldNumber = 6; + const ::std::string& op_return_data() const; + void set_op_return_data(const ::std::string& value); + #if LANG_CXX11 + void set_op_return_data(::std::string&& value); + #endif + void set_op_return_data(const char* value); + void set_op_return_data(const void* value, size_t size); + ::std::string* mutable_op_return_data(); + ::std::string* release_op_return_data(); + void set_allocated_op_return_data(::std::string* op_return_data); + + // optional bytes block_hash_bip115 = 8; + bool has_block_hash_bip115() const; + void clear_block_hash_bip115(); + static const int kBlockHashBip115FieldNumber = 8; + const ::std::string& block_hash_bip115() const; + void set_block_hash_bip115(const ::std::string& value); + #if LANG_CXX11 + void set_block_hash_bip115(::std::string&& value); + #endif + void set_block_hash_bip115(const char* value); + void set_block_hash_bip115(const void* value, size_t size); + ::std::string* mutable_block_hash_bip115(); + ::std::string* release_block_hash_bip115(); + void set_allocated_block_hash_bip115(::std::string* block_hash_bip115); + + // optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 5; + bool has_multisig() const; + void clear_multisig(); + static const int kMultisigFieldNumber = 5; + private: + const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& _internal_multisig() const; + public: + const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& multisig() const; + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* release_multisig(); + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* mutable_multisig(); + void set_allocated_multisig(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* multisig); + + // required uint64 amount = 3; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 3; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // required .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.OutputScriptType script_type = 4; + bool has_script_type() const; + void clear_script_type(); + static const int kScriptTypeFieldNumber = 4; + ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType_OutputScriptType script_type() const; + void set_script_type(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType_OutputScriptType value); + + // optional uint32 decred_script_version = 7; + bool has_decred_script_version() const; + void clear_decred_script_version(); + static const int kDecredScriptVersionFieldNumber = 7; + ::google::protobuf::uint32 decred_script_version() const; + void set_decred_script_version(::google::protobuf::uint32 value); + + // optional uint32 block_height_bip115 = 9; + bool has_block_height_bip115() const; + void clear_block_height_bip115(); + static const int kBlockHeightBip115FieldNumber = 9; + ::google::protobuf::uint32 block_height_bip115() const; + void set_block_height_bip115(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType) + private: + void set_has_address(); + void clear_has_address(); + void set_has_amount(); + void clear_has_amount(); + void set_has_script_type(); + void clear_has_script_type(); + void set_has_multisig(); + void clear_has_multisig(); + void set_has_op_return_data(); + void clear_has_op_return_data(); + void set_has_decred_script_version(); + void clear_has_decred_script_version(); + void set_has_block_hash_bip115(); + void clear_has_block_hash_bip115(); + void set_has_block_height_bip115(); + void clear_has_block_height_bip115(); + + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr address_; + ::google::protobuf::internal::ArenaStringPtr op_return_data_; + ::google::protobuf::internal::ArenaStringPtr block_hash_bip115_; + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* multisig_; + ::google::protobuf::uint64 amount_; + int script_type_; + ::google::protobuf::uint32 decred_script_version_; + ::google::protobuf::uint32 block_height_bip115_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TxAck_TransactionType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.TxAck.TransactionType) */ { + public: + TxAck_TransactionType(); + virtual ~TxAck_TransactionType(); + + TxAck_TransactionType(const TxAck_TransactionType& from); + + inline TxAck_TransactionType& operator=(const TxAck_TransactionType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TxAck_TransactionType(TxAck_TransactionType&& from) noexcept + : TxAck_TransactionType() { + *this = ::std::move(from); + } + + inline TxAck_TransactionType& operator=(TxAck_TransactionType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TxAck_TransactionType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TxAck_TransactionType* internal_default_instance() { + return reinterpret_cast( + &_TxAck_TransactionType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(TxAck_TransactionType* other); + friend void swap(TxAck_TransactionType& a, TxAck_TransactionType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TxAck_TransactionType* New() const final { + return CreateMaybeMessage(NULL); + } + + TxAck_TransactionType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TxAck_TransactionType& from); + void MergeFrom(const TxAck_TransactionType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TxAck_TransactionType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TxAck_TransactionType_TxInputType TxInputType; + typedef TxAck_TransactionType_TxOutputBinType TxOutputBinType; + typedef TxAck_TransactionType_TxOutputType TxOutputType; + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType inputs = 2; + int inputs_size() const; + void clear_inputs(); + static const int kInputsFieldNumber = 2; + ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType* mutable_inputs(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType >* + mutable_inputs(); + const ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType& inputs(int index) const; + ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType* add_inputs(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType >& + inputs() const; + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType bin_outputs = 3; + int bin_outputs_size() const; + void clear_bin_outputs(); + static const int kBinOutputsFieldNumber = 3; + ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType* mutable_bin_outputs(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType >* + mutable_bin_outputs(); + const ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType& bin_outputs(int index) const; + ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType* add_bin_outputs(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType >& + bin_outputs() const; + + // repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType outputs = 5; + int outputs_size() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 5; + ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType* mutable_outputs(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType >* + mutable_outputs(); + const ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType& outputs(int index) const; + ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType* add_outputs(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType >& + outputs() const; + + // optional bytes extra_data = 8; + bool has_extra_data() const; + void clear_extra_data(); + static const int kExtraDataFieldNumber = 8; + const ::std::string& extra_data() const; + void set_extra_data(const ::std::string& value); + #if LANG_CXX11 + void set_extra_data(::std::string&& value); + #endif + void set_extra_data(const char* value); + void set_extra_data(const void* value, size_t size); + ::std::string* mutable_extra_data(); + ::std::string* release_extra_data(); + void set_allocated_extra_data(::std::string* extra_data); + + // optional uint32 version = 1; + bool has_version() const; + void clear_version(); + static const int kVersionFieldNumber = 1; + ::google::protobuf::uint32 version() const; + void set_version(::google::protobuf::uint32 value); + + // optional uint32 lock_time = 4; + bool has_lock_time() const; + void clear_lock_time(); + static const int kLockTimeFieldNumber = 4; + ::google::protobuf::uint32 lock_time() const; + void set_lock_time(::google::protobuf::uint32 value); + + // optional uint32 inputs_cnt = 6; + bool has_inputs_cnt() const; + void clear_inputs_cnt(); + static const int kInputsCntFieldNumber = 6; + ::google::protobuf::uint32 inputs_cnt() const; + void set_inputs_cnt(::google::protobuf::uint32 value); + + // optional uint32 outputs_cnt = 7; + bool has_outputs_cnt() const; + void clear_outputs_cnt(); + static const int kOutputsCntFieldNumber = 7; + ::google::protobuf::uint32 outputs_cnt() const; + void set_outputs_cnt(::google::protobuf::uint32 value); + + // optional uint32 extra_data_len = 9; + bool has_extra_data_len() const; + void clear_extra_data_len(); + static const int kExtraDataLenFieldNumber = 9; + ::google::protobuf::uint32 extra_data_len() const; + void set_extra_data_len(::google::protobuf::uint32 value); + + // optional uint32 expiry = 10; + bool has_expiry() const; + void clear_expiry(); + static const int kExpiryFieldNumber = 10; + ::google::protobuf::uint32 expiry() const; + void set_expiry(::google::protobuf::uint32 value); + + // optional bool overwintered = 11; + bool has_overwintered() const; + void clear_overwintered(); + static const int kOverwinteredFieldNumber = 11; + bool overwintered() const; + void set_overwintered(bool value); + + // optional uint32 version_group_id = 12; + bool has_version_group_id() const; + void clear_version_group_id(); + static const int kVersionGroupIdFieldNumber = 12; + ::google::protobuf::uint32 version_group_id() const; + void set_version_group_id(::google::protobuf::uint32 value); + + // optional uint32 timestamp = 13; + bool has_timestamp() const; + void clear_timestamp(); + static const int kTimestampFieldNumber = 13; + ::google::protobuf::uint32 timestamp() const; + void set_timestamp(::google::protobuf::uint32 value); + + // optional uint32 branch_id = 14; + bool has_branch_id() const; + void clear_branch_id(); + static const int kBranchIdFieldNumber = 14; + ::google::protobuf::uint32 branch_id() const; + void set_branch_id(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.TxAck.TransactionType) + private: + void set_has_version(); + void clear_has_version(); + void set_has_lock_time(); + void clear_has_lock_time(); + void set_has_inputs_cnt(); + void clear_has_inputs_cnt(); + void set_has_outputs_cnt(); + void clear_has_outputs_cnt(); + void set_has_extra_data(); + void clear_has_extra_data(); + void set_has_extra_data_len(); + void clear_has_extra_data_len(); + void set_has_expiry(); + void clear_has_expiry(); + void set_has_overwintered(); + void clear_has_overwintered(); + void set_has_version_group_id(); + void clear_has_version_group_id(); + void set_has_timestamp(); + void clear_has_timestamp(); + void set_has_branch_id(); + void clear_has_branch_id(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType > inputs_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType > bin_outputs_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType > outputs_; + ::google::protobuf::internal::ArenaStringPtr extra_data_; + ::google::protobuf::uint32 version_; + ::google::protobuf::uint32 lock_time_; + ::google::protobuf::uint32 inputs_cnt_; + ::google::protobuf::uint32 outputs_cnt_; + ::google::protobuf::uint32 extra_data_len_; + ::google::protobuf::uint32 expiry_; + bool overwintered_; + ::google::protobuf::uint32 version_group_id_; + ::google::protobuf::uint32 timestamp_; + ::google::protobuf::uint32 branch_id_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TxAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bitcoin.TxAck) */ { + public: + TxAck(); + virtual ~TxAck(); + + TxAck(const TxAck& from); + + inline TxAck& operator=(const TxAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TxAck(TxAck&& from) noexcept + : TxAck() { + *this = ::std::move(from); + } + + inline TxAck& operator=(TxAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TxAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TxAck* internal_default_instance() { + return reinterpret_cast( + &_TxAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(TxAck* other); + friend void swap(TxAck& a, TxAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TxAck* New() const final { + return CreateMaybeMessage(NULL); + } + + TxAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TxAck& from); + void MergeFrom(const TxAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TxAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TxAck_TransactionType TransactionType; + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.bitcoin.TxAck.TransactionType tx = 1; + bool has_tx() const; + void clear_tx(); + static const int kTxFieldNumber = 1; + private: + const ::hw::trezor::messages::bitcoin::TxAck_TransactionType& _internal_tx() const; + public: + const ::hw::trezor::messages::bitcoin::TxAck_TransactionType& tx() const; + ::hw::trezor::messages::bitcoin::TxAck_TransactionType* release_tx(); + ::hw::trezor::messages::bitcoin::TxAck_TransactionType* mutable_tx(); + void set_allocated_tx(::hw::trezor::messages::bitcoin::TxAck_TransactionType* tx); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bitcoin.TxAck) + private: + void set_has_tx(); + void clear_has_tx(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::bitcoin::TxAck_TransactionType* tx_; + friend struct ::protobuf_messages_2dbitcoin_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// MultisigRedeemScriptType_HDNodePathType + +// required .hw.trezor.messages.common.HDNodeType node = 1; +inline bool MultisigRedeemScriptType_HDNodePathType::has_node() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MultisigRedeemScriptType_HDNodePathType::set_has_node() { + _has_bits_[0] |= 0x00000001u; +} +inline void MultisigRedeemScriptType_HDNodePathType::clear_has_node() { + _has_bits_[0] &= ~0x00000001u; +} +inline const ::hw::trezor::messages::common::HDNodeType& MultisigRedeemScriptType_HDNodePathType::_internal_node() const { + return *node_; +} +inline const ::hw::trezor::messages::common::HDNodeType& MultisigRedeemScriptType_HDNodePathType::node() const { + const ::hw::trezor::messages::common::HDNodeType* p = node_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType.node) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::common::_HDNodeType_default_instance_); +} +inline ::hw::trezor::messages::common::HDNodeType* MultisigRedeemScriptType_HDNodePathType::release_node() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType.node) + clear_has_node(); + ::hw::trezor::messages::common::HDNodeType* temp = node_; + node_ = NULL; + return temp; +} +inline ::hw::trezor::messages::common::HDNodeType* MultisigRedeemScriptType_HDNodePathType::mutable_node() { + set_has_node(); + if (node_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::common::HDNodeType>(GetArenaNoVirtual()); + node_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType.node) + return node_; +} +inline void MultisigRedeemScriptType_HDNodePathType::set_allocated_node(::hw::trezor::messages::common::HDNodeType* node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(node_); + } + if (node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node, submessage_arena); + } + set_has_node(); + } else { + clear_has_node(); + } + node_ = node; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType.node) +} + +// repeated uint32 address_n = 2; +inline int MultisigRedeemScriptType_HDNodePathType::address_n_size() const { + return address_n_.size(); +} +inline void MultisigRedeemScriptType_HDNodePathType::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 MultisigRedeemScriptType_HDNodePathType::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType.address_n) + return address_n_.Get(index); +} +inline void MultisigRedeemScriptType_HDNodePathType::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType.address_n) +} +inline void MultisigRedeemScriptType_HDNodePathType::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MultisigRedeemScriptType_HDNodePathType::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MultisigRedeemScriptType_HDNodePathType::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType.address_n) + return &address_n_; +} + +// ------------------------------------------------------------------- + +// MultisigRedeemScriptType + +// repeated .hw.trezor.messages.bitcoin.MultisigRedeemScriptType.HDNodePathType pubkeys = 1; +inline int MultisigRedeemScriptType::pubkeys_size() const { + return pubkeys_.size(); +} +inline void MultisigRedeemScriptType::clear_pubkeys() { + pubkeys_.Clear(); +} +inline ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType* MultisigRedeemScriptType::mutable_pubkeys(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.pubkeys) + return pubkeys_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType >* +MultisigRedeemScriptType::mutable_pubkeys() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.pubkeys) + return &pubkeys_; +} +inline const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType& MultisigRedeemScriptType::pubkeys(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.pubkeys) + return pubkeys_.Get(index); +} +inline ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType* MultisigRedeemScriptType::add_pubkeys() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.pubkeys) + return pubkeys_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType_HDNodePathType >& +MultisigRedeemScriptType::pubkeys() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.pubkeys) + return pubkeys_; +} + +// repeated bytes signatures = 2; +inline int MultisigRedeemScriptType::signatures_size() const { + return signatures_.size(); +} +inline void MultisigRedeemScriptType::clear_signatures() { + signatures_.Clear(); +} +inline const ::std::string& MultisigRedeemScriptType::signatures(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) + return signatures_.Get(index); +} +inline ::std::string* MultisigRedeemScriptType::mutable_signatures(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) + return signatures_.Mutable(index); +} +inline void MultisigRedeemScriptType::set_signatures(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) + signatures_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void MultisigRedeemScriptType::set_signatures(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) + signatures_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void MultisigRedeemScriptType::set_signatures(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + signatures_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) +} +inline void MultisigRedeemScriptType::set_signatures(int index, const void* value, size_t size) { + signatures_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) +} +inline ::std::string* MultisigRedeemScriptType::add_signatures() { + // @@protoc_insertion_point(field_add_mutable:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) + return signatures_.Add(); +} +inline void MultisigRedeemScriptType::add_signatures(const ::std::string& value) { + signatures_.Add()->assign(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) +} +#if LANG_CXX11 +inline void MultisigRedeemScriptType::add_signatures(::std::string&& value) { + signatures_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) +} +#endif +inline void MultisigRedeemScriptType::add_signatures(const char* value) { + GOOGLE_DCHECK(value != NULL); + signatures_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) +} +inline void MultisigRedeemScriptType::add_signatures(const void* value, size_t size) { + signatures_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +MultisigRedeemScriptType::signatures() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) + return signatures_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +MultisigRedeemScriptType::mutable_signatures() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.signatures) + return &signatures_; +} + +// optional uint32 m = 3; +inline bool MultisigRedeemScriptType::has_m() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MultisigRedeemScriptType::set_has_m() { + _has_bits_[0] |= 0x00000001u; +} +inline void MultisigRedeemScriptType::clear_has_m() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MultisigRedeemScriptType::clear_m() { + m_ = 0u; + clear_has_m(); +} +inline ::google::protobuf::uint32 MultisigRedeemScriptType::m() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.m) + return m_; +} +inline void MultisigRedeemScriptType::set_m(::google::protobuf::uint32 value) { + set_has_m(); + m_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.m) +} + +// repeated .hw.trezor.messages.common.HDNodeType nodes = 4; +inline int MultisigRedeemScriptType::nodes_size() const { + return nodes_.size(); +} +inline ::hw::trezor::messages::common::HDNodeType* MultisigRedeemScriptType::mutable_nodes(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.nodes) + return nodes_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::common::HDNodeType >* +MultisigRedeemScriptType::mutable_nodes() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.nodes) + return &nodes_; +} +inline const ::hw::trezor::messages::common::HDNodeType& MultisigRedeemScriptType::nodes(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.nodes) + return nodes_.Get(index); +} +inline ::hw::trezor::messages::common::HDNodeType* MultisigRedeemScriptType::add_nodes() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.nodes) + return nodes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::common::HDNodeType >& +MultisigRedeemScriptType::nodes() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.nodes) + return nodes_; +} + +// repeated uint32 address_n = 5; +inline int MultisigRedeemScriptType::address_n_size() const { + return address_n_.size(); +} +inline void MultisigRedeemScriptType::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 MultisigRedeemScriptType::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.address_n) + return address_n_.Get(index); +} +inline void MultisigRedeemScriptType::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.address_n) +} +inline void MultisigRedeemScriptType::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MultisigRedeemScriptType::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MultisigRedeemScriptType::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.MultisigRedeemScriptType.address_n) + return &address_n_; +} + +// ------------------------------------------------------------------- + +// GetPublicKey + +// repeated uint32 address_n = 1; +inline int GetPublicKey::address_n_size() const { + return address_n_.size(); +} +inline void GetPublicKey::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 GetPublicKey::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.GetPublicKey.address_n) + return address_n_.Get(index); +} +inline void GetPublicKey::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.GetPublicKey.address_n) +} +inline void GetPublicKey::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.GetPublicKey.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +GetPublicKey::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.GetPublicKey.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +GetPublicKey::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.GetPublicKey.address_n) + return &address_n_; +} + +// optional string ecdsa_curve_name = 2; +inline bool GetPublicKey::has_ecdsa_curve_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetPublicKey::set_has_ecdsa_curve_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetPublicKey::clear_has_ecdsa_curve_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetPublicKey::clear_ecdsa_curve_name() { + ecdsa_curve_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ecdsa_curve_name(); +} +inline const ::std::string& GetPublicKey::ecdsa_curve_name() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.GetPublicKey.ecdsa_curve_name) + return ecdsa_curve_name_.GetNoArena(); +} +inline void GetPublicKey::set_ecdsa_curve_name(const ::std::string& value) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.GetPublicKey.ecdsa_curve_name) +} +#if LANG_CXX11 +inline void GetPublicKey::set_ecdsa_curve_name(::std::string&& value) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.GetPublicKey.ecdsa_curve_name) +} +#endif +inline void GetPublicKey::set_ecdsa_curve_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.GetPublicKey.ecdsa_curve_name) +} +inline void GetPublicKey::set_ecdsa_curve_name(const char* value, size_t size) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.GetPublicKey.ecdsa_curve_name) +} +inline ::std::string* GetPublicKey::mutable_ecdsa_curve_name() { + set_has_ecdsa_curve_name(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.GetPublicKey.ecdsa_curve_name) + return ecdsa_curve_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetPublicKey::release_ecdsa_curve_name() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.GetPublicKey.ecdsa_curve_name) + if (!has_ecdsa_curve_name()) { + return NULL; + } + clear_has_ecdsa_curve_name(); + return ecdsa_curve_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetPublicKey::set_allocated_ecdsa_curve_name(::std::string* ecdsa_curve_name) { + if (ecdsa_curve_name != NULL) { + set_has_ecdsa_curve_name(); + } else { + clear_has_ecdsa_curve_name(); + } + ecdsa_curve_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ecdsa_curve_name); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.GetPublicKey.ecdsa_curve_name) +} + +// optional bool show_display = 3; +inline bool GetPublicKey::has_show_display() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GetPublicKey::set_has_show_display() { + _has_bits_[0] |= 0x00000004u; +} +inline void GetPublicKey::clear_has_show_display() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GetPublicKey::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool GetPublicKey::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.GetPublicKey.show_display) + return show_display_; +} +inline void GetPublicKey::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.GetPublicKey.show_display) +} + +// optional string coin_name = 4 [default = "Bitcoin"]; +inline bool GetPublicKey::has_coin_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetPublicKey::set_has_coin_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetPublicKey::clear_has_coin_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetPublicKey::clear_coin_name() { + coin_name_.ClearToDefaultNoArena(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get()); + clear_has_coin_name(); +} +inline const ::std::string& GetPublicKey::coin_name() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.GetPublicKey.coin_name) + return coin_name_.GetNoArena(); +} +inline void GetPublicKey::set_coin_name(const ::std::string& value) { + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.GetPublicKey.coin_name) +} +#if LANG_CXX11 +inline void GetPublicKey::set_coin_name(::std::string&& value) { + set_has_coin_name(); + coin_name_.SetNoArena( + &::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.GetPublicKey.coin_name) +} +#endif +inline void GetPublicKey::set_coin_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.GetPublicKey.coin_name) +} +inline void GetPublicKey::set_coin_name(const char* value, size_t size) { + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.GetPublicKey.coin_name) +} +inline ::std::string* GetPublicKey::mutable_coin_name() { + set_has_coin_name(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.GetPublicKey.coin_name) + return coin_name_.MutableNoArena(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} +inline ::std::string* GetPublicKey::release_coin_name() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.GetPublicKey.coin_name) + if (!has_coin_name()) { + return NULL; + } + clear_has_coin_name(); + return coin_name_.ReleaseNonDefaultNoArena(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} +inline void GetPublicKey::set_allocated_coin_name(::std::string* coin_name) { + if (coin_name != NULL) { + set_has_coin_name(); + } else { + clear_has_coin_name(); + } + coin_name_.SetAllocatedNoArena(&::hw::trezor::messages::bitcoin::GetPublicKey::_i_give_permission_to_break_this_code_default_coin_name_.get(), coin_name); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.GetPublicKey.coin_name) +} + +// optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; +inline bool GetPublicKey::has_script_type() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void GetPublicKey::set_has_script_type() { + _has_bits_[0] |= 0x00000008u; +} +inline void GetPublicKey::clear_has_script_type() { + _has_bits_[0] &= ~0x00000008u; +} +inline void GetPublicKey::clear_script_type() { + script_type_ = 0; + clear_has_script_type(); +} +inline ::hw::trezor::messages::bitcoin::InputScriptType GetPublicKey::script_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.GetPublicKey.script_type) + return static_cast< ::hw::trezor::messages::bitcoin::InputScriptType >(script_type_); +} +inline void GetPublicKey::set_script_type(::hw::trezor::messages::bitcoin::InputScriptType value) { + assert(::hw::trezor::messages::bitcoin::InputScriptType_IsValid(value)); + set_has_script_type(); + script_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.GetPublicKey.script_type) +} + +// ------------------------------------------------------------------- + +// PublicKey + +// required .hw.trezor.messages.common.HDNodeType node = 1; +inline bool PublicKey::has_node() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PublicKey::set_has_node() { + _has_bits_[0] |= 0x00000002u; +} +inline void PublicKey::clear_has_node() { + _has_bits_[0] &= ~0x00000002u; +} +inline const ::hw::trezor::messages::common::HDNodeType& PublicKey::_internal_node() const { + return *node_; +} +inline const ::hw::trezor::messages::common::HDNodeType& PublicKey::node() const { + const ::hw::trezor::messages::common::HDNodeType* p = node_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.PublicKey.node) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::common::_HDNodeType_default_instance_); +} +inline ::hw::trezor::messages::common::HDNodeType* PublicKey::release_node() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.PublicKey.node) + clear_has_node(); + ::hw::trezor::messages::common::HDNodeType* temp = node_; + node_ = NULL; + return temp; +} +inline ::hw::trezor::messages::common::HDNodeType* PublicKey::mutable_node() { + set_has_node(); + if (node_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::common::HDNodeType>(GetArenaNoVirtual()); + node_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.PublicKey.node) + return node_; +} +inline void PublicKey::set_allocated_node(::hw::trezor::messages::common::HDNodeType* node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(node_); + } + if (node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node, submessage_arena); + } + set_has_node(); + } else { + clear_has_node(); + } + node_ = node; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.PublicKey.node) +} + +// optional string xpub = 2; +inline bool PublicKey::has_xpub() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PublicKey::set_has_xpub() { + _has_bits_[0] |= 0x00000001u; +} +inline void PublicKey::clear_has_xpub() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PublicKey::clear_xpub() { + xpub_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_xpub(); +} +inline const ::std::string& PublicKey::xpub() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.PublicKey.xpub) + return xpub_.GetNoArena(); +} +inline void PublicKey::set_xpub(const ::std::string& value) { + set_has_xpub(); + xpub_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.PublicKey.xpub) +} +#if LANG_CXX11 +inline void PublicKey::set_xpub(::std::string&& value) { + set_has_xpub(); + xpub_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.PublicKey.xpub) +} +#endif +inline void PublicKey::set_xpub(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_xpub(); + xpub_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.PublicKey.xpub) +} +inline void PublicKey::set_xpub(const char* value, size_t size) { + set_has_xpub(); + xpub_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.PublicKey.xpub) +} +inline ::std::string* PublicKey::mutable_xpub() { + set_has_xpub(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.PublicKey.xpub) + return xpub_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PublicKey::release_xpub() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.PublicKey.xpub) + if (!has_xpub()) { + return NULL; + } + clear_has_xpub(); + return xpub_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PublicKey::set_allocated_xpub(::std::string* xpub) { + if (xpub != NULL) { + set_has_xpub(); + } else { + clear_has_xpub(); + } + xpub_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xpub); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.PublicKey.xpub) +} + +// ------------------------------------------------------------------- + +// GetAddress + +// repeated uint32 address_n = 1; +inline int GetAddress::address_n_size() const { + return address_n_.size(); +} +inline void GetAddress::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 GetAddress::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.GetAddress.address_n) + return address_n_.Get(index); +} +inline void GetAddress::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.GetAddress.address_n) +} +inline void GetAddress::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.GetAddress.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +GetAddress::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.GetAddress.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +GetAddress::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.GetAddress.address_n) + return &address_n_; +} + +// optional string coin_name = 2 [default = "Bitcoin"]; +inline bool GetAddress::has_coin_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetAddress::set_has_coin_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetAddress::clear_has_coin_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetAddress::clear_coin_name() { + coin_name_.ClearToDefaultNoArena(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get()); + clear_has_coin_name(); +} +inline const ::std::string& GetAddress::coin_name() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.GetAddress.coin_name) + return coin_name_.GetNoArena(); +} +inline void GetAddress::set_coin_name(const ::std::string& value) { + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.GetAddress.coin_name) +} +#if LANG_CXX11 +inline void GetAddress::set_coin_name(::std::string&& value) { + set_has_coin_name(); + coin_name_.SetNoArena( + &::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.GetAddress.coin_name) +} +#endif +inline void GetAddress::set_coin_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.GetAddress.coin_name) +} +inline void GetAddress::set_coin_name(const char* value, size_t size) { + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.GetAddress.coin_name) +} +inline ::std::string* GetAddress::mutable_coin_name() { + set_has_coin_name(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.GetAddress.coin_name) + return coin_name_.MutableNoArena(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} +inline ::std::string* GetAddress::release_coin_name() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.GetAddress.coin_name) + if (!has_coin_name()) { + return NULL; + } + clear_has_coin_name(); + return coin_name_.ReleaseNonDefaultNoArena(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} +inline void GetAddress::set_allocated_coin_name(::std::string* coin_name) { + if (coin_name != NULL) { + set_has_coin_name(); + } else { + clear_has_coin_name(); + } + coin_name_.SetAllocatedNoArena(&::hw::trezor::messages::bitcoin::GetAddress::_i_give_permission_to_break_this_code_default_coin_name_.get(), coin_name); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.GetAddress.coin_name) +} + +// optional bool show_display = 3; +inline bool GetAddress::has_show_display() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GetAddress::set_has_show_display() { + _has_bits_[0] |= 0x00000004u; +} +inline void GetAddress::clear_has_show_display() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GetAddress::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool GetAddress::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.GetAddress.show_display) + return show_display_; +} +inline void GetAddress::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.GetAddress.show_display) +} + +// optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 4; +inline bool GetAddress::has_multisig() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetAddress::set_has_multisig() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetAddress::clear_has_multisig() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetAddress::clear_multisig() { + if (multisig_ != NULL) multisig_->Clear(); + clear_has_multisig(); +} +inline const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& GetAddress::_internal_multisig() const { + return *multisig_; +} +inline const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& GetAddress::multisig() const { + const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* p = multisig_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.GetAddress.multisig) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::bitcoin::_MultisigRedeemScriptType_default_instance_); +} +inline ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* GetAddress::release_multisig() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.GetAddress.multisig) + clear_has_multisig(); + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* temp = multisig_; + multisig_ = NULL; + return temp; +} +inline ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* GetAddress::mutable_multisig() { + set_has_multisig(); + if (multisig_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::bitcoin::MultisigRedeemScriptType>(GetArenaNoVirtual()); + multisig_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.GetAddress.multisig) + return multisig_; +} +inline void GetAddress::set_allocated_multisig(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* multisig) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete multisig_; + } + if (multisig) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + multisig = ::google::protobuf::internal::GetOwnedMessage( + message_arena, multisig, submessage_arena); + } + set_has_multisig(); + } else { + clear_has_multisig(); + } + multisig_ = multisig; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.GetAddress.multisig) +} + +// optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 5 [default = SPENDADDRESS]; +inline bool GetAddress::has_script_type() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void GetAddress::set_has_script_type() { + _has_bits_[0] |= 0x00000008u; +} +inline void GetAddress::clear_has_script_type() { + _has_bits_[0] &= ~0x00000008u; +} +inline void GetAddress::clear_script_type() { + script_type_ = 0; + clear_has_script_type(); +} +inline ::hw::trezor::messages::bitcoin::InputScriptType GetAddress::script_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.GetAddress.script_type) + return static_cast< ::hw::trezor::messages::bitcoin::InputScriptType >(script_type_); +} +inline void GetAddress::set_script_type(::hw::trezor::messages::bitcoin::InputScriptType value) { + assert(::hw::trezor::messages::bitcoin::InputScriptType_IsValid(value)); + set_has_script_type(); + script_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.GetAddress.script_type) +} + +// ------------------------------------------------------------------- + +// Address + +// required string address = 1; +inline bool Address::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Address::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void Address::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Address::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& Address::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.Address.address) + return address_.GetNoArena(); +} +inline void Address::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.Address.address) +} +#if LANG_CXX11 +inline void Address::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.Address.address) +} +#endif +inline void Address::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.Address.address) +} +inline void Address::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.Address.address) +} +inline ::std::string* Address::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.Address.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Address::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.Address.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Address::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.Address.address) +} + +// ------------------------------------------------------------------- + +// SignMessage + +// repeated uint32 address_n = 1; +inline int SignMessage::address_n_size() const { + return address_n_.size(); +} +inline void SignMessage::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 SignMessage::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignMessage.address_n) + return address_n_.Get(index); +} +inline void SignMessage::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignMessage.address_n) +} +inline void SignMessage::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.SignMessage.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +SignMessage::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.SignMessage.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +SignMessage::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.SignMessage.address_n) + return &address_n_; +} + +// required bytes message = 2; +inline bool SignMessage::has_message() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SignMessage::set_has_message() { + _has_bits_[0] |= 0x00000001u; +} +inline void SignMessage::clear_has_message() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SignMessage::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_message(); +} +inline const ::std::string& SignMessage::message() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignMessage.message) + return message_.GetNoArena(); +} +inline void SignMessage::set_message(const ::std::string& value) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignMessage.message) +} +#if LANG_CXX11 +inline void SignMessage::set_message(::std::string&& value) { + set_has_message(); + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.SignMessage.message) +} +#endif +inline void SignMessage::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.SignMessage.message) +} +inline void SignMessage::set_message(const void* value, size_t size) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.SignMessage.message) +} +inline ::std::string* SignMessage::mutable_message() { + set_has_message(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.SignMessage.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignMessage::release_message() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.SignMessage.message) + if (!has_message()) { + return NULL; + } + clear_has_message(); + return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignMessage::set_allocated_message(::std::string* message) { + if (message != NULL) { + set_has_message(); + } else { + clear_has_message(); + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.SignMessage.message) +} + +// optional string coin_name = 3 [default = "Bitcoin"]; +inline bool SignMessage::has_coin_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SignMessage::set_has_coin_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void SignMessage::clear_has_coin_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SignMessage::clear_coin_name() { + coin_name_.ClearToDefaultNoArena(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); + clear_has_coin_name(); +} +inline const ::std::string& SignMessage::coin_name() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignMessage.coin_name) + return coin_name_.GetNoArena(); +} +inline void SignMessage::set_coin_name(const ::std::string& value) { + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignMessage.coin_name) +} +#if LANG_CXX11 +inline void SignMessage::set_coin_name(::std::string&& value) { + set_has_coin_name(); + coin_name_.SetNoArena( + &::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.SignMessage.coin_name) +} +#endif +inline void SignMessage::set_coin_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.SignMessage.coin_name) +} +inline void SignMessage::set_coin_name(const char* value, size_t size) { + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.SignMessage.coin_name) +} +inline ::std::string* SignMessage::mutable_coin_name() { + set_has_coin_name(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.SignMessage.coin_name) + return coin_name_.MutableNoArena(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} +inline ::std::string* SignMessage::release_coin_name() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.SignMessage.coin_name) + if (!has_coin_name()) { + return NULL; + } + clear_has_coin_name(); + return coin_name_.ReleaseNonDefaultNoArena(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} +inline void SignMessage::set_allocated_coin_name(::std::string* coin_name) { + if (coin_name != NULL) { + set_has_coin_name(); + } else { + clear_has_coin_name(); + } + coin_name_.SetAllocatedNoArena(&::hw::trezor::messages::bitcoin::SignMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), coin_name); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.SignMessage.coin_name) +} + +// optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 4 [default = SPENDADDRESS]; +inline bool SignMessage::has_script_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SignMessage::set_has_script_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void SignMessage::clear_has_script_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SignMessage::clear_script_type() { + script_type_ = 0; + clear_has_script_type(); +} +inline ::hw::trezor::messages::bitcoin::InputScriptType SignMessage::script_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignMessage.script_type) + return static_cast< ::hw::trezor::messages::bitcoin::InputScriptType >(script_type_); +} +inline void SignMessage::set_script_type(::hw::trezor::messages::bitcoin::InputScriptType value) { + assert(::hw::trezor::messages::bitcoin::InputScriptType_IsValid(value)); + set_has_script_type(); + script_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignMessage.script_type) +} + +// ------------------------------------------------------------------- + +// MessageSignature + +// optional string address = 1; +inline bool MessageSignature::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MessageSignature::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void MessageSignature::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MessageSignature::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& MessageSignature::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.MessageSignature.address) + return address_.GetNoArena(); +} +inline void MessageSignature::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.MessageSignature.address) +} +#if LANG_CXX11 +inline void MessageSignature::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.MessageSignature.address) +} +#endif +inline void MessageSignature::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.MessageSignature.address) +} +inline void MessageSignature::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.MessageSignature.address) +} +inline ::std::string* MessageSignature::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.MessageSignature.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MessageSignature::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.MessageSignature.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MessageSignature::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.MessageSignature.address) +} + +// optional bytes signature = 2; +inline bool MessageSignature::has_signature() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MessageSignature::set_has_signature() { + _has_bits_[0] |= 0x00000002u; +} +inline void MessageSignature::clear_has_signature() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MessageSignature::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& MessageSignature::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.MessageSignature.signature) + return signature_.GetNoArena(); +} +inline void MessageSignature::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.MessageSignature.signature) +} +#if LANG_CXX11 +inline void MessageSignature::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.MessageSignature.signature) +} +#endif +inline void MessageSignature::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.MessageSignature.signature) +} +inline void MessageSignature::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.MessageSignature.signature) +} +inline ::std::string* MessageSignature::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.MessageSignature.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MessageSignature::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.MessageSignature.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MessageSignature::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.MessageSignature.signature) +} + +// ------------------------------------------------------------------- + +// VerifyMessage + +// optional string address = 1; +inline bool VerifyMessage::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void VerifyMessage::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void VerifyMessage::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void VerifyMessage::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& VerifyMessage::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.VerifyMessage.address) + return address_.GetNoArena(); +} +inline void VerifyMessage::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.VerifyMessage.address) +} +#if LANG_CXX11 +inline void VerifyMessage::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.VerifyMessage.address) +} +#endif +inline void VerifyMessage::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.VerifyMessage.address) +} +inline void VerifyMessage::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.VerifyMessage.address) +} +inline ::std::string* VerifyMessage::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.VerifyMessage.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* VerifyMessage::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.VerifyMessage.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void VerifyMessage::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.VerifyMessage.address) +} + +// optional bytes signature = 2; +inline bool VerifyMessage::has_signature() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void VerifyMessage::set_has_signature() { + _has_bits_[0] |= 0x00000002u; +} +inline void VerifyMessage::clear_has_signature() { + _has_bits_[0] &= ~0x00000002u; +} +inline void VerifyMessage::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& VerifyMessage::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.VerifyMessage.signature) + return signature_.GetNoArena(); +} +inline void VerifyMessage::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.VerifyMessage.signature) +} +#if LANG_CXX11 +inline void VerifyMessage::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.VerifyMessage.signature) +} +#endif +inline void VerifyMessage::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.VerifyMessage.signature) +} +inline void VerifyMessage::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.VerifyMessage.signature) +} +inline ::std::string* VerifyMessage::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.VerifyMessage.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* VerifyMessage::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.VerifyMessage.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void VerifyMessage::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.VerifyMessage.signature) +} + +// optional bytes message = 3; +inline bool VerifyMessage::has_message() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void VerifyMessage::set_has_message() { + _has_bits_[0] |= 0x00000004u; +} +inline void VerifyMessage::clear_has_message() { + _has_bits_[0] &= ~0x00000004u; +} +inline void VerifyMessage::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_message(); +} +inline const ::std::string& VerifyMessage::message() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.VerifyMessage.message) + return message_.GetNoArena(); +} +inline void VerifyMessage::set_message(const ::std::string& value) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.VerifyMessage.message) +} +#if LANG_CXX11 +inline void VerifyMessage::set_message(::std::string&& value) { + set_has_message(); + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.VerifyMessage.message) +} +#endif +inline void VerifyMessage::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.VerifyMessage.message) +} +inline void VerifyMessage::set_message(const void* value, size_t size) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.VerifyMessage.message) +} +inline ::std::string* VerifyMessage::mutable_message() { + set_has_message(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.VerifyMessage.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* VerifyMessage::release_message() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.VerifyMessage.message) + if (!has_message()) { + return NULL; + } + clear_has_message(); + return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void VerifyMessage::set_allocated_message(::std::string* message) { + if (message != NULL) { + set_has_message(); + } else { + clear_has_message(); + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.VerifyMessage.message) +} + +// optional string coin_name = 4 [default = "Bitcoin"]; +inline bool VerifyMessage::has_coin_name() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void VerifyMessage::set_has_coin_name() { + _has_bits_[0] |= 0x00000008u; +} +inline void VerifyMessage::clear_has_coin_name() { + _has_bits_[0] &= ~0x00000008u; +} +inline void VerifyMessage::clear_coin_name() { + coin_name_.ClearToDefaultNoArena(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); + clear_has_coin_name(); +} +inline const ::std::string& VerifyMessage::coin_name() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.VerifyMessage.coin_name) + return coin_name_.GetNoArena(); +} +inline void VerifyMessage::set_coin_name(const ::std::string& value) { + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.VerifyMessage.coin_name) +} +#if LANG_CXX11 +inline void VerifyMessage::set_coin_name(::std::string&& value) { + set_has_coin_name(); + coin_name_.SetNoArena( + &::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.VerifyMessage.coin_name) +} +#endif +inline void VerifyMessage::set_coin_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.VerifyMessage.coin_name) +} +inline void VerifyMessage::set_coin_name(const char* value, size_t size) { + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.VerifyMessage.coin_name) +} +inline ::std::string* VerifyMessage::mutable_coin_name() { + set_has_coin_name(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.VerifyMessage.coin_name) + return coin_name_.MutableNoArena(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} +inline ::std::string* VerifyMessage::release_coin_name() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.VerifyMessage.coin_name) + if (!has_coin_name()) { + return NULL; + } + clear_has_coin_name(); + return coin_name_.ReleaseNonDefaultNoArena(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} +inline void VerifyMessage::set_allocated_coin_name(::std::string* coin_name) { + if (coin_name != NULL) { + set_has_coin_name(); + } else { + clear_has_coin_name(); + } + coin_name_.SetAllocatedNoArena(&::hw::trezor::messages::bitcoin::VerifyMessage::_i_give_permission_to_break_this_code_default_coin_name_.get(), coin_name); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.VerifyMessage.coin_name) +} + +// ------------------------------------------------------------------- + +// SignTx + +// required uint32 outputs_count = 1; +inline bool SignTx::has_outputs_count() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SignTx::set_has_outputs_count() { + _has_bits_[0] |= 0x00000002u; +} +inline void SignTx::clear_has_outputs_count() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SignTx::clear_outputs_count() { + outputs_count_ = 0u; + clear_has_outputs_count(); +} +inline ::google::protobuf::uint32 SignTx::outputs_count() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignTx.outputs_count) + return outputs_count_; +} +inline void SignTx::set_outputs_count(::google::protobuf::uint32 value) { + set_has_outputs_count(); + outputs_count_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignTx.outputs_count) +} + +// required uint32 inputs_count = 2; +inline bool SignTx::has_inputs_count() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SignTx::set_has_inputs_count() { + _has_bits_[0] |= 0x00000004u; +} +inline void SignTx::clear_has_inputs_count() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SignTx::clear_inputs_count() { + inputs_count_ = 0u; + clear_has_inputs_count(); +} +inline ::google::protobuf::uint32 SignTx::inputs_count() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignTx.inputs_count) + return inputs_count_; +} +inline void SignTx::set_inputs_count(::google::protobuf::uint32 value) { + set_has_inputs_count(); + inputs_count_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignTx.inputs_count) +} + +// optional string coin_name = 3 [default = "Bitcoin"]; +inline bool SignTx::has_coin_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SignTx::set_has_coin_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void SignTx::clear_has_coin_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SignTx::clear_coin_name() { + coin_name_.ClearToDefaultNoArena(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get()); + clear_has_coin_name(); +} +inline const ::std::string& SignTx::coin_name() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignTx.coin_name) + return coin_name_.GetNoArena(); +} +inline void SignTx::set_coin_name(const ::std::string& value) { + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignTx.coin_name) +} +#if LANG_CXX11 +inline void SignTx::set_coin_name(::std::string&& value) { + set_has_coin_name(); + coin_name_.SetNoArena( + &::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.SignTx.coin_name) +} +#endif +inline void SignTx::set_coin_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.SignTx.coin_name) +} +inline void SignTx::set_coin_name(const char* value, size_t size) { + set_has_coin_name(); + coin_name_.SetNoArena(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.SignTx.coin_name) +} +inline ::std::string* SignTx::mutable_coin_name() { + set_has_coin_name(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.SignTx.coin_name) + return coin_name_.MutableNoArena(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} +inline ::std::string* SignTx::release_coin_name() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.SignTx.coin_name) + if (!has_coin_name()) { + return NULL; + } + clear_has_coin_name(); + return coin_name_.ReleaseNonDefaultNoArena(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get()); +} +inline void SignTx::set_allocated_coin_name(::std::string* coin_name) { + if (coin_name != NULL) { + set_has_coin_name(); + } else { + clear_has_coin_name(); + } + coin_name_.SetAllocatedNoArena(&::hw::trezor::messages::bitcoin::SignTx::_i_give_permission_to_break_this_code_default_coin_name_.get(), coin_name); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.SignTx.coin_name) +} + +// optional uint32 version = 4 [default = 1]; +inline bool SignTx::has_version() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void SignTx::set_has_version() { + _has_bits_[0] |= 0x00000200u; +} +inline void SignTx::clear_has_version() { + _has_bits_[0] &= ~0x00000200u; +} +inline void SignTx::clear_version() { + version_ = 1u; + clear_has_version(); +} +inline ::google::protobuf::uint32 SignTx::version() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignTx.version) + return version_; +} +inline void SignTx::set_version(::google::protobuf::uint32 value) { + set_has_version(); + version_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignTx.version) +} + +// optional uint32 lock_time = 5 [default = 0]; +inline bool SignTx::has_lock_time() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void SignTx::set_has_lock_time() { + _has_bits_[0] |= 0x00000008u; +} +inline void SignTx::clear_has_lock_time() { + _has_bits_[0] &= ~0x00000008u; +} +inline void SignTx::clear_lock_time() { + lock_time_ = 0u; + clear_has_lock_time(); +} +inline ::google::protobuf::uint32 SignTx::lock_time() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignTx.lock_time) + return lock_time_; +} +inline void SignTx::set_lock_time(::google::protobuf::uint32 value) { + set_has_lock_time(); + lock_time_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignTx.lock_time) +} + +// optional uint32 expiry = 6; +inline bool SignTx::has_expiry() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void SignTx::set_has_expiry() { + _has_bits_[0] |= 0x00000010u; +} +inline void SignTx::clear_has_expiry() { + _has_bits_[0] &= ~0x00000010u; +} +inline void SignTx::clear_expiry() { + expiry_ = 0u; + clear_has_expiry(); +} +inline ::google::protobuf::uint32 SignTx::expiry() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignTx.expiry) + return expiry_; +} +inline void SignTx::set_expiry(::google::protobuf::uint32 value) { + set_has_expiry(); + expiry_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignTx.expiry) +} + +// optional bool overwintered = 7; +inline bool SignTx::has_overwintered() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void SignTx::set_has_overwintered() { + _has_bits_[0] |= 0x00000020u; +} +inline void SignTx::clear_has_overwintered() { + _has_bits_[0] &= ~0x00000020u; +} +inline void SignTx::clear_overwintered() { + overwintered_ = false; + clear_has_overwintered(); +} +inline bool SignTx::overwintered() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignTx.overwintered) + return overwintered_; +} +inline void SignTx::set_overwintered(bool value) { + set_has_overwintered(); + overwintered_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignTx.overwintered) +} + +// optional uint32 version_group_id = 8; +inline bool SignTx::has_version_group_id() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void SignTx::set_has_version_group_id() { + _has_bits_[0] |= 0x00000040u; +} +inline void SignTx::clear_has_version_group_id() { + _has_bits_[0] &= ~0x00000040u; +} +inline void SignTx::clear_version_group_id() { + version_group_id_ = 0u; + clear_has_version_group_id(); +} +inline ::google::protobuf::uint32 SignTx::version_group_id() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignTx.version_group_id) + return version_group_id_; +} +inline void SignTx::set_version_group_id(::google::protobuf::uint32 value) { + set_has_version_group_id(); + version_group_id_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignTx.version_group_id) +} + +// optional uint32 timestamp = 9; +inline bool SignTx::has_timestamp() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void SignTx::set_has_timestamp() { + _has_bits_[0] |= 0x00000080u; +} +inline void SignTx::clear_has_timestamp() { + _has_bits_[0] &= ~0x00000080u; +} +inline void SignTx::clear_timestamp() { + timestamp_ = 0u; + clear_has_timestamp(); +} +inline ::google::protobuf::uint32 SignTx::timestamp() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignTx.timestamp) + return timestamp_; +} +inline void SignTx::set_timestamp(::google::protobuf::uint32 value) { + set_has_timestamp(); + timestamp_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignTx.timestamp) +} + +// optional uint32 branch_id = 10; +inline bool SignTx::has_branch_id() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void SignTx::set_has_branch_id() { + _has_bits_[0] |= 0x00000100u; +} +inline void SignTx::clear_has_branch_id() { + _has_bits_[0] &= ~0x00000100u; +} +inline void SignTx::clear_branch_id() { + branch_id_ = 0u; + clear_has_branch_id(); +} +inline ::google::protobuf::uint32 SignTx::branch_id() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.SignTx.branch_id) + return branch_id_; +} +inline void SignTx::set_branch_id(::google::protobuf::uint32 value) { + set_has_branch_id(); + branch_id_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.SignTx.branch_id) +} + +// ------------------------------------------------------------------- + +// TxRequest_TxRequestDetailsType + +// optional uint32 request_index = 1; +inline bool TxRequest_TxRequestDetailsType::has_request_index() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TxRequest_TxRequestDetailsType::set_has_request_index() { + _has_bits_[0] |= 0x00000002u; +} +inline void TxRequest_TxRequestDetailsType::clear_has_request_index() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TxRequest_TxRequestDetailsType::clear_request_index() { + request_index_ = 0u; + clear_has_request_index(); +} +inline ::google::protobuf::uint32 TxRequest_TxRequestDetailsType::request_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.request_index) + return request_index_; +} +inline void TxRequest_TxRequestDetailsType::set_request_index(::google::protobuf::uint32 value) { + set_has_request_index(); + request_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.request_index) +} + +// optional bytes tx_hash = 2; +inline bool TxRequest_TxRequestDetailsType::has_tx_hash() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TxRequest_TxRequestDetailsType::set_has_tx_hash() { + _has_bits_[0] |= 0x00000001u; +} +inline void TxRequest_TxRequestDetailsType::clear_has_tx_hash() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TxRequest_TxRequestDetailsType::clear_tx_hash() { + tx_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_hash(); +} +inline const ::std::string& TxRequest_TxRequestDetailsType::tx_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.tx_hash) + return tx_hash_.GetNoArena(); +} +inline void TxRequest_TxRequestDetailsType::set_tx_hash(const ::std::string& value) { + set_has_tx_hash(); + tx_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.tx_hash) +} +#if LANG_CXX11 +inline void TxRequest_TxRequestDetailsType::set_tx_hash(::std::string&& value) { + set_has_tx_hash(); + tx_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.tx_hash) +} +#endif +inline void TxRequest_TxRequestDetailsType::set_tx_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_hash(); + tx_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.tx_hash) +} +inline void TxRequest_TxRequestDetailsType::set_tx_hash(const void* value, size_t size) { + set_has_tx_hash(); + tx_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.tx_hash) +} +inline ::std::string* TxRequest_TxRequestDetailsType::mutable_tx_hash() { + set_has_tx_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.tx_hash) + return tx_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TxRequest_TxRequestDetailsType::release_tx_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.tx_hash) + if (!has_tx_hash()) { + return NULL; + } + clear_has_tx_hash(); + return tx_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TxRequest_TxRequestDetailsType::set_allocated_tx_hash(::std::string* tx_hash) { + if (tx_hash != NULL) { + set_has_tx_hash(); + } else { + clear_has_tx_hash(); + } + tx_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.tx_hash) +} + +// optional uint32 extra_data_len = 3; +inline bool TxRequest_TxRequestDetailsType::has_extra_data_len() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TxRequest_TxRequestDetailsType::set_has_extra_data_len() { + _has_bits_[0] |= 0x00000004u; +} +inline void TxRequest_TxRequestDetailsType::clear_has_extra_data_len() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TxRequest_TxRequestDetailsType::clear_extra_data_len() { + extra_data_len_ = 0u; + clear_has_extra_data_len(); +} +inline ::google::protobuf::uint32 TxRequest_TxRequestDetailsType::extra_data_len() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.extra_data_len) + return extra_data_len_; +} +inline void TxRequest_TxRequestDetailsType::set_extra_data_len(::google::protobuf::uint32 value) { + set_has_extra_data_len(); + extra_data_len_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.extra_data_len) +} + +// optional uint32 extra_data_offset = 4; +inline bool TxRequest_TxRequestDetailsType::has_extra_data_offset() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TxRequest_TxRequestDetailsType::set_has_extra_data_offset() { + _has_bits_[0] |= 0x00000008u; +} +inline void TxRequest_TxRequestDetailsType::clear_has_extra_data_offset() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TxRequest_TxRequestDetailsType::clear_extra_data_offset() { + extra_data_offset_ = 0u; + clear_has_extra_data_offset(); +} +inline ::google::protobuf::uint32 TxRequest_TxRequestDetailsType::extra_data_offset() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.extra_data_offset) + return extra_data_offset_; +} +inline void TxRequest_TxRequestDetailsType::set_extra_data_offset(::google::protobuf::uint32 value) { + set_has_extra_data_offset(); + extra_data_offset_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType.extra_data_offset) +} + +// ------------------------------------------------------------------- + +// TxRequest_TxRequestSerializedType + +// optional uint32 signature_index = 1; +inline bool TxRequest_TxRequestSerializedType::has_signature_index() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TxRequest_TxRequestSerializedType::set_has_signature_index() { + _has_bits_[0] |= 0x00000004u; +} +inline void TxRequest_TxRequestSerializedType::clear_has_signature_index() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TxRequest_TxRequestSerializedType::clear_signature_index() { + signature_index_ = 0u; + clear_has_signature_index(); +} +inline ::google::protobuf::uint32 TxRequest_TxRequestSerializedType::signature_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.signature_index) + return signature_index_; +} +inline void TxRequest_TxRequestSerializedType::set_signature_index(::google::protobuf::uint32 value) { + set_has_signature_index(); + signature_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.signature_index) +} + +// optional bytes signature = 2; +inline bool TxRequest_TxRequestSerializedType::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TxRequest_TxRequestSerializedType::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void TxRequest_TxRequestSerializedType::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TxRequest_TxRequestSerializedType::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& TxRequest_TxRequestSerializedType::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.signature) + return signature_.GetNoArena(); +} +inline void TxRequest_TxRequestSerializedType::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.signature) +} +#if LANG_CXX11 +inline void TxRequest_TxRequestSerializedType::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.signature) +} +#endif +inline void TxRequest_TxRequestSerializedType::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.signature) +} +inline void TxRequest_TxRequestSerializedType::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.signature) +} +inline ::std::string* TxRequest_TxRequestSerializedType::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TxRequest_TxRequestSerializedType::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TxRequest_TxRequestSerializedType::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.signature) +} + +// optional bytes serialized_tx = 3; +inline bool TxRequest_TxRequestSerializedType::has_serialized_tx() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TxRequest_TxRequestSerializedType::set_has_serialized_tx() { + _has_bits_[0] |= 0x00000002u; +} +inline void TxRequest_TxRequestSerializedType::clear_has_serialized_tx() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TxRequest_TxRequestSerializedType::clear_serialized_tx() { + serialized_tx_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_serialized_tx(); +} +inline const ::std::string& TxRequest_TxRequestSerializedType::serialized_tx() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.serialized_tx) + return serialized_tx_.GetNoArena(); +} +inline void TxRequest_TxRequestSerializedType::set_serialized_tx(const ::std::string& value) { + set_has_serialized_tx(); + serialized_tx_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.serialized_tx) +} +#if LANG_CXX11 +inline void TxRequest_TxRequestSerializedType::set_serialized_tx(::std::string&& value) { + set_has_serialized_tx(); + serialized_tx_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.serialized_tx) +} +#endif +inline void TxRequest_TxRequestSerializedType::set_serialized_tx(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_serialized_tx(); + serialized_tx_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.serialized_tx) +} +inline void TxRequest_TxRequestSerializedType::set_serialized_tx(const void* value, size_t size) { + set_has_serialized_tx(); + serialized_tx_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.serialized_tx) +} +inline ::std::string* TxRequest_TxRequestSerializedType::mutable_serialized_tx() { + set_has_serialized_tx(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.serialized_tx) + return serialized_tx_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TxRequest_TxRequestSerializedType::release_serialized_tx() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.serialized_tx) + if (!has_serialized_tx()) { + return NULL; + } + clear_has_serialized_tx(); + return serialized_tx_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TxRequest_TxRequestSerializedType::set_allocated_serialized_tx(::std::string* serialized_tx) { + if (serialized_tx != NULL) { + set_has_serialized_tx(); + } else { + clear_has_serialized_tx(); + } + serialized_tx_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serialized_tx); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType.serialized_tx) +} + +// ------------------------------------------------------------------- + +// TxRequest + +// optional .hw.trezor.messages.bitcoin.TxRequest.RequestType request_type = 1; +inline bool TxRequest::has_request_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TxRequest::set_has_request_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void TxRequest::clear_has_request_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TxRequest::clear_request_type() { + request_type_ = 0; + clear_has_request_type(); +} +inline ::hw::trezor::messages::bitcoin::TxRequest_RequestType TxRequest::request_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxRequest.request_type) + return static_cast< ::hw::trezor::messages::bitcoin::TxRequest_RequestType >(request_type_); +} +inline void TxRequest::set_request_type(::hw::trezor::messages::bitcoin::TxRequest_RequestType value) { + assert(::hw::trezor::messages::bitcoin::TxRequest_RequestType_IsValid(value)); + set_has_request_type(); + request_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxRequest.request_type) +} + +// optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestDetailsType details = 2; +inline bool TxRequest::has_details() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TxRequest::set_has_details() { + _has_bits_[0] |= 0x00000001u; +} +inline void TxRequest::clear_has_details() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TxRequest::clear_details() { + if (details_ != NULL) details_->Clear(); + clear_has_details(); +} +inline const ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType& TxRequest::_internal_details() const { + return *details_; +} +inline const ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType& TxRequest::details() const { + const ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType* p = details_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxRequest.details) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::bitcoin::_TxRequest_TxRequestDetailsType_default_instance_); +} +inline ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType* TxRequest::release_details() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxRequest.details) + clear_has_details(); + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType* temp = details_; + details_ = NULL; + return temp; +} +inline ::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType* TxRequest::mutable_details() { + set_has_details(); + if (details_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType>(GetArenaNoVirtual()); + details_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxRequest.details) + return details_; +} +inline void TxRequest::set_allocated_details(::hw::trezor::messages::bitcoin::TxRequest_TxRequestDetailsType* details) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete details_; + } + if (details) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + details = ::google::protobuf::internal::GetOwnedMessage( + message_arena, details, submessage_arena); + } + set_has_details(); + } else { + clear_has_details(); + } + details_ = details; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxRequest.details) +} + +// optional .hw.trezor.messages.bitcoin.TxRequest.TxRequestSerializedType serialized = 3; +inline bool TxRequest::has_serialized() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TxRequest::set_has_serialized() { + _has_bits_[0] |= 0x00000002u; +} +inline void TxRequest::clear_has_serialized() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TxRequest::clear_serialized() { + if (serialized_ != NULL) serialized_->Clear(); + clear_has_serialized(); +} +inline const ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType& TxRequest::_internal_serialized() const { + return *serialized_; +} +inline const ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType& TxRequest::serialized() const { + const ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType* p = serialized_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxRequest.serialized) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::bitcoin::_TxRequest_TxRequestSerializedType_default_instance_); +} +inline ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType* TxRequest::release_serialized() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxRequest.serialized) + clear_has_serialized(); + ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType* temp = serialized_; + serialized_ = NULL; + return temp; +} +inline ::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType* TxRequest::mutable_serialized() { + set_has_serialized(); + if (serialized_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType>(GetArenaNoVirtual()); + serialized_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxRequest.serialized) + return serialized_; +} +inline void TxRequest::set_allocated_serialized(::hw::trezor::messages::bitcoin::TxRequest_TxRequestSerializedType* serialized) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete serialized_; + } + if (serialized) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + serialized = ::google::protobuf::internal::GetOwnedMessage( + message_arena, serialized, submessage_arena); + } + set_has_serialized(); + } else { + clear_has_serialized(); + } + serialized_ = serialized; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxRequest.serialized) +} + +// ------------------------------------------------------------------- + +// TxAck_TransactionType_TxInputType + +// repeated uint32 address_n = 1; +inline int TxAck_TransactionType_TxInputType::address_n_size() const { + return address_n_.size(); +} +inline void TxAck_TransactionType_TxInputType::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType_TxInputType::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.address_n) + return address_n_.Get(index); +} +inline void TxAck_TransactionType_TxInputType::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.address_n) +} +inline void TxAck_TransactionType_TxInputType::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +TxAck_TransactionType_TxInputType::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +TxAck_TransactionType_TxInputType::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.address_n) + return &address_n_; +} + +// required bytes prev_hash = 2; +inline bool TxAck_TransactionType_TxInputType::has_prev_hash() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TxAck_TransactionType_TxInputType::set_has_prev_hash() { + _has_bits_[0] |= 0x00000001u; +} +inline void TxAck_TransactionType_TxInputType::clear_has_prev_hash() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TxAck_TransactionType_TxInputType::clear_prev_hash() { + prev_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_prev_hash(); +} +inline const ::std::string& TxAck_TransactionType_TxInputType::prev_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_hash) + return prev_hash_.GetNoArena(); +} +inline void TxAck_TransactionType_TxInputType::set_prev_hash(const ::std::string& value) { + set_has_prev_hash(); + prev_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_hash) +} +#if LANG_CXX11 +inline void TxAck_TransactionType_TxInputType::set_prev_hash(::std::string&& value) { + set_has_prev_hash(); + prev_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_hash) +} +#endif +inline void TxAck_TransactionType_TxInputType::set_prev_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_prev_hash(); + prev_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_hash) +} +inline void TxAck_TransactionType_TxInputType::set_prev_hash(const void* value, size_t size) { + set_has_prev_hash(); + prev_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_hash) +} +inline ::std::string* TxAck_TransactionType_TxInputType::mutable_prev_hash() { + set_has_prev_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_hash) + return prev_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TxAck_TransactionType_TxInputType::release_prev_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_hash) + if (!has_prev_hash()) { + return NULL; + } + clear_has_prev_hash(); + return prev_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TxAck_TransactionType_TxInputType::set_allocated_prev_hash(::std::string* prev_hash) { + if (prev_hash != NULL) { + set_has_prev_hash(); + } else { + clear_has_prev_hash(); + } + prev_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), prev_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_hash) +} + +// required uint32 prev_index = 3; +inline bool TxAck_TransactionType_TxInputType::has_prev_index() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TxAck_TransactionType_TxInputType::set_has_prev_index() { + _has_bits_[0] |= 0x00000010u; +} +inline void TxAck_TransactionType_TxInputType::clear_has_prev_index() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TxAck_TransactionType_TxInputType::clear_prev_index() { + prev_index_ = 0u; + clear_has_prev_index(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType_TxInputType::prev_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_index) + return prev_index_; +} +inline void TxAck_TransactionType_TxInputType::set_prev_index(::google::protobuf::uint32 value) { + set_has_prev_index(); + prev_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_index) +} + +// optional bytes script_sig = 4; +inline bool TxAck_TransactionType_TxInputType::has_script_sig() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TxAck_TransactionType_TxInputType::set_has_script_sig() { + _has_bits_[0] |= 0x00000002u; +} +inline void TxAck_TransactionType_TxInputType::clear_has_script_sig() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TxAck_TransactionType_TxInputType::clear_script_sig() { + script_sig_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_script_sig(); +} +inline const ::std::string& TxAck_TransactionType_TxInputType::script_sig() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.script_sig) + return script_sig_.GetNoArena(); +} +inline void TxAck_TransactionType_TxInputType::set_script_sig(const ::std::string& value) { + set_has_script_sig(); + script_sig_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.script_sig) +} +#if LANG_CXX11 +inline void TxAck_TransactionType_TxInputType::set_script_sig(::std::string&& value) { + set_has_script_sig(); + script_sig_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.script_sig) +} +#endif +inline void TxAck_TransactionType_TxInputType::set_script_sig(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_script_sig(); + script_sig_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.script_sig) +} +inline void TxAck_TransactionType_TxInputType::set_script_sig(const void* value, size_t size) { + set_has_script_sig(); + script_sig_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.script_sig) +} +inline ::std::string* TxAck_TransactionType_TxInputType::mutable_script_sig() { + set_has_script_sig(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.script_sig) + return script_sig_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TxAck_TransactionType_TxInputType::release_script_sig() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.script_sig) + if (!has_script_sig()) { + return NULL; + } + clear_has_script_sig(); + return script_sig_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TxAck_TransactionType_TxInputType::set_allocated_script_sig(::std::string* script_sig) { + if (script_sig != NULL) { + set_has_script_sig(); + } else { + clear_has_script_sig(); + } + script_sig_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), script_sig); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.script_sig) +} + +// optional uint32 sequence = 5 [default = 4294967295]; +inline bool TxAck_TransactionType_TxInputType::has_sequence() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void TxAck_TransactionType_TxInputType::set_has_sequence() { + _has_bits_[0] |= 0x00000400u; +} +inline void TxAck_TransactionType_TxInputType::clear_has_sequence() { + _has_bits_[0] &= ~0x00000400u; +} +inline void TxAck_TransactionType_TxInputType::clear_sequence() { + sequence_ = 4294967295u; + clear_has_sequence(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType_TxInputType::sequence() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.sequence) + return sequence_; +} +inline void TxAck_TransactionType_TxInputType::set_sequence(::google::protobuf::uint32 value) { + set_has_sequence(); + sequence_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.sequence) +} + +// optional .hw.trezor.messages.bitcoin.InputScriptType script_type = 6 [default = SPENDADDRESS]; +inline bool TxAck_TransactionType_TxInputType::has_script_type() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TxAck_TransactionType_TxInputType::set_has_script_type() { + _has_bits_[0] |= 0x00000020u; +} +inline void TxAck_TransactionType_TxInputType::clear_has_script_type() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TxAck_TransactionType_TxInputType::clear_script_type() { + script_type_ = 0; + clear_has_script_type(); +} +inline ::hw::trezor::messages::bitcoin::InputScriptType TxAck_TransactionType_TxInputType::script_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.script_type) + return static_cast< ::hw::trezor::messages::bitcoin::InputScriptType >(script_type_); +} +inline void TxAck_TransactionType_TxInputType::set_script_type(::hw::trezor::messages::bitcoin::InputScriptType value) { + assert(::hw::trezor::messages::bitcoin::InputScriptType_IsValid(value)); + set_has_script_type(); + script_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.script_type) +} + +// optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 7; +inline bool TxAck_TransactionType_TxInputType::has_multisig() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TxAck_TransactionType_TxInputType::set_has_multisig() { + _has_bits_[0] |= 0x00000008u; +} +inline void TxAck_TransactionType_TxInputType::clear_has_multisig() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TxAck_TransactionType_TxInputType::clear_multisig() { + if (multisig_ != NULL) multisig_->Clear(); + clear_has_multisig(); +} +inline const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& TxAck_TransactionType_TxInputType::_internal_multisig() const { + return *multisig_; +} +inline const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& TxAck_TransactionType_TxInputType::multisig() const { + const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* p = multisig_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.multisig) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::bitcoin::_MultisigRedeemScriptType_default_instance_); +} +inline ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* TxAck_TransactionType_TxInputType::release_multisig() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.multisig) + clear_has_multisig(); + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* temp = multisig_; + multisig_ = NULL; + return temp; +} +inline ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* TxAck_TransactionType_TxInputType::mutable_multisig() { + set_has_multisig(); + if (multisig_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::bitcoin::MultisigRedeemScriptType>(GetArenaNoVirtual()); + multisig_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.multisig) + return multisig_; +} +inline void TxAck_TransactionType_TxInputType::set_allocated_multisig(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* multisig) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete multisig_; + } + if (multisig) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + multisig = ::google::protobuf::internal::GetOwnedMessage( + message_arena, multisig, submessage_arena); + } + set_has_multisig(); + } else { + clear_has_multisig(); + } + multisig_ = multisig; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.multisig) +} + +// optional uint64 amount = 8; +inline bool TxAck_TransactionType_TxInputType::has_amount() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void TxAck_TransactionType_TxInputType::set_has_amount() { + _has_bits_[0] |= 0x00000040u; +} +inline void TxAck_TransactionType_TxInputType::clear_has_amount() { + _has_bits_[0] &= ~0x00000040u; +} +inline void TxAck_TransactionType_TxInputType::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 TxAck_TransactionType_TxInputType::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.amount) + return amount_; +} +inline void TxAck_TransactionType_TxInputType::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.amount) +} + +// optional uint32 decred_tree = 9; +inline bool TxAck_TransactionType_TxInputType::has_decred_tree() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void TxAck_TransactionType_TxInputType::set_has_decred_tree() { + _has_bits_[0] |= 0x00000080u; +} +inline void TxAck_TransactionType_TxInputType::clear_has_decred_tree() { + _has_bits_[0] &= ~0x00000080u; +} +inline void TxAck_TransactionType_TxInputType::clear_decred_tree() { + decred_tree_ = 0u; + clear_has_decred_tree(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType_TxInputType::decred_tree() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.decred_tree) + return decred_tree_; +} +inline void TxAck_TransactionType_TxInputType::set_decred_tree(::google::protobuf::uint32 value) { + set_has_decred_tree(); + decred_tree_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.decred_tree) +} + +// optional uint32 decred_script_version = 10; +inline bool TxAck_TransactionType_TxInputType::has_decred_script_version() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void TxAck_TransactionType_TxInputType::set_has_decred_script_version() { + _has_bits_[0] |= 0x00000100u; +} +inline void TxAck_TransactionType_TxInputType::clear_has_decred_script_version() { + _has_bits_[0] &= ~0x00000100u; +} +inline void TxAck_TransactionType_TxInputType::clear_decred_script_version() { + decred_script_version_ = 0u; + clear_has_decred_script_version(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType_TxInputType::decred_script_version() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.decred_script_version) + return decred_script_version_; +} +inline void TxAck_TransactionType_TxInputType::set_decred_script_version(::google::protobuf::uint32 value) { + set_has_decred_script_version(); + decred_script_version_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.decred_script_version) +} + +// optional bytes prev_block_hash_bip115 = 11; +inline bool TxAck_TransactionType_TxInputType::has_prev_block_hash_bip115() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TxAck_TransactionType_TxInputType::set_has_prev_block_hash_bip115() { + _has_bits_[0] |= 0x00000004u; +} +inline void TxAck_TransactionType_TxInputType::clear_has_prev_block_hash_bip115() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TxAck_TransactionType_TxInputType::clear_prev_block_hash_bip115() { + prev_block_hash_bip115_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_prev_block_hash_bip115(); +} +inline const ::std::string& TxAck_TransactionType_TxInputType::prev_block_hash_bip115() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_block_hash_bip115) + return prev_block_hash_bip115_.GetNoArena(); +} +inline void TxAck_TransactionType_TxInputType::set_prev_block_hash_bip115(const ::std::string& value) { + set_has_prev_block_hash_bip115(); + prev_block_hash_bip115_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_block_hash_bip115) +} +#if LANG_CXX11 +inline void TxAck_TransactionType_TxInputType::set_prev_block_hash_bip115(::std::string&& value) { + set_has_prev_block_hash_bip115(); + prev_block_hash_bip115_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_block_hash_bip115) +} +#endif +inline void TxAck_TransactionType_TxInputType::set_prev_block_hash_bip115(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_prev_block_hash_bip115(); + prev_block_hash_bip115_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_block_hash_bip115) +} +inline void TxAck_TransactionType_TxInputType::set_prev_block_hash_bip115(const void* value, size_t size) { + set_has_prev_block_hash_bip115(); + prev_block_hash_bip115_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_block_hash_bip115) +} +inline ::std::string* TxAck_TransactionType_TxInputType::mutable_prev_block_hash_bip115() { + set_has_prev_block_hash_bip115(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_block_hash_bip115) + return prev_block_hash_bip115_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TxAck_TransactionType_TxInputType::release_prev_block_hash_bip115() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_block_hash_bip115) + if (!has_prev_block_hash_bip115()) { + return NULL; + } + clear_has_prev_block_hash_bip115(); + return prev_block_hash_bip115_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TxAck_TransactionType_TxInputType::set_allocated_prev_block_hash_bip115(::std::string* prev_block_hash_bip115) { + if (prev_block_hash_bip115 != NULL) { + set_has_prev_block_hash_bip115(); + } else { + clear_has_prev_block_hash_bip115(); + } + prev_block_hash_bip115_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), prev_block_hash_bip115); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_block_hash_bip115) +} + +// optional uint32 prev_block_height_bip115 = 12; +inline bool TxAck_TransactionType_TxInputType::has_prev_block_height_bip115() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void TxAck_TransactionType_TxInputType::set_has_prev_block_height_bip115() { + _has_bits_[0] |= 0x00000200u; +} +inline void TxAck_TransactionType_TxInputType::clear_has_prev_block_height_bip115() { + _has_bits_[0] &= ~0x00000200u; +} +inline void TxAck_TransactionType_TxInputType::clear_prev_block_height_bip115() { + prev_block_height_bip115_ = 0u; + clear_has_prev_block_height_bip115(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType_TxInputType::prev_block_height_bip115() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_block_height_bip115) + return prev_block_height_bip115_; +} +inline void TxAck_TransactionType_TxInputType::set_prev_block_height_bip115(::google::protobuf::uint32 value) { + set_has_prev_block_height_bip115(); + prev_block_height_bip115_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType.prev_block_height_bip115) +} + +// ------------------------------------------------------------------- + +// TxAck_TransactionType_TxOutputBinType + +// required uint64 amount = 1; +inline bool TxAck_TransactionType_TxOutputBinType::has_amount() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TxAck_TransactionType_TxOutputBinType::set_has_amount() { + _has_bits_[0] |= 0x00000002u; +} +inline void TxAck_TransactionType_TxOutputBinType::clear_has_amount() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TxAck_TransactionType_TxOutputBinType::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 TxAck_TransactionType_TxOutputBinType::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.amount) + return amount_; +} +inline void TxAck_TransactionType_TxOutputBinType::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.amount) +} + +// required bytes script_pubkey = 2; +inline bool TxAck_TransactionType_TxOutputBinType::has_script_pubkey() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TxAck_TransactionType_TxOutputBinType::set_has_script_pubkey() { + _has_bits_[0] |= 0x00000001u; +} +inline void TxAck_TransactionType_TxOutputBinType::clear_has_script_pubkey() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TxAck_TransactionType_TxOutputBinType::clear_script_pubkey() { + script_pubkey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_script_pubkey(); +} +inline const ::std::string& TxAck_TransactionType_TxOutputBinType::script_pubkey() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.script_pubkey) + return script_pubkey_.GetNoArena(); +} +inline void TxAck_TransactionType_TxOutputBinType::set_script_pubkey(const ::std::string& value) { + set_has_script_pubkey(); + script_pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.script_pubkey) +} +#if LANG_CXX11 +inline void TxAck_TransactionType_TxOutputBinType::set_script_pubkey(::std::string&& value) { + set_has_script_pubkey(); + script_pubkey_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.script_pubkey) +} +#endif +inline void TxAck_TransactionType_TxOutputBinType::set_script_pubkey(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_script_pubkey(); + script_pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.script_pubkey) +} +inline void TxAck_TransactionType_TxOutputBinType::set_script_pubkey(const void* value, size_t size) { + set_has_script_pubkey(); + script_pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.script_pubkey) +} +inline ::std::string* TxAck_TransactionType_TxOutputBinType::mutable_script_pubkey() { + set_has_script_pubkey(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.script_pubkey) + return script_pubkey_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TxAck_TransactionType_TxOutputBinType::release_script_pubkey() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.script_pubkey) + if (!has_script_pubkey()) { + return NULL; + } + clear_has_script_pubkey(); + return script_pubkey_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TxAck_TransactionType_TxOutputBinType::set_allocated_script_pubkey(::std::string* script_pubkey) { + if (script_pubkey != NULL) { + set_has_script_pubkey(); + } else { + clear_has_script_pubkey(); + } + script_pubkey_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), script_pubkey); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.script_pubkey) +} + +// optional uint32 decred_script_version = 3; +inline bool TxAck_TransactionType_TxOutputBinType::has_decred_script_version() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TxAck_TransactionType_TxOutputBinType::set_has_decred_script_version() { + _has_bits_[0] |= 0x00000004u; +} +inline void TxAck_TransactionType_TxOutputBinType::clear_has_decred_script_version() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TxAck_TransactionType_TxOutputBinType::clear_decred_script_version() { + decred_script_version_ = 0u; + clear_has_decred_script_version(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType_TxOutputBinType::decred_script_version() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.decred_script_version) + return decred_script_version_; +} +inline void TxAck_TransactionType_TxOutputBinType::set_decred_script_version(::google::protobuf::uint32 value) { + set_has_decred_script_version(); + decred_script_version_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType.decred_script_version) +} + +// ------------------------------------------------------------------- + +// TxAck_TransactionType_TxOutputType + +// optional string address = 1; +inline bool TxAck_TransactionType_TxOutputType::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TxAck_TransactionType_TxOutputType::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void TxAck_TransactionType_TxOutputType::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TxAck_TransactionType_TxOutputType::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& TxAck_TransactionType_TxOutputType::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address) + return address_.GetNoArena(); +} +inline void TxAck_TransactionType_TxOutputType::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address) +} +#if LANG_CXX11 +inline void TxAck_TransactionType_TxOutputType::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address) +} +#endif +inline void TxAck_TransactionType_TxOutputType::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address) +} +inline void TxAck_TransactionType_TxOutputType::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address) +} +inline ::std::string* TxAck_TransactionType_TxOutputType::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TxAck_TransactionType_TxOutputType::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TxAck_TransactionType_TxOutputType::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address) +} + +// repeated uint32 address_n = 2; +inline int TxAck_TransactionType_TxOutputType::address_n_size() const { + return address_n_.size(); +} +inline void TxAck_TransactionType_TxOutputType::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType_TxOutputType::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address_n) + return address_n_.Get(index); +} +inline void TxAck_TransactionType_TxOutputType::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address_n) +} +inline void TxAck_TransactionType_TxOutputType::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +TxAck_TransactionType_TxOutputType::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +TxAck_TransactionType_TxOutputType::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.address_n) + return &address_n_; +} + +// required uint64 amount = 3; +inline bool TxAck_TransactionType_TxOutputType::has_amount() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TxAck_TransactionType_TxOutputType::set_has_amount() { + _has_bits_[0] |= 0x00000010u; +} +inline void TxAck_TransactionType_TxOutputType::clear_has_amount() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TxAck_TransactionType_TxOutputType::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 TxAck_TransactionType_TxOutputType::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.amount) + return amount_; +} +inline void TxAck_TransactionType_TxOutputType::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.amount) +} + +// required .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.OutputScriptType script_type = 4; +inline bool TxAck_TransactionType_TxOutputType::has_script_type() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TxAck_TransactionType_TxOutputType::set_has_script_type() { + _has_bits_[0] |= 0x00000020u; +} +inline void TxAck_TransactionType_TxOutputType::clear_has_script_type() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TxAck_TransactionType_TxOutputType::clear_script_type() { + script_type_ = 0; + clear_has_script_type(); +} +inline ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType_OutputScriptType TxAck_TransactionType_TxOutputType::script_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.script_type) + return static_cast< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType_OutputScriptType >(script_type_); +} +inline void TxAck_TransactionType_TxOutputType::set_script_type(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType_OutputScriptType value) { + assert(::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType_OutputScriptType_IsValid(value)); + set_has_script_type(); + script_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.script_type) +} + +// optional .hw.trezor.messages.bitcoin.MultisigRedeemScriptType multisig = 5; +inline bool TxAck_TransactionType_TxOutputType::has_multisig() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TxAck_TransactionType_TxOutputType::set_has_multisig() { + _has_bits_[0] |= 0x00000008u; +} +inline void TxAck_TransactionType_TxOutputType::clear_has_multisig() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TxAck_TransactionType_TxOutputType::clear_multisig() { + if (multisig_ != NULL) multisig_->Clear(); + clear_has_multisig(); +} +inline const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& TxAck_TransactionType_TxOutputType::_internal_multisig() const { + return *multisig_; +} +inline const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType& TxAck_TransactionType_TxOutputType::multisig() const { + const ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* p = multisig_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.multisig) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::bitcoin::_MultisigRedeemScriptType_default_instance_); +} +inline ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* TxAck_TransactionType_TxOutputType::release_multisig() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.multisig) + clear_has_multisig(); + ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* temp = multisig_; + multisig_ = NULL; + return temp; +} +inline ::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* TxAck_TransactionType_TxOutputType::mutable_multisig() { + set_has_multisig(); + if (multisig_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::bitcoin::MultisigRedeemScriptType>(GetArenaNoVirtual()); + multisig_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.multisig) + return multisig_; +} +inline void TxAck_TransactionType_TxOutputType::set_allocated_multisig(::hw::trezor::messages::bitcoin::MultisigRedeemScriptType* multisig) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete multisig_; + } + if (multisig) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + multisig = ::google::protobuf::internal::GetOwnedMessage( + message_arena, multisig, submessage_arena); + } + set_has_multisig(); + } else { + clear_has_multisig(); + } + multisig_ = multisig; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.multisig) +} + +// optional bytes op_return_data = 6; +inline bool TxAck_TransactionType_TxOutputType::has_op_return_data() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TxAck_TransactionType_TxOutputType::set_has_op_return_data() { + _has_bits_[0] |= 0x00000002u; +} +inline void TxAck_TransactionType_TxOutputType::clear_has_op_return_data() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TxAck_TransactionType_TxOutputType::clear_op_return_data() { + op_return_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_op_return_data(); +} +inline const ::std::string& TxAck_TransactionType_TxOutputType::op_return_data() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.op_return_data) + return op_return_data_.GetNoArena(); +} +inline void TxAck_TransactionType_TxOutputType::set_op_return_data(const ::std::string& value) { + set_has_op_return_data(); + op_return_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.op_return_data) +} +#if LANG_CXX11 +inline void TxAck_TransactionType_TxOutputType::set_op_return_data(::std::string&& value) { + set_has_op_return_data(); + op_return_data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.op_return_data) +} +#endif +inline void TxAck_TransactionType_TxOutputType::set_op_return_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_op_return_data(); + op_return_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.op_return_data) +} +inline void TxAck_TransactionType_TxOutputType::set_op_return_data(const void* value, size_t size) { + set_has_op_return_data(); + op_return_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.op_return_data) +} +inline ::std::string* TxAck_TransactionType_TxOutputType::mutable_op_return_data() { + set_has_op_return_data(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.op_return_data) + return op_return_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TxAck_TransactionType_TxOutputType::release_op_return_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.op_return_data) + if (!has_op_return_data()) { + return NULL; + } + clear_has_op_return_data(); + return op_return_data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TxAck_TransactionType_TxOutputType::set_allocated_op_return_data(::std::string* op_return_data) { + if (op_return_data != NULL) { + set_has_op_return_data(); + } else { + clear_has_op_return_data(); + } + op_return_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op_return_data); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.op_return_data) +} + +// optional uint32 decred_script_version = 7; +inline bool TxAck_TransactionType_TxOutputType::has_decred_script_version() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void TxAck_TransactionType_TxOutputType::set_has_decred_script_version() { + _has_bits_[0] |= 0x00000040u; +} +inline void TxAck_TransactionType_TxOutputType::clear_has_decred_script_version() { + _has_bits_[0] &= ~0x00000040u; +} +inline void TxAck_TransactionType_TxOutputType::clear_decred_script_version() { + decred_script_version_ = 0u; + clear_has_decred_script_version(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType_TxOutputType::decred_script_version() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.decred_script_version) + return decred_script_version_; +} +inline void TxAck_TransactionType_TxOutputType::set_decred_script_version(::google::protobuf::uint32 value) { + set_has_decred_script_version(); + decred_script_version_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.decred_script_version) +} + +// optional bytes block_hash_bip115 = 8; +inline bool TxAck_TransactionType_TxOutputType::has_block_hash_bip115() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TxAck_TransactionType_TxOutputType::set_has_block_hash_bip115() { + _has_bits_[0] |= 0x00000004u; +} +inline void TxAck_TransactionType_TxOutputType::clear_has_block_hash_bip115() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TxAck_TransactionType_TxOutputType::clear_block_hash_bip115() { + block_hash_bip115_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_block_hash_bip115(); +} +inline const ::std::string& TxAck_TransactionType_TxOutputType::block_hash_bip115() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.block_hash_bip115) + return block_hash_bip115_.GetNoArena(); +} +inline void TxAck_TransactionType_TxOutputType::set_block_hash_bip115(const ::std::string& value) { + set_has_block_hash_bip115(); + block_hash_bip115_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.block_hash_bip115) +} +#if LANG_CXX11 +inline void TxAck_TransactionType_TxOutputType::set_block_hash_bip115(::std::string&& value) { + set_has_block_hash_bip115(); + block_hash_bip115_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.block_hash_bip115) +} +#endif +inline void TxAck_TransactionType_TxOutputType::set_block_hash_bip115(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_block_hash_bip115(); + block_hash_bip115_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.block_hash_bip115) +} +inline void TxAck_TransactionType_TxOutputType::set_block_hash_bip115(const void* value, size_t size) { + set_has_block_hash_bip115(); + block_hash_bip115_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.block_hash_bip115) +} +inline ::std::string* TxAck_TransactionType_TxOutputType::mutable_block_hash_bip115() { + set_has_block_hash_bip115(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.block_hash_bip115) + return block_hash_bip115_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TxAck_TransactionType_TxOutputType::release_block_hash_bip115() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.block_hash_bip115) + if (!has_block_hash_bip115()) { + return NULL; + } + clear_has_block_hash_bip115(); + return block_hash_bip115_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TxAck_TransactionType_TxOutputType::set_allocated_block_hash_bip115(::std::string* block_hash_bip115) { + if (block_hash_bip115 != NULL) { + set_has_block_hash_bip115(); + } else { + clear_has_block_hash_bip115(); + } + block_hash_bip115_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), block_hash_bip115); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.block_hash_bip115) +} + +// optional uint32 block_height_bip115 = 9; +inline bool TxAck_TransactionType_TxOutputType::has_block_height_bip115() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void TxAck_TransactionType_TxOutputType::set_has_block_height_bip115() { + _has_bits_[0] |= 0x00000080u; +} +inline void TxAck_TransactionType_TxOutputType::clear_has_block_height_bip115() { + _has_bits_[0] &= ~0x00000080u; +} +inline void TxAck_TransactionType_TxOutputType::clear_block_height_bip115() { + block_height_bip115_ = 0u; + clear_has_block_height_bip115(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType_TxOutputType::block_height_bip115() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.block_height_bip115) + return block_height_bip115_; +} +inline void TxAck_TransactionType_TxOutputType::set_block_height_bip115(::google::protobuf::uint32 value) { + set_has_block_height_bip115(); + block_height_bip115_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType.block_height_bip115) +} + +// ------------------------------------------------------------------- + +// TxAck_TransactionType + +// optional uint32 version = 1; +inline bool TxAck_TransactionType::has_version() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TxAck_TransactionType::set_has_version() { + _has_bits_[0] |= 0x00000002u; +} +inline void TxAck_TransactionType::clear_has_version() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TxAck_TransactionType::clear_version() { + version_ = 0u; + clear_has_version(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType::version() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.version) + return version_; +} +inline void TxAck_TransactionType::set_version(::google::protobuf::uint32 value) { + set_has_version(); + version_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.version) +} + +// repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxInputType inputs = 2; +inline int TxAck_TransactionType::inputs_size() const { + return inputs_.size(); +} +inline void TxAck_TransactionType::clear_inputs() { + inputs_.Clear(); +} +inline ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType* TxAck_TransactionType::mutable_inputs(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.inputs) + return inputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType >* +TxAck_TransactionType::mutable_inputs() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.TxAck.TransactionType.inputs) + return &inputs_; +} +inline const ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType& TxAck_TransactionType::inputs(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.inputs) + return inputs_.Get(index); +} +inline ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType* TxAck_TransactionType::add_inputs() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.TxAck.TransactionType.inputs) + return inputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxInputType >& +TxAck_TransactionType::inputs() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.TxAck.TransactionType.inputs) + return inputs_; +} + +// repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputBinType bin_outputs = 3; +inline int TxAck_TransactionType::bin_outputs_size() const { + return bin_outputs_.size(); +} +inline void TxAck_TransactionType::clear_bin_outputs() { + bin_outputs_.Clear(); +} +inline ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType* TxAck_TransactionType::mutable_bin_outputs(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.bin_outputs) + return bin_outputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType >* +TxAck_TransactionType::mutable_bin_outputs() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.TxAck.TransactionType.bin_outputs) + return &bin_outputs_; +} +inline const ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType& TxAck_TransactionType::bin_outputs(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.bin_outputs) + return bin_outputs_.Get(index); +} +inline ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType* TxAck_TransactionType::add_bin_outputs() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.TxAck.TransactionType.bin_outputs) + return bin_outputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputBinType >& +TxAck_TransactionType::bin_outputs() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.TxAck.TransactionType.bin_outputs) + return bin_outputs_; +} + +// optional uint32 lock_time = 4; +inline bool TxAck_TransactionType::has_lock_time() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TxAck_TransactionType::set_has_lock_time() { + _has_bits_[0] |= 0x00000004u; +} +inline void TxAck_TransactionType::clear_has_lock_time() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TxAck_TransactionType::clear_lock_time() { + lock_time_ = 0u; + clear_has_lock_time(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType::lock_time() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.lock_time) + return lock_time_; +} +inline void TxAck_TransactionType::set_lock_time(::google::protobuf::uint32 value) { + set_has_lock_time(); + lock_time_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.lock_time) +} + +// repeated .hw.trezor.messages.bitcoin.TxAck.TransactionType.TxOutputType outputs = 5; +inline int TxAck_TransactionType::outputs_size() const { + return outputs_.size(); +} +inline void TxAck_TransactionType::clear_outputs() { + outputs_.Clear(); +} +inline ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType* TxAck_TransactionType::mutable_outputs(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.outputs) + return outputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType >* +TxAck_TransactionType::mutable_outputs() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bitcoin.TxAck.TransactionType.outputs) + return &outputs_; +} +inline const ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType& TxAck_TransactionType::outputs(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.outputs) + return outputs_.Get(index); +} +inline ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType* TxAck_TransactionType::add_outputs() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.bitcoin.TxAck.TransactionType.outputs) + return outputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType >& +TxAck_TransactionType::outputs() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bitcoin.TxAck.TransactionType.outputs) + return outputs_; +} + +// optional uint32 inputs_cnt = 6; +inline bool TxAck_TransactionType::has_inputs_cnt() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TxAck_TransactionType::set_has_inputs_cnt() { + _has_bits_[0] |= 0x00000008u; +} +inline void TxAck_TransactionType::clear_has_inputs_cnt() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TxAck_TransactionType::clear_inputs_cnt() { + inputs_cnt_ = 0u; + clear_has_inputs_cnt(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType::inputs_cnt() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.inputs_cnt) + return inputs_cnt_; +} +inline void TxAck_TransactionType::set_inputs_cnt(::google::protobuf::uint32 value) { + set_has_inputs_cnt(); + inputs_cnt_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.inputs_cnt) +} + +// optional uint32 outputs_cnt = 7; +inline bool TxAck_TransactionType::has_outputs_cnt() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TxAck_TransactionType::set_has_outputs_cnt() { + _has_bits_[0] |= 0x00000010u; +} +inline void TxAck_TransactionType::clear_has_outputs_cnt() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TxAck_TransactionType::clear_outputs_cnt() { + outputs_cnt_ = 0u; + clear_has_outputs_cnt(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType::outputs_cnt() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.outputs_cnt) + return outputs_cnt_; +} +inline void TxAck_TransactionType::set_outputs_cnt(::google::protobuf::uint32 value) { + set_has_outputs_cnt(); + outputs_cnt_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.outputs_cnt) +} + +// optional bytes extra_data = 8; +inline bool TxAck_TransactionType::has_extra_data() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TxAck_TransactionType::set_has_extra_data() { + _has_bits_[0] |= 0x00000001u; +} +inline void TxAck_TransactionType::clear_has_extra_data() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TxAck_TransactionType::clear_extra_data() { + extra_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_extra_data(); +} +inline const ::std::string& TxAck_TransactionType::extra_data() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.extra_data) + return extra_data_.GetNoArena(); +} +inline void TxAck_TransactionType::set_extra_data(const ::std::string& value) { + set_has_extra_data(); + extra_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.extra_data) +} +#if LANG_CXX11 +inline void TxAck_TransactionType::set_extra_data(::std::string&& value) { + set_has_extra_data(); + extra_data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bitcoin.TxAck.TransactionType.extra_data) +} +#endif +inline void TxAck_TransactionType::set_extra_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_extra_data(); + extra_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bitcoin.TxAck.TransactionType.extra_data) +} +inline void TxAck_TransactionType::set_extra_data(const void* value, size_t size) { + set_has_extra_data(); + extra_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bitcoin.TxAck.TransactionType.extra_data) +} +inline ::std::string* TxAck_TransactionType::mutable_extra_data() { + set_has_extra_data(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.TransactionType.extra_data) + return extra_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TxAck_TransactionType::release_extra_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxAck.TransactionType.extra_data) + if (!has_extra_data()) { + return NULL; + } + clear_has_extra_data(); + return extra_data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TxAck_TransactionType::set_allocated_extra_data(::std::string* extra_data) { + if (extra_data != NULL) { + set_has_extra_data(); + } else { + clear_has_extra_data(); + } + extra_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extra_data); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxAck.TransactionType.extra_data) +} + +// optional uint32 extra_data_len = 9; +inline bool TxAck_TransactionType::has_extra_data_len() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TxAck_TransactionType::set_has_extra_data_len() { + _has_bits_[0] |= 0x00000020u; +} +inline void TxAck_TransactionType::clear_has_extra_data_len() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TxAck_TransactionType::clear_extra_data_len() { + extra_data_len_ = 0u; + clear_has_extra_data_len(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType::extra_data_len() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.extra_data_len) + return extra_data_len_; +} +inline void TxAck_TransactionType::set_extra_data_len(::google::protobuf::uint32 value) { + set_has_extra_data_len(); + extra_data_len_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.extra_data_len) +} + +// optional uint32 expiry = 10; +inline bool TxAck_TransactionType::has_expiry() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void TxAck_TransactionType::set_has_expiry() { + _has_bits_[0] |= 0x00000040u; +} +inline void TxAck_TransactionType::clear_has_expiry() { + _has_bits_[0] &= ~0x00000040u; +} +inline void TxAck_TransactionType::clear_expiry() { + expiry_ = 0u; + clear_has_expiry(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType::expiry() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.expiry) + return expiry_; +} +inline void TxAck_TransactionType::set_expiry(::google::protobuf::uint32 value) { + set_has_expiry(); + expiry_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.expiry) +} + +// optional bool overwintered = 11; +inline bool TxAck_TransactionType::has_overwintered() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void TxAck_TransactionType::set_has_overwintered() { + _has_bits_[0] |= 0x00000080u; +} +inline void TxAck_TransactionType::clear_has_overwintered() { + _has_bits_[0] &= ~0x00000080u; +} +inline void TxAck_TransactionType::clear_overwintered() { + overwintered_ = false; + clear_has_overwintered(); +} +inline bool TxAck_TransactionType::overwintered() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.overwintered) + return overwintered_; +} +inline void TxAck_TransactionType::set_overwintered(bool value) { + set_has_overwintered(); + overwintered_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.overwintered) +} + +// optional uint32 version_group_id = 12; +inline bool TxAck_TransactionType::has_version_group_id() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void TxAck_TransactionType::set_has_version_group_id() { + _has_bits_[0] |= 0x00000100u; +} +inline void TxAck_TransactionType::clear_has_version_group_id() { + _has_bits_[0] &= ~0x00000100u; +} +inline void TxAck_TransactionType::clear_version_group_id() { + version_group_id_ = 0u; + clear_has_version_group_id(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType::version_group_id() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.version_group_id) + return version_group_id_; +} +inline void TxAck_TransactionType::set_version_group_id(::google::protobuf::uint32 value) { + set_has_version_group_id(); + version_group_id_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.version_group_id) +} + +// optional uint32 timestamp = 13; +inline bool TxAck_TransactionType::has_timestamp() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void TxAck_TransactionType::set_has_timestamp() { + _has_bits_[0] |= 0x00000200u; +} +inline void TxAck_TransactionType::clear_has_timestamp() { + _has_bits_[0] &= ~0x00000200u; +} +inline void TxAck_TransactionType::clear_timestamp() { + timestamp_ = 0u; + clear_has_timestamp(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType::timestamp() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.timestamp) + return timestamp_; +} +inline void TxAck_TransactionType::set_timestamp(::google::protobuf::uint32 value) { + set_has_timestamp(); + timestamp_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.timestamp) +} + +// optional uint32 branch_id = 14; +inline bool TxAck_TransactionType::has_branch_id() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void TxAck_TransactionType::set_has_branch_id() { + _has_bits_[0] |= 0x00000400u; +} +inline void TxAck_TransactionType::clear_has_branch_id() { + _has_bits_[0] &= ~0x00000400u; +} +inline void TxAck_TransactionType::clear_branch_id() { + branch_id_ = 0u; + clear_has_branch_id(); +} +inline ::google::protobuf::uint32 TxAck_TransactionType::branch_id() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.TransactionType.branch_id) + return branch_id_; +} +inline void TxAck_TransactionType::set_branch_id(::google::protobuf::uint32 value) { + set_has_branch_id(); + branch_id_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bitcoin.TxAck.TransactionType.branch_id) +} + +// ------------------------------------------------------------------- + +// TxAck + +// optional .hw.trezor.messages.bitcoin.TxAck.TransactionType tx = 1; +inline bool TxAck::has_tx() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TxAck::set_has_tx() { + _has_bits_[0] |= 0x00000001u; +} +inline void TxAck::clear_has_tx() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TxAck::clear_tx() { + if (tx_ != NULL) tx_->Clear(); + clear_has_tx(); +} +inline const ::hw::trezor::messages::bitcoin::TxAck_TransactionType& TxAck::_internal_tx() const { + return *tx_; +} +inline const ::hw::trezor::messages::bitcoin::TxAck_TransactionType& TxAck::tx() const { + const ::hw::trezor::messages::bitcoin::TxAck_TransactionType* p = tx_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.bitcoin.TxAck.tx) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::bitcoin::_TxAck_TransactionType_default_instance_); +} +inline ::hw::trezor::messages::bitcoin::TxAck_TransactionType* TxAck::release_tx() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bitcoin.TxAck.tx) + clear_has_tx(); + ::hw::trezor::messages::bitcoin::TxAck_TransactionType* temp = tx_; + tx_ = NULL; + return temp; +} +inline ::hw::trezor::messages::bitcoin::TxAck_TransactionType* TxAck::mutable_tx() { + set_has_tx(); + if (tx_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::bitcoin::TxAck_TransactionType>(GetArenaNoVirtual()); + tx_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bitcoin.TxAck.tx) + return tx_; +} +inline void TxAck::set_allocated_tx(::hw::trezor::messages::bitcoin::TxAck_TransactionType* tx) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete tx_; + } + if (tx) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + tx = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tx, submessage_arena); + } + set_has_tx(); + } else { + clear_has_tx(); + } + tx_ = tx; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bitcoin.TxAck.tx) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace bitcoin +} // namespace messages +} // namespace trezor +} // namespace hw + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::hw::trezor::messages::bitcoin::TxRequest_RequestType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::bitcoin::TxRequest_RequestType>() { + return ::hw::trezor::messages::bitcoin::TxRequest_RequestType_descriptor(); +} +template <> struct is_proto_enum< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType_OutputScriptType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType_OutputScriptType>() { + return ::hw::trezor::messages::bitcoin::TxAck_TransactionType_TxOutputType_OutputScriptType_descriptor(); +} +template <> struct is_proto_enum< ::hw::trezor::messages::bitcoin::InputScriptType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::bitcoin::InputScriptType>() { + return ::hw::trezor::messages::bitcoin::InputScriptType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dbitcoin_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-bootloader.pb.cc b/src/Core/hardware/trezor/protob/messages-bootloader.pb.cc new file mode 100644 index 00000000..725dc17b --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-bootloader.pb.cc @@ -0,0 +1,1274 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-bootloader.proto + +#include "messages-bootloader.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace hw { +namespace trezor { +namespace messages { +namespace bootloader { +class FirmwareEraseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _FirmwareErase_default_instance_; +class FirmwareRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _FirmwareRequest_default_instance_; +class FirmwareUploadDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _FirmwareUpload_default_instance_; +class SelfTestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SelfTest_default_instance_; +} // namespace bootloader +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dbootloader_2eproto { +static void InitDefaultsFirmwareErase() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bootloader::_FirmwareErase_default_instance_; + new (ptr) ::hw::trezor::messages::bootloader::FirmwareErase(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bootloader::FirmwareErase::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_FirmwareErase = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFirmwareErase}, {}}; + +static void InitDefaultsFirmwareRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bootloader::_FirmwareRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bootloader::FirmwareRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bootloader::FirmwareRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_FirmwareRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFirmwareRequest}, {}}; + +static void InitDefaultsFirmwareUpload() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bootloader::_FirmwareUpload_default_instance_; + new (ptr) ::hw::trezor::messages::bootloader::FirmwareUpload(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bootloader::FirmwareUpload::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_FirmwareUpload = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFirmwareUpload}, {}}; + +static void InitDefaultsSelfTest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bootloader::_SelfTest_default_instance_; + new (ptr) ::hw::trezor::messages::bootloader::SelfTest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bootloader::SelfTest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SelfTest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSelfTest}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_FirmwareErase.base); + ::google::protobuf::internal::InitSCC(&scc_info_FirmwareRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_FirmwareUpload.base); + ::google::protobuf::internal::InitSCC(&scc_info_SelfTest.base); +} + +::google::protobuf::Metadata file_level_metadata[4]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::FirmwareErase, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::FirmwareErase, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::FirmwareErase, length_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::FirmwareRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::FirmwareRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::FirmwareRequest, offset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::FirmwareRequest, length_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::FirmwareUpload, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::FirmwareUpload, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::FirmwareUpload, payload_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::FirmwareUpload, hash_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::SelfTest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::SelfTest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bootloader::SelfTest, payload_), + 0, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 6, sizeof(::hw::trezor::messages::bootloader::FirmwareErase)}, + { 7, 14, sizeof(::hw::trezor::messages::bootloader::FirmwareRequest)}, + { 16, 23, sizeof(::hw::trezor::messages::bootloader::FirmwareUpload)}, + { 25, 31, sizeof(::hw::trezor::messages::bootloader::SelfTest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::bootloader::_FirmwareErase_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bootloader::_FirmwareRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bootloader::_FirmwareUpload_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bootloader::_SelfTest_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-bootloader.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\031messages-bootloader.proto\022\035hw.trezor.m" + "essages.bootloader\"\037\n\rFirmwareErase\022\016\n\006l" + "ength\030\001 \001(\r\"1\n\017FirmwareRequest\022\016\n\006offset" + "\030\001 \001(\r\022\016\n\006length\030\002 \001(\r\"/\n\016FirmwareUpload" + "\022\017\n\007payload\030\001 \002(\014\022\014\n\004hash\030\002 \001(\014\"\033\n\010SelfT" + "est\022\017\n\007payload\030\001 \001(\014B>\n#com.satoshilabs." + "trezor.lib.protobufB\027TrezorMessageBootlo" + "ader" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 284); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-bootloader.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dbootloader_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace bootloader { + +// =================================================================== + +void FirmwareErase::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int FirmwareErase::kLengthFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +FirmwareErase::FirmwareErase() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbootloader_2eproto::scc_info_FirmwareErase.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bootloader.FirmwareErase) +} +FirmwareErase::FirmwareErase(const FirmwareErase& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + length_ = from.length_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bootloader.FirmwareErase) +} + +void FirmwareErase::SharedCtor() { + length_ = 0u; +} + +FirmwareErase::~FirmwareErase() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bootloader.FirmwareErase) + SharedDtor(); +} + +void FirmwareErase::SharedDtor() { +} + +void FirmwareErase::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* FirmwareErase::descriptor() { + ::protobuf_messages_2dbootloader_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbootloader_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const FirmwareErase& FirmwareErase::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbootloader_2eproto::scc_info_FirmwareErase.base); + return *internal_default_instance(); +} + + +void FirmwareErase::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bootloader.FirmwareErase) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + length_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool FirmwareErase::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bootloader.FirmwareErase) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 length = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_length(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &length_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bootloader.FirmwareErase) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bootloader.FirmwareErase) + return false; +#undef DO_ +} + +void FirmwareErase::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bootloader.FirmwareErase) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 length = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->length(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bootloader.FirmwareErase) +} + +::google::protobuf::uint8* FirmwareErase::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bootloader.FirmwareErase) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 length = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->length(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bootloader.FirmwareErase) + return target; +} + +size_t FirmwareErase::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bootloader.FirmwareErase) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional uint32 length = 1; + if (has_length()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->length()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FirmwareErase::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bootloader.FirmwareErase) + GOOGLE_DCHECK_NE(&from, this); + const FirmwareErase* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bootloader.FirmwareErase) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bootloader.FirmwareErase) + MergeFrom(*source); + } +} + +void FirmwareErase::MergeFrom(const FirmwareErase& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bootloader.FirmwareErase) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_length()) { + set_length(from.length()); + } +} + +void FirmwareErase::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bootloader.FirmwareErase) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FirmwareErase::CopyFrom(const FirmwareErase& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bootloader.FirmwareErase) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FirmwareErase::IsInitialized() const { + return true; +} + +void FirmwareErase::Swap(FirmwareErase* other) { + if (other == this) return; + InternalSwap(other); +} +void FirmwareErase::InternalSwap(FirmwareErase* other) { + using std::swap; + swap(length_, other->length_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata FirmwareErase::GetMetadata() const { + protobuf_messages_2dbootloader_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbootloader_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void FirmwareRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int FirmwareRequest::kOffsetFieldNumber; +const int FirmwareRequest::kLengthFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +FirmwareRequest::FirmwareRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbootloader_2eproto::scc_info_FirmwareRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bootloader.FirmwareRequest) +} +FirmwareRequest::FirmwareRequest(const FirmwareRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&offset_, &from.offset_, + static_cast(reinterpret_cast(&length_) - + reinterpret_cast(&offset_)) + sizeof(length_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bootloader.FirmwareRequest) +} + +void FirmwareRequest::SharedCtor() { + ::memset(&offset_, 0, static_cast( + reinterpret_cast(&length_) - + reinterpret_cast(&offset_)) + sizeof(length_)); +} + +FirmwareRequest::~FirmwareRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bootloader.FirmwareRequest) + SharedDtor(); +} + +void FirmwareRequest::SharedDtor() { +} + +void FirmwareRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* FirmwareRequest::descriptor() { + ::protobuf_messages_2dbootloader_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbootloader_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const FirmwareRequest& FirmwareRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbootloader_2eproto::scc_info_FirmwareRequest.base); + return *internal_default_instance(); +} + + +void FirmwareRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bootloader.FirmwareRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&offset_, 0, static_cast( + reinterpret_cast(&length_) - + reinterpret_cast(&offset_)) + sizeof(length_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool FirmwareRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bootloader.FirmwareRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 offset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_offset(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &offset_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 length = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_length(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &length_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bootloader.FirmwareRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bootloader.FirmwareRequest) + return false; +#undef DO_ +} + +void FirmwareRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bootloader.FirmwareRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 offset = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->offset(), output); + } + + // optional uint32 length = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->length(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bootloader.FirmwareRequest) +} + +::google::protobuf::uint8* FirmwareRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bootloader.FirmwareRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 offset = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->offset(), target); + } + + // optional uint32 length = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->length(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bootloader.FirmwareRequest) + return target; +} + +size_t FirmwareRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bootloader.FirmwareRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional uint32 offset = 1; + if (has_offset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->offset()); + } + + // optional uint32 length = 2; + if (has_length()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->length()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FirmwareRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bootloader.FirmwareRequest) + GOOGLE_DCHECK_NE(&from, this); + const FirmwareRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bootloader.FirmwareRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bootloader.FirmwareRequest) + MergeFrom(*source); + } +} + +void FirmwareRequest::MergeFrom(const FirmwareRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bootloader.FirmwareRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + offset_ = from.offset_; + } + if (cached_has_bits & 0x00000002u) { + length_ = from.length_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void FirmwareRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bootloader.FirmwareRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FirmwareRequest::CopyFrom(const FirmwareRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bootloader.FirmwareRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FirmwareRequest::IsInitialized() const { + return true; +} + +void FirmwareRequest::Swap(FirmwareRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void FirmwareRequest::InternalSwap(FirmwareRequest* other) { + using std::swap; + swap(offset_, other->offset_); + swap(length_, other->length_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata FirmwareRequest::GetMetadata() const { + protobuf_messages_2dbootloader_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbootloader_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void FirmwareUpload::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int FirmwareUpload::kPayloadFieldNumber; +const int FirmwareUpload::kHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +FirmwareUpload::FirmwareUpload() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbootloader_2eproto::scc_info_FirmwareUpload.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bootloader.FirmwareUpload) +} +FirmwareUpload::FirmwareUpload(const FirmwareUpload& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_payload()) { + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_hash()) { + hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bootloader.FirmwareUpload) +} + +void FirmwareUpload::SharedCtor() { + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +FirmwareUpload::~FirmwareUpload() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bootloader.FirmwareUpload) + SharedDtor(); +} + +void FirmwareUpload::SharedDtor() { + payload_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void FirmwareUpload::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* FirmwareUpload::descriptor() { + ::protobuf_messages_2dbootloader_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbootloader_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const FirmwareUpload& FirmwareUpload::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbootloader_2eproto::scc_info_FirmwareUpload.base); + return *internal_default_instance(); +} + + +void FirmwareUpload::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bootloader.FirmwareUpload) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + payload_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + hash_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool FirmwareUpload::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bootloader.FirmwareUpload) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes payload = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_payload())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes hash = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_hash())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bootloader.FirmwareUpload) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bootloader.FirmwareUpload) + return false; +#undef DO_ +} + +void FirmwareUpload::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bootloader.FirmwareUpload) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required bytes payload = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->payload(), output); + } + + // optional bytes hash = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->hash(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bootloader.FirmwareUpload) +} + +::google::protobuf::uint8* FirmwareUpload::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bootloader.FirmwareUpload) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required bytes payload = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->payload(), target); + } + + // optional bytes hash = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->hash(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bootloader.FirmwareUpload) + return target; +} + +size_t FirmwareUpload::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bootloader.FirmwareUpload) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // required bytes payload = 1; + if (has_payload()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->payload()); + } + // optional bytes hash = 2; + if (has_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->hash()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FirmwareUpload::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bootloader.FirmwareUpload) + GOOGLE_DCHECK_NE(&from, this); + const FirmwareUpload* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bootloader.FirmwareUpload) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bootloader.FirmwareUpload) + MergeFrom(*source); + } +} + +void FirmwareUpload::MergeFrom(const FirmwareUpload& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bootloader.FirmwareUpload) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_payload(); + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + if (cached_has_bits & 0x00000002u) { + set_has_hash(); + hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); + } + } +} + +void FirmwareUpload::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bootloader.FirmwareUpload) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FirmwareUpload::CopyFrom(const FirmwareUpload& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bootloader.FirmwareUpload) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FirmwareUpload::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + return true; +} + +void FirmwareUpload::Swap(FirmwareUpload* other) { + if (other == this) return; + InternalSwap(other); +} +void FirmwareUpload::InternalSwap(FirmwareUpload* other) { + using std::swap; + payload_.Swap(&other->payload_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + hash_.Swap(&other->hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata FirmwareUpload::GetMetadata() const { + protobuf_messages_2dbootloader_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbootloader_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SelfTest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SelfTest::kPayloadFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SelfTest::SelfTest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbootloader_2eproto::scc_info_SelfTest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bootloader.SelfTest) +} +SelfTest::SelfTest(const SelfTest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_payload()) { + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bootloader.SelfTest) +} + +void SelfTest::SharedCtor() { + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +SelfTest::~SelfTest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bootloader.SelfTest) + SharedDtor(); +} + +void SelfTest::SharedDtor() { + payload_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SelfTest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* SelfTest::descriptor() { + ::protobuf_messages_2dbootloader_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbootloader_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SelfTest& SelfTest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbootloader_2eproto::scc_info_SelfTest.base); + return *internal_default_instance(); +} + + +void SelfTest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bootloader.SelfTest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + payload_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SelfTest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bootloader.SelfTest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes payload = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_payload())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bootloader.SelfTest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bootloader.SelfTest) + return false; +#undef DO_ +} + +void SelfTest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bootloader.SelfTest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes payload = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->payload(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bootloader.SelfTest) +} + +::google::protobuf::uint8* SelfTest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bootloader.SelfTest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes payload = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->payload(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bootloader.SelfTest) + return target; +} + +size_t SelfTest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bootloader.SelfTest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes payload = 1; + if (has_payload()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->payload()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SelfTest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bootloader.SelfTest) + GOOGLE_DCHECK_NE(&from, this); + const SelfTest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bootloader.SelfTest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bootloader.SelfTest) + MergeFrom(*source); + } +} + +void SelfTest::MergeFrom(const SelfTest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bootloader.SelfTest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_payload()) { + set_has_payload(); + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } +} + +void SelfTest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bootloader.SelfTest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SelfTest::CopyFrom(const SelfTest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bootloader.SelfTest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SelfTest::IsInitialized() const { + return true; +} + +void SelfTest::Swap(SelfTest* other) { + if (other == this) return; + InternalSwap(other); +} +void SelfTest::InternalSwap(SelfTest* other) { + using std::swap; + payload_.Swap(&other->payload_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata SelfTest::GetMetadata() const { + protobuf_messages_2dbootloader_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbootloader_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace bootloader +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bootloader::FirmwareErase* Arena::CreateMaybeMessage< ::hw::trezor::messages::bootloader::FirmwareErase >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bootloader::FirmwareErase >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bootloader::FirmwareRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bootloader::FirmwareRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bootloader::FirmwareRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bootloader::FirmwareUpload* Arena::CreateMaybeMessage< ::hw::trezor::messages::bootloader::FirmwareUpload >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bootloader::FirmwareUpload >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bootloader::SelfTest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bootloader::SelfTest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bootloader::SelfTest >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-bootloader.pb.h b/src/Core/hardware/trezor/protob/messages-bootloader.pb.h new file mode 100644 index 00000000..8cb977ea --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-bootloader.pb.h @@ -0,0 +1,893 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-bootloader.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dbootloader_2eproto +#define PROTOBUF_INCLUDED_messages_2dbootloader_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dbootloader_2eproto + +namespace protobuf_messages_2dbootloader_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[4]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dbootloader_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace bootloader { +class FirmwareErase; +class FirmwareEraseDefaultTypeInternal; +extern FirmwareEraseDefaultTypeInternal _FirmwareErase_default_instance_; +class FirmwareRequest; +class FirmwareRequestDefaultTypeInternal; +extern FirmwareRequestDefaultTypeInternal _FirmwareRequest_default_instance_; +class FirmwareUpload; +class FirmwareUploadDefaultTypeInternal; +extern FirmwareUploadDefaultTypeInternal _FirmwareUpload_default_instance_; +class SelfTest; +class SelfTestDefaultTypeInternal; +extern SelfTestDefaultTypeInternal _SelfTest_default_instance_; +} // namespace bootloader +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::bootloader::FirmwareErase* Arena::CreateMaybeMessage<::hw::trezor::messages::bootloader::FirmwareErase>(Arena*); +template<> ::hw::trezor::messages::bootloader::FirmwareRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bootloader::FirmwareRequest>(Arena*); +template<> ::hw::trezor::messages::bootloader::FirmwareUpload* Arena::CreateMaybeMessage<::hw::trezor::messages::bootloader::FirmwareUpload>(Arena*); +template<> ::hw::trezor::messages::bootloader::SelfTest* Arena::CreateMaybeMessage<::hw::trezor::messages::bootloader::SelfTest>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace bootloader { + +// =================================================================== + +class FirmwareErase : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bootloader.FirmwareErase) */ { + public: + FirmwareErase(); + virtual ~FirmwareErase(); + + FirmwareErase(const FirmwareErase& from); + + inline FirmwareErase& operator=(const FirmwareErase& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + FirmwareErase(FirmwareErase&& from) noexcept + : FirmwareErase() { + *this = ::std::move(from); + } + + inline FirmwareErase& operator=(FirmwareErase&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FirmwareErase& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FirmwareErase* internal_default_instance() { + return reinterpret_cast( + &_FirmwareErase_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(FirmwareErase* other); + friend void swap(FirmwareErase& a, FirmwareErase& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline FirmwareErase* New() const final { + return CreateMaybeMessage(NULL); + } + + FirmwareErase* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const FirmwareErase& from); + void MergeFrom(const FirmwareErase& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FirmwareErase* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 length = 1; + bool has_length() const; + void clear_length(); + static const int kLengthFieldNumber = 1; + ::google::protobuf::uint32 length() const; + void set_length(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bootloader.FirmwareErase) + private: + void set_has_length(); + void clear_has_length(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 length_; + friend struct ::protobuf_messages_2dbootloader_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class FirmwareRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bootloader.FirmwareRequest) */ { + public: + FirmwareRequest(); + virtual ~FirmwareRequest(); + + FirmwareRequest(const FirmwareRequest& from); + + inline FirmwareRequest& operator=(const FirmwareRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + FirmwareRequest(FirmwareRequest&& from) noexcept + : FirmwareRequest() { + *this = ::std::move(from); + } + + inline FirmwareRequest& operator=(FirmwareRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FirmwareRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FirmwareRequest* internal_default_instance() { + return reinterpret_cast( + &_FirmwareRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(FirmwareRequest* other); + friend void swap(FirmwareRequest& a, FirmwareRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline FirmwareRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + FirmwareRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const FirmwareRequest& from); + void MergeFrom(const FirmwareRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FirmwareRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 offset = 1; + bool has_offset() const; + void clear_offset(); + static const int kOffsetFieldNumber = 1; + ::google::protobuf::uint32 offset() const; + void set_offset(::google::protobuf::uint32 value); + + // optional uint32 length = 2; + bool has_length() const; + void clear_length(); + static const int kLengthFieldNumber = 2; + ::google::protobuf::uint32 length() const; + void set_length(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bootloader.FirmwareRequest) + private: + void set_has_offset(); + void clear_has_offset(); + void set_has_length(); + void clear_has_length(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 offset_; + ::google::protobuf::uint32 length_; + friend struct ::protobuf_messages_2dbootloader_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class FirmwareUpload : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bootloader.FirmwareUpload) */ { + public: + FirmwareUpload(); + virtual ~FirmwareUpload(); + + FirmwareUpload(const FirmwareUpload& from); + + inline FirmwareUpload& operator=(const FirmwareUpload& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + FirmwareUpload(FirmwareUpload&& from) noexcept + : FirmwareUpload() { + *this = ::std::move(from); + } + + inline FirmwareUpload& operator=(FirmwareUpload&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FirmwareUpload& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FirmwareUpload* internal_default_instance() { + return reinterpret_cast( + &_FirmwareUpload_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(FirmwareUpload* other); + friend void swap(FirmwareUpload& a, FirmwareUpload& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline FirmwareUpload* New() const final { + return CreateMaybeMessage(NULL); + } + + FirmwareUpload* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const FirmwareUpload& from); + void MergeFrom(const FirmwareUpload& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FirmwareUpload* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes payload = 1; + bool has_payload() const; + void clear_payload(); + static const int kPayloadFieldNumber = 1; + const ::std::string& payload() const; + void set_payload(const ::std::string& value); + #if LANG_CXX11 + void set_payload(::std::string&& value); + #endif + void set_payload(const char* value); + void set_payload(const void* value, size_t size); + ::std::string* mutable_payload(); + ::std::string* release_payload(); + void set_allocated_payload(::std::string* payload); + + // optional bytes hash = 2; + bool has_hash() const; + void clear_hash(); + static const int kHashFieldNumber = 2; + const ::std::string& hash() const; + void set_hash(const ::std::string& value); + #if LANG_CXX11 + void set_hash(::std::string&& value); + #endif + void set_hash(const char* value); + void set_hash(const void* value, size_t size); + ::std::string* mutable_hash(); + ::std::string* release_hash(); + void set_allocated_hash(::std::string* hash); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bootloader.FirmwareUpload) + private: + void set_has_payload(); + void clear_has_payload(); + void set_has_hash(); + void clear_has_hash(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr payload_; + ::google::protobuf::internal::ArenaStringPtr hash_; + friend struct ::protobuf_messages_2dbootloader_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class SelfTest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bootloader.SelfTest) */ { + public: + SelfTest(); + virtual ~SelfTest(); + + SelfTest(const SelfTest& from); + + inline SelfTest& operator=(const SelfTest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SelfTest(SelfTest&& from) noexcept + : SelfTest() { + *this = ::std::move(from); + } + + inline SelfTest& operator=(SelfTest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SelfTest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SelfTest* internal_default_instance() { + return reinterpret_cast( + &_SelfTest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(SelfTest* other); + friend void swap(SelfTest& a, SelfTest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SelfTest* New() const final { + return CreateMaybeMessage(NULL); + } + + SelfTest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SelfTest& from); + void MergeFrom(const SelfTest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SelfTest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes payload = 1; + bool has_payload() const; + void clear_payload(); + static const int kPayloadFieldNumber = 1; + const ::std::string& payload() const; + void set_payload(const ::std::string& value); + #if LANG_CXX11 + void set_payload(::std::string&& value); + #endif + void set_payload(const char* value); + void set_payload(const void* value, size_t size); + ::std::string* mutable_payload(); + ::std::string* release_payload(); + void set_allocated_payload(::std::string* payload); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bootloader.SelfTest) + private: + void set_has_payload(); + void clear_has_payload(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr payload_; + friend struct ::protobuf_messages_2dbootloader_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// FirmwareErase + +// optional uint32 length = 1; +inline bool FirmwareErase::has_length() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FirmwareErase::set_has_length() { + _has_bits_[0] |= 0x00000001u; +} +inline void FirmwareErase::clear_has_length() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FirmwareErase::clear_length() { + length_ = 0u; + clear_has_length(); +} +inline ::google::protobuf::uint32 FirmwareErase::length() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bootloader.FirmwareErase.length) + return length_; +} +inline void FirmwareErase::set_length(::google::protobuf::uint32 value) { + set_has_length(); + length_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bootloader.FirmwareErase.length) +} + +// ------------------------------------------------------------------- + +// FirmwareRequest + +// optional uint32 offset = 1; +inline bool FirmwareRequest::has_offset() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FirmwareRequest::set_has_offset() { + _has_bits_[0] |= 0x00000001u; +} +inline void FirmwareRequest::clear_has_offset() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FirmwareRequest::clear_offset() { + offset_ = 0u; + clear_has_offset(); +} +inline ::google::protobuf::uint32 FirmwareRequest::offset() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bootloader.FirmwareRequest.offset) + return offset_; +} +inline void FirmwareRequest::set_offset(::google::protobuf::uint32 value) { + set_has_offset(); + offset_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bootloader.FirmwareRequest.offset) +} + +// optional uint32 length = 2; +inline bool FirmwareRequest::has_length() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void FirmwareRequest::set_has_length() { + _has_bits_[0] |= 0x00000002u; +} +inline void FirmwareRequest::clear_has_length() { + _has_bits_[0] &= ~0x00000002u; +} +inline void FirmwareRequest::clear_length() { + length_ = 0u; + clear_has_length(); +} +inline ::google::protobuf::uint32 FirmwareRequest::length() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bootloader.FirmwareRequest.length) + return length_; +} +inline void FirmwareRequest::set_length(::google::protobuf::uint32 value) { + set_has_length(); + length_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bootloader.FirmwareRequest.length) +} + +// ------------------------------------------------------------------- + +// FirmwareUpload + +// required bytes payload = 1; +inline bool FirmwareUpload::has_payload() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FirmwareUpload::set_has_payload() { + _has_bits_[0] |= 0x00000001u; +} +inline void FirmwareUpload::clear_has_payload() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FirmwareUpload::clear_payload() { + payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_payload(); +} +inline const ::std::string& FirmwareUpload::payload() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bootloader.FirmwareUpload.payload) + return payload_.GetNoArena(); +} +inline void FirmwareUpload::set_payload(const ::std::string& value) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bootloader.FirmwareUpload.payload) +} +#if LANG_CXX11 +inline void FirmwareUpload::set_payload(::std::string&& value) { + set_has_payload(); + payload_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bootloader.FirmwareUpload.payload) +} +#endif +inline void FirmwareUpload::set_payload(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bootloader.FirmwareUpload.payload) +} +inline void FirmwareUpload::set_payload(const void* value, size_t size) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bootloader.FirmwareUpload.payload) +} +inline ::std::string* FirmwareUpload::mutable_payload() { + set_has_payload(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bootloader.FirmwareUpload.payload) + return payload_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* FirmwareUpload::release_payload() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bootloader.FirmwareUpload.payload) + if (!has_payload()) { + return NULL; + } + clear_has_payload(); + return payload_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void FirmwareUpload::set_allocated_payload(::std::string* payload) { + if (payload != NULL) { + set_has_payload(); + } else { + clear_has_payload(); + } + payload_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payload); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bootloader.FirmwareUpload.payload) +} + +// optional bytes hash = 2; +inline bool FirmwareUpload::has_hash() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void FirmwareUpload::set_has_hash() { + _has_bits_[0] |= 0x00000002u; +} +inline void FirmwareUpload::clear_has_hash() { + _has_bits_[0] &= ~0x00000002u; +} +inline void FirmwareUpload::clear_hash() { + hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_hash(); +} +inline const ::std::string& FirmwareUpload::hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bootloader.FirmwareUpload.hash) + return hash_.GetNoArena(); +} +inline void FirmwareUpload::set_hash(const ::std::string& value) { + set_has_hash(); + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bootloader.FirmwareUpload.hash) +} +#if LANG_CXX11 +inline void FirmwareUpload::set_hash(::std::string&& value) { + set_has_hash(); + hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bootloader.FirmwareUpload.hash) +} +#endif +inline void FirmwareUpload::set_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_hash(); + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bootloader.FirmwareUpload.hash) +} +inline void FirmwareUpload::set_hash(const void* value, size_t size) { + set_has_hash(); + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bootloader.FirmwareUpload.hash) +} +inline ::std::string* FirmwareUpload::mutable_hash() { + set_has_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bootloader.FirmwareUpload.hash) + return hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* FirmwareUpload::release_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bootloader.FirmwareUpload.hash) + if (!has_hash()) { + return NULL; + } + clear_has_hash(); + return hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void FirmwareUpload::set_allocated_hash(::std::string* hash) { + if (hash != NULL) { + set_has_hash(); + } else { + clear_has_hash(); + } + hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bootloader.FirmwareUpload.hash) +} + +// ------------------------------------------------------------------- + +// SelfTest + +// optional bytes payload = 1; +inline bool SelfTest::has_payload() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SelfTest::set_has_payload() { + _has_bits_[0] |= 0x00000001u; +} +inline void SelfTest::clear_has_payload() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SelfTest::clear_payload() { + payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_payload(); +} +inline const ::std::string& SelfTest::payload() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bootloader.SelfTest.payload) + return payload_.GetNoArena(); +} +inline void SelfTest::set_payload(const ::std::string& value) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bootloader.SelfTest.payload) +} +#if LANG_CXX11 +inline void SelfTest::set_payload(::std::string&& value) { + set_has_payload(); + payload_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bootloader.SelfTest.payload) +} +#endif +inline void SelfTest::set_payload(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bootloader.SelfTest.payload) +} +inline void SelfTest::set_payload(const void* value, size_t size) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bootloader.SelfTest.payload) +} +inline ::std::string* SelfTest::mutable_payload() { + set_has_payload(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bootloader.SelfTest.payload) + return payload_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SelfTest::release_payload() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bootloader.SelfTest.payload) + if (!has_payload()) { + return NULL; + } + clear_has_payload(); + return payload_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SelfTest::set_allocated_payload(::std::string* payload) { + if (payload != NULL) { + set_has_payload(); + } else { + clear_has_payload(); + } + payload_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payload); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bootloader.SelfTest.payload) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace bootloader +} // namespace messages +} // namespace trezor +} // namespace hw + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dbootloader_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-bytecoin.pb.cc b/src/Core/hardware/trezor/protob/messages-bytecoin.pb.cc new file mode 100644 index 00000000..be56bdb9 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-bytecoin.pb.cc @@ -0,0 +1,8170 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-bytecoin.proto + +#include "messages-bytecoin.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace hw { +namespace trezor { +namespace messages { +namespace bytecoin { +class BytecoinStartRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinStartRequest_default_instance_; +class BytecoinStartResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinStartResponse_default_instance_; +class BytecoinScanOutputsRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinScanOutputsRequest_default_instance_; +class BytecoinScanOutputsResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinScanOutputsResponse_default_instance_; +class BytecoinGenerateKeyimageRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinGenerateKeyimageRequest_default_instance_; +class BytecoinGenerateKeyimageResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinGenerateKeyimageResponse_default_instance_; +class BytecoinGenerateOutputSeedRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinGenerateOutputSeedRequest_default_instance_; +class BytecoinGenerateOutputSeedResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinGenerateOutputSeedResponse_default_instance_; +class BytecoinExportViewWalletRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinExportViewWalletRequest_default_instance_; +class BytecoinExportViewWalletResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinExportViewWalletResponse_default_instance_; +class BytecoinSignStartRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignStartRequest_default_instance_; +class BytecoinEmptyResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinEmptyResponse_default_instance_; +class BytecoinSignAddInputRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignAddInputRequest_default_instance_; +class BytecoinSignAddOutputRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignAddOutputRequest_default_instance_; +class BytecoinSignAddOutputResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignAddOutputResponse_default_instance_; +class BytecoinSignAddExtraRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignAddExtraRequest_default_instance_; +class BytecoinSignStepARequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignStepARequest_default_instance_; +class BytecoinSignStepAResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignStepAResponse_default_instance_; +class BytecoinSignStepAMoreDataRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignStepAMoreDataRequest_default_instance_; +class BytecoinSignGetC0RequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignGetC0Request_default_instance_; +class BytecoinSignGetC0ResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignGetC0Response_default_instance_; +class BytecoinSignStepBRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignStepBRequest_default_instance_; +class BytecoinSignStepBResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinSignStepBResponse_default_instance_; +class BytecoinStartProofRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinStartProofRequest_default_instance_; +class BytecoinProofMoreDataRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BytecoinProofMoreDataRequest_default_instance_; +} // namespace bytecoin +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dbytecoin_2eproto { +static void InitDefaultsBytecoinStartRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinStartRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinStartRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinStartRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinStartRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinStartRequest}, {}}; + +static void InitDefaultsBytecoinStartResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinStartResponse_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinStartResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinStartResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinStartResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinStartResponse}, {}}; + +static void InitDefaultsBytecoinScanOutputsRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinScanOutputsRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinScanOutputsRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinScanOutputsRequest}, {}}; + +static void InitDefaultsBytecoinScanOutputsResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinScanOutputsResponse_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinScanOutputsResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinScanOutputsResponse}, {}}; + +static void InitDefaultsBytecoinGenerateKeyimageRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinGenerateKeyimageRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinGenerateKeyimageRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinGenerateKeyimageRequest}, {}}; + +static void InitDefaultsBytecoinGenerateKeyimageResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinGenerateKeyimageResponse_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinGenerateKeyimageResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinGenerateKeyimageResponse}, {}}; + +static void InitDefaultsBytecoinGenerateOutputSeedRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinGenerateOutputSeedRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinGenerateOutputSeedRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinGenerateOutputSeedRequest}, {}}; + +static void InitDefaultsBytecoinGenerateOutputSeedResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinGenerateOutputSeedResponse_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinGenerateOutputSeedResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinGenerateOutputSeedResponse}, {}}; + +static void InitDefaultsBytecoinExportViewWalletRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinExportViewWalletRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinExportViewWalletRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinExportViewWalletRequest}, {}}; + +static void InitDefaultsBytecoinExportViewWalletResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinExportViewWalletResponse_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinExportViewWalletResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinExportViewWalletResponse}, {}}; + +static void InitDefaultsBytecoinSignStartRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignStartRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignStartRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignStartRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignStartRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignStartRequest}, {}}; + +static void InitDefaultsBytecoinEmptyResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinEmptyResponse_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinEmptyResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinEmptyResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinEmptyResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinEmptyResponse}, {}}; + +static void InitDefaultsBytecoinSignAddInputRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignAddInputRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignAddInputRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignAddInputRequest}, {}}; + +static void InitDefaultsBytecoinSignAddOutputRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignAddOutputRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignAddOutputRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignAddOutputRequest}, {}}; + +static void InitDefaultsBytecoinSignAddOutputResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignAddOutputResponse_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignAddOutputResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignAddOutputResponse}, {}}; + +static void InitDefaultsBytecoinSignAddExtraRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignAddExtraRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignAddExtraRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignAddExtraRequest}, {}}; + +static void InitDefaultsBytecoinSignStepARequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignStepARequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignStepARequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignStepARequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignStepARequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignStepARequest}, {}}; + +static void InitDefaultsBytecoinSignStepAResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignStepAResponse_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignStepAResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignStepAResponse}, {}}; + +static void InitDefaultsBytecoinSignStepAMoreDataRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignStepAMoreDataRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignStepAMoreDataRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignStepAMoreDataRequest}, {}}; + +static void InitDefaultsBytecoinSignGetC0Request() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignGetC0Request_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Request(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Request::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignGetC0Request = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignGetC0Request}, {}}; + +static void InitDefaultsBytecoinSignGetC0Response() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignGetC0Response_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Response(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Response::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignGetC0Response = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignGetC0Response}, {}}; + +static void InitDefaultsBytecoinSignStepBRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignStepBRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignStepBRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignStepBRequest}, {}}; + +static void InitDefaultsBytecoinSignStepBResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinSignStepBResponse_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinSignStepBResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinSignStepBResponse}, {}}; + +static void InitDefaultsBytecoinStartProofRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinStartProofRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinStartProofRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinStartProofRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinStartProofRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinStartProofRequest}, {}}; + +static void InitDefaultsBytecoinProofMoreDataRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::bytecoin::_BytecoinProofMoreDataRequest_default_instance_; + new (ptr) ::hw::trezor::messages::bytecoin::BytecoinProofMoreDataRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::bytecoin::BytecoinProofMoreDataRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BytecoinProofMoreDataRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytecoinProofMoreDataRequest}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinStartRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinStartResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinScanOutputsRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinScanOutputsResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinGenerateKeyimageRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinGenerateKeyimageResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinGenerateOutputSeedRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinGenerateOutputSeedResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinExportViewWalletRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinExportViewWalletResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignStartRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinEmptyResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignAddInputRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignAddOutputRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignAddOutputResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignAddExtraRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignStepARequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignStepAResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignStepAMoreDataRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignGetC0Request.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignGetC0Response.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignStepBRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinSignStepBResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinStartProofRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BytecoinProofMoreDataRequest.base); +} + +::google::protobuf::Metadata file_level_metadata[25]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartRequest, debug_request_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartResponse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartResponse, wallet_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartResponse, a_plus_sh_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartResponse, v_mul_a_plus_sh_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartResponse, view_public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartResponse, debug_response_), + 0, + 1, + 2, + 3, + 4, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest, output_public_key_), + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse, pv_), + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest, output_public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest, inv_output_main_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest, address_index_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse, keyimage_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest, tx_inputs_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest, out_index_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse, output_seed_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinExportViewWalletRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinExportViewWalletRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse, audit_key_base_secret_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse, view_secret_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse, tx_derivation_seed_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse, view_secrets_signature_), + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStartRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStartRequest, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStartRequest, ut_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStartRequest, inputs_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStartRequest, outputs_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStartRequest, extra_size_), + 1, + 0, + 2, + 3, + 4, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinEmptyResponse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinEmptyResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest, output_indexes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest, inv_output_main_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest, address_index_), + 1, + ~0u, + 0, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest, change_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest, dst_address_tag_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest, dst_address_s_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest, dst_address_sv_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest, change_address_index_), + 3, + 2, + 4, + 0, + 1, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse, encrypted_secret_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse, encrypted_address_type_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest, extra_chunk_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepARequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepARequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepARequest, inv_output_main_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepARequest, address_index_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse, sig_p_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse, x_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse, y_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest, data_chunk_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignGetC0Request, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignGetC0Request, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignGetC0Response, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignGetC0Response, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignGetC0Response, c0_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest, inv_output_main_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest, address_index_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest, my_c_), + 0, + 2, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse, my_ra_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse, rb_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse, rc_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartProofRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartProofRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinStartProofRequest, data_size_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinProofMoreDataRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinProofMoreDataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::bytecoin::BytecoinProofMoreDataRequest, data_chunk_), + 0, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 6, sizeof(::hw::trezor::messages::bytecoin::BytecoinStartRequest)}, + { 7, 17, sizeof(::hw::trezor::messages::bytecoin::BytecoinStartResponse)}, + { 22, 28, sizeof(::hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest)}, + { 29, 35, sizeof(::hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse)}, + { 36, 44, sizeof(::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest)}, + { 47, 53, sizeof(::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse)}, + { 54, 61, sizeof(::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest)}, + { 63, 69, sizeof(::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse)}, + { 70, 75, sizeof(::hw::trezor::messages::bytecoin::BytecoinExportViewWalletRequest)}, + { 75, 84, sizeof(::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse)}, + { 88, 98, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignStartRequest)}, + { 103, 108, sizeof(::hw::trezor::messages::bytecoin::BytecoinEmptyResponse)}, + { 108, 117, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest)}, + { 121, 132, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest)}, + { 138, 146, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse)}, + { 149, 155, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest)}, + { 156, 163, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignStepARequest)}, + { 165, 173, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse)}, + { 176, 182, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest)}, + { 183, 188, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignGetC0Request)}, + { 188, 194, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignGetC0Response)}, + { 195, 203, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest)}, + { 206, 214, sizeof(::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse)}, + { 217, 223, sizeof(::hw::trezor::messages::bytecoin::BytecoinStartProofRequest)}, + { 224, 230, sizeof(::hw::trezor::messages::bytecoin::BytecoinProofMoreDataRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinStartRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinStartResponse_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinScanOutputsRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinScanOutputsResponse_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinGenerateKeyimageRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinGenerateKeyimageResponse_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinGenerateOutputSeedRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinGenerateOutputSeedResponse_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinExportViewWalletRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinExportViewWalletResponse_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignStartRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinEmptyResponse_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignAddInputRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignAddOutputRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignAddOutputResponse_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignAddExtraRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignStepARequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignStepAResponse_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignStepAMoreDataRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignGetC0Request_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignGetC0Response_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignStepBRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinSignStepBResponse_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinStartProofRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::bytecoin::_BytecoinProofMoreDataRequest_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-bytecoin.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 25); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\027messages-bytecoin.proto\022\033hw.trezor.mes" + "sages.bytecoin\"-\n\024BytecoinStartRequest\022\025" + "\n\rdebug_request\030\001 \001(\014\"\210\001\n\025BytecoinStartR" + "esponse\022\022\n\nwallet_key\030\001 \001(\014\022\021\n\tA_plus_sH" + "\030\002 \001(\014\022\027\n\017v_mul_A_plus_sH\030\003 \001(\014\022\027\n\017view_" + "public_key\030\004 \001(\014\022\026\n\016debug_response\030\005 \001(\014" + "\"7\n\032BytecoinScanOutputsRequest\022\031\n\021output" + "_public_key\030\001 \003(\014\")\n\033BytecoinScanOutputs" + "Response\022\n\n\002Pv\030\001 \003(\014\"q\n\037BytecoinGenerate" + "KeyimageRequest\022\031\n\021output_public_key\030\001 \001" + "(\014\022\034\n\024inv_output_main_hash\030\002 \001(\014\022\025\n\raddr" + "ess_index\030\003 \001(\r\"4\n BytecoinGenerateKeyim" + "ageResponse\022\020\n\010keyimage\030\001 \001(\014\"N\n!Bytecoi" + "nGenerateOutputSeedRequest\022\026\n\016tx_inputs_" + "hash\030\001 \001(\014\022\021\n\tout_index\030\003 \001(\r\"9\n\"Bytecoi" + "nGenerateOutputSeedResponse\022\023\n\013output_se" + "ed\030\001 \001(\014\"!\n\037BytecoinExportViewWalletRequ" + "est\"\232\001\n BytecoinExportViewWalletResponse" + "\022!\n\031audit_key_base_secret_key\030\001 \001(\014\022\027\n\017v" + "iew_secret_key\030\002 \001(\014\022\032\n\022tx_derivation_se" + "ed\030\003 \001(\014\022\036\n\026view_secrets_signature\030\004 \001(\014" + "\"v\n\030BytecoinSignStartRequest\022\017\n\007version\030" + "\001 \001(\r\022\n\n\002ut\030\002 \001(\004\022\023\n\013inputs_size\030\003 \001(\r\022\024" + "\n\014outputs_size\030\004 \001(\r\022\022\n\nextra_size\030\005 \001(\r" + "\"\027\n\025BytecoinEmptyResponse\"z\n\033BytecoinSig" + "nAddInputRequest\022\016\n\006amount\030\001 \001(\004\022\026\n\016outp" + "ut_indexes\030\002 \003(\r\022\034\n\024inv_output_main_hash" + "\030\003 \001(\014\022\025\n\raddress_index\030\004 \001(\r\"\244\001\n\034Byteco" + "inSignAddOutputRequest\022\016\n\006change\030\001 \001(\010\022\016" + "\n\006amount\030\002 \001(\004\022\027\n\017dst_address_tag\030\003 \001(\r\022" + "\025\n\rdst_address_S\030\004 \001(\014\022\026\n\016dst_address_Sv" + "\030\005 \001(\014\022\034\n\024change_address_index\030\006 \001(\r\"m\n\035" + "BytecoinSignAddOutputResponse\022\022\n\npublic_" + "key\030\001 \001(\014\022\030\n\020encrypted_secret\030\002 \001(\014\022\036\n\026e" + "ncrypted_address_type\030\003 \001(\r\"2\n\033BytecoinS" + "ignAddExtraRequest\022\023\n\013extra_chunk\030\001 \001(\014\"" + "O\n\030BytecoinSignStepARequest\022\034\n\024inv_outpu" + "t_main_hash\030\001 \001(\014\022\025\n\raddress_index\030\002 \001(\004" + "\"@\n\031BytecoinSignStepAResponse\022\r\n\005sig_p\030\001" + " \001(\014\022\t\n\001x\030\002 \001(\014\022\t\n\001y\030\003 \001(\014\"6\n BytecoinSi" + "gnStepAMoreDataRequest\022\022\n\ndata_chunk\030\001 \001" + "(\014\"\032\n\030BytecoinSignGetC0Request\"\'\n\031Byteco" + "inSignGetC0Response\022\n\n\002c0\030\001 \001(\014\"]\n\030Bytec" + "oinSignStepBRequest\022\034\n\024inv_output_main_h" + "ash\030\001 \001(\014\022\025\n\raddress_index\030\002 \001(\004\022\014\n\004my_c" + "\030\003 \001(\014\"B\n\031BytecoinSignStepBResponse\022\r\n\005m" + "y_ra\030\001 \001(\014\022\n\n\002rb\030\002 \001(\014\022\n\n\002rc\030\003 \001(\014\".\n\031By" + "tecoinStartProofRequest\022\021\n\tdata_size\030\001 \001" + "(\r\"2\n\034BytecoinProofMoreDataRequest\022\022\n\nda" + "ta_chunk\030\001 \001(\014B<\n#com.satoshilabs.trezor" + ".lib.protobufB\025TrezorMessageBytecoin" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 2036); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-bytecoin.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dbytecoin_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace bytecoin { + +// =================================================================== + +void BytecoinStartRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinStartRequest::kDebugRequestFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinStartRequest::BytecoinStartRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinStartRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinStartRequest) +} +BytecoinStartRequest::BytecoinStartRequest(const BytecoinStartRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + debug_request_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_debug_request()) { + debug_request_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.debug_request_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinStartRequest) +} + +void BytecoinStartRequest::SharedCtor() { + debug_request_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BytecoinStartRequest::~BytecoinStartRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinStartRequest) + SharedDtor(); +} + +void BytecoinStartRequest::SharedDtor() { + debug_request_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinStartRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinStartRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinStartRequest& BytecoinStartRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinStartRequest.base); + return *internal_default_instance(); +} + + +void BytecoinStartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinStartRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + debug_request_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinStartRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinStartRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes debug_request = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_debug_request())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinStartRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinStartRequest) + return false; +#undef DO_ +} + +void BytecoinStartRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinStartRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes debug_request = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->debug_request(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinStartRequest) +} + +::google::protobuf::uint8* BytecoinStartRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinStartRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes debug_request = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->debug_request(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinStartRequest) + return target; +} + +size_t BytecoinStartRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinStartRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes debug_request = 1; + if (has_debug_request()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->debug_request()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinStartRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinStartRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinStartRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinStartRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinStartRequest) + MergeFrom(*source); + } +} + +void BytecoinStartRequest::MergeFrom(const BytecoinStartRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinStartRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_debug_request()) { + set_has_debug_request(); + debug_request_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.debug_request_); + } +} + +void BytecoinStartRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinStartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinStartRequest::CopyFrom(const BytecoinStartRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinStartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinStartRequest::IsInitialized() const { + return true; +} + +void BytecoinStartRequest::Swap(BytecoinStartRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinStartRequest::InternalSwap(BytecoinStartRequest* other) { + using std::swap; + debug_request_.Swap(&other->debug_request_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinStartRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinStartResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinStartResponse::kWalletKeyFieldNumber; +const int BytecoinStartResponse::kAPlusSHFieldNumber; +const int BytecoinStartResponse::kVMulAPlusSHFieldNumber; +const int BytecoinStartResponse::kViewPublicKeyFieldNumber; +const int BytecoinStartResponse::kDebugResponseFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinStartResponse::BytecoinStartResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinStartResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinStartResponse) +} +BytecoinStartResponse::BytecoinStartResponse(const BytecoinStartResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + wallet_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_wallet_key()) { + wallet_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.wallet_key_); + } + a_plus_sh_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_a_plus_sh()) { + a_plus_sh_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.a_plus_sh_); + } + v_mul_a_plus_sh_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_v_mul_a_plus_sh()) { + v_mul_a_plus_sh_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.v_mul_a_plus_sh_); + } + view_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_view_public_key()) { + view_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.view_public_key_); + } + debug_response_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_debug_response()) { + debug_response_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.debug_response_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinStartResponse) +} + +void BytecoinStartResponse::SharedCtor() { + wallet_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + a_plus_sh_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + v_mul_a_plus_sh_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + view_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + debug_response_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BytecoinStartResponse::~BytecoinStartResponse() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinStartResponse) + SharedDtor(); +} + +void BytecoinStartResponse::SharedDtor() { + wallet_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + a_plus_sh_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + v_mul_a_plus_sh_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + view_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + debug_response_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinStartResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinStartResponse::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinStartResponse& BytecoinStartResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinStartResponse.base); + return *internal_default_instance(); +} + + +void BytecoinStartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinStartResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + wallet_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + a_plus_sh_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + v_mul_a_plus_sh_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + view_public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + debug_response_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinStartResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinStartResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes wallet_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_wallet_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes A_plus_sH = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_a_plus_sh())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes v_mul_A_plus_sH = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_v_mul_a_plus_sh())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes view_public_key = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_view_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes debug_response = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_debug_response())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinStartResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinStartResponse) + return false; +#undef DO_ +} + +void BytecoinStartResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinStartResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes wallet_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->wallet_key(), output); + } + + // optional bytes A_plus_sH = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->a_plus_sh(), output); + } + + // optional bytes v_mul_A_plus_sH = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->v_mul_a_plus_sh(), output); + } + + // optional bytes view_public_key = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->view_public_key(), output); + } + + // optional bytes debug_response = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->debug_response(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinStartResponse) +} + +::google::protobuf::uint8* BytecoinStartResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinStartResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes wallet_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->wallet_key(), target); + } + + // optional bytes A_plus_sH = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->a_plus_sh(), target); + } + + // optional bytes v_mul_A_plus_sH = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->v_mul_a_plus_sh(), target); + } + + // optional bytes view_public_key = 4; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->view_public_key(), target); + } + + // optional bytes debug_response = 5; + if (cached_has_bits & 0x00000010u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->debug_response(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinStartResponse) + return target; +} + +size_t BytecoinStartResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinStartResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 31u) { + // optional bytes wallet_key = 1; + if (has_wallet_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->wallet_key()); + } + + // optional bytes A_plus_sH = 2; + if (has_a_plus_sh()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->a_plus_sh()); + } + + // optional bytes v_mul_A_plus_sH = 3; + if (has_v_mul_a_plus_sh()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->v_mul_a_plus_sh()); + } + + // optional bytes view_public_key = 4; + if (has_view_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->view_public_key()); + } + + // optional bytes debug_response = 5; + if (has_debug_response()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->debug_response()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinStartResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinStartResponse) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinStartResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinStartResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinStartResponse) + MergeFrom(*source); + } +} + +void BytecoinStartResponse::MergeFrom(const BytecoinStartResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinStartResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + set_has_wallet_key(); + wallet_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.wallet_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_a_plus_sh(); + a_plus_sh_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.a_plus_sh_); + } + if (cached_has_bits & 0x00000004u) { + set_has_v_mul_a_plus_sh(); + v_mul_a_plus_sh_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.v_mul_a_plus_sh_); + } + if (cached_has_bits & 0x00000008u) { + set_has_view_public_key(); + view_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.view_public_key_); + } + if (cached_has_bits & 0x00000010u) { + set_has_debug_response(); + debug_response_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.debug_response_); + } + } +} + +void BytecoinStartResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinStartResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinStartResponse::CopyFrom(const BytecoinStartResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinStartResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinStartResponse::IsInitialized() const { + return true; +} + +void BytecoinStartResponse::Swap(BytecoinStartResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinStartResponse::InternalSwap(BytecoinStartResponse* other) { + using std::swap; + wallet_key_.Swap(&other->wallet_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + a_plus_sh_.Swap(&other->a_plus_sh_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + v_mul_a_plus_sh_.Swap(&other->v_mul_a_plus_sh_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + view_public_key_.Swap(&other->view_public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + debug_response_.Swap(&other->debug_response_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinStartResponse::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinScanOutputsRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinScanOutputsRequest::kOutputPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinScanOutputsRequest::BytecoinScanOutputsRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinScanOutputsRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) +} +BytecoinScanOutputsRequest::BytecoinScanOutputsRequest(const BytecoinScanOutputsRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + output_public_key_(from.output_public_key_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) +} + +void BytecoinScanOutputsRequest::SharedCtor() { +} + +BytecoinScanOutputsRequest::~BytecoinScanOutputsRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + SharedDtor(); +} + +void BytecoinScanOutputsRequest::SharedDtor() { +} + +void BytecoinScanOutputsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinScanOutputsRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinScanOutputsRequest& BytecoinScanOutputsRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinScanOutputsRequest.base); + return *internal_default_instance(); +} + + +void BytecoinScanOutputsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + output_public_key_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinScanOutputsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated bytes output_public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_output_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + return false; +#undef DO_ +} + +void BytecoinScanOutputsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes output_public_key = 1; + for (int i = 0, n = this->output_public_key_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->output_public_key(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) +} + +::google::protobuf::uint8* BytecoinScanOutputsRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes output_public_key = 1; + for (int i = 0, n = this->output_public_key_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(1, this->output_public_key(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + return target; +} + +size_t BytecoinScanOutputsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated bytes output_public_key = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->output_public_key_size()); + for (int i = 0, n = this->output_public_key_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->output_public_key(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinScanOutputsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinScanOutputsRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + MergeFrom(*source); + } +} + +void BytecoinScanOutputsRequest::MergeFrom(const BytecoinScanOutputsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + output_public_key_.MergeFrom(from.output_public_key_); +} + +void BytecoinScanOutputsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinScanOutputsRequest::CopyFrom(const BytecoinScanOutputsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinScanOutputsRequest::IsInitialized() const { + return true; +} + +void BytecoinScanOutputsRequest::Swap(BytecoinScanOutputsRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinScanOutputsRequest::InternalSwap(BytecoinScanOutputsRequest* other) { + using std::swap; + output_public_key_.InternalSwap(CastToBase(&other->output_public_key_)); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinScanOutputsRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinScanOutputsResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinScanOutputsResponse::kPvFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinScanOutputsResponse::BytecoinScanOutputsResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinScanOutputsResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) +} +BytecoinScanOutputsResponse::BytecoinScanOutputsResponse(const BytecoinScanOutputsResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + pv_(from.pv_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) +} + +void BytecoinScanOutputsResponse::SharedCtor() { +} + +BytecoinScanOutputsResponse::~BytecoinScanOutputsResponse() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + SharedDtor(); +} + +void BytecoinScanOutputsResponse::SharedDtor() { +} + +void BytecoinScanOutputsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinScanOutputsResponse::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinScanOutputsResponse& BytecoinScanOutputsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinScanOutputsResponse.base); + return *internal_default_instance(); +} + + +void BytecoinScanOutputsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + pv_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinScanOutputsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated bytes Pv = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_pv())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + return false; +#undef DO_ +} + +void BytecoinScanOutputsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes Pv = 1; + for (int i = 0, n = this->pv_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->pv(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) +} + +::google::protobuf::uint8* BytecoinScanOutputsResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes Pv = 1; + for (int i = 0, n = this->pv_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(1, this->pv(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + return target; +} + +size_t BytecoinScanOutputsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated bytes Pv = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->pv_size()); + for (int i = 0, n = this->pv_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->pv(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinScanOutputsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinScanOutputsResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + MergeFrom(*source); + } +} + +void BytecoinScanOutputsResponse::MergeFrom(const BytecoinScanOutputsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + pv_.MergeFrom(from.pv_); +} + +void BytecoinScanOutputsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinScanOutputsResponse::CopyFrom(const BytecoinScanOutputsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinScanOutputsResponse::IsInitialized() const { + return true; +} + +void BytecoinScanOutputsResponse::Swap(BytecoinScanOutputsResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinScanOutputsResponse::InternalSwap(BytecoinScanOutputsResponse* other) { + using std::swap; + pv_.InternalSwap(CastToBase(&other->pv_)); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinScanOutputsResponse::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinGenerateKeyimageRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinGenerateKeyimageRequest::kOutputPublicKeyFieldNumber; +const int BytecoinGenerateKeyimageRequest::kInvOutputMainHashFieldNumber; +const int BytecoinGenerateKeyimageRequest::kAddressIndexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinGenerateKeyimageRequest::BytecoinGenerateKeyimageRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinGenerateKeyimageRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) +} +BytecoinGenerateKeyimageRequest::BytecoinGenerateKeyimageRequest(const BytecoinGenerateKeyimageRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + output_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_output_public_key()) { + output_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_public_key_); + } + inv_output_main_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_inv_output_main_hash()) { + inv_output_main_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inv_output_main_hash_); + } + address_index_ = from.address_index_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) +} + +void BytecoinGenerateKeyimageRequest::SharedCtor() { + output_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + inv_output_main_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + address_index_ = 0u; +} + +BytecoinGenerateKeyimageRequest::~BytecoinGenerateKeyimageRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + SharedDtor(); +} + +void BytecoinGenerateKeyimageRequest::SharedDtor() { + output_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + inv_output_main_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinGenerateKeyimageRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinGenerateKeyimageRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinGenerateKeyimageRequest& BytecoinGenerateKeyimageRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinGenerateKeyimageRequest.base); + return *internal_default_instance(); +} + + +void BytecoinGenerateKeyimageRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + output_public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + inv_output_main_hash_.ClearNonDefaultToEmptyNoArena(); + } + } + address_index_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinGenerateKeyimageRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes output_public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_output_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes inv_output_main_hash = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_inv_output_main_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 address_index = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_address_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &address_index_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + return false; +#undef DO_ +} + +void BytecoinGenerateKeyimageRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes output_public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->output_public_key(), output); + } + + // optional bytes inv_output_main_hash = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->inv_output_main_hash(), output); + } + + // optional uint32 address_index = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->address_index(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) +} + +::google::protobuf::uint8* BytecoinGenerateKeyimageRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes output_public_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->output_public_key(), target); + } + + // optional bytes inv_output_main_hash = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->inv_output_main_hash(), target); + } + + // optional uint32 address_index = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->address_index(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + return target; +} + +size_t BytecoinGenerateKeyimageRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes output_public_key = 1; + if (has_output_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->output_public_key()); + } + + // optional bytes inv_output_main_hash = 2; + if (has_inv_output_main_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->inv_output_main_hash()); + } + + // optional uint32 address_index = 3; + if (has_address_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->address_index()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinGenerateKeyimageRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinGenerateKeyimageRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + MergeFrom(*source); + } +} + +void BytecoinGenerateKeyimageRequest::MergeFrom(const BytecoinGenerateKeyimageRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_output_public_key(); + output_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_public_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inv_output_main_hash_); + } + if (cached_has_bits & 0x00000004u) { + address_index_ = from.address_index_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void BytecoinGenerateKeyimageRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinGenerateKeyimageRequest::CopyFrom(const BytecoinGenerateKeyimageRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinGenerateKeyimageRequest::IsInitialized() const { + return true; +} + +void BytecoinGenerateKeyimageRequest::Swap(BytecoinGenerateKeyimageRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinGenerateKeyimageRequest::InternalSwap(BytecoinGenerateKeyimageRequest* other) { + using std::swap; + output_public_key_.Swap(&other->output_public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + inv_output_main_hash_.Swap(&other->inv_output_main_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(address_index_, other->address_index_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinGenerateKeyimageRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinGenerateKeyimageResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinGenerateKeyimageResponse::kKeyimageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinGenerateKeyimageResponse::BytecoinGenerateKeyimageResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinGenerateKeyimageResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) +} +BytecoinGenerateKeyimageResponse::BytecoinGenerateKeyimageResponse(const BytecoinGenerateKeyimageResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + keyimage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_keyimage()) { + keyimage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keyimage_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) +} + +void BytecoinGenerateKeyimageResponse::SharedCtor() { + keyimage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BytecoinGenerateKeyimageResponse::~BytecoinGenerateKeyimageResponse() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + SharedDtor(); +} + +void BytecoinGenerateKeyimageResponse::SharedDtor() { + keyimage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinGenerateKeyimageResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinGenerateKeyimageResponse::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinGenerateKeyimageResponse& BytecoinGenerateKeyimageResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinGenerateKeyimageResponse.base); + return *internal_default_instance(); +} + + +void BytecoinGenerateKeyimageResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + keyimage_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinGenerateKeyimageResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes keyimage = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_keyimage())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + return false; +#undef DO_ +} + +void BytecoinGenerateKeyimageResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes keyimage = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->keyimage(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) +} + +::google::protobuf::uint8* BytecoinGenerateKeyimageResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes keyimage = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->keyimage(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + return target; +} + +size_t BytecoinGenerateKeyimageResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes keyimage = 1; + if (has_keyimage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->keyimage()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinGenerateKeyimageResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinGenerateKeyimageResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + MergeFrom(*source); + } +} + +void BytecoinGenerateKeyimageResponse::MergeFrom(const BytecoinGenerateKeyimageResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_keyimage()) { + set_has_keyimage(); + keyimage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keyimage_); + } +} + +void BytecoinGenerateKeyimageResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinGenerateKeyimageResponse::CopyFrom(const BytecoinGenerateKeyimageResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinGenerateKeyimageResponse::IsInitialized() const { + return true; +} + +void BytecoinGenerateKeyimageResponse::Swap(BytecoinGenerateKeyimageResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinGenerateKeyimageResponse::InternalSwap(BytecoinGenerateKeyimageResponse* other) { + using std::swap; + keyimage_.Swap(&other->keyimage_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinGenerateKeyimageResponse::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinGenerateOutputSeedRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinGenerateOutputSeedRequest::kTxInputsHashFieldNumber; +const int BytecoinGenerateOutputSeedRequest::kOutIndexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinGenerateOutputSeedRequest::BytecoinGenerateOutputSeedRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinGenerateOutputSeedRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) +} +BytecoinGenerateOutputSeedRequest::BytecoinGenerateOutputSeedRequest(const BytecoinGenerateOutputSeedRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tx_inputs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_inputs_hash()) { + tx_inputs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_inputs_hash_); + } + out_index_ = from.out_index_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) +} + +void BytecoinGenerateOutputSeedRequest::SharedCtor() { + tx_inputs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + out_index_ = 0u; +} + +BytecoinGenerateOutputSeedRequest::~BytecoinGenerateOutputSeedRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + SharedDtor(); +} + +void BytecoinGenerateOutputSeedRequest::SharedDtor() { + tx_inputs_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinGenerateOutputSeedRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinGenerateOutputSeedRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinGenerateOutputSeedRequest& BytecoinGenerateOutputSeedRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinGenerateOutputSeedRequest.base); + return *internal_default_instance(); +} + + +void BytecoinGenerateOutputSeedRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + tx_inputs_hash_.ClearNonDefaultToEmptyNoArena(); + } + out_index_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinGenerateOutputSeedRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes tx_inputs_hash = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_inputs_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 out_index = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_out_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &out_index_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + return false; +#undef DO_ +} + +void BytecoinGenerateOutputSeedRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes tx_inputs_hash = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->tx_inputs_hash(), output); + } + + // optional uint32 out_index = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->out_index(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) +} + +::google::protobuf::uint8* BytecoinGenerateOutputSeedRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes tx_inputs_hash = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->tx_inputs_hash(), target); + } + + // optional uint32 out_index = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->out_index(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + return target; +} + +size_t BytecoinGenerateOutputSeedRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes tx_inputs_hash = 1; + if (has_tx_inputs_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_inputs_hash()); + } + + // optional uint32 out_index = 3; + if (has_out_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->out_index()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinGenerateOutputSeedRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinGenerateOutputSeedRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + MergeFrom(*source); + } +} + +void BytecoinGenerateOutputSeedRequest::MergeFrom(const BytecoinGenerateOutputSeedRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_tx_inputs_hash(); + tx_inputs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_inputs_hash_); + } + if (cached_has_bits & 0x00000002u) { + out_index_ = from.out_index_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void BytecoinGenerateOutputSeedRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinGenerateOutputSeedRequest::CopyFrom(const BytecoinGenerateOutputSeedRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinGenerateOutputSeedRequest::IsInitialized() const { + return true; +} + +void BytecoinGenerateOutputSeedRequest::Swap(BytecoinGenerateOutputSeedRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinGenerateOutputSeedRequest::InternalSwap(BytecoinGenerateOutputSeedRequest* other) { + using std::swap; + tx_inputs_hash_.Swap(&other->tx_inputs_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(out_index_, other->out_index_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinGenerateOutputSeedRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinGenerateOutputSeedResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinGenerateOutputSeedResponse::kOutputSeedFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinGenerateOutputSeedResponse::BytecoinGenerateOutputSeedResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinGenerateOutputSeedResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) +} +BytecoinGenerateOutputSeedResponse::BytecoinGenerateOutputSeedResponse(const BytecoinGenerateOutputSeedResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + output_seed_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_output_seed()) { + output_seed_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_seed_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) +} + +void BytecoinGenerateOutputSeedResponse::SharedCtor() { + output_seed_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BytecoinGenerateOutputSeedResponse::~BytecoinGenerateOutputSeedResponse() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + SharedDtor(); +} + +void BytecoinGenerateOutputSeedResponse::SharedDtor() { + output_seed_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinGenerateOutputSeedResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinGenerateOutputSeedResponse::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinGenerateOutputSeedResponse& BytecoinGenerateOutputSeedResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinGenerateOutputSeedResponse.base); + return *internal_default_instance(); +} + + +void BytecoinGenerateOutputSeedResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + output_seed_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinGenerateOutputSeedResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes output_seed = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_output_seed())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + return false; +#undef DO_ +} + +void BytecoinGenerateOutputSeedResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes output_seed = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->output_seed(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) +} + +::google::protobuf::uint8* BytecoinGenerateOutputSeedResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes output_seed = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->output_seed(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + return target; +} + +size_t BytecoinGenerateOutputSeedResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes output_seed = 1; + if (has_output_seed()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->output_seed()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinGenerateOutputSeedResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinGenerateOutputSeedResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + MergeFrom(*source); + } +} + +void BytecoinGenerateOutputSeedResponse::MergeFrom(const BytecoinGenerateOutputSeedResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_output_seed()) { + set_has_output_seed(); + output_seed_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_seed_); + } +} + +void BytecoinGenerateOutputSeedResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinGenerateOutputSeedResponse::CopyFrom(const BytecoinGenerateOutputSeedResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinGenerateOutputSeedResponse::IsInitialized() const { + return true; +} + +void BytecoinGenerateOutputSeedResponse::Swap(BytecoinGenerateOutputSeedResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinGenerateOutputSeedResponse::InternalSwap(BytecoinGenerateOutputSeedResponse* other) { + using std::swap; + output_seed_.Swap(&other->output_seed_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinGenerateOutputSeedResponse::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinExportViewWalletRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinExportViewWalletRequest::BytecoinExportViewWalletRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinExportViewWalletRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) +} +BytecoinExportViewWalletRequest::BytecoinExportViewWalletRequest(const BytecoinExportViewWalletRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) +} + +void BytecoinExportViewWalletRequest::SharedCtor() { +} + +BytecoinExportViewWalletRequest::~BytecoinExportViewWalletRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + SharedDtor(); +} + +void BytecoinExportViewWalletRequest::SharedDtor() { +} + +void BytecoinExportViewWalletRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinExportViewWalletRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinExportViewWalletRequest& BytecoinExportViewWalletRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinExportViewWalletRequest.base); + return *internal_default_instance(); +} + + +void BytecoinExportViewWalletRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinExportViewWalletRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + return false; +#undef DO_ +} + +void BytecoinExportViewWalletRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) +} + +::google::protobuf::uint8* BytecoinExportViewWalletRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + return target; +} + +size_t BytecoinExportViewWalletRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinExportViewWalletRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinExportViewWalletRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + MergeFrom(*source); + } +} + +void BytecoinExportViewWalletRequest::MergeFrom(const BytecoinExportViewWalletRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void BytecoinExportViewWalletRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinExportViewWalletRequest::CopyFrom(const BytecoinExportViewWalletRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinExportViewWalletRequest::IsInitialized() const { + return true; +} + +void BytecoinExportViewWalletRequest::Swap(BytecoinExportViewWalletRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinExportViewWalletRequest::InternalSwap(BytecoinExportViewWalletRequest* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinExportViewWalletRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinExportViewWalletResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinExportViewWalletResponse::kAuditKeyBaseSecretKeyFieldNumber; +const int BytecoinExportViewWalletResponse::kViewSecretKeyFieldNumber; +const int BytecoinExportViewWalletResponse::kTxDerivationSeedFieldNumber; +const int BytecoinExportViewWalletResponse::kViewSecretsSignatureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinExportViewWalletResponse::BytecoinExportViewWalletResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinExportViewWalletResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) +} +BytecoinExportViewWalletResponse::BytecoinExportViewWalletResponse(const BytecoinExportViewWalletResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + audit_key_base_secret_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_audit_key_base_secret_key()) { + audit_key_base_secret_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.audit_key_base_secret_key_); + } + view_secret_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_view_secret_key()) { + view_secret_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.view_secret_key_); + } + tx_derivation_seed_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_derivation_seed()) { + tx_derivation_seed_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_derivation_seed_); + } + view_secrets_signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_view_secrets_signature()) { + view_secrets_signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.view_secrets_signature_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) +} + +void BytecoinExportViewWalletResponse::SharedCtor() { + audit_key_base_secret_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + view_secret_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_derivation_seed_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + view_secrets_signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BytecoinExportViewWalletResponse::~BytecoinExportViewWalletResponse() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + SharedDtor(); +} + +void BytecoinExportViewWalletResponse::SharedDtor() { + audit_key_base_secret_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + view_secret_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_derivation_seed_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + view_secrets_signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinExportViewWalletResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinExportViewWalletResponse::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinExportViewWalletResponse& BytecoinExportViewWalletResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinExportViewWalletResponse.base); + return *internal_default_instance(); +} + + +void BytecoinExportViewWalletResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + audit_key_base_secret_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + view_secret_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + tx_derivation_seed_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + view_secrets_signature_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinExportViewWalletResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes audit_key_base_secret_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_audit_key_base_secret_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes view_secret_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_view_secret_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_derivation_seed = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_derivation_seed())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes view_secrets_signature = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_view_secrets_signature())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + return false; +#undef DO_ +} + +void BytecoinExportViewWalletResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes audit_key_base_secret_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->audit_key_base_secret_key(), output); + } + + // optional bytes view_secret_key = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->view_secret_key(), output); + } + + // optional bytes tx_derivation_seed = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->tx_derivation_seed(), output); + } + + // optional bytes view_secrets_signature = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->view_secrets_signature(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) +} + +::google::protobuf::uint8* BytecoinExportViewWalletResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes audit_key_base_secret_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->audit_key_base_secret_key(), target); + } + + // optional bytes view_secret_key = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->view_secret_key(), target); + } + + // optional bytes tx_derivation_seed = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->tx_derivation_seed(), target); + } + + // optional bytes view_secrets_signature = 4; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->view_secrets_signature(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + return target; +} + +size_t BytecoinExportViewWalletResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional bytes audit_key_base_secret_key = 1; + if (has_audit_key_base_secret_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->audit_key_base_secret_key()); + } + + // optional bytes view_secret_key = 2; + if (has_view_secret_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->view_secret_key()); + } + + // optional bytes tx_derivation_seed = 3; + if (has_tx_derivation_seed()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_derivation_seed()); + } + + // optional bytes view_secrets_signature = 4; + if (has_view_secrets_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->view_secrets_signature()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinExportViewWalletResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinExportViewWalletResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + MergeFrom(*source); + } +} + +void BytecoinExportViewWalletResponse::MergeFrom(const BytecoinExportViewWalletResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_audit_key_base_secret_key(); + audit_key_base_secret_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.audit_key_base_secret_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_view_secret_key(); + view_secret_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.view_secret_key_); + } + if (cached_has_bits & 0x00000004u) { + set_has_tx_derivation_seed(); + tx_derivation_seed_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_derivation_seed_); + } + if (cached_has_bits & 0x00000008u) { + set_has_view_secrets_signature(); + view_secrets_signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.view_secrets_signature_); + } + } +} + +void BytecoinExportViewWalletResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinExportViewWalletResponse::CopyFrom(const BytecoinExportViewWalletResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinExportViewWalletResponse::IsInitialized() const { + return true; +} + +void BytecoinExportViewWalletResponse::Swap(BytecoinExportViewWalletResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinExportViewWalletResponse::InternalSwap(BytecoinExportViewWalletResponse* other) { + using std::swap; + audit_key_base_secret_key_.Swap(&other->audit_key_base_secret_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + view_secret_key_.Swap(&other->view_secret_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tx_derivation_seed_.Swap(&other->tx_derivation_seed_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + view_secrets_signature_.Swap(&other->view_secrets_signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinExportViewWalletResponse::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignStartRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinSignStartRequest::kVersionFieldNumber; +const int BytecoinSignStartRequest::kUtFieldNumber; +const int BytecoinSignStartRequest::kInputsSizeFieldNumber; +const int BytecoinSignStartRequest::kOutputsSizeFieldNumber; +const int BytecoinSignStartRequest::kExtraSizeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignStartRequest::BytecoinSignStartRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStartRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) +} +BytecoinSignStartRequest::BytecoinSignStartRequest(const BytecoinSignStartRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&ut_, &from.ut_, + static_cast(reinterpret_cast(&extra_size_) - + reinterpret_cast(&ut_)) + sizeof(extra_size_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) +} + +void BytecoinSignStartRequest::SharedCtor() { + ::memset(&ut_, 0, static_cast( + reinterpret_cast(&extra_size_) - + reinterpret_cast(&ut_)) + sizeof(extra_size_)); +} + +BytecoinSignStartRequest::~BytecoinSignStartRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + SharedDtor(); +} + +void BytecoinSignStartRequest::SharedDtor() { +} + +void BytecoinSignStartRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignStartRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignStartRequest& BytecoinSignStartRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStartRequest.base); + return *internal_default_instance(); +} + + +void BytecoinSignStartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 31u) { + ::memset(&ut_, 0, static_cast( + reinterpret_cast(&extra_size_) - + reinterpret_cast(&ut_)) + sizeof(extra_size_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignStartRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 version = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 ut = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_ut(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &ut_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 inputs_size = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_inputs_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &inputs_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 outputs_size = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_outputs_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &outputs_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 extra_size = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_extra_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &extra_size_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + return false; +#undef DO_ +} + +void BytecoinSignStartRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 version = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->version(), output); + } + + // optional uint64 ut = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->ut(), output); + } + + // optional uint32 inputs_size = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->inputs_size(), output); + } + + // optional uint32 outputs_size = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->outputs_size(), output); + } + + // optional uint32 extra_size = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->extra_size(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) +} + +::google::protobuf::uint8* BytecoinSignStartRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 version = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->version(), target); + } + + // optional uint64 ut = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->ut(), target); + } + + // optional uint32 inputs_size = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->inputs_size(), target); + } + + // optional uint32 outputs_size = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->outputs_size(), target); + } + + // optional uint32 extra_size = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->extra_size(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + return target; +} + +size_t BytecoinSignStartRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 31u) { + // optional uint64 ut = 2; + if (has_ut()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->ut()); + } + + // optional uint32 version = 1; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version()); + } + + // optional uint32 inputs_size = 3; + if (has_inputs_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->inputs_size()); + } + + // optional uint32 outputs_size = 4; + if (has_outputs_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->outputs_size()); + } + + // optional uint32 extra_size = 5; + if (has_extra_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->extra_size()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignStartRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignStartRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + MergeFrom(*source); + } +} + +void BytecoinSignStartRequest::MergeFrom(const BytecoinSignStartRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + ut_ = from.ut_; + } + if (cached_has_bits & 0x00000002u) { + version_ = from.version_; + } + if (cached_has_bits & 0x00000004u) { + inputs_size_ = from.inputs_size_; + } + if (cached_has_bits & 0x00000008u) { + outputs_size_ = from.outputs_size_; + } + if (cached_has_bits & 0x00000010u) { + extra_size_ = from.extra_size_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void BytecoinSignStartRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignStartRequest::CopyFrom(const BytecoinSignStartRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignStartRequest::IsInitialized() const { + return true; +} + +void BytecoinSignStartRequest::Swap(BytecoinSignStartRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignStartRequest::InternalSwap(BytecoinSignStartRequest* other) { + using std::swap; + swap(ut_, other->ut_); + swap(version_, other->version_); + swap(inputs_size_, other->inputs_size_); + swap(outputs_size_, other->outputs_size_); + swap(extra_size_, other->extra_size_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignStartRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinEmptyResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinEmptyResponse::BytecoinEmptyResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinEmptyResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) +} +BytecoinEmptyResponse::BytecoinEmptyResponse(const BytecoinEmptyResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) +} + +void BytecoinEmptyResponse::SharedCtor() { +} + +BytecoinEmptyResponse::~BytecoinEmptyResponse() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + SharedDtor(); +} + +void BytecoinEmptyResponse::SharedDtor() { +} + +void BytecoinEmptyResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinEmptyResponse::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinEmptyResponse& BytecoinEmptyResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinEmptyResponse.base); + return *internal_default_instance(); +} + + +void BytecoinEmptyResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinEmptyResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + return false; +#undef DO_ +} + +void BytecoinEmptyResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) +} + +::google::protobuf::uint8* BytecoinEmptyResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + return target; +} + +size_t BytecoinEmptyResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinEmptyResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinEmptyResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + MergeFrom(*source); + } +} + +void BytecoinEmptyResponse::MergeFrom(const BytecoinEmptyResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void BytecoinEmptyResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinEmptyResponse::CopyFrom(const BytecoinEmptyResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinEmptyResponse::IsInitialized() const { + return true; +} + +void BytecoinEmptyResponse::Swap(BytecoinEmptyResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinEmptyResponse::InternalSwap(BytecoinEmptyResponse* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinEmptyResponse::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignAddInputRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinSignAddInputRequest::kAmountFieldNumber; +const int BytecoinSignAddInputRequest::kOutputIndexesFieldNumber; +const int BytecoinSignAddInputRequest::kInvOutputMainHashFieldNumber; +const int BytecoinSignAddInputRequest::kAddressIndexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignAddInputRequest::BytecoinSignAddInputRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignAddInputRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) +} +BytecoinSignAddInputRequest::BytecoinSignAddInputRequest(const BytecoinSignAddInputRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + output_indexes_(from.output_indexes_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + inv_output_main_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_inv_output_main_hash()) { + inv_output_main_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inv_output_main_hash_); + } + ::memcpy(&amount_, &from.amount_, + static_cast(reinterpret_cast(&address_index_) - + reinterpret_cast(&amount_)) + sizeof(address_index_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) +} + +void BytecoinSignAddInputRequest::SharedCtor() { + inv_output_main_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&address_index_) - + reinterpret_cast(&amount_)) + sizeof(address_index_)); +} + +BytecoinSignAddInputRequest::~BytecoinSignAddInputRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + SharedDtor(); +} + +void BytecoinSignAddInputRequest::SharedDtor() { + inv_output_main_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinSignAddInputRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignAddInputRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignAddInputRequest& BytecoinSignAddInputRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignAddInputRequest.base); + return *internal_default_instance(); +} + + +void BytecoinSignAddInputRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + output_indexes_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + inv_output_main_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 6u) { + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&address_index_) - + reinterpret_cast(&amount_)) + sizeof(address_index_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignAddInputRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 amount = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 output_indexes = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 16u, input, this->mutable_output_indexes()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_output_indexes()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes inv_output_main_hash = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_inv_output_main_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 address_index = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_address_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &address_index_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + return false; +#undef DO_ +} + +void BytecoinSignAddInputRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 amount = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->amount(), output); + } + + // repeated uint32 output_indexes = 2; + for (int i = 0, n = this->output_indexes_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 2, this->output_indexes(i), output); + } + + // optional bytes inv_output_main_hash = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->inv_output_main_hash(), output); + } + + // optional uint32 address_index = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->address_index(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) +} + +::google::protobuf::uint8* BytecoinSignAddInputRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 amount = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->amount(), target); + } + + // repeated uint32 output_indexes = 2; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(2, this->output_indexes_, target); + + // optional bytes inv_output_main_hash = 3; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->inv_output_main_hash(), target); + } + + // optional uint32 address_index = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->address_index(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + return target; +} + +size_t BytecoinSignAddInputRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 output_indexes = 2; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->output_indexes_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->output_indexes_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 7u) { + // optional bytes inv_output_main_hash = 3; + if (has_inv_output_main_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->inv_output_main_hash()); + } + + // optional uint64 amount = 1; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + // optional uint32 address_index = 4; + if (has_address_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->address_index()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignAddInputRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignAddInputRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + MergeFrom(*source); + } +} + +void BytecoinSignAddInputRequest::MergeFrom(const BytecoinSignAddInputRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + output_indexes_.MergeFrom(from.output_indexes_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inv_output_main_hash_); + } + if (cached_has_bits & 0x00000002u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000004u) { + address_index_ = from.address_index_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void BytecoinSignAddInputRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignAddInputRequest::CopyFrom(const BytecoinSignAddInputRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignAddInputRequest::IsInitialized() const { + return true; +} + +void BytecoinSignAddInputRequest::Swap(BytecoinSignAddInputRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignAddInputRequest::InternalSwap(BytecoinSignAddInputRequest* other) { + using std::swap; + output_indexes_.InternalSwap(&other->output_indexes_); + inv_output_main_hash_.Swap(&other->inv_output_main_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(amount_, other->amount_); + swap(address_index_, other->address_index_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignAddInputRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignAddOutputRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinSignAddOutputRequest::kChangeFieldNumber; +const int BytecoinSignAddOutputRequest::kAmountFieldNumber; +const int BytecoinSignAddOutputRequest::kDstAddressTagFieldNumber; +const int BytecoinSignAddOutputRequest::kDstAddressSFieldNumber; +const int BytecoinSignAddOutputRequest::kDstAddressSvFieldNumber; +const int BytecoinSignAddOutputRequest::kChangeAddressIndexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignAddOutputRequest::BytecoinSignAddOutputRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignAddOutputRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) +} +BytecoinSignAddOutputRequest::BytecoinSignAddOutputRequest(const BytecoinSignAddOutputRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + dst_address_s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_dst_address_s()) { + dst_address_s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dst_address_s_); + } + dst_address_sv_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_dst_address_sv()) { + dst_address_sv_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dst_address_sv_); + } + ::memcpy(&amount_, &from.amount_, + static_cast(reinterpret_cast(&change_address_index_) - + reinterpret_cast(&amount_)) + sizeof(change_address_index_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) +} + +void BytecoinSignAddOutputRequest::SharedCtor() { + dst_address_s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dst_address_sv_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&change_address_index_) - + reinterpret_cast(&amount_)) + sizeof(change_address_index_)); +} + +BytecoinSignAddOutputRequest::~BytecoinSignAddOutputRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + SharedDtor(); +} + +void BytecoinSignAddOutputRequest::SharedDtor() { + dst_address_s_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dst_address_sv_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinSignAddOutputRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignAddOutputRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignAddOutputRequest& BytecoinSignAddOutputRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignAddOutputRequest.base); + return *internal_default_instance(); +} + + +void BytecoinSignAddOutputRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + dst_address_s_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + dst_address_sv_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 60u) { + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&change_address_index_) - + reinterpret_cast(&amount_)) + sizeof(change_address_index_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignAddOutputRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool change = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_change(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &change_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 amount = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 dst_address_tag = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_dst_address_tag(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &dst_address_tag_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes dst_address_S = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_dst_address_s())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes dst_address_Sv = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_dst_address_sv())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 change_address_index = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_change_address_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &change_address_index_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + return false; +#undef DO_ +} + +void BytecoinSignAddOutputRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool change = 1; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->change(), output); + } + + // optional uint64 amount = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->amount(), output); + } + + // optional uint32 dst_address_tag = 3; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->dst_address_tag(), output); + } + + // optional bytes dst_address_S = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->dst_address_s(), output); + } + + // optional bytes dst_address_Sv = 5; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->dst_address_sv(), output); + } + + // optional uint32 change_address_index = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->change_address_index(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) +} + +::google::protobuf::uint8* BytecoinSignAddOutputRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool change = 1; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->change(), target); + } + + // optional uint64 amount = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->amount(), target); + } + + // optional uint32 dst_address_tag = 3; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->dst_address_tag(), target); + } + + // optional bytes dst_address_S = 4; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->dst_address_s(), target); + } + + // optional bytes dst_address_Sv = 5; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->dst_address_sv(), target); + } + + // optional uint32 change_address_index = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->change_address_index(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + return target; +} + +size_t BytecoinSignAddOutputRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 63u) { + // optional bytes dst_address_S = 4; + if (has_dst_address_s()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->dst_address_s()); + } + + // optional bytes dst_address_Sv = 5; + if (has_dst_address_sv()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->dst_address_sv()); + } + + // optional uint64 amount = 2; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + // optional bool change = 1; + if (has_change()) { + total_size += 1 + 1; + } + + // optional uint32 dst_address_tag = 3; + if (has_dst_address_tag()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->dst_address_tag()); + } + + // optional uint32 change_address_index = 6; + if (has_change_address_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->change_address_index()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignAddOutputRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignAddOutputRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + MergeFrom(*source); + } +} + +void BytecoinSignAddOutputRequest::MergeFrom(const BytecoinSignAddOutputRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_dst_address_s(); + dst_address_s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dst_address_s_); + } + if (cached_has_bits & 0x00000002u) { + set_has_dst_address_sv(); + dst_address_sv_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dst_address_sv_); + } + if (cached_has_bits & 0x00000004u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000008u) { + change_ = from.change_; + } + if (cached_has_bits & 0x00000010u) { + dst_address_tag_ = from.dst_address_tag_; + } + if (cached_has_bits & 0x00000020u) { + change_address_index_ = from.change_address_index_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void BytecoinSignAddOutputRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignAddOutputRequest::CopyFrom(const BytecoinSignAddOutputRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignAddOutputRequest::IsInitialized() const { + return true; +} + +void BytecoinSignAddOutputRequest::Swap(BytecoinSignAddOutputRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignAddOutputRequest::InternalSwap(BytecoinSignAddOutputRequest* other) { + using std::swap; + dst_address_s_.Swap(&other->dst_address_s_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + dst_address_sv_.Swap(&other->dst_address_sv_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(amount_, other->amount_); + swap(change_, other->change_); + swap(dst_address_tag_, other->dst_address_tag_); + swap(change_address_index_, other->change_address_index_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignAddOutputRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignAddOutputResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinSignAddOutputResponse::kPublicKeyFieldNumber; +const int BytecoinSignAddOutputResponse::kEncryptedSecretFieldNumber; +const int BytecoinSignAddOutputResponse::kEncryptedAddressTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignAddOutputResponse::BytecoinSignAddOutputResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignAddOutputResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) +} +BytecoinSignAddOutputResponse::BytecoinSignAddOutputResponse(const BytecoinSignAddOutputResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + encrypted_secret_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_encrypted_secret()) { + encrypted_secret_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encrypted_secret_); + } + encrypted_address_type_ = from.encrypted_address_type_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) +} + +void BytecoinSignAddOutputResponse::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + encrypted_secret_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + encrypted_address_type_ = 0u; +} + +BytecoinSignAddOutputResponse::~BytecoinSignAddOutputResponse() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + SharedDtor(); +} + +void BytecoinSignAddOutputResponse::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + encrypted_secret_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinSignAddOutputResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignAddOutputResponse::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignAddOutputResponse& BytecoinSignAddOutputResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignAddOutputResponse.base); + return *internal_default_instance(); +} + + +void BytecoinSignAddOutputResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + encrypted_secret_.ClearNonDefaultToEmptyNoArena(); + } + } + encrypted_address_type_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignAddOutputResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes encrypted_secret = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_encrypted_secret())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 encrypted_address_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_encrypted_address_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &encrypted_address_type_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + return false; +#undef DO_ +} + +void BytecoinSignAddOutputResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->public_key(), output); + } + + // optional bytes encrypted_secret = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->encrypted_secret(), output); + } + + // optional uint32 encrypted_address_type = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->encrypted_address_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) +} + +::google::protobuf::uint8* BytecoinSignAddOutputResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->public_key(), target); + } + + // optional bytes encrypted_secret = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->encrypted_secret(), target); + } + + // optional uint32 encrypted_address_type = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->encrypted_address_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + return target; +} + +size_t BytecoinSignAddOutputResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes public_key = 1; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + // optional bytes encrypted_secret = 2; + if (has_encrypted_secret()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->encrypted_secret()); + } + + // optional uint32 encrypted_address_type = 3; + if (has_encrypted_address_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->encrypted_address_type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignAddOutputResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignAddOutputResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + MergeFrom(*source); + } +} + +void BytecoinSignAddOutputResponse::MergeFrom(const BytecoinSignAddOutputResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_encrypted_secret(); + encrypted_secret_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encrypted_secret_); + } + if (cached_has_bits & 0x00000004u) { + encrypted_address_type_ = from.encrypted_address_type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void BytecoinSignAddOutputResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignAddOutputResponse::CopyFrom(const BytecoinSignAddOutputResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignAddOutputResponse::IsInitialized() const { + return true; +} + +void BytecoinSignAddOutputResponse::Swap(BytecoinSignAddOutputResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignAddOutputResponse::InternalSwap(BytecoinSignAddOutputResponse* other) { + using std::swap; + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + encrypted_secret_.Swap(&other->encrypted_secret_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(encrypted_address_type_, other->encrypted_address_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignAddOutputResponse::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignAddExtraRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinSignAddExtraRequest::kExtraChunkFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignAddExtraRequest::BytecoinSignAddExtraRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignAddExtraRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) +} +BytecoinSignAddExtraRequest::BytecoinSignAddExtraRequest(const BytecoinSignAddExtraRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + extra_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_extra_chunk()) { + extra_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extra_chunk_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) +} + +void BytecoinSignAddExtraRequest::SharedCtor() { + extra_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BytecoinSignAddExtraRequest::~BytecoinSignAddExtraRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + SharedDtor(); +} + +void BytecoinSignAddExtraRequest::SharedDtor() { + extra_chunk_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinSignAddExtraRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignAddExtraRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignAddExtraRequest& BytecoinSignAddExtraRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignAddExtraRequest.base); + return *internal_default_instance(); +} + + +void BytecoinSignAddExtraRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + extra_chunk_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignAddExtraRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes extra_chunk = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_extra_chunk())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + return false; +#undef DO_ +} + +void BytecoinSignAddExtraRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes extra_chunk = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->extra_chunk(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) +} + +::google::protobuf::uint8* BytecoinSignAddExtraRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes extra_chunk = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->extra_chunk(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + return target; +} + +size_t BytecoinSignAddExtraRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes extra_chunk = 1; + if (has_extra_chunk()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->extra_chunk()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignAddExtraRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignAddExtraRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + MergeFrom(*source); + } +} + +void BytecoinSignAddExtraRequest::MergeFrom(const BytecoinSignAddExtraRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_extra_chunk()) { + set_has_extra_chunk(); + extra_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extra_chunk_); + } +} + +void BytecoinSignAddExtraRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignAddExtraRequest::CopyFrom(const BytecoinSignAddExtraRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignAddExtraRequest::IsInitialized() const { + return true; +} + +void BytecoinSignAddExtraRequest::Swap(BytecoinSignAddExtraRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignAddExtraRequest::InternalSwap(BytecoinSignAddExtraRequest* other) { + using std::swap; + extra_chunk_.Swap(&other->extra_chunk_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignAddExtraRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignStepARequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinSignStepARequest::kInvOutputMainHashFieldNumber; +const int BytecoinSignStepARequest::kAddressIndexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignStepARequest::BytecoinSignStepARequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStepARequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) +} +BytecoinSignStepARequest::BytecoinSignStepARequest(const BytecoinSignStepARequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + inv_output_main_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_inv_output_main_hash()) { + inv_output_main_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inv_output_main_hash_); + } + address_index_ = from.address_index_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) +} + +void BytecoinSignStepARequest::SharedCtor() { + inv_output_main_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + address_index_ = GOOGLE_ULONGLONG(0); +} + +BytecoinSignStepARequest::~BytecoinSignStepARequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + SharedDtor(); +} + +void BytecoinSignStepARequest::SharedDtor() { + inv_output_main_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinSignStepARequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignStepARequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignStepARequest& BytecoinSignStepARequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStepARequest.base); + return *internal_default_instance(); +} + + +void BytecoinSignStepARequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + inv_output_main_hash_.ClearNonDefaultToEmptyNoArena(); + } + address_index_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignStepARequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes inv_output_main_hash = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_inv_output_main_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 address_index = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_address_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &address_index_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + return false; +#undef DO_ +} + +void BytecoinSignStepARequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes inv_output_main_hash = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->inv_output_main_hash(), output); + } + + // optional uint64 address_index = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->address_index(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) +} + +::google::protobuf::uint8* BytecoinSignStepARequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes inv_output_main_hash = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->inv_output_main_hash(), target); + } + + // optional uint64 address_index = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->address_index(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + return target; +} + +size_t BytecoinSignStepARequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes inv_output_main_hash = 1; + if (has_inv_output_main_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->inv_output_main_hash()); + } + + // optional uint64 address_index = 2; + if (has_address_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->address_index()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignStepARequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignStepARequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + MergeFrom(*source); + } +} + +void BytecoinSignStepARequest::MergeFrom(const BytecoinSignStepARequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inv_output_main_hash_); + } + if (cached_has_bits & 0x00000002u) { + address_index_ = from.address_index_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void BytecoinSignStepARequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignStepARequest::CopyFrom(const BytecoinSignStepARequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignStepARequest::IsInitialized() const { + return true; +} + +void BytecoinSignStepARequest::Swap(BytecoinSignStepARequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignStepARequest::InternalSwap(BytecoinSignStepARequest* other) { + using std::swap; + inv_output_main_hash_.Swap(&other->inv_output_main_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(address_index_, other->address_index_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignStepARequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignStepAResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinSignStepAResponse::kSigPFieldNumber; +const int BytecoinSignStepAResponse::kXFieldNumber; +const int BytecoinSignStepAResponse::kYFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignStepAResponse::BytecoinSignStepAResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStepAResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) +} +BytecoinSignStepAResponse::BytecoinSignStepAResponse(const BytecoinSignStepAResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + sig_p_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_sig_p()) { + sig_p_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sig_p_); + } + x_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_x()) { + x_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.x_); + } + y_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_y()) { + y_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.y_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) +} + +void BytecoinSignStepAResponse::SharedCtor() { + sig_p_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + x_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + y_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BytecoinSignStepAResponse::~BytecoinSignStepAResponse() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + SharedDtor(); +} + +void BytecoinSignStepAResponse::SharedDtor() { + sig_p_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + x_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + y_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinSignStepAResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignStepAResponse::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignStepAResponse& BytecoinSignStepAResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStepAResponse.base); + return *internal_default_instance(); +} + + +void BytecoinSignStepAResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + sig_p_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + x_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + y_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignStepAResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes sig_p = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_sig_p())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes x = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_x())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes y = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_y())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + return false; +#undef DO_ +} + +void BytecoinSignStepAResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes sig_p = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->sig_p(), output); + } + + // optional bytes x = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->x(), output); + } + + // optional bytes y = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->y(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) +} + +::google::protobuf::uint8* BytecoinSignStepAResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes sig_p = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->sig_p(), target); + } + + // optional bytes x = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->x(), target); + } + + // optional bytes y = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->y(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + return target; +} + +size_t BytecoinSignStepAResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes sig_p = 1; + if (has_sig_p()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->sig_p()); + } + + // optional bytes x = 2; + if (has_x()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->x()); + } + + // optional bytes y = 3; + if (has_y()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->y()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignStepAResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignStepAResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + MergeFrom(*source); + } +} + +void BytecoinSignStepAResponse::MergeFrom(const BytecoinSignStepAResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_sig_p(); + sig_p_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sig_p_); + } + if (cached_has_bits & 0x00000002u) { + set_has_x(); + x_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.x_); + } + if (cached_has_bits & 0x00000004u) { + set_has_y(); + y_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.y_); + } + } +} + +void BytecoinSignStepAResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignStepAResponse::CopyFrom(const BytecoinSignStepAResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignStepAResponse::IsInitialized() const { + return true; +} + +void BytecoinSignStepAResponse::Swap(BytecoinSignStepAResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignStepAResponse::InternalSwap(BytecoinSignStepAResponse* other) { + using std::swap; + sig_p_.Swap(&other->sig_p_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + x_.Swap(&other->x_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + y_.Swap(&other->y_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignStepAResponse::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignStepAMoreDataRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinSignStepAMoreDataRequest::kDataChunkFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignStepAMoreDataRequest::BytecoinSignStepAMoreDataRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStepAMoreDataRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) +} +BytecoinSignStepAMoreDataRequest::BytecoinSignStepAMoreDataRequest(const BytecoinSignStepAMoreDataRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data_chunk()) { + data_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_chunk_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) +} + +void BytecoinSignStepAMoreDataRequest::SharedCtor() { + data_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BytecoinSignStepAMoreDataRequest::~BytecoinSignStepAMoreDataRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + SharedDtor(); +} + +void BytecoinSignStepAMoreDataRequest::SharedDtor() { + data_chunk_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinSignStepAMoreDataRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignStepAMoreDataRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignStepAMoreDataRequest& BytecoinSignStepAMoreDataRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStepAMoreDataRequest.base); + return *internal_default_instance(); +} + + +void BytecoinSignStepAMoreDataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + data_chunk_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignStepAMoreDataRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes data_chunk = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data_chunk())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + return false; +#undef DO_ +} + +void BytecoinSignStepAMoreDataRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes data_chunk = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->data_chunk(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) +} + +::google::protobuf::uint8* BytecoinSignStepAMoreDataRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes data_chunk = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->data_chunk(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + return target; +} + +size_t BytecoinSignStepAMoreDataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes data_chunk = 1; + if (has_data_chunk()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data_chunk()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignStepAMoreDataRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignStepAMoreDataRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + MergeFrom(*source); + } +} + +void BytecoinSignStepAMoreDataRequest::MergeFrom(const BytecoinSignStepAMoreDataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_data_chunk()) { + set_has_data_chunk(); + data_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_chunk_); + } +} + +void BytecoinSignStepAMoreDataRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignStepAMoreDataRequest::CopyFrom(const BytecoinSignStepAMoreDataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignStepAMoreDataRequest::IsInitialized() const { + return true; +} + +void BytecoinSignStepAMoreDataRequest::Swap(BytecoinSignStepAMoreDataRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignStepAMoreDataRequest::InternalSwap(BytecoinSignStepAMoreDataRequest* other) { + using std::swap; + data_chunk_.Swap(&other->data_chunk_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignStepAMoreDataRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignGetC0Request::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignGetC0Request::BytecoinSignGetC0Request() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignGetC0Request.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) +} +BytecoinSignGetC0Request::BytecoinSignGetC0Request(const BytecoinSignGetC0Request& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) +} + +void BytecoinSignGetC0Request::SharedCtor() { +} + +BytecoinSignGetC0Request::~BytecoinSignGetC0Request() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + SharedDtor(); +} + +void BytecoinSignGetC0Request::SharedDtor() { +} + +void BytecoinSignGetC0Request::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignGetC0Request::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignGetC0Request& BytecoinSignGetC0Request::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignGetC0Request.base); + return *internal_default_instance(); +} + + +void BytecoinSignGetC0Request::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignGetC0Request::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + return false; +#undef DO_ +} + +void BytecoinSignGetC0Request::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) +} + +::google::protobuf::uint8* BytecoinSignGetC0Request::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + return target; +} + +size_t BytecoinSignGetC0Request::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignGetC0Request::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignGetC0Request* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + MergeFrom(*source); + } +} + +void BytecoinSignGetC0Request::MergeFrom(const BytecoinSignGetC0Request& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void BytecoinSignGetC0Request::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignGetC0Request::CopyFrom(const BytecoinSignGetC0Request& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignGetC0Request::IsInitialized() const { + return true; +} + +void BytecoinSignGetC0Request::Swap(BytecoinSignGetC0Request* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignGetC0Request::InternalSwap(BytecoinSignGetC0Request* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignGetC0Request::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignGetC0Response::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinSignGetC0Response::kC0FieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignGetC0Response::BytecoinSignGetC0Response() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignGetC0Response.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) +} +BytecoinSignGetC0Response::BytecoinSignGetC0Response(const BytecoinSignGetC0Response& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + c0_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_c0()) { + c0_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.c0_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) +} + +void BytecoinSignGetC0Response::SharedCtor() { + c0_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BytecoinSignGetC0Response::~BytecoinSignGetC0Response() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + SharedDtor(); +} + +void BytecoinSignGetC0Response::SharedDtor() { + c0_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinSignGetC0Response::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignGetC0Response::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignGetC0Response& BytecoinSignGetC0Response::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignGetC0Response.base); + return *internal_default_instance(); +} + + +void BytecoinSignGetC0Response::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + c0_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignGetC0Response::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes c0 = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_c0())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + return false; +#undef DO_ +} + +void BytecoinSignGetC0Response::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes c0 = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->c0(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) +} + +::google::protobuf::uint8* BytecoinSignGetC0Response::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes c0 = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->c0(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + return target; +} + +size_t BytecoinSignGetC0Response::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes c0 = 1; + if (has_c0()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->c0()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignGetC0Response::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignGetC0Response* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + MergeFrom(*source); + } +} + +void BytecoinSignGetC0Response::MergeFrom(const BytecoinSignGetC0Response& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_c0()) { + set_has_c0(); + c0_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.c0_); + } +} + +void BytecoinSignGetC0Response::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignGetC0Response::CopyFrom(const BytecoinSignGetC0Response& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignGetC0Response::IsInitialized() const { + return true; +} + +void BytecoinSignGetC0Response::Swap(BytecoinSignGetC0Response* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignGetC0Response::InternalSwap(BytecoinSignGetC0Response* other) { + using std::swap; + c0_.Swap(&other->c0_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignGetC0Response::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignStepBRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinSignStepBRequest::kInvOutputMainHashFieldNumber; +const int BytecoinSignStepBRequest::kAddressIndexFieldNumber; +const int BytecoinSignStepBRequest::kMyCFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignStepBRequest::BytecoinSignStepBRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStepBRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) +} +BytecoinSignStepBRequest::BytecoinSignStepBRequest(const BytecoinSignStepBRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + inv_output_main_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_inv_output_main_hash()) { + inv_output_main_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inv_output_main_hash_); + } + my_c_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_my_c()) { + my_c_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.my_c_); + } + address_index_ = from.address_index_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) +} + +void BytecoinSignStepBRequest::SharedCtor() { + inv_output_main_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + my_c_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + address_index_ = GOOGLE_ULONGLONG(0); +} + +BytecoinSignStepBRequest::~BytecoinSignStepBRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + SharedDtor(); +} + +void BytecoinSignStepBRequest::SharedDtor() { + inv_output_main_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + my_c_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinSignStepBRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignStepBRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignStepBRequest& BytecoinSignStepBRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStepBRequest.base); + return *internal_default_instance(); +} + + +void BytecoinSignStepBRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + inv_output_main_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + my_c_.ClearNonDefaultToEmptyNoArena(); + } + } + address_index_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignStepBRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes inv_output_main_hash = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_inv_output_main_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 address_index = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_address_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &address_index_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes my_c = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_my_c())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + return false; +#undef DO_ +} + +void BytecoinSignStepBRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes inv_output_main_hash = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->inv_output_main_hash(), output); + } + + // optional uint64 address_index = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->address_index(), output); + } + + // optional bytes my_c = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->my_c(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) +} + +::google::protobuf::uint8* BytecoinSignStepBRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes inv_output_main_hash = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->inv_output_main_hash(), target); + } + + // optional uint64 address_index = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->address_index(), target); + } + + // optional bytes my_c = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->my_c(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + return target; +} + +size_t BytecoinSignStepBRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes inv_output_main_hash = 1; + if (has_inv_output_main_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->inv_output_main_hash()); + } + + // optional bytes my_c = 3; + if (has_my_c()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->my_c()); + } + + // optional uint64 address_index = 2; + if (has_address_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->address_index()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignStepBRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignStepBRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + MergeFrom(*source); + } +} + +void BytecoinSignStepBRequest::MergeFrom(const BytecoinSignStepBRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inv_output_main_hash_); + } + if (cached_has_bits & 0x00000002u) { + set_has_my_c(); + my_c_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.my_c_); + } + if (cached_has_bits & 0x00000004u) { + address_index_ = from.address_index_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void BytecoinSignStepBRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignStepBRequest::CopyFrom(const BytecoinSignStepBRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignStepBRequest::IsInitialized() const { + return true; +} + +void BytecoinSignStepBRequest::Swap(BytecoinSignStepBRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignStepBRequest::InternalSwap(BytecoinSignStepBRequest* other) { + using std::swap; + inv_output_main_hash_.Swap(&other->inv_output_main_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + my_c_.Swap(&other->my_c_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(address_index_, other->address_index_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignStepBRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinSignStepBResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinSignStepBResponse::kMyRaFieldNumber; +const int BytecoinSignStepBResponse::kRbFieldNumber; +const int BytecoinSignStepBResponse::kRcFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinSignStepBResponse::BytecoinSignStepBResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStepBResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) +} +BytecoinSignStepBResponse::BytecoinSignStepBResponse(const BytecoinSignStepBResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + my_ra_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_my_ra()) { + my_ra_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.my_ra_); + } + rb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_rb()) { + rb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rb_); + } + rc_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_rc()) { + rc_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rc_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) +} + +void BytecoinSignStepBResponse::SharedCtor() { + my_ra_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rc_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BytecoinSignStepBResponse::~BytecoinSignStepBResponse() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + SharedDtor(); +} + +void BytecoinSignStepBResponse::SharedDtor() { + my_ra_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rb_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rc_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinSignStepBResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinSignStepBResponse::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinSignStepBResponse& BytecoinSignStepBResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinSignStepBResponse.base); + return *internal_default_instance(); +} + + +void BytecoinSignStepBResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + my_ra_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + rb_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + rc_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinSignStepBResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes my_ra = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_my_ra())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes rb = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_rb())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes rc = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_rc())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + return false; +#undef DO_ +} + +void BytecoinSignStepBResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes my_ra = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->my_ra(), output); + } + + // optional bytes rb = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->rb(), output); + } + + // optional bytes rc = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->rc(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) +} + +::google::protobuf::uint8* BytecoinSignStepBResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes my_ra = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->my_ra(), target); + } + + // optional bytes rb = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->rb(), target); + } + + // optional bytes rc = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->rc(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + return target; +} + +size_t BytecoinSignStepBResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes my_ra = 1; + if (has_my_ra()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->my_ra()); + } + + // optional bytes rb = 2; + if (has_rb()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->rb()); + } + + // optional bytes rc = 3; + if (has_rc()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->rc()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinSignStepBResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinSignStepBResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + MergeFrom(*source); + } +} + +void BytecoinSignStepBResponse::MergeFrom(const BytecoinSignStepBResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_my_ra(); + my_ra_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.my_ra_); + } + if (cached_has_bits & 0x00000002u) { + set_has_rb(); + rb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rb_); + } + if (cached_has_bits & 0x00000004u) { + set_has_rc(); + rc_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rc_); + } + } +} + +void BytecoinSignStepBResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinSignStepBResponse::CopyFrom(const BytecoinSignStepBResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinSignStepBResponse::IsInitialized() const { + return true; +} + +void BytecoinSignStepBResponse::Swap(BytecoinSignStepBResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinSignStepBResponse::InternalSwap(BytecoinSignStepBResponse* other) { + using std::swap; + my_ra_.Swap(&other->my_ra_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + rb_.Swap(&other->rb_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + rc_.Swap(&other->rc_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinSignStepBResponse::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinStartProofRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinStartProofRequest::kDataSizeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinStartProofRequest::BytecoinStartProofRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinStartProofRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) +} +BytecoinStartProofRequest::BytecoinStartProofRequest(const BytecoinStartProofRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_size_ = from.data_size_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) +} + +void BytecoinStartProofRequest::SharedCtor() { + data_size_ = 0u; +} + +BytecoinStartProofRequest::~BytecoinStartProofRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + SharedDtor(); +} + +void BytecoinStartProofRequest::SharedDtor() { +} + +void BytecoinStartProofRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinStartProofRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinStartProofRequest& BytecoinStartProofRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinStartProofRequest.base); + return *internal_default_instance(); +} + + +void BytecoinStartProofRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_size_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinStartProofRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 data_size = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_data_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &data_size_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + return false; +#undef DO_ +} + +void BytecoinStartProofRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 data_size = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->data_size(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) +} + +::google::protobuf::uint8* BytecoinStartProofRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 data_size = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->data_size(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + return target; +} + +size_t BytecoinStartProofRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional uint32 data_size = 1; + if (has_data_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->data_size()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinStartProofRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinStartProofRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + MergeFrom(*source); + } +} + +void BytecoinStartProofRequest::MergeFrom(const BytecoinStartProofRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_data_size()) { + set_data_size(from.data_size()); + } +} + +void BytecoinStartProofRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinStartProofRequest::CopyFrom(const BytecoinStartProofRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinStartProofRequest::IsInitialized() const { + return true; +} + +void BytecoinStartProofRequest::Swap(BytecoinStartProofRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinStartProofRequest::InternalSwap(BytecoinStartProofRequest* other) { + using std::swap; + swap(data_size_, other->data_size_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinStartProofRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BytecoinProofMoreDataRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BytecoinProofMoreDataRequest::kDataChunkFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BytecoinProofMoreDataRequest::BytecoinProofMoreDataRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinProofMoreDataRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) +} +BytecoinProofMoreDataRequest::BytecoinProofMoreDataRequest(const BytecoinProofMoreDataRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data_chunk()) { + data_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_chunk_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) +} + +void BytecoinProofMoreDataRequest::SharedCtor() { + data_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BytecoinProofMoreDataRequest::~BytecoinProofMoreDataRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + SharedDtor(); +} + +void BytecoinProofMoreDataRequest::SharedDtor() { + data_chunk_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BytecoinProofMoreDataRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BytecoinProofMoreDataRequest::descriptor() { + ::protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BytecoinProofMoreDataRequest& BytecoinProofMoreDataRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dbytecoin_2eproto::scc_info_BytecoinProofMoreDataRequest.base); + return *internal_default_instance(); +} + + +void BytecoinProofMoreDataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + data_chunk_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BytecoinProofMoreDataRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes data_chunk = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data_chunk())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + return false; +#undef DO_ +} + +void BytecoinProofMoreDataRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes data_chunk = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->data_chunk(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) +} + +::google::protobuf::uint8* BytecoinProofMoreDataRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes data_chunk = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->data_chunk(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + return target; +} + +size_t BytecoinProofMoreDataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes data_chunk = 1; + if (has_data_chunk()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data_chunk()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytecoinProofMoreDataRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + GOOGLE_DCHECK_NE(&from, this); + const BytecoinProofMoreDataRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + MergeFrom(*source); + } +} + +void BytecoinProofMoreDataRequest::MergeFrom(const BytecoinProofMoreDataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_data_chunk()) { + set_has_data_chunk(); + data_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_chunk_); + } +} + +void BytecoinProofMoreDataRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytecoinProofMoreDataRequest::CopyFrom(const BytecoinProofMoreDataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytecoinProofMoreDataRequest::IsInitialized() const { + return true; +} + +void BytecoinProofMoreDataRequest::Swap(BytecoinProofMoreDataRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BytecoinProofMoreDataRequest::InternalSwap(BytecoinProofMoreDataRequest* other) { + using std::swap; + data_chunk_.Swap(&other->data_chunk_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BytecoinProofMoreDataRequest::GetMetadata() const { + protobuf_messages_2dbytecoin_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dbytecoin_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace bytecoin +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinStartRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinStartRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinStartRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinStartResponse* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinStartResponse >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinStartResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignStartRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignStartRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignStartRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinEmptyResponse* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinEmptyResponse >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinEmptyResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignStepARequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignStepARequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignStepARequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Request* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Request >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Request >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Response* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Response >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Response >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinStartProofRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinStartProofRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinStartProofRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::bytecoin::BytecoinProofMoreDataRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::bytecoin::BytecoinProofMoreDataRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::bytecoin::BytecoinProofMoreDataRequest >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-bytecoin.pb.h b/src/Core/hardware/trezor/protob/messages-bytecoin.pb.h new file mode 100644 index 00000000..ecac6d31 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-bytecoin.pb.h @@ -0,0 +1,6510 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-bytecoin.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dbytecoin_2eproto +#define PROTOBUF_INCLUDED_messages_2dbytecoin_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dbytecoin_2eproto + +namespace protobuf_messages_2dbytecoin_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[25]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dbytecoin_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace bytecoin { +class BytecoinEmptyResponse; +class BytecoinEmptyResponseDefaultTypeInternal; +extern BytecoinEmptyResponseDefaultTypeInternal _BytecoinEmptyResponse_default_instance_; +class BytecoinExportViewWalletRequest; +class BytecoinExportViewWalletRequestDefaultTypeInternal; +extern BytecoinExportViewWalletRequestDefaultTypeInternal _BytecoinExportViewWalletRequest_default_instance_; +class BytecoinExportViewWalletResponse; +class BytecoinExportViewWalletResponseDefaultTypeInternal; +extern BytecoinExportViewWalletResponseDefaultTypeInternal _BytecoinExportViewWalletResponse_default_instance_; +class BytecoinGenerateKeyimageRequest; +class BytecoinGenerateKeyimageRequestDefaultTypeInternal; +extern BytecoinGenerateKeyimageRequestDefaultTypeInternal _BytecoinGenerateKeyimageRequest_default_instance_; +class BytecoinGenerateKeyimageResponse; +class BytecoinGenerateKeyimageResponseDefaultTypeInternal; +extern BytecoinGenerateKeyimageResponseDefaultTypeInternal _BytecoinGenerateKeyimageResponse_default_instance_; +class BytecoinGenerateOutputSeedRequest; +class BytecoinGenerateOutputSeedRequestDefaultTypeInternal; +extern BytecoinGenerateOutputSeedRequestDefaultTypeInternal _BytecoinGenerateOutputSeedRequest_default_instance_; +class BytecoinGenerateOutputSeedResponse; +class BytecoinGenerateOutputSeedResponseDefaultTypeInternal; +extern BytecoinGenerateOutputSeedResponseDefaultTypeInternal _BytecoinGenerateOutputSeedResponse_default_instance_; +class BytecoinProofMoreDataRequest; +class BytecoinProofMoreDataRequestDefaultTypeInternal; +extern BytecoinProofMoreDataRequestDefaultTypeInternal _BytecoinProofMoreDataRequest_default_instance_; +class BytecoinScanOutputsRequest; +class BytecoinScanOutputsRequestDefaultTypeInternal; +extern BytecoinScanOutputsRequestDefaultTypeInternal _BytecoinScanOutputsRequest_default_instance_; +class BytecoinScanOutputsResponse; +class BytecoinScanOutputsResponseDefaultTypeInternal; +extern BytecoinScanOutputsResponseDefaultTypeInternal _BytecoinScanOutputsResponse_default_instance_; +class BytecoinSignAddExtraRequest; +class BytecoinSignAddExtraRequestDefaultTypeInternal; +extern BytecoinSignAddExtraRequestDefaultTypeInternal _BytecoinSignAddExtraRequest_default_instance_; +class BytecoinSignAddInputRequest; +class BytecoinSignAddInputRequestDefaultTypeInternal; +extern BytecoinSignAddInputRequestDefaultTypeInternal _BytecoinSignAddInputRequest_default_instance_; +class BytecoinSignAddOutputRequest; +class BytecoinSignAddOutputRequestDefaultTypeInternal; +extern BytecoinSignAddOutputRequestDefaultTypeInternal _BytecoinSignAddOutputRequest_default_instance_; +class BytecoinSignAddOutputResponse; +class BytecoinSignAddOutputResponseDefaultTypeInternal; +extern BytecoinSignAddOutputResponseDefaultTypeInternal _BytecoinSignAddOutputResponse_default_instance_; +class BytecoinSignGetC0Request; +class BytecoinSignGetC0RequestDefaultTypeInternal; +extern BytecoinSignGetC0RequestDefaultTypeInternal _BytecoinSignGetC0Request_default_instance_; +class BytecoinSignGetC0Response; +class BytecoinSignGetC0ResponseDefaultTypeInternal; +extern BytecoinSignGetC0ResponseDefaultTypeInternal _BytecoinSignGetC0Response_default_instance_; +class BytecoinSignStartRequest; +class BytecoinSignStartRequestDefaultTypeInternal; +extern BytecoinSignStartRequestDefaultTypeInternal _BytecoinSignStartRequest_default_instance_; +class BytecoinSignStepAMoreDataRequest; +class BytecoinSignStepAMoreDataRequestDefaultTypeInternal; +extern BytecoinSignStepAMoreDataRequestDefaultTypeInternal _BytecoinSignStepAMoreDataRequest_default_instance_; +class BytecoinSignStepARequest; +class BytecoinSignStepARequestDefaultTypeInternal; +extern BytecoinSignStepARequestDefaultTypeInternal _BytecoinSignStepARequest_default_instance_; +class BytecoinSignStepAResponse; +class BytecoinSignStepAResponseDefaultTypeInternal; +extern BytecoinSignStepAResponseDefaultTypeInternal _BytecoinSignStepAResponse_default_instance_; +class BytecoinSignStepBRequest; +class BytecoinSignStepBRequestDefaultTypeInternal; +extern BytecoinSignStepBRequestDefaultTypeInternal _BytecoinSignStepBRequest_default_instance_; +class BytecoinSignStepBResponse; +class BytecoinSignStepBResponseDefaultTypeInternal; +extern BytecoinSignStepBResponseDefaultTypeInternal _BytecoinSignStepBResponse_default_instance_; +class BytecoinStartProofRequest; +class BytecoinStartProofRequestDefaultTypeInternal; +extern BytecoinStartProofRequestDefaultTypeInternal _BytecoinStartProofRequest_default_instance_; +class BytecoinStartRequest; +class BytecoinStartRequestDefaultTypeInternal; +extern BytecoinStartRequestDefaultTypeInternal _BytecoinStartRequest_default_instance_; +class BytecoinStartResponse; +class BytecoinStartResponseDefaultTypeInternal; +extern BytecoinStartResponseDefaultTypeInternal _BytecoinStartResponse_default_instance_; +} // namespace bytecoin +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::bytecoin::BytecoinEmptyResponse* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinEmptyResponse>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinExportViewWalletRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinExportViewWalletResponse>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinGenerateKeyimageResponse>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinGenerateOutputSeedResponse>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinProofMoreDataRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinProofMoreDataRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinScanOutputsRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinScanOutputsResponse>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignAddExtraRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignAddInputRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignAddOutputRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignAddOutputResponse>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Request* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignGetC0Request>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignGetC0Response* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignGetC0Response>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignStartRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignStartRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignStepAMoreDataRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignStepARequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignStepARequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignStepAResponse>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignStepBRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinSignStepBResponse>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinStartProofRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinStartProofRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinStartRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinStartRequest>(Arena*); +template<> ::hw::trezor::messages::bytecoin::BytecoinStartResponse* Arena::CreateMaybeMessage<::hw::trezor::messages::bytecoin::BytecoinStartResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace bytecoin { + +// =================================================================== + +class BytecoinStartRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinStartRequest) */ { + public: + BytecoinStartRequest(); + virtual ~BytecoinStartRequest(); + + BytecoinStartRequest(const BytecoinStartRequest& from); + + inline BytecoinStartRequest& operator=(const BytecoinStartRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinStartRequest(BytecoinStartRequest&& from) noexcept + : BytecoinStartRequest() { + *this = ::std::move(from); + } + + inline BytecoinStartRequest& operator=(BytecoinStartRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinStartRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinStartRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinStartRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(BytecoinStartRequest* other); + friend void swap(BytecoinStartRequest& a, BytecoinStartRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinStartRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinStartRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinStartRequest& from); + void MergeFrom(const BytecoinStartRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinStartRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes debug_request = 1; + bool has_debug_request() const; + void clear_debug_request(); + static const int kDebugRequestFieldNumber = 1; + const ::std::string& debug_request() const; + void set_debug_request(const ::std::string& value); + #if LANG_CXX11 + void set_debug_request(::std::string&& value); + #endif + void set_debug_request(const char* value); + void set_debug_request(const void* value, size_t size); + ::std::string* mutable_debug_request(); + ::std::string* release_debug_request(); + void set_allocated_debug_request(::std::string* debug_request); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinStartRequest) + private: + void set_has_debug_request(); + void clear_has_debug_request(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr debug_request_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinStartResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinStartResponse) */ { + public: + BytecoinStartResponse(); + virtual ~BytecoinStartResponse(); + + BytecoinStartResponse(const BytecoinStartResponse& from); + + inline BytecoinStartResponse& operator=(const BytecoinStartResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinStartResponse(BytecoinStartResponse&& from) noexcept + : BytecoinStartResponse() { + *this = ::std::move(from); + } + + inline BytecoinStartResponse& operator=(BytecoinStartResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinStartResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinStartResponse* internal_default_instance() { + return reinterpret_cast( + &_BytecoinStartResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(BytecoinStartResponse* other); + friend void swap(BytecoinStartResponse& a, BytecoinStartResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinStartResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinStartResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinStartResponse& from); + void MergeFrom(const BytecoinStartResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinStartResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes wallet_key = 1; + bool has_wallet_key() const; + void clear_wallet_key(); + static const int kWalletKeyFieldNumber = 1; + const ::std::string& wallet_key() const; + void set_wallet_key(const ::std::string& value); + #if LANG_CXX11 + void set_wallet_key(::std::string&& value); + #endif + void set_wallet_key(const char* value); + void set_wallet_key(const void* value, size_t size); + ::std::string* mutable_wallet_key(); + ::std::string* release_wallet_key(); + void set_allocated_wallet_key(::std::string* wallet_key); + + // optional bytes A_plus_sH = 2; + bool has_a_plus_sh() const; + void clear_a_plus_sh(); + static const int kAPlusSHFieldNumber = 2; + const ::std::string& a_plus_sh() const; + void set_a_plus_sh(const ::std::string& value); + #if LANG_CXX11 + void set_a_plus_sh(::std::string&& value); + #endif + void set_a_plus_sh(const char* value); + void set_a_plus_sh(const void* value, size_t size); + ::std::string* mutable_a_plus_sh(); + ::std::string* release_a_plus_sh(); + void set_allocated_a_plus_sh(::std::string* a_plus_sh); + + // optional bytes v_mul_A_plus_sH = 3; + bool has_v_mul_a_plus_sh() const; + void clear_v_mul_a_plus_sh(); + static const int kVMulAPlusSHFieldNumber = 3; + const ::std::string& v_mul_a_plus_sh() const; + void set_v_mul_a_plus_sh(const ::std::string& value); + #if LANG_CXX11 + void set_v_mul_a_plus_sh(::std::string&& value); + #endif + void set_v_mul_a_plus_sh(const char* value); + void set_v_mul_a_plus_sh(const void* value, size_t size); + ::std::string* mutable_v_mul_a_plus_sh(); + ::std::string* release_v_mul_a_plus_sh(); + void set_allocated_v_mul_a_plus_sh(::std::string* v_mul_a_plus_sh); + + // optional bytes view_public_key = 4; + bool has_view_public_key() const; + void clear_view_public_key(); + static const int kViewPublicKeyFieldNumber = 4; + const ::std::string& view_public_key() const; + void set_view_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_view_public_key(::std::string&& value); + #endif + void set_view_public_key(const char* value); + void set_view_public_key(const void* value, size_t size); + ::std::string* mutable_view_public_key(); + ::std::string* release_view_public_key(); + void set_allocated_view_public_key(::std::string* view_public_key); + + // optional bytes debug_response = 5; + bool has_debug_response() const; + void clear_debug_response(); + static const int kDebugResponseFieldNumber = 5; + const ::std::string& debug_response() const; + void set_debug_response(const ::std::string& value); + #if LANG_CXX11 + void set_debug_response(::std::string&& value); + #endif + void set_debug_response(const char* value); + void set_debug_response(const void* value, size_t size); + ::std::string* mutable_debug_response(); + ::std::string* release_debug_response(); + void set_allocated_debug_response(::std::string* debug_response); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinStartResponse) + private: + void set_has_wallet_key(); + void clear_has_wallet_key(); + void set_has_a_plus_sh(); + void clear_has_a_plus_sh(); + void set_has_v_mul_a_plus_sh(); + void clear_has_v_mul_a_plus_sh(); + void set_has_view_public_key(); + void clear_has_view_public_key(); + void set_has_debug_response(); + void clear_has_debug_response(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr wallet_key_; + ::google::protobuf::internal::ArenaStringPtr a_plus_sh_; + ::google::protobuf::internal::ArenaStringPtr v_mul_a_plus_sh_; + ::google::protobuf::internal::ArenaStringPtr view_public_key_; + ::google::protobuf::internal::ArenaStringPtr debug_response_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinScanOutputsRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) */ { + public: + BytecoinScanOutputsRequest(); + virtual ~BytecoinScanOutputsRequest(); + + BytecoinScanOutputsRequest(const BytecoinScanOutputsRequest& from); + + inline BytecoinScanOutputsRequest& operator=(const BytecoinScanOutputsRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinScanOutputsRequest(BytecoinScanOutputsRequest&& from) noexcept + : BytecoinScanOutputsRequest() { + *this = ::std::move(from); + } + + inline BytecoinScanOutputsRequest& operator=(BytecoinScanOutputsRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinScanOutputsRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinScanOutputsRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinScanOutputsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(BytecoinScanOutputsRequest* other); + friend void swap(BytecoinScanOutputsRequest& a, BytecoinScanOutputsRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinScanOutputsRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinScanOutputsRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinScanOutputsRequest& from); + void MergeFrom(const BytecoinScanOutputsRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinScanOutputsRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated bytes output_public_key = 1; + int output_public_key_size() const; + void clear_output_public_key(); + static const int kOutputPublicKeyFieldNumber = 1; + const ::std::string& output_public_key(int index) const; + ::std::string* mutable_output_public_key(int index); + void set_output_public_key(int index, const ::std::string& value); + #if LANG_CXX11 + void set_output_public_key(int index, ::std::string&& value); + #endif + void set_output_public_key(int index, const char* value); + void set_output_public_key(int index, const void* value, size_t size); + ::std::string* add_output_public_key(); + void add_output_public_key(const ::std::string& value); + #if LANG_CXX11 + void add_output_public_key(::std::string&& value); + #endif + void add_output_public_key(const char* value); + void add_output_public_key(const void* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& output_public_key() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_output_public_key(); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::std::string> output_public_key_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinScanOutputsResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) */ { + public: + BytecoinScanOutputsResponse(); + virtual ~BytecoinScanOutputsResponse(); + + BytecoinScanOutputsResponse(const BytecoinScanOutputsResponse& from); + + inline BytecoinScanOutputsResponse& operator=(const BytecoinScanOutputsResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinScanOutputsResponse(BytecoinScanOutputsResponse&& from) noexcept + : BytecoinScanOutputsResponse() { + *this = ::std::move(from); + } + + inline BytecoinScanOutputsResponse& operator=(BytecoinScanOutputsResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinScanOutputsResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinScanOutputsResponse* internal_default_instance() { + return reinterpret_cast( + &_BytecoinScanOutputsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(BytecoinScanOutputsResponse* other); + friend void swap(BytecoinScanOutputsResponse& a, BytecoinScanOutputsResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinScanOutputsResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinScanOutputsResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinScanOutputsResponse& from); + void MergeFrom(const BytecoinScanOutputsResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinScanOutputsResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated bytes Pv = 1; + int pv_size() const; + void clear_pv(); + static const int kPvFieldNumber = 1; + const ::std::string& pv(int index) const; + ::std::string* mutable_pv(int index); + void set_pv(int index, const ::std::string& value); + #if LANG_CXX11 + void set_pv(int index, ::std::string&& value); + #endif + void set_pv(int index, const char* value); + void set_pv(int index, const void* value, size_t size); + ::std::string* add_pv(); + void add_pv(const ::std::string& value); + #if LANG_CXX11 + void add_pv(::std::string&& value); + #endif + void add_pv(const char* value); + void add_pv(const void* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& pv() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_pv(); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::std::string> pv_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinGenerateKeyimageRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) */ { + public: + BytecoinGenerateKeyimageRequest(); + virtual ~BytecoinGenerateKeyimageRequest(); + + BytecoinGenerateKeyimageRequest(const BytecoinGenerateKeyimageRequest& from); + + inline BytecoinGenerateKeyimageRequest& operator=(const BytecoinGenerateKeyimageRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinGenerateKeyimageRequest(BytecoinGenerateKeyimageRequest&& from) noexcept + : BytecoinGenerateKeyimageRequest() { + *this = ::std::move(from); + } + + inline BytecoinGenerateKeyimageRequest& operator=(BytecoinGenerateKeyimageRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinGenerateKeyimageRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinGenerateKeyimageRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinGenerateKeyimageRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(BytecoinGenerateKeyimageRequest* other); + friend void swap(BytecoinGenerateKeyimageRequest& a, BytecoinGenerateKeyimageRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinGenerateKeyimageRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinGenerateKeyimageRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinGenerateKeyimageRequest& from); + void MergeFrom(const BytecoinGenerateKeyimageRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinGenerateKeyimageRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes output_public_key = 1; + bool has_output_public_key() const; + void clear_output_public_key(); + static const int kOutputPublicKeyFieldNumber = 1; + const ::std::string& output_public_key() const; + void set_output_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_output_public_key(::std::string&& value); + #endif + void set_output_public_key(const char* value); + void set_output_public_key(const void* value, size_t size); + ::std::string* mutable_output_public_key(); + ::std::string* release_output_public_key(); + void set_allocated_output_public_key(::std::string* output_public_key); + + // optional bytes inv_output_main_hash = 2; + bool has_inv_output_main_hash() const; + void clear_inv_output_main_hash(); + static const int kInvOutputMainHashFieldNumber = 2; + const ::std::string& inv_output_main_hash() const; + void set_inv_output_main_hash(const ::std::string& value); + #if LANG_CXX11 + void set_inv_output_main_hash(::std::string&& value); + #endif + void set_inv_output_main_hash(const char* value); + void set_inv_output_main_hash(const void* value, size_t size); + ::std::string* mutable_inv_output_main_hash(); + ::std::string* release_inv_output_main_hash(); + void set_allocated_inv_output_main_hash(::std::string* inv_output_main_hash); + + // optional uint32 address_index = 3; + bool has_address_index() const; + void clear_address_index(); + static const int kAddressIndexFieldNumber = 3; + ::google::protobuf::uint32 address_index() const; + void set_address_index(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest) + private: + void set_has_output_public_key(); + void clear_has_output_public_key(); + void set_has_inv_output_main_hash(); + void clear_has_inv_output_main_hash(); + void set_has_address_index(); + void clear_has_address_index(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr output_public_key_; + ::google::protobuf::internal::ArenaStringPtr inv_output_main_hash_; + ::google::protobuf::uint32 address_index_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinGenerateKeyimageResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) */ { + public: + BytecoinGenerateKeyimageResponse(); + virtual ~BytecoinGenerateKeyimageResponse(); + + BytecoinGenerateKeyimageResponse(const BytecoinGenerateKeyimageResponse& from); + + inline BytecoinGenerateKeyimageResponse& operator=(const BytecoinGenerateKeyimageResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinGenerateKeyimageResponse(BytecoinGenerateKeyimageResponse&& from) noexcept + : BytecoinGenerateKeyimageResponse() { + *this = ::std::move(from); + } + + inline BytecoinGenerateKeyimageResponse& operator=(BytecoinGenerateKeyimageResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinGenerateKeyimageResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinGenerateKeyimageResponse* internal_default_instance() { + return reinterpret_cast( + &_BytecoinGenerateKeyimageResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(BytecoinGenerateKeyimageResponse* other); + friend void swap(BytecoinGenerateKeyimageResponse& a, BytecoinGenerateKeyimageResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinGenerateKeyimageResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinGenerateKeyimageResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinGenerateKeyimageResponse& from); + void MergeFrom(const BytecoinGenerateKeyimageResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinGenerateKeyimageResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes keyimage = 1; + bool has_keyimage() const; + void clear_keyimage(); + static const int kKeyimageFieldNumber = 1; + const ::std::string& keyimage() const; + void set_keyimage(const ::std::string& value); + #if LANG_CXX11 + void set_keyimage(::std::string&& value); + #endif + void set_keyimage(const char* value); + void set_keyimage(const void* value, size_t size); + ::std::string* mutable_keyimage(); + ::std::string* release_keyimage(); + void set_allocated_keyimage(::std::string* keyimage); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse) + private: + void set_has_keyimage(); + void clear_has_keyimage(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr keyimage_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinGenerateOutputSeedRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) */ { + public: + BytecoinGenerateOutputSeedRequest(); + virtual ~BytecoinGenerateOutputSeedRequest(); + + BytecoinGenerateOutputSeedRequest(const BytecoinGenerateOutputSeedRequest& from); + + inline BytecoinGenerateOutputSeedRequest& operator=(const BytecoinGenerateOutputSeedRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinGenerateOutputSeedRequest(BytecoinGenerateOutputSeedRequest&& from) noexcept + : BytecoinGenerateOutputSeedRequest() { + *this = ::std::move(from); + } + + inline BytecoinGenerateOutputSeedRequest& operator=(BytecoinGenerateOutputSeedRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinGenerateOutputSeedRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinGenerateOutputSeedRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinGenerateOutputSeedRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(BytecoinGenerateOutputSeedRequest* other); + friend void swap(BytecoinGenerateOutputSeedRequest& a, BytecoinGenerateOutputSeedRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinGenerateOutputSeedRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinGenerateOutputSeedRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinGenerateOutputSeedRequest& from); + void MergeFrom(const BytecoinGenerateOutputSeedRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinGenerateOutputSeedRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes tx_inputs_hash = 1; + bool has_tx_inputs_hash() const; + void clear_tx_inputs_hash(); + static const int kTxInputsHashFieldNumber = 1; + const ::std::string& tx_inputs_hash() const; + void set_tx_inputs_hash(const ::std::string& value); + #if LANG_CXX11 + void set_tx_inputs_hash(::std::string&& value); + #endif + void set_tx_inputs_hash(const char* value); + void set_tx_inputs_hash(const void* value, size_t size); + ::std::string* mutable_tx_inputs_hash(); + ::std::string* release_tx_inputs_hash(); + void set_allocated_tx_inputs_hash(::std::string* tx_inputs_hash); + + // optional uint32 out_index = 3; + bool has_out_index() const; + void clear_out_index(); + static const int kOutIndexFieldNumber = 3; + ::google::protobuf::uint32 out_index() const; + void set_out_index(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest) + private: + void set_has_tx_inputs_hash(); + void clear_has_tx_inputs_hash(); + void set_has_out_index(); + void clear_has_out_index(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr tx_inputs_hash_; + ::google::protobuf::uint32 out_index_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinGenerateOutputSeedResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) */ { + public: + BytecoinGenerateOutputSeedResponse(); + virtual ~BytecoinGenerateOutputSeedResponse(); + + BytecoinGenerateOutputSeedResponse(const BytecoinGenerateOutputSeedResponse& from); + + inline BytecoinGenerateOutputSeedResponse& operator=(const BytecoinGenerateOutputSeedResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinGenerateOutputSeedResponse(BytecoinGenerateOutputSeedResponse&& from) noexcept + : BytecoinGenerateOutputSeedResponse() { + *this = ::std::move(from); + } + + inline BytecoinGenerateOutputSeedResponse& operator=(BytecoinGenerateOutputSeedResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinGenerateOutputSeedResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinGenerateOutputSeedResponse* internal_default_instance() { + return reinterpret_cast( + &_BytecoinGenerateOutputSeedResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(BytecoinGenerateOutputSeedResponse* other); + friend void swap(BytecoinGenerateOutputSeedResponse& a, BytecoinGenerateOutputSeedResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinGenerateOutputSeedResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinGenerateOutputSeedResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinGenerateOutputSeedResponse& from); + void MergeFrom(const BytecoinGenerateOutputSeedResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinGenerateOutputSeedResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes output_seed = 1; + bool has_output_seed() const; + void clear_output_seed(); + static const int kOutputSeedFieldNumber = 1; + const ::std::string& output_seed() const; + void set_output_seed(const ::std::string& value); + #if LANG_CXX11 + void set_output_seed(::std::string&& value); + #endif + void set_output_seed(const char* value); + void set_output_seed(const void* value, size_t size); + ::std::string* mutable_output_seed(); + ::std::string* release_output_seed(); + void set_allocated_output_seed(::std::string* output_seed); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse) + private: + void set_has_output_seed(); + void clear_has_output_seed(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr output_seed_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinExportViewWalletRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) */ { + public: + BytecoinExportViewWalletRequest(); + virtual ~BytecoinExportViewWalletRequest(); + + BytecoinExportViewWalletRequest(const BytecoinExportViewWalletRequest& from); + + inline BytecoinExportViewWalletRequest& operator=(const BytecoinExportViewWalletRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinExportViewWalletRequest(BytecoinExportViewWalletRequest&& from) noexcept + : BytecoinExportViewWalletRequest() { + *this = ::std::move(from); + } + + inline BytecoinExportViewWalletRequest& operator=(BytecoinExportViewWalletRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinExportViewWalletRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinExportViewWalletRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinExportViewWalletRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(BytecoinExportViewWalletRequest* other); + friend void swap(BytecoinExportViewWalletRequest& a, BytecoinExportViewWalletRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinExportViewWalletRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinExportViewWalletRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinExportViewWalletRequest& from); + void MergeFrom(const BytecoinExportViewWalletRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinExportViewWalletRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinExportViewWalletRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinExportViewWalletResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) */ { + public: + BytecoinExportViewWalletResponse(); + virtual ~BytecoinExportViewWalletResponse(); + + BytecoinExportViewWalletResponse(const BytecoinExportViewWalletResponse& from); + + inline BytecoinExportViewWalletResponse& operator=(const BytecoinExportViewWalletResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinExportViewWalletResponse(BytecoinExportViewWalletResponse&& from) noexcept + : BytecoinExportViewWalletResponse() { + *this = ::std::move(from); + } + + inline BytecoinExportViewWalletResponse& operator=(BytecoinExportViewWalletResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinExportViewWalletResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinExportViewWalletResponse* internal_default_instance() { + return reinterpret_cast( + &_BytecoinExportViewWalletResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(BytecoinExportViewWalletResponse* other); + friend void swap(BytecoinExportViewWalletResponse& a, BytecoinExportViewWalletResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinExportViewWalletResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinExportViewWalletResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinExportViewWalletResponse& from); + void MergeFrom(const BytecoinExportViewWalletResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinExportViewWalletResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes audit_key_base_secret_key = 1; + bool has_audit_key_base_secret_key() const; + void clear_audit_key_base_secret_key(); + static const int kAuditKeyBaseSecretKeyFieldNumber = 1; + const ::std::string& audit_key_base_secret_key() const; + void set_audit_key_base_secret_key(const ::std::string& value); + #if LANG_CXX11 + void set_audit_key_base_secret_key(::std::string&& value); + #endif + void set_audit_key_base_secret_key(const char* value); + void set_audit_key_base_secret_key(const void* value, size_t size); + ::std::string* mutable_audit_key_base_secret_key(); + ::std::string* release_audit_key_base_secret_key(); + void set_allocated_audit_key_base_secret_key(::std::string* audit_key_base_secret_key); + + // optional bytes view_secret_key = 2; + bool has_view_secret_key() const; + void clear_view_secret_key(); + static const int kViewSecretKeyFieldNumber = 2; + const ::std::string& view_secret_key() const; + void set_view_secret_key(const ::std::string& value); + #if LANG_CXX11 + void set_view_secret_key(::std::string&& value); + #endif + void set_view_secret_key(const char* value); + void set_view_secret_key(const void* value, size_t size); + ::std::string* mutable_view_secret_key(); + ::std::string* release_view_secret_key(); + void set_allocated_view_secret_key(::std::string* view_secret_key); + + // optional bytes tx_derivation_seed = 3; + bool has_tx_derivation_seed() const; + void clear_tx_derivation_seed(); + static const int kTxDerivationSeedFieldNumber = 3; + const ::std::string& tx_derivation_seed() const; + void set_tx_derivation_seed(const ::std::string& value); + #if LANG_CXX11 + void set_tx_derivation_seed(::std::string&& value); + #endif + void set_tx_derivation_seed(const char* value); + void set_tx_derivation_seed(const void* value, size_t size); + ::std::string* mutable_tx_derivation_seed(); + ::std::string* release_tx_derivation_seed(); + void set_allocated_tx_derivation_seed(::std::string* tx_derivation_seed); + + // optional bytes view_secrets_signature = 4; + bool has_view_secrets_signature() const; + void clear_view_secrets_signature(); + static const int kViewSecretsSignatureFieldNumber = 4; + const ::std::string& view_secrets_signature() const; + void set_view_secrets_signature(const ::std::string& value); + #if LANG_CXX11 + void set_view_secrets_signature(::std::string&& value); + #endif + void set_view_secrets_signature(const char* value); + void set_view_secrets_signature(const void* value, size_t size); + ::std::string* mutable_view_secrets_signature(); + ::std::string* release_view_secrets_signature(); + void set_allocated_view_secrets_signature(::std::string* view_secrets_signature); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse) + private: + void set_has_audit_key_base_secret_key(); + void clear_has_audit_key_base_secret_key(); + void set_has_view_secret_key(); + void clear_has_view_secret_key(); + void set_has_tx_derivation_seed(); + void clear_has_tx_derivation_seed(); + void set_has_view_secrets_signature(); + void clear_has_view_secrets_signature(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr audit_key_base_secret_key_; + ::google::protobuf::internal::ArenaStringPtr view_secret_key_; + ::google::protobuf::internal::ArenaStringPtr tx_derivation_seed_; + ::google::protobuf::internal::ArenaStringPtr view_secrets_signature_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignStartRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) */ { + public: + BytecoinSignStartRequest(); + virtual ~BytecoinSignStartRequest(); + + BytecoinSignStartRequest(const BytecoinSignStartRequest& from); + + inline BytecoinSignStartRequest& operator=(const BytecoinSignStartRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignStartRequest(BytecoinSignStartRequest&& from) noexcept + : BytecoinSignStartRequest() { + *this = ::std::move(from); + } + + inline BytecoinSignStartRequest& operator=(BytecoinSignStartRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignStartRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignStartRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignStartRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(BytecoinSignStartRequest* other); + friend void swap(BytecoinSignStartRequest& a, BytecoinSignStartRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignStartRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignStartRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignStartRequest& from); + void MergeFrom(const BytecoinSignStartRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignStartRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 ut = 2; + bool has_ut() const; + void clear_ut(); + static const int kUtFieldNumber = 2; + ::google::protobuf::uint64 ut() const; + void set_ut(::google::protobuf::uint64 value); + + // optional uint32 version = 1; + bool has_version() const; + void clear_version(); + static const int kVersionFieldNumber = 1; + ::google::protobuf::uint32 version() const; + void set_version(::google::protobuf::uint32 value); + + // optional uint32 inputs_size = 3; + bool has_inputs_size() const; + void clear_inputs_size(); + static const int kInputsSizeFieldNumber = 3; + ::google::protobuf::uint32 inputs_size() const; + void set_inputs_size(::google::protobuf::uint32 value); + + // optional uint32 outputs_size = 4; + bool has_outputs_size() const; + void clear_outputs_size(); + static const int kOutputsSizeFieldNumber = 4; + ::google::protobuf::uint32 outputs_size() const; + void set_outputs_size(::google::protobuf::uint32 value); + + // optional uint32 extra_size = 5; + bool has_extra_size() const; + void clear_extra_size(); + static const int kExtraSizeFieldNumber = 5; + ::google::protobuf::uint32 extra_size() const; + void set_extra_size(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignStartRequest) + private: + void set_has_version(); + void clear_has_version(); + void set_has_ut(); + void clear_has_ut(); + void set_has_inputs_size(); + void clear_has_inputs_size(); + void set_has_outputs_size(); + void clear_has_outputs_size(); + void set_has_extra_size(); + void clear_has_extra_size(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 ut_; + ::google::protobuf::uint32 version_; + ::google::protobuf::uint32 inputs_size_; + ::google::protobuf::uint32 outputs_size_; + ::google::protobuf::uint32 extra_size_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinEmptyResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) */ { + public: + BytecoinEmptyResponse(); + virtual ~BytecoinEmptyResponse(); + + BytecoinEmptyResponse(const BytecoinEmptyResponse& from); + + inline BytecoinEmptyResponse& operator=(const BytecoinEmptyResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinEmptyResponse(BytecoinEmptyResponse&& from) noexcept + : BytecoinEmptyResponse() { + *this = ::std::move(from); + } + + inline BytecoinEmptyResponse& operator=(BytecoinEmptyResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinEmptyResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinEmptyResponse* internal_default_instance() { + return reinterpret_cast( + &_BytecoinEmptyResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(BytecoinEmptyResponse* other); + friend void swap(BytecoinEmptyResponse& a, BytecoinEmptyResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinEmptyResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinEmptyResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinEmptyResponse& from); + void MergeFrom(const BytecoinEmptyResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinEmptyResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinEmptyResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignAddInputRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) */ { + public: + BytecoinSignAddInputRequest(); + virtual ~BytecoinSignAddInputRequest(); + + BytecoinSignAddInputRequest(const BytecoinSignAddInputRequest& from); + + inline BytecoinSignAddInputRequest& operator=(const BytecoinSignAddInputRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignAddInputRequest(BytecoinSignAddInputRequest&& from) noexcept + : BytecoinSignAddInputRequest() { + *this = ::std::move(from); + } + + inline BytecoinSignAddInputRequest& operator=(BytecoinSignAddInputRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignAddInputRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignAddInputRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignAddInputRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(BytecoinSignAddInputRequest* other); + friend void swap(BytecoinSignAddInputRequest& a, BytecoinSignAddInputRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignAddInputRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignAddInputRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignAddInputRequest& from); + void MergeFrom(const BytecoinSignAddInputRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignAddInputRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 output_indexes = 2; + int output_indexes_size() const; + void clear_output_indexes(); + static const int kOutputIndexesFieldNumber = 2; + ::google::protobuf::uint32 output_indexes(int index) const; + void set_output_indexes(int index, ::google::protobuf::uint32 value); + void add_output_indexes(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + output_indexes() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_output_indexes(); + + // optional bytes inv_output_main_hash = 3; + bool has_inv_output_main_hash() const; + void clear_inv_output_main_hash(); + static const int kInvOutputMainHashFieldNumber = 3; + const ::std::string& inv_output_main_hash() const; + void set_inv_output_main_hash(const ::std::string& value); + #if LANG_CXX11 + void set_inv_output_main_hash(::std::string&& value); + #endif + void set_inv_output_main_hash(const char* value); + void set_inv_output_main_hash(const void* value, size_t size); + ::std::string* mutable_inv_output_main_hash(); + ::std::string* release_inv_output_main_hash(); + void set_allocated_inv_output_main_hash(::std::string* inv_output_main_hash); + + // optional uint64 amount = 1; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 1; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // optional uint32 address_index = 4; + bool has_address_index() const; + void clear_address_index(); + static const int kAddressIndexFieldNumber = 4; + ::google::protobuf::uint32 address_index() const; + void set_address_index(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest) + private: + void set_has_amount(); + void clear_has_amount(); + void set_has_inv_output_main_hash(); + void clear_has_inv_output_main_hash(); + void set_has_address_index(); + void clear_has_address_index(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > output_indexes_; + ::google::protobuf::internal::ArenaStringPtr inv_output_main_hash_; + ::google::protobuf::uint64 amount_; + ::google::protobuf::uint32 address_index_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignAddOutputRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) */ { + public: + BytecoinSignAddOutputRequest(); + virtual ~BytecoinSignAddOutputRequest(); + + BytecoinSignAddOutputRequest(const BytecoinSignAddOutputRequest& from); + + inline BytecoinSignAddOutputRequest& operator=(const BytecoinSignAddOutputRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignAddOutputRequest(BytecoinSignAddOutputRequest&& from) noexcept + : BytecoinSignAddOutputRequest() { + *this = ::std::move(from); + } + + inline BytecoinSignAddOutputRequest& operator=(BytecoinSignAddOutputRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignAddOutputRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignAddOutputRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignAddOutputRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(BytecoinSignAddOutputRequest* other); + friend void swap(BytecoinSignAddOutputRequest& a, BytecoinSignAddOutputRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignAddOutputRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignAddOutputRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignAddOutputRequest& from); + void MergeFrom(const BytecoinSignAddOutputRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignAddOutputRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes dst_address_S = 4; + bool has_dst_address_s() const; + void clear_dst_address_s(); + static const int kDstAddressSFieldNumber = 4; + const ::std::string& dst_address_s() const; + void set_dst_address_s(const ::std::string& value); + #if LANG_CXX11 + void set_dst_address_s(::std::string&& value); + #endif + void set_dst_address_s(const char* value); + void set_dst_address_s(const void* value, size_t size); + ::std::string* mutable_dst_address_s(); + ::std::string* release_dst_address_s(); + void set_allocated_dst_address_s(::std::string* dst_address_s); + + // optional bytes dst_address_Sv = 5; + bool has_dst_address_sv() const; + void clear_dst_address_sv(); + static const int kDstAddressSvFieldNumber = 5; + const ::std::string& dst_address_sv() const; + void set_dst_address_sv(const ::std::string& value); + #if LANG_CXX11 + void set_dst_address_sv(::std::string&& value); + #endif + void set_dst_address_sv(const char* value); + void set_dst_address_sv(const void* value, size_t size); + ::std::string* mutable_dst_address_sv(); + ::std::string* release_dst_address_sv(); + void set_allocated_dst_address_sv(::std::string* dst_address_sv); + + // optional uint64 amount = 2; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 2; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // optional bool change = 1; + bool has_change() const; + void clear_change(); + static const int kChangeFieldNumber = 1; + bool change() const; + void set_change(bool value); + + // optional uint32 dst_address_tag = 3; + bool has_dst_address_tag() const; + void clear_dst_address_tag(); + static const int kDstAddressTagFieldNumber = 3; + ::google::protobuf::uint32 dst_address_tag() const; + void set_dst_address_tag(::google::protobuf::uint32 value); + + // optional uint32 change_address_index = 6; + bool has_change_address_index() const; + void clear_change_address_index(); + static const int kChangeAddressIndexFieldNumber = 6; + ::google::protobuf::uint32 change_address_index() const; + void set_change_address_index(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest) + private: + void set_has_change(); + void clear_has_change(); + void set_has_amount(); + void clear_has_amount(); + void set_has_dst_address_tag(); + void clear_has_dst_address_tag(); + void set_has_dst_address_s(); + void clear_has_dst_address_s(); + void set_has_dst_address_sv(); + void clear_has_dst_address_sv(); + void set_has_change_address_index(); + void clear_has_change_address_index(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr dst_address_s_; + ::google::protobuf::internal::ArenaStringPtr dst_address_sv_; + ::google::protobuf::uint64 amount_; + bool change_; + ::google::protobuf::uint32 dst_address_tag_; + ::google::protobuf::uint32 change_address_index_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignAddOutputResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) */ { + public: + BytecoinSignAddOutputResponse(); + virtual ~BytecoinSignAddOutputResponse(); + + BytecoinSignAddOutputResponse(const BytecoinSignAddOutputResponse& from); + + inline BytecoinSignAddOutputResponse& operator=(const BytecoinSignAddOutputResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignAddOutputResponse(BytecoinSignAddOutputResponse&& from) noexcept + : BytecoinSignAddOutputResponse() { + *this = ::std::move(from); + } + + inline BytecoinSignAddOutputResponse& operator=(BytecoinSignAddOutputResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignAddOutputResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignAddOutputResponse* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignAddOutputResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(BytecoinSignAddOutputResponse* other); + friend void swap(BytecoinSignAddOutputResponse& a, BytecoinSignAddOutputResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignAddOutputResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignAddOutputResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignAddOutputResponse& from); + void MergeFrom(const BytecoinSignAddOutputResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignAddOutputResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes public_key = 1; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // optional bytes encrypted_secret = 2; + bool has_encrypted_secret() const; + void clear_encrypted_secret(); + static const int kEncryptedSecretFieldNumber = 2; + const ::std::string& encrypted_secret() const; + void set_encrypted_secret(const ::std::string& value); + #if LANG_CXX11 + void set_encrypted_secret(::std::string&& value); + #endif + void set_encrypted_secret(const char* value); + void set_encrypted_secret(const void* value, size_t size); + ::std::string* mutable_encrypted_secret(); + ::std::string* release_encrypted_secret(); + void set_allocated_encrypted_secret(::std::string* encrypted_secret); + + // optional uint32 encrypted_address_type = 3; + bool has_encrypted_address_type() const; + void clear_encrypted_address_type(); + static const int kEncryptedAddressTypeFieldNumber = 3; + ::google::protobuf::uint32 encrypted_address_type() const; + void set_encrypted_address_type(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse) + private: + void set_has_public_key(); + void clear_has_public_key(); + void set_has_encrypted_secret(); + void clear_has_encrypted_secret(); + void set_has_encrypted_address_type(); + void clear_has_encrypted_address_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr encrypted_secret_; + ::google::protobuf::uint32 encrypted_address_type_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignAddExtraRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) */ { + public: + BytecoinSignAddExtraRequest(); + virtual ~BytecoinSignAddExtraRequest(); + + BytecoinSignAddExtraRequest(const BytecoinSignAddExtraRequest& from); + + inline BytecoinSignAddExtraRequest& operator=(const BytecoinSignAddExtraRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignAddExtraRequest(BytecoinSignAddExtraRequest&& from) noexcept + : BytecoinSignAddExtraRequest() { + *this = ::std::move(from); + } + + inline BytecoinSignAddExtraRequest& operator=(BytecoinSignAddExtraRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignAddExtraRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignAddExtraRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignAddExtraRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(BytecoinSignAddExtraRequest* other); + friend void swap(BytecoinSignAddExtraRequest& a, BytecoinSignAddExtraRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignAddExtraRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignAddExtraRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignAddExtraRequest& from); + void MergeFrom(const BytecoinSignAddExtraRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignAddExtraRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes extra_chunk = 1; + bool has_extra_chunk() const; + void clear_extra_chunk(); + static const int kExtraChunkFieldNumber = 1; + const ::std::string& extra_chunk() const; + void set_extra_chunk(const ::std::string& value); + #if LANG_CXX11 + void set_extra_chunk(::std::string&& value); + #endif + void set_extra_chunk(const char* value); + void set_extra_chunk(const void* value, size_t size); + ::std::string* mutable_extra_chunk(); + ::std::string* release_extra_chunk(); + void set_allocated_extra_chunk(::std::string* extra_chunk); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest) + private: + void set_has_extra_chunk(); + void clear_has_extra_chunk(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr extra_chunk_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignStepARequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) */ { + public: + BytecoinSignStepARequest(); + virtual ~BytecoinSignStepARequest(); + + BytecoinSignStepARequest(const BytecoinSignStepARequest& from); + + inline BytecoinSignStepARequest& operator=(const BytecoinSignStepARequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignStepARequest(BytecoinSignStepARequest&& from) noexcept + : BytecoinSignStepARequest() { + *this = ::std::move(from); + } + + inline BytecoinSignStepARequest& operator=(BytecoinSignStepARequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignStepARequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignStepARequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignStepARequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(BytecoinSignStepARequest* other); + friend void swap(BytecoinSignStepARequest& a, BytecoinSignStepARequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignStepARequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignStepARequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignStepARequest& from); + void MergeFrom(const BytecoinSignStepARequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignStepARequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes inv_output_main_hash = 1; + bool has_inv_output_main_hash() const; + void clear_inv_output_main_hash(); + static const int kInvOutputMainHashFieldNumber = 1; + const ::std::string& inv_output_main_hash() const; + void set_inv_output_main_hash(const ::std::string& value); + #if LANG_CXX11 + void set_inv_output_main_hash(::std::string&& value); + #endif + void set_inv_output_main_hash(const char* value); + void set_inv_output_main_hash(const void* value, size_t size); + ::std::string* mutable_inv_output_main_hash(); + ::std::string* release_inv_output_main_hash(); + void set_allocated_inv_output_main_hash(::std::string* inv_output_main_hash); + + // optional uint64 address_index = 2; + bool has_address_index() const; + void clear_address_index(); + static const int kAddressIndexFieldNumber = 2; + ::google::protobuf::uint64 address_index() const; + void set_address_index(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignStepARequest) + private: + void set_has_inv_output_main_hash(); + void clear_has_inv_output_main_hash(); + void set_has_address_index(); + void clear_has_address_index(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr inv_output_main_hash_; + ::google::protobuf::uint64 address_index_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignStepAResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) */ { + public: + BytecoinSignStepAResponse(); + virtual ~BytecoinSignStepAResponse(); + + BytecoinSignStepAResponse(const BytecoinSignStepAResponse& from); + + inline BytecoinSignStepAResponse& operator=(const BytecoinSignStepAResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignStepAResponse(BytecoinSignStepAResponse&& from) noexcept + : BytecoinSignStepAResponse() { + *this = ::std::move(from); + } + + inline BytecoinSignStepAResponse& operator=(BytecoinSignStepAResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignStepAResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignStepAResponse* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignStepAResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(BytecoinSignStepAResponse* other); + friend void swap(BytecoinSignStepAResponse& a, BytecoinSignStepAResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignStepAResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignStepAResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignStepAResponse& from); + void MergeFrom(const BytecoinSignStepAResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignStepAResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes sig_p = 1; + bool has_sig_p() const; + void clear_sig_p(); + static const int kSigPFieldNumber = 1; + const ::std::string& sig_p() const; + void set_sig_p(const ::std::string& value); + #if LANG_CXX11 + void set_sig_p(::std::string&& value); + #endif + void set_sig_p(const char* value); + void set_sig_p(const void* value, size_t size); + ::std::string* mutable_sig_p(); + ::std::string* release_sig_p(); + void set_allocated_sig_p(::std::string* sig_p); + + // optional bytes x = 2; + bool has_x() const; + void clear_x(); + static const int kXFieldNumber = 2; + const ::std::string& x() const; + void set_x(const ::std::string& value); + #if LANG_CXX11 + void set_x(::std::string&& value); + #endif + void set_x(const char* value); + void set_x(const void* value, size_t size); + ::std::string* mutable_x(); + ::std::string* release_x(); + void set_allocated_x(::std::string* x); + + // optional bytes y = 3; + bool has_y() const; + void clear_y(); + static const int kYFieldNumber = 3; + const ::std::string& y() const; + void set_y(const ::std::string& value); + #if LANG_CXX11 + void set_y(::std::string&& value); + #endif + void set_y(const char* value); + void set_y(const void* value, size_t size); + ::std::string* mutable_y(); + ::std::string* release_y(); + void set_allocated_y(::std::string* y); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse) + private: + void set_has_sig_p(); + void clear_has_sig_p(); + void set_has_x(); + void clear_has_x(); + void set_has_y(); + void clear_has_y(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr sig_p_; + ::google::protobuf::internal::ArenaStringPtr x_; + ::google::protobuf::internal::ArenaStringPtr y_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignStepAMoreDataRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) */ { + public: + BytecoinSignStepAMoreDataRequest(); + virtual ~BytecoinSignStepAMoreDataRequest(); + + BytecoinSignStepAMoreDataRequest(const BytecoinSignStepAMoreDataRequest& from); + + inline BytecoinSignStepAMoreDataRequest& operator=(const BytecoinSignStepAMoreDataRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignStepAMoreDataRequest(BytecoinSignStepAMoreDataRequest&& from) noexcept + : BytecoinSignStepAMoreDataRequest() { + *this = ::std::move(from); + } + + inline BytecoinSignStepAMoreDataRequest& operator=(BytecoinSignStepAMoreDataRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignStepAMoreDataRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignStepAMoreDataRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignStepAMoreDataRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + void Swap(BytecoinSignStepAMoreDataRequest* other); + friend void swap(BytecoinSignStepAMoreDataRequest& a, BytecoinSignStepAMoreDataRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignStepAMoreDataRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignStepAMoreDataRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignStepAMoreDataRequest& from); + void MergeFrom(const BytecoinSignStepAMoreDataRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignStepAMoreDataRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes data_chunk = 1; + bool has_data_chunk() const; + void clear_data_chunk(); + static const int kDataChunkFieldNumber = 1; + const ::std::string& data_chunk() const; + void set_data_chunk(const ::std::string& value); + #if LANG_CXX11 + void set_data_chunk(::std::string&& value); + #endif + void set_data_chunk(const char* value); + void set_data_chunk(const void* value, size_t size); + ::std::string* mutable_data_chunk(); + ::std::string* release_data_chunk(); + void set_allocated_data_chunk(::std::string* data_chunk); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest) + private: + void set_has_data_chunk(); + void clear_has_data_chunk(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr data_chunk_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignGetC0Request : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) */ { + public: + BytecoinSignGetC0Request(); + virtual ~BytecoinSignGetC0Request(); + + BytecoinSignGetC0Request(const BytecoinSignGetC0Request& from); + + inline BytecoinSignGetC0Request& operator=(const BytecoinSignGetC0Request& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignGetC0Request(BytecoinSignGetC0Request&& from) noexcept + : BytecoinSignGetC0Request() { + *this = ::std::move(from); + } + + inline BytecoinSignGetC0Request& operator=(BytecoinSignGetC0Request&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignGetC0Request& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignGetC0Request* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignGetC0Request_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + void Swap(BytecoinSignGetC0Request* other); + friend void swap(BytecoinSignGetC0Request& a, BytecoinSignGetC0Request& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignGetC0Request* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignGetC0Request* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignGetC0Request& from); + void MergeFrom(const BytecoinSignGetC0Request& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignGetC0Request* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignGetC0Request) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignGetC0Response : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) */ { + public: + BytecoinSignGetC0Response(); + virtual ~BytecoinSignGetC0Response(); + + BytecoinSignGetC0Response(const BytecoinSignGetC0Response& from); + + inline BytecoinSignGetC0Response& operator=(const BytecoinSignGetC0Response& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignGetC0Response(BytecoinSignGetC0Response&& from) noexcept + : BytecoinSignGetC0Response() { + *this = ::std::move(from); + } + + inline BytecoinSignGetC0Response& operator=(BytecoinSignGetC0Response&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignGetC0Response& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignGetC0Response* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignGetC0Response_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + void Swap(BytecoinSignGetC0Response* other); + friend void swap(BytecoinSignGetC0Response& a, BytecoinSignGetC0Response& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignGetC0Response* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignGetC0Response* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignGetC0Response& from); + void MergeFrom(const BytecoinSignGetC0Response& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignGetC0Response* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes c0 = 1; + bool has_c0() const; + void clear_c0(); + static const int kC0FieldNumber = 1; + const ::std::string& c0() const; + void set_c0(const ::std::string& value); + #if LANG_CXX11 + void set_c0(::std::string&& value); + #endif + void set_c0(const char* value); + void set_c0(const void* value, size_t size); + ::std::string* mutable_c0(); + ::std::string* release_c0(); + void set_allocated_c0(::std::string* c0); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response) + private: + void set_has_c0(); + void clear_has_c0(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr c0_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignStepBRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) */ { + public: + BytecoinSignStepBRequest(); + virtual ~BytecoinSignStepBRequest(); + + BytecoinSignStepBRequest(const BytecoinSignStepBRequest& from); + + inline BytecoinSignStepBRequest& operator=(const BytecoinSignStepBRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignStepBRequest(BytecoinSignStepBRequest&& from) noexcept + : BytecoinSignStepBRequest() { + *this = ::std::move(from); + } + + inline BytecoinSignStepBRequest& operator=(BytecoinSignStepBRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignStepBRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignStepBRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignStepBRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + void Swap(BytecoinSignStepBRequest* other); + friend void swap(BytecoinSignStepBRequest& a, BytecoinSignStepBRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignStepBRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignStepBRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignStepBRequest& from); + void MergeFrom(const BytecoinSignStepBRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignStepBRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes inv_output_main_hash = 1; + bool has_inv_output_main_hash() const; + void clear_inv_output_main_hash(); + static const int kInvOutputMainHashFieldNumber = 1; + const ::std::string& inv_output_main_hash() const; + void set_inv_output_main_hash(const ::std::string& value); + #if LANG_CXX11 + void set_inv_output_main_hash(::std::string&& value); + #endif + void set_inv_output_main_hash(const char* value); + void set_inv_output_main_hash(const void* value, size_t size); + ::std::string* mutable_inv_output_main_hash(); + ::std::string* release_inv_output_main_hash(); + void set_allocated_inv_output_main_hash(::std::string* inv_output_main_hash); + + // optional bytes my_c = 3; + bool has_my_c() const; + void clear_my_c(); + static const int kMyCFieldNumber = 3; + const ::std::string& my_c() const; + void set_my_c(const ::std::string& value); + #if LANG_CXX11 + void set_my_c(::std::string&& value); + #endif + void set_my_c(const char* value); + void set_my_c(const void* value, size_t size); + ::std::string* mutable_my_c(); + ::std::string* release_my_c(); + void set_allocated_my_c(::std::string* my_c); + + // optional uint64 address_index = 2; + bool has_address_index() const; + void clear_address_index(); + static const int kAddressIndexFieldNumber = 2; + ::google::protobuf::uint64 address_index() const; + void set_address_index(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest) + private: + void set_has_inv_output_main_hash(); + void clear_has_inv_output_main_hash(); + void set_has_address_index(); + void clear_has_address_index(); + void set_has_my_c(); + void clear_has_my_c(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr inv_output_main_hash_; + ::google::protobuf::internal::ArenaStringPtr my_c_; + ::google::protobuf::uint64 address_index_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinSignStepBResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) */ { + public: + BytecoinSignStepBResponse(); + virtual ~BytecoinSignStepBResponse(); + + BytecoinSignStepBResponse(const BytecoinSignStepBResponse& from); + + inline BytecoinSignStepBResponse& operator=(const BytecoinSignStepBResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinSignStepBResponse(BytecoinSignStepBResponse&& from) noexcept + : BytecoinSignStepBResponse() { + *this = ::std::move(from); + } + + inline BytecoinSignStepBResponse& operator=(BytecoinSignStepBResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinSignStepBResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinSignStepBResponse* internal_default_instance() { + return reinterpret_cast( + &_BytecoinSignStepBResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + void Swap(BytecoinSignStepBResponse* other); + friend void swap(BytecoinSignStepBResponse& a, BytecoinSignStepBResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinSignStepBResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinSignStepBResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinSignStepBResponse& from); + void MergeFrom(const BytecoinSignStepBResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinSignStepBResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes my_ra = 1; + bool has_my_ra() const; + void clear_my_ra(); + static const int kMyRaFieldNumber = 1; + const ::std::string& my_ra() const; + void set_my_ra(const ::std::string& value); + #if LANG_CXX11 + void set_my_ra(::std::string&& value); + #endif + void set_my_ra(const char* value); + void set_my_ra(const void* value, size_t size); + ::std::string* mutable_my_ra(); + ::std::string* release_my_ra(); + void set_allocated_my_ra(::std::string* my_ra); + + // optional bytes rb = 2; + bool has_rb() const; + void clear_rb(); + static const int kRbFieldNumber = 2; + const ::std::string& rb() const; + void set_rb(const ::std::string& value); + #if LANG_CXX11 + void set_rb(::std::string&& value); + #endif + void set_rb(const char* value); + void set_rb(const void* value, size_t size); + ::std::string* mutable_rb(); + ::std::string* release_rb(); + void set_allocated_rb(::std::string* rb); + + // optional bytes rc = 3; + bool has_rc() const; + void clear_rc(); + static const int kRcFieldNumber = 3; + const ::std::string& rc() const; + void set_rc(const ::std::string& value); + #if LANG_CXX11 + void set_rc(::std::string&& value); + #endif + void set_rc(const char* value); + void set_rc(const void* value, size_t size); + ::std::string* mutable_rc(); + ::std::string* release_rc(); + void set_allocated_rc(::std::string* rc); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse) + private: + void set_has_my_ra(); + void clear_has_my_ra(); + void set_has_rb(); + void clear_has_rb(); + void set_has_rc(); + void clear_has_rc(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr my_ra_; + ::google::protobuf::internal::ArenaStringPtr rb_; + ::google::protobuf::internal::ArenaStringPtr rc_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinStartProofRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) */ { + public: + BytecoinStartProofRequest(); + virtual ~BytecoinStartProofRequest(); + + BytecoinStartProofRequest(const BytecoinStartProofRequest& from); + + inline BytecoinStartProofRequest& operator=(const BytecoinStartProofRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinStartProofRequest(BytecoinStartProofRequest&& from) noexcept + : BytecoinStartProofRequest() { + *this = ::std::move(from); + } + + inline BytecoinStartProofRequest& operator=(BytecoinStartProofRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinStartProofRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinStartProofRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinStartProofRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + void Swap(BytecoinStartProofRequest* other); + friend void swap(BytecoinStartProofRequest& a, BytecoinStartProofRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinStartProofRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinStartProofRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinStartProofRequest& from); + void MergeFrom(const BytecoinStartProofRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinStartProofRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 data_size = 1; + bool has_data_size() const; + void clear_data_size(); + static const int kDataSizeFieldNumber = 1; + ::google::protobuf::uint32 data_size() const; + void set_data_size(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinStartProofRequest) + private: + void set_has_data_size(); + void clear_has_data_size(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 data_size_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BytecoinProofMoreDataRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) */ { + public: + BytecoinProofMoreDataRequest(); + virtual ~BytecoinProofMoreDataRequest(); + + BytecoinProofMoreDataRequest(const BytecoinProofMoreDataRequest& from); + + inline BytecoinProofMoreDataRequest& operator=(const BytecoinProofMoreDataRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BytecoinProofMoreDataRequest(BytecoinProofMoreDataRequest&& from) noexcept + : BytecoinProofMoreDataRequest() { + *this = ::std::move(from); + } + + inline BytecoinProofMoreDataRequest& operator=(BytecoinProofMoreDataRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytecoinProofMoreDataRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytecoinProofMoreDataRequest* internal_default_instance() { + return reinterpret_cast( + &_BytecoinProofMoreDataRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + void Swap(BytecoinProofMoreDataRequest* other); + friend void swap(BytecoinProofMoreDataRequest& a, BytecoinProofMoreDataRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BytecoinProofMoreDataRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BytecoinProofMoreDataRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BytecoinProofMoreDataRequest& from); + void MergeFrom(const BytecoinProofMoreDataRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytecoinProofMoreDataRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes data_chunk = 1; + bool has_data_chunk() const; + void clear_data_chunk(); + static const int kDataChunkFieldNumber = 1; + const ::std::string& data_chunk() const; + void set_data_chunk(const ::std::string& value); + #if LANG_CXX11 + void set_data_chunk(::std::string&& value); + #endif + void set_data_chunk(const char* value); + void set_data_chunk(const void* value, size_t size); + ::std::string* mutable_data_chunk(); + ::std::string* release_data_chunk(); + void set_allocated_data_chunk(::std::string* data_chunk); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest) + private: + void set_has_data_chunk(); + void clear_has_data_chunk(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr data_chunk_; + friend struct ::protobuf_messages_2dbytecoin_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// BytecoinStartRequest + +// optional bytes debug_request = 1; +inline bool BytecoinStartRequest::has_debug_request() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinStartRequest::set_has_debug_request() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinStartRequest::clear_has_debug_request() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinStartRequest::clear_debug_request() { + debug_request_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_debug_request(); +} +inline const ::std::string& BytecoinStartRequest::debug_request() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinStartRequest.debug_request) + return debug_request_.GetNoArena(); +} +inline void BytecoinStartRequest::set_debug_request(const ::std::string& value) { + set_has_debug_request(); + debug_request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinStartRequest.debug_request) +} +#if LANG_CXX11 +inline void BytecoinStartRequest::set_debug_request(::std::string&& value) { + set_has_debug_request(); + debug_request_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinStartRequest.debug_request) +} +#endif +inline void BytecoinStartRequest::set_debug_request(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_debug_request(); + debug_request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinStartRequest.debug_request) +} +inline void BytecoinStartRequest::set_debug_request(const void* value, size_t size) { + set_has_debug_request(); + debug_request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinStartRequest.debug_request) +} +inline ::std::string* BytecoinStartRequest::mutable_debug_request() { + set_has_debug_request(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinStartRequest.debug_request) + return debug_request_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinStartRequest::release_debug_request() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinStartRequest.debug_request) + if (!has_debug_request()) { + return NULL; + } + clear_has_debug_request(); + return debug_request_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinStartRequest::set_allocated_debug_request(::std::string* debug_request) { + if (debug_request != NULL) { + set_has_debug_request(); + } else { + clear_has_debug_request(); + } + debug_request_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), debug_request); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinStartRequest.debug_request) +} + +// ------------------------------------------------------------------- + +// BytecoinStartResponse + +// optional bytes wallet_key = 1; +inline bool BytecoinStartResponse::has_wallet_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinStartResponse::set_has_wallet_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinStartResponse::clear_has_wallet_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinStartResponse::clear_wallet_key() { + wallet_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_wallet_key(); +} +inline const ::std::string& BytecoinStartResponse::wallet_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinStartResponse.wallet_key) + return wallet_key_.GetNoArena(); +} +inline void BytecoinStartResponse::set_wallet_key(const ::std::string& value) { + set_has_wallet_key(); + wallet_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinStartResponse.wallet_key) +} +#if LANG_CXX11 +inline void BytecoinStartResponse::set_wallet_key(::std::string&& value) { + set_has_wallet_key(); + wallet_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinStartResponse.wallet_key) +} +#endif +inline void BytecoinStartResponse::set_wallet_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_wallet_key(); + wallet_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinStartResponse.wallet_key) +} +inline void BytecoinStartResponse::set_wallet_key(const void* value, size_t size) { + set_has_wallet_key(); + wallet_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinStartResponse.wallet_key) +} +inline ::std::string* BytecoinStartResponse::mutable_wallet_key() { + set_has_wallet_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinStartResponse.wallet_key) + return wallet_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinStartResponse::release_wallet_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinStartResponse.wallet_key) + if (!has_wallet_key()) { + return NULL; + } + clear_has_wallet_key(); + return wallet_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinStartResponse::set_allocated_wallet_key(::std::string* wallet_key) { + if (wallet_key != NULL) { + set_has_wallet_key(); + } else { + clear_has_wallet_key(); + } + wallet_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), wallet_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinStartResponse.wallet_key) +} + +// optional bytes A_plus_sH = 2; +inline bool BytecoinStartResponse::has_a_plus_sh() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinStartResponse::set_has_a_plus_sh() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinStartResponse::clear_has_a_plus_sh() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinStartResponse::clear_a_plus_sh() { + a_plus_sh_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_a_plus_sh(); +} +inline const ::std::string& BytecoinStartResponse::a_plus_sh() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinStartResponse.A_plus_sH) + return a_plus_sh_.GetNoArena(); +} +inline void BytecoinStartResponse::set_a_plus_sh(const ::std::string& value) { + set_has_a_plus_sh(); + a_plus_sh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinStartResponse.A_plus_sH) +} +#if LANG_CXX11 +inline void BytecoinStartResponse::set_a_plus_sh(::std::string&& value) { + set_has_a_plus_sh(); + a_plus_sh_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinStartResponse.A_plus_sH) +} +#endif +inline void BytecoinStartResponse::set_a_plus_sh(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_a_plus_sh(); + a_plus_sh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinStartResponse.A_plus_sH) +} +inline void BytecoinStartResponse::set_a_plus_sh(const void* value, size_t size) { + set_has_a_plus_sh(); + a_plus_sh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinStartResponse.A_plus_sH) +} +inline ::std::string* BytecoinStartResponse::mutable_a_plus_sh() { + set_has_a_plus_sh(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinStartResponse.A_plus_sH) + return a_plus_sh_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinStartResponse::release_a_plus_sh() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinStartResponse.A_plus_sH) + if (!has_a_plus_sh()) { + return NULL; + } + clear_has_a_plus_sh(); + return a_plus_sh_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinStartResponse::set_allocated_a_plus_sh(::std::string* a_plus_sh) { + if (a_plus_sh != NULL) { + set_has_a_plus_sh(); + } else { + clear_has_a_plus_sh(); + } + a_plus_sh_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), a_plus_sh); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinStartResponse.A_plus_sH) +} + +// optional bytes v_mul_A_plus_sH = 3; +inline bool BytecoinStartResponse::has_v_mul_a_plus_sh() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void BytecoinStartResponse::set_has_v_mul_a_plus_sh() { + _has_bits_[0] |= 0x00000004u; +} +inline void BytecoinStartResponse::clear_has_v_mul_a_plus_sh() { + _has_bits_[0] &= ~0x00000004u; +} +inline void BytecoinStartResponse::clear_v_mul_a_plus_sh() { + v_mul_a_plus_sh_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_v_mul_a_plus_sh(); +} +inline const ::std::string& BytecoinStartResponse::v_mul_a_plus_sh() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinStartResponse.v_mul_A_plus_sH) + return v_mul_a_plus_sh_.GetNoArena(); +} +inline void BytecoinStartResponse::set_v_mul_a_plus_sh(const ::std::string& value) { + set_has_v_mul_a_plus_sh(); + v_mul_a_plus_sh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinStartResponse.v_mul_A_plus_sH) +} +#if LANG_CXX11 +inline void BytecoinStartResponse::set_v_mul_a_plus_sh(::std::string&& value) { + set_has_v_mul_a_plus_sh(); + v_mul_a_plus_sh_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinStartResponse.v_mul_A_plus_sH) +} +#endif +inline void BytecoinStartResponse::set_v_mul_a_plus_sh(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_v_mul_a_plus_sh(); + v_mul_a_plus_sh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinStartResponse.v_mul_A_plus_sH) +} +inline void BytecoinStartResponse::set_v_mul_a_plus_sh(const void* value, size_t size) { + set_has_v_mul_a_plus_sh(); + v_mul_a_plus_sh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinStartResponse.v_mul_A_plus_sH) +} +inline ::std::string* BytecoinStartResponse::mutable_v_mul_a_plus_sh() { + set_has_v_mul_a_plus_sh(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinStartResponse.v_mul_A_plus_sH) + return v_mul_a_plus_sh_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinStartResponse::release_v_mul_a_plus_sh() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinStartResponse.v_mul_A_plus_sH) + if (!has_v_mul_a_plus_sh()) { + return NULL; + } + clear_has_v_mul_a_plus_sh(); + return v_mul_a_plus_sh_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinStartResponse::set_allocated_v_mul_a_plus_sh(::std::string* v_mul_a_plus_sh) { + if (v_mul_a_plus_sh != NULL) { + set_has_v_mul_a_plus_sh(); + } else { + clear_has_v_mul_a_plus_sh(); + } + v_mul_a_plus_sh_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), v_mul_a_plus_sh); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinStartResponse.v_mul_A_plus_sH) +} + +// optional bytes view_public_key = 4; +inline bool BytecoinStartResponse::has_view_public_key() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void BytecoinStartResponse::set_has_view_public_key() { + _has_bits_[0] |= 0x00000008u; +} +inline void BytecoinStartResponse::clear_has_view_public_key() { + _has_bits_[0] &= ~0x00000008u; +} +inline void BytecoinStartResponse::clear_view_public_key() { + view_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_view_public_key(); +} +inline const ::std::string& BytecoinStartResponse::view_public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinStartResponse.view_public_key) + return view_public_key_.GetNoArena(); +} +inline void BytecoinStartResponse::set_view_public_key(const ::std::string& value) { + set_has_view_public_key(); + view_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinStartResponse.view_public_key) +} +#if LANG_CXX11 +inline void BytecoinStartResponse::set_view_public_key(::std::string&& value) { + set_has_view_public_key(); + view_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinStartResponse.view_public_key) +} +#endif +inline void BytecoinStartResponse::set_view_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_view_public_key(); + view_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinStartResponse.view_public_key) +} +inline void BytecoinStartResponse::set_view_public_key(const void* value, size_t size) { + set_has_view_public_key(); + view_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinStartResponse.view_public_key) +} +inline ::std::string* BytecoinStartResponse::mutable_view_public_key() { + set_has_view_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinStartResponse.view_public_key) + return view_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinStartResponse::release_view_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinStartResponse.view_public_key) + if (!has_view_public_key()) { + return NULL; + } + clear_has_view_public_key(); + return view_public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinStartResponse::set_allocated_view_public_key(::std::string* view_public_key) { + if (view_public_key != NULL) { + set_has_view_public_key(); + } else { + clear_has_view_public_key(); + } + view_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), view_public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinStartResponse.view_public_key) +} + +// optional bytes debug_response = 5; +inline bool BytecoinStartResponse::has_debug_response() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void BytecoinStartResponse::set_has_debug_response() { + _has_bits_[0] |= 0x00000010u; +} +inline void BytecoinStartResponse::clear_has_debug_response() { + _has_bits_[0] &= ~0x00000010u; +} +inline void BytecoinStartResponse::clear_debug_response() { + debug_response_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_debug_response(); +} +inline const ::std::string& BytecoinStartResponse::debug_response() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinStartResponse.debug_response) + return debug_response_.GetNoArena(); +} +inline void BytecoinStartResponse::set_debug_response(const ::std::string& value) { + set_has_debug_response(); + debug_response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinStartResponse.debug_response) +} +#if LANG_CXX11 +inline void BytecoinStartResponse::set_debug_response(::std::string&& value) { + set_has_debug_response(); + debug_response_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinStartResponse.debug_response) +} +#endif +inline void BytecoinStartResponse::set_debug_response(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_debug_response(); + debug_response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinStartResponse.debug_response) +} +inline void BytecoinStartResponse::set_debug_response(const void* value, size_t size) { + set_has_debug_response(); + debug_response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinStartResponse.debug_response) +} +inline ::std::string* BytecoinStartResponse::mutable_debug_response() { + set_has_debug_response(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinStartResponse.debug_response) + return debug_response_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinStartResponse::release_debug_response() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinStartResponse.debug_response) + if (!has_debug_response()) { + return NULL; + } + clear_has_debug_response(); + return debug_response_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinStartResponse::set_allocated_debug_response(::std::string* debug_response) { + if (debug_response != NULL) { + set_has_debug_response(); + } else { + clear_has_debug_response(); + } + debug_response_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), debug_response); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinStartResponse.debug_response) +} + +// ------------------------------------------------------------------- + +// BytecoinScanOutputsRequest + +// repeated bytes output_public_key = 1; +inline int BytecoinScanOutputsRequest::output_public_key_size() const { + return output_public_key_.size(); +} +inline void BytecoinScanOutputsRequest::clear_output_public_key() { + output_public_key_.Clear(); +} +inline const ::std::string& BytecoinScanOutputsRequest::output_public_key(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) + return output_public_key_.Get(index); +} +inline ::std::string* BytecoinScanOutputsRequest::mutable_output_public_key(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) + return output_public_key_.Mutable(index); +} +inline void BytecoinScanOutputsRequest::set_output_public_key(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) + output_public_key_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void BytecoinScanOutputsRequest::set_output_public_key(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) + output_public_key_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void BytecoinScanOutputsRequest::set_output_public_key(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + output_public_key_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) +} +inline void BytecoinScanOutputsRequest::set_output_public_key(int index, const void* value, size_t size) { + output_public_key_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) +} +inline ::std::string* BytecoinScanOutputsRequest::add_output_public_key() { + // @@protoc_insertion_point(field_add_mutable:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) + return output_public_key_.Add(); +} +inline void BytecoinScanOutputsRequest::add_output_public_key(const ::std::string& value) { + output_public_key_.Add()->assign(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) +} +#if LANG_CXX11 +inline void BytecoinScanOutputsRequest::add_output_public_key(::std::string&& value) { + output_public_key_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) +} +#endif +inline void BytecoinScanOutputsRequest::add_output_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + output_public_key_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) +} +inline void BytecoinScanOutputsRequest::add_output_public_key(const void* value, size_t size) { + output_public_key_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +BytecoinScanOutputsRequest::output_public_key() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) + return output_public_key_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +BytecoinScanOutputsRequest::mutable_output_public_key() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bytecoin.BytecoinScanOutputsRequest.output_public_key) + return &output_public_key_; +} + +// ------------------------------------------------------------------- + +// BytecoinScanOutputsResponse + +// repeated bytes Pv = 1; +inline int BytecoinScanOutputsResponse::pv_size() const { + return pv_.size(); +} +inline void BytecoinScanOutputsResponse::clear_pv() { + pv_.Clear(); +} +inline const ::std::string& BytecoinScanOutputsResponse::pv(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) + return pv_.Get(index); +} +inline ::std::string* BytecoinScanOutputsResponse::mutable_pv(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) + return pv_.Mutable(index); +} +inline void BytecoinScanOutputsResponse::set_pv(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) + pv_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void BytecoinScanOutputsResponse::set_pv(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) + pv_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void BytecoinScanOutputsResponse::set_pv(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + pv_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) +} +inline void BytecoinScanOutputsResponse::set_pv(int index, const void* value, size_t size) { + pv_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) +} +inline ::std::string* BytecoinScanOutputsResponse::add_pv() { + // @@protoc_insertion_point(field_add_mutable:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) + return pv_.Add(); +} +inline void BytecoinScanOutputsResponse::add_pv(const ::std::string& value) { + pv_.Add()->assign(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) +} +#if LANG_CXX11 +inline void BytecoinScanOutputsResponse::add_pv(::std::string&& value) { + pv_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) +} +#endif +inline void BytecoinScanOutputsResponse::add_pv(const char* value) { + GOOGLE_DCHECK(value != NULL); + pv_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) +} +inline void BytecoinScanOutputsResponse::add_pv(const void* value, size_t size) { + pv_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +BytecoinScanOutputsResponse::pv() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) + return pv_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +BytecoinScanOutputsResponse::mutable_pv() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bytecoin.BytecoinScanOutputsResponse.Pv) + return &pv_; +} + +// ------------------------------------------------------------------- + +// BytecoinGenerateKeyimageRequest + +// optional bytes output_public_key = 1; +inline bool BytecoinGenerateKeyimageRequest::has_output_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinGenerateKeyimageRequest::set_has_output_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinGenerateKeyimageRequest::clear_has_output_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinGenerateKeyimageRequest::clear_output_public_key() { + output_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_public_key(); +} +inline const ::std::string& BytecoinGenerateKeyimageRequest::output_public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.output_public_key) + return output_public_key_.GetNoArena(); +} +inline void BytecoinGenerateKeyimageRequest::set_output_public_key(const ::std::string& value) { + set_has_output_public_key(); + output_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.output_public_key) +} +#if LANG_CXX11 +inline void BytecoinGenerateKeyimageRequest::set_output_public_key(::std::string&& value) { + set_has_output_public_key(); + output_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.output_public_key) +} +#endif +inline void BytecoinGenerateKeyimageRequest::set_output_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_output_public_key(); + output_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.output_public_key) +} +inline void BytecoinGenerateKeyimageRequest::set_output_public_key(const void* value, size_t size) { + set_has_output_public_key(); + output_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.output_public_key) +} +inline ::std::string* BytecoinGenerateKeyimageRequest::mutable_output_public_key() { + set_has_output_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.output_public_key) + return output_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinGenerateKeyimageRequest::release_output_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.output_public_key) + if (!has_output_public_key()) { + return NULL; + } + clear_has_output_public_key(); + return output_public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinGenerateKeyimageRequest::set_allocated_output_public_key(::std::string* output_public_key) { + if (output_public_key != NULL) { + set_has_output_public_key(); + } else { + clear_has_output_public_key(); + } + output_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.output_public_key) +} + +// optional bytes inv_output_main_hash = 2; +inline bool BytecoinGenerateKeyimageRequest::has_inv_output_main_hash() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinGenerateKeyimageRequest::set_has_inv_output_main_hash() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinGenerateKeyimageRequest::clear_has_inv_output_main_hash() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinGenerateKeyimageRequest::clear_inv_output_main_hash() { + inv_output_main_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_inv_output_main_hash(); +} +inline const ::std::string& BytecoinGenerateKeyimageRequest::inv_output_main_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.inv_output_main_hash) + return inv_output_main_hash_.GetNoArena(); +} +inline void BytecoinGenerateKeyimageRequest::set_inv_output_main_hash(const ::std::string& value) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.inv_output_main_hash) +} +#if LANG_CXX11 +inline void BytecoinGenerateKeyimageRequest::set_inv_output_main_hash(::std::string&& value) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.inv_output_main_hash) +} +#endif +inline void BytecoinGenerateKeyimageRequest::set_inv_output_main_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.inv_output_main_hash) +} +inline void BytecoinGenerateKeyimageRequest::set_inv_output_main_hash(const void* value, size_t size) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.inv_output_main_hash) +} +inline ::std::string* BytecoinGenerateKeyimageRequest::mutable_inv_output_main_hash() { + set_has_inv_output_main_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.inv_output_main_hash) + return inv_output_main_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinGenerateKeyimageRequest::release_inv_output_main_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.inv_output_main_hash) + if (!has_inv_output_main_hash()) { + return NULL; + } + clear_has_inv_output_main_hash(); + return inv_output_main_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinGenerateKeyimageRequest::set_allocated_inv_output_main_hash(::std::string* inv_output_main_hash) { + if (inv_output_main_hash != NULL) { + set_has_inv_output_main_hash(); + } else { + clear_has_inv_output_main_hash(); + } + inv_output_main_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), inv_output_main_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.inv_output_main_hash) +} + +// optional uint32 address_index = 3; +inline bool BytecoinGenerateKeyimageRequest::has_address_index() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void BytecoinGenerateKeyimageRequest::set_has_address_index() { + _has_bits_[0] |= 0x00000004u; +} +inline void BytecoinGenerateKeyimageRequest::clear_has_address_index() { + _has_bits_[0] &= ~0x00000004u; +} +inline void BytecoinGenerateKeyimageRequest::clear_address_index() { + address_index_ = 0u; + clear_has_address_index(); +} +inline ::google::protobuf::uint32 BytecoinGenerateKeyimageRequest::address_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.address_index) + return address_index_; +} +inline void BytecoinGenerateKeyimageRequest::set_address_index(::google::protobuf::uint32 value) { + set_has_address_index(); + address_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageRequest.address_index) +} + +// ------------------------------------------------------------------- + +// BytecoinGenerateKeyimageResponse + +// optional bytes keyimage = 1; +inline bool BytecoinGenerateKeyimageResponse::has_keyimage() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinGenerateKeyimageResponse::set_has_keyimage() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinGenerateKeyimageResponse::clear_has_keyimage() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinGenerateKeyimageResponse::clear_keyimage() { + keyimage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_keyimage(); +} +inline const ::std::string& BytecoinGenerateKeyimageResponse::keyimage() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse.keyimage) + return keyimage_.GetNoArena(); +} +inline void BytecoinGenerateKeyimageResponse::set_keyimage(const ::std::string& value) { + set_has_keyimage(); + keyimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse.keyimage) +} +#if LANG_CXX11 +inline void BytecoinGenerateKeyimageResponse::set_keyimage(::std::string&& value) { + set_has_keyimage(); + keyimage_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse.keyimage) +} +#endif +inline void BytecoinGenerateKeyimageResponse::set_keyimage(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_keyimage(); + keyimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse.keyimage) +} +inline void BytecoinGenerateKeyimageResponse::set_keyimage(const void* value, size_t size) { + set_has_keyimage(); + keyimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse.keyimage) +} +inline ::std::string* BytecoinGenerateKeyimageResponse::mutable_keyimage() { + set_has_keyimage(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse.keyimage) + return keyimage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinGenerateKeyimageResponse::release_keyimage() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse.keyimage) + if (!has_keyimage()) { + return NULL; + } + clear_has_keyimage(); + return keyimage_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinGenerateKeyimageResponse::set_allocated_keyimage(::std::string* keyimage) { + if (keyimage != NULL) { + set_has_keyimage(); + } else { + clear_has_keyimage(); + } + keyimage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), keyimage); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinGenerateKeyimageResponse.keyimage) +} + +// ------------------------------------------------------------------- + +// BytecoinGenerateOutputSeedRequest + +// optional bytes tx_inputs_hash = 1; +inline bool BytecoinGenerateOutputSeedRequest::has_tx_inputs_hash() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinGenerateOutputSeedRequest::set_has_tx_inputs_hash() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinGenerateOutputSeedRequest::clear_has_tx_inputs_hash() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinGenerateOutputSeedRequest::clear_tx_inputs_hash() { + tx_inputs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_inputs_hash(); +} +inline const ::std::string& BytecoinGenerateOutputSeedRequest::tx_inputs_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest.tx_inputs_hash) + return tx_inputs_hash_.GetNoArena(); +} +inline void BytecoinGenerateOutputSeedRequest::set_tx_inputs_hash(const ::std::string& value) { + set_has_tx_inputs_hash(); + tx_inputs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest.tx_inputs_hash) +} +#if LANG_CXX11 +inline void BytecoinGenerateOutputSeedRequest::set_tx_inputs_hash(::std::string&& value) { + set_has_tx_inputs_hash(); + tx_inputs_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest.tx_inputs_hash) +} +#endif +inline void BytecoinGenerateOutputSeedRequest::set_tx_inputs_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_inputs_hash(); + tx_inputs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest.tx_inputs_hash) +} +inline void BytecoinGenerateOutputSeedRequest::set_tx_inputs_hash(const void* value, size_t size) { + set_has_tx_inputs_hash(); + tx_inputs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest.tx_inputs_hash) +} +inline ::std::string* BytecoinGenerateOutputSeedRequest::mutable_tx_inputs_hash() { + set_has_tx_inputs_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest.tx_inputs_hash) + return tx_inputs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinGenerateOutputSeedRequest::release_tx_inputs_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest.tx_inputs_hash) + if (!has_tx_inputs_hash()) { + return NULL; + } + clear_has_tx_inputs_hash(); + return tx_inputs_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinGenerateOutputSeedRequest::set_allocated_tx_inputs_hash(::std::string* tx_inputs_hash) { + if (tx_inputs_hash != NULL) { + set_has_tx_inputs_hash(); + } else { + clear_has_tx_inputs_hash(); + } + tx_inputs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_inputs_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest.tx_inputs_hash) +} + +// optional uint32 out_index = 3; +inline bool BytecoinGenerateOutputSeedRequest::has_out_index() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinGenerateOutputSeedRequest::set_has_out_index() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinGenerateOutputSeedRequest::clear_has_out_index() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinGenerateOutputSeedRequest::clear_out_index() { + out_index_ = 0u; + clear_has_out_index(); +} +inline ::google::protobuf::uint32 BytecoinGenerateOutputSeedRequest::out_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest.out_index) + return out_index_; +} +inline void BytecoinGenerateOutputSeedRequest::set_out_index(::google::protobuf::uint32 value) { + set_has_out_index(); + out_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedRequest.out_index) +} + +// ------------------------------------------------------------------- + +// BytecoinGenerateOutputSeedResponse + +// optional bytes output_seed = 1; +inline bool BytecoinGenerateOutputSeedResponse::has_output_seed() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinGenerateOutputSeedResponse::set_has_output_seed() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinGenerateOutputSeedResponse::clear_has_output_seed() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinGenerateOutputSeedResponse::clear_output_seed() { + output_seed_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_seed(); +} +inline const ::std::string& BytecoinGenerateOutputSeedResponse::output_seed() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse.output_seed) + return output_seed_.GetNoArena(); +} +inline void BytecoinGenerateOutputSeedResponse::set_output_seed(const ::std::string& value) { + set_has_output_seed(); + output_seed_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse.output_seed) +} +#if LANG_CXX11 +inline void BytecoinGenerateOutputSeedResponse::set_output_seed(::std::string&& value) { + set_has_output_seed(); + output_seed_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse.output_seed) +} +#endif +inline void BytecoinGenerateOutputSeedResponse::set_output_seed(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_output_seed(); + output_seed_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse.output_seed) +} +inline void BytecoinGenerateOutputSeedResponse::set_output_seed(const void* value, size_t size) { + set_has_output_seed(); + output_seed_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse.output_seed) +} +inline ::std::string* BytecoinGenerateOutputSeedResponse::mutable_output_seed() { + set_has_output_seed(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse.output_seed) + return output_seed_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinGenerateOutputSeedResponse::release_output_seed() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse.output_seed) + if (!has_output_seed()) { + return NULL; + } + clear_has_output_seed(); + return output_seed_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinGenerateOutputSeedResponse::set_allocated_output_seed(::std::string* output_seed) { + if (output_seed != NULL) { + set_has_output_seed(); + } else { + clear_has_output_seed(); + } + output_seed_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_seed); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinGenerateOutputSeedResponse.output_seed) +} + +// ------------------------------------------------------------------- + +// BytecoinExportViewWalletRequest + +// ------------------------------------------------------------------- + +// BytecoinExportViewWalletResponse + +// optional bytes audit_key_base_secret_key = 1; +inline bool BytecoinExportViewWalletResponse::has_audit_key_base_secret_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinExportViewWalletResponse::set_has_audit_key_base_secret_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinExportViewWalletResponse::clear_has_audit_key_base_secret_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinExportViewWalletResponse::clear_audit_key_base_secret_key() { + audit_key_base_secret_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_audit_key_base_secret_key(); +} +inline const ::std::string& BytecoinExportViewWalletResponse::audit_key_base_secret_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.audit_key_base_secret_key) + return audit_key_base_secret_key_.GetNoArena(); +} +inline void BytecoinExportViewWalletResponse::set_audit_key_base_secret_key(const ::std::string& value) { + set_has_audit_key_base_secret_key(); + audit_key_base_secret_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.audit_key_base_secret_key) +} +#if LANG_CXX11 +inline void BytecoinExportViewWalletResponse::set_audit_key_base_secret_key(::std::string&& value) { + set_has_audit_key_base_secret_key(); + audit_key_base_secret_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.audit_key_base_secret_key) +} +#endif +inline void BytecoinExportViewWalletResponse::set_audit_key_base_secret_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_audit_key_base_secret_key(); + audit_key_base_secret_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.audit_key_base_secret_key) +} +inline void BytecoinExportViewWalletResponse::set_audit_key_base_secret_key(const void* value, size_t size) { + set_has_audit_key_base_secret_key(); + audit_key_base_secret_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.audit_key_base_secret_key) +} +inline ::std::string* BytecoinExportViewWalletResponse::mutable_audit_key_base_secret_key() { + set_has_audit_key_base_secret_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.audit_key_base_secret_key) + return audit_key_base_secret_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinExportViewWalletResponse::release_audit_key_base_secret_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.audit_key_base_secret_key) + if (!has_audit_key_base_secret_key()) { + return NULL; + } + clear_has_audit_key_base_secret_key(); + return audit_key_base_secret_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinExportViewWalletResponse::set_allocated_audit_key_base_secret_key(::std::string* audit_key_base_secret_key) { + if (audit_key_base_secret_key != NULL) { + set_has_audit_key_base_secret_key(); + } else { + clear_has_audit_key_base_secret_key(); + } + audit_key_base_secret_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), audit_key_base_secret_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.audit_key_base_secret_key) +} + +// optional bytes view_secret_key = 2; +inline bool BytecoinExportViewWalletResponse::has_view_secret_key() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinExportViewWalletResponse::set_has_view_secret_key() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinExportViewWalletResponse::clear_has_view_secret_key() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinExportViewWalletResponse::clear_view_secret_key() { + view_secret_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_view_secret_key(); +} +inline const ::std::string& BytecoinExportViewWalletResponse::view_secret_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secret_key) + return view_secret_key_.GetNoArena(); +} +inline void BytecoinExportViewWalletResponse::set_view_secret_key(const ::std::string& value) { + set_has_view_secret_key(); + view_secret_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secret_key) +} +#if LANG_CXX11 +inline void BytecoinExportViewWalletResponse::set_view_secret_key(::std::string&& value) { + set_has_view_secret_key(); + view_secret_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secret_key) +} +#endif +inline void BytecoinExportViewWalletResponse::set_view_secret_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_view_secret_key(); + view_secret_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secret_key) +} +inline void BytecoinExportViewWalletResponse::set_view_secret_key(const void* value, size_t size) { + set_has_view_secret_key(); + view_secret_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secret_key) +} +inline ::std::string* BytecoinExportViewWalletResponse::mutable_view_secret_key() { + set_has_view_secret_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secret_key) + return view_secret_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinExportViewWalletResponse::release_view_secret_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secret_key) + if (!has_view_secret_key()) { + return NULL; + } + clear_has_view_secret_key(); + return view_secret_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinExportViewWalletResponse::set_allocated_view_secret_key(::std::string* view_secret_key) { + if (view_secret_key != NULL) { + set_has_view_secret_key(); + } else { + clear_has_view_secret_key(); + } + view_secret_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), view_secret_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secret_key) +} + +// optional bytes tx_derivation_seed = 3; +inline bool BytecoinExportViewWalletResponse::has_tx_derivation_seed() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void BytecoinExportViewWalletResponse::set_has_tx_derivation_seed() { + _has_bits_[0] |= 0x00000004u; +} +inline void BytecoinExportViewWalletResponse::clear_has_tx_derivation_seed() { + _has_bits_[0] &= ~0x00000004u; +} +inline void BytecoinExportViewWalletResponse::clear_tx_derivation_seed() { + tx_derivation_seed_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_derivation_seed(); +} +inline const ::std::string& BytecoinExportViewWalletResponse::tx_derivation_seed() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.tx_derivation_seed) + return tx_derivation_seed_.GetNoArena(); +} +inline void BytecoinExportViewWalletResponse::set_tx_derivation_seed(const ::std::string& value) { + set_has_tx_derivation_seed(); + tx_derivation_seed_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.tx_derivation_seed) +} +#if LANG_CXX11 +inline void BytecoinExportViewWalletResponse::set_tx_derivation_seed(::std::string&& value) { + set_has_tx_derivation_seed(); + tx_derivation_seed_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.tx_derivation_seed) +} +#endif +inline void BytecoinExportViewWalletResponse::set_tx_derivation_seed(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_derivation_seed(); + tx_derivation_seed_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.tx_derivation_seed) +} +inline void BytecoinExportViewWalletResponse::set_tx_derivation_seed(const void* value, size_t size) { + set_has_tx_derivation_seed(); + tx_derivation_seed_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.tx_derivation_seed) +} +inline ::std::string* BytecoinExportViewWalletResponse::mutable_tx_derivation_seed() { + set_has_tx_derivation_seed(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.tx_derivation_seed) + return tx_derivation_seed_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinExportViewWalletResponse::release_tx_derivation_seed() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.tx_derivation_seed) + if (!has_tx_derivation_seed()) { + return NULL; + } + clear_has_tx_derivation_seed(); + return tx_derivation_seed_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinExportViewWalletResponse::set_allocated_tx_derivation_seed(::std::string* tx_derivation_seed) { + if (tx_derivation_seed != NULL) { + set_has_tx_derivation_seed(); + } else { + clear_has_tx_derivation_seed(); + } + tx_derivation_seed_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_derivation_seed); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.tx_derivation_seed) +} + +// optional bytes view_secrets_signature = 4; +inline bool BytecoinExportViewWalletResponse::has_view_secrets_signature() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void BytecoinExportViewWalletResponse::set_has_view_secrets_signature() { + _has_bits_[0] |= 0x00000008u; +} +inline void BytecoinExportViewWalletResponse::clear_has_view_secrets_signature() { + _has_bits_[0] &= ~0x00000008u; +} +inline void BytecoinExportViewWalletResponse::clear_view_secrets_signature() { + view_secrets_signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_view_secrets_signature(); +} +inline const ::std::string& BytecoinExportViewWalletResponse::view_secrets_signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secrets_signature) + return view_secrets_signature_.GetNoArena(); +} +inline void BytecoinExportViewWalletResponse::set_view_secrets_signature(const ::std::string& value) { + set_has_view_secrets_signature(); + view_secrets_signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secrets_signature) +} +#if LANG_CXX11 +inline void BytecoinExportViewWalletResponse::set_view_secrets_signature(::std::string&& value) { + set_has_view_secrets_signature(); + view_secrets_signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secrets_signature) +} +#endif +inline void BytecoinExportViewWalletResponse::set_view_secrets_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_view_secrets_signature(); + view_secrets_signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secrets_signature) +} +inline void BytecoinExportViewWalletResponse::set_view_secrets_signature(const void* value, size_t size) { + set_has_view_secrets_signature(); + view_secrets_signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secrets_signature) +} +inline ::std::string* BytecoinExportViewWalletResponse::mutable_view_secrets_signature() { + set_has_view_secrets_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secrets_signature) + return view_secrets_signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinExportViewWalletResponse::release_view_secrets_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secrets_signature) + if (!has_view_secrets_signature()) { + return NULL; + } + clear_has_view_secrets_signature(); + return view_secrets_signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinExportViewWalletResponse::set_allocated_view_secrets_signature(::std::string* view_secrets_signature) { + if (view_secrets_signature != NULL) { + set_has_view_secrets_signature(); + } else { + clear_has_view_secrets_signature(); + } + view_secrets_signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), view_secrets_signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinExportViewWalletResponse.view_secrets_signature) +} + +// ------------------------------------------------------------------- + +// BytecoinSignStartRequest + +// optional uint32 version = 1; +inline bool BytecoinSignStartRequest::has_version() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinSignStartRequest::set_has_version() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinSignStartRequest::clear_has_version() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinSignStartRequest::clear_version() { + version_ = 0u; + clear_has_version(); +} +inline ::google::protobuf::uint32 BytecoinSignStartRequest::version() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStartRequest.version) + return version_; +} +inline void BytecoinSignStartRequest::set_version(::google::protobuf::uint32 value) { + set_has_version(); + version_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStartRequest.version) +} + +// optional uint64 ut = 2; +inline bool BytecoinSignStartRequest::has_ut() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinSignStartRequest::set_has_ut() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinSignStartRequest::clear_has_ut() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinSignStartRequest::clear_ut() { + ut_ = GOOGLE_ULONGLONG(0); + clear_has_ut(); +} +inline ::google::protobuf::uint64 BytecoinSignStartRequest::ut() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStartRequest.ut) + return ut_; +} +inline void BytecoinSignStartRequest::set_ut(::google::protobuf::uint64 value) { + set_has_ut(); + ut_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStartRequest.ut) +} + +// optional uint32 inputs_size = 3; +inline bool BytecoinSignStartRequest::has_inputs_size() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void BytecoinSignStartRequest::set_has_inputs_size() { + _has_bits_[0] |= 0x00000004u; +} +inline void BytecoinSignStartRequest::clear_has_inputs_size() { + _has_bits_[0] &= ~0x00000004u; +} +inline void BytecoinSignStartRequest::clear_inputs_size() { + inputs_size_ = 0u; + clear_has_inputs_size(); +} +inline ::google::protobuf::uint32 BytecoinSignStartRequest::inputs_size() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStartRequest.inputs_size) + return inputs_size_; +} +inline void BytecoinSignStartRequest::set_inputs_size(::google::protobuf::uint32 value) { + set_has_inputs_size(); + inputs_size_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStartRequest.inputs_size) +} + +// optional uint32 outputs_size = 4; +inline bool BytecoinSignStartRequest::has_outputs_size() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void BytecoinSignStartRequest::set_has_outputs_size() { + _has_bits_[0] |= 0x00000008u; +} +inline void BytecoinSignStartRequest::clear_has_outputs_size() { + _has_bits_[0] &= ~0x00000008u; +} +inline void BytecoinSignStartRequest::clear_outputs_size() { + outputs_size_ = 0u; + clear_has_outputs_size(); +} +inline ::google::protobuf::uint32 BytecoinSignStartRequest::outputs_size() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStartRequest.outputs_size) + return outputs_size_; +} +inline void BytecoinSignStartRequest::set_outputs_size(::google::protobuf::uint32 value) { + set_has_outputs_size(); + outputs_size_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStartRequest.outputs_size) +} + +// optional uint32 extra_size = 5; +inline bool BytecoinSignStartRequest::has_extra_size() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void BytecoinSignStartRequest::set_has_extra_size() { + _has_bits_[0] |= 0x00000010u; +} +inline void BytecoinSignStartRequest::clear_has_extra_size() { + _has_bits_[0] &= ~0x00000010u; +} +inline void BytecoinSignStartRequest::clear_extra_size() { + extra_size_ = 0u; + clear_has_extra_size(); +} +inline ::google::protobuf::uint32 BytecoinSignStartRequest::extra_size() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStartRequest.extra_size) + return extra_size_; +} +inline void BytecoinSignStartRequest::set_extra_size(::google::protobuf::uint32 value) { + set_has_extra_size(); + extra_size_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStartRequest.extra_size) +} + +// ------------------------------------------------------------------- + +// BytecoinEmptyResponse + +// ------------------------------------------------------------------- + +// BytecoinSignAddInputRequest + +// optional uint64 amount = 1; +inline bool BytecoinSignAddInputRequest::has_amount() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinSignAddInputRequest::set_has_amount() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinSignAddInputRequest::clear_has_amount() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinSignAddInputRequest::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 BytecoinSignAddInputRequest::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.amount) + return amount_; +} +inline void BytecoinSignAddInputRequest::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.amount) +} + +// repeated uint32 output_indexes = 2; +inline int BytecoinSignAddInputRequest::output_indexes_size() const { + return output_indexes_.size(); +} +inline void BytecoinSignAddInputRequest::clear_output_indexes() { + output_indexes_.Clear(); +} +inline ::google::protobuf::uint32 BytecoinSignAddInputRequest::output_indexes(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.output_indexes) + return output_indexes_.Get(index); +} +inline void BytecoinSignAddInputRequest::set_output_indexes(int index, ::google::protobuf::uint32 value) { + output_indexes_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.output_indexes) +} +inline void BytecoinSignAddInputRequest::add_output_indexes(::google::protobuf::uint32 value) { + output_indexes_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.output_indexes) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +BytecoinSignAddInputRequest::output_indexes() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.output_indexes) + return output_indexes_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +BytecoinSignAddInputRequest::mutable_output_indexes() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.output_indexes) + return &output_indexes_; +} + +// optional bytes inv_output_main_hash = 3; +inline bool BytecoinSignAddInputRequest::has_inv_output_main_hash() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinSignAddInputRequest::set_has_inv_output_main_hash() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinSignAddInputRequest::clear_has_inv_output_main_hash() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinSignAddInputRequest::clear_inv_output_main_hash() { + inv_output_main_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_inv_output_main_hash(); +} +inline const ::std::string& BytecoinSignAddInputRequest::inv_output_main_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.inv_output_main_hash) + return inv_output_main_hash_.GetNoArena(); +} +inline void BytecoinSignAddInputRequest::set_inv_output_main_hash(const ::std::string& value) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.inv_output_main_hash) +} +#if LANG_CXX11 +inline void BytecoinSignAddInputRequest::set_inv_output_main_hash(::std::string&& value) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.inv_output_main_hash) +} +#endif +inline void BytecoinSignAddInputRequest::set_inv_output_main_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.inv_output_main_hash) +} +inline void BytecoinSignAddInputRequest::set_inv_output_main_hash(const void* value, size_t size) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.inv_output_main_hash) +} +inline ::std::string* BytecoinSignAddInputRequest::mutable_inv_output_main_hash() { + set_has_inv_output_main_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.inv_output_main_hash) + return inv_output_main_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignAddInputRequest::release_inv_output_main_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.inv_output_main_hash) + if (!has_inv_output_main_hash()) { + return NULL; + } + clear_has_inv_output_main_hash(); + return inv_output_main_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignAddInputRequest::set_allocated_inv_output_main_hash(::std::string* inv_output_main_hash) { + if (inv_output_main_hash != NULL) { + set_has_inv_output_main_hash(); + } else { + clear_has_inv_output_main_hash(); + } + inv_output_main_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), inv_output_main_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.inv_output_main_hash) +} + +// optional uint32 address_index = 4; +inline bool BytecoinSignAddInputRequest::has_address_index() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void BytecoinSignAddInputRequest::set_has_address_index() { + _has_bits_[0] |= 0x00000004u; +} +inline void BytecoinSignAddInputRequest::clear_has_address_index() { + _has_bits_[0] &= ~0x00000004u; +} +inline void BytecoinSignAddInputRequest::clear_address_index() { + address_index_ = 0u; + clear_has_address_index(); +} +inline ::google::protobuf::uint32 BytecoinSignAddInputRequest::address_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.address_index) + return address_index_; +} +inline void BytecoinSignAddInputRequest::set_address_index(::google::protobuf::uint32 value) { + set_has_address_index(); + address_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddInputRequest.address_index) +} + +// ------------------------------------------------------------------- + +// BytecoinSignAddOutputRequest + +// optional bool change = 1; +inline bool BytecoinSignAddOutputRequest::has_change() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void BytecoinSignAddOutputRequest::set_has_change() { + _has_bits_[0] |= 0x00000008u; +} +inline void BytecoinSignAddOutputRequest::clear_has_change() { + _has_bits_[0] &= ~0x00000008u; +} +inline void BytecoinSignAddOutputRequest::clear_change() { + change_ = false; + clear_has_change(); +} +inline bool BytecoinSignAddOutputRequest::change() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.change) + return change_; +} +inline void BytecoinSignAddOutputRequest::set_change(bool value) { + set_has_change(); + change_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.change) +} + +// optional uint64 amount = 2; +inline bool BytecoinSignAddOutputRequest::has_amount() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void BytecoinSignAddOutputRequest::set_has_amount() { + _has_bits_[0] |= 0x00000004u; +} +inline void BytecoinSignAddOutputRequest::clear_has_amount() { + _has_bits_[0] &= ~0x00000004u; +} +inline void BytecoinSignAddOutputRequest::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 BytecoinSignAddOutputRequest::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.amount) + return amount_; +} +inline void BytecoinSignAddOutputRequest::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.amount) +} + +// optional uint32 dst_address_tag = 3; +inline bool BytecoinSignAddOutputRequest::has_dst_address_tag() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void BytecoinSignAddOutputRequest::set_has_dst_address_tag() { + _has_bits_[0] |= 0x00000010u; +} +inline void BytecoinSignAddOutputRequest::clear_has_dst_address_tag() { + _has_bits_[0] &= ~0x00000010u; +} +inline void BytecoinSignAddOutputRequest::clear_dst_address_tag() { + dst_address_tag_ = 0u; + clear_has_dst_address_tag(); +} +inline ::google::protobuf::uint32 BytecoinSignAddOutputRequest::dst_address_tag() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_tag) + return dst_address_tag_; +} +inline void BytecoinSignAddOutputRequest::set_dst_address_tag(::google::protobuf::uint32 value) { + set_has_dst_address_tag(); + dst_address_tag_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_tag) +} + +// optional bytes dst_address_S = 4; +inline bool BytecoinSignAddOutputRequest::has_dst_address_s() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinSignAddOutputRequest::set_has_dst_address_s() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinSignAddOutputRequest::clear_has_dst_address_s() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinSignAddOutputRequest::clear_dst_address_s() { + dst_address_s_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_dst_address_s(); +} +inline const ::std::string& BytecoinSignAddOutputRequest::dst_address_s() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_S) + return dst_address_s_.GetNoArena(); +} +inline void BytecoinSignAddOutputRequest::set_dst_address_s(const ::std::string& value) { + set_has_dst_address_s(); + dst_address_s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_S) +} +#if LANG_CXX11 +inline void BytecoinSignAddOutputRequest::set_dst_address_s(::std::string&& value) { + set_has_dst_address_s(); + dst_address_s_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_S) +} +#endif +inline void BytecoinSignAddOutputRequest::set_dst_address_s(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_dst_address_s(); + dst_address_s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_S) +} +inline void BytecoinSignAddOutputRequest::set_dst_address_s(const void* value, size_t size) { + set_has_dst_address_s(); + dst_address_s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_S) +} +inline ::std::string* BytecoinSignAddOutputRequest::mutable_dst_address_s() { + set_has_dst_address_s(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_S) + return dst_address_s_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignAddOutputRequest::release_dst_address_s() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_S) + if (!has_dst_address_s()) { + return NULL; + } + clear_has_dst_address_s(); + return dst_address_s_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignAddOutputRequest::set_allocated_dst_address_s(::std::string* dst_address_s) { + if (dst_address_s != NULL) { + set_has_dst_address_s(); + } else { + clear_has_dst_address_s(); + } + dst_address_s_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dst_address_s); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_S) +} + +// optional bytes dst_address_Sv = 5; +inline bool BytecoinSignAddOutputRequest::has_dst_address_sv() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinSignAddOutputRequest::set_has_dst_address_sv() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinSignAddOutputRequest::clear_has_dst_address_sv() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinSignAddOutputRequest::clear_dst_address_sv() { + dst_address_sv_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_dst_address_sv(); +} +inline const ::std::string& BytecoinSignAddOutputRequest::dst_address_sv() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_Sv) + return dst_address_sv_.GetNoArena(); +} +inline void BytecoinSignAddOutputRequest::set_dst_address_sv(const ::std::string& value) { + set_has_dst_address_sv(); + dst_address_sv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_Sv) +} +#if LANG_CXX11 +inline void BytecoinSignAddOutputRequest::set_dst_address_sv(::std::string&& value) { + set_has_dst_address_sv(); + dst_address_sv_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_Sv) +} +#endif +inline void BytecoinSignAddOutputRequest::set_dst_address_sv(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_dst_address_sv(); + dst_address_sv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_Sv) +} +inline void BytecoinSignAddOutputRequest::set_dst_address_sv(const void* value, size_t size) { + set_has_dst_address_sv(); + dst_address_sv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_Sv) +} +inline ::std::string* BytecoinSignAddOutputRequest::mutable_dst_address_sv() { + set_has_dst_address_sv(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_Sv) + return dst_address_sv_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignAddOutputRequest::release_dst_address_sv() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_Sv) + if (!has_dst_address_sv()) { + return NULL; + } + clear_has_dst_address_sv(); + return dst_address_sv_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignAddOutputRequest::set_allocated_dst_address_sv(::std::string* dst_address_sv) { + if (dst_address_sv != NULL) { + set_has_dst_address_sv(); + } else { + clear_has_dst_address_sv(); + } + dst_address_sv_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dst_address_sv); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.dst_address_Sv) +} + +// optional uint32 change_address_index = 6; +inline bool BytecoinSignAddOutputRequest::has_change_address_index() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void BytecoinSignAddOutputRequest::set_has_change_address_index() { + _has_bits_[0] |= 0x00000020u; +} +inline void BytecoinSignAddOutputRequest::clear_has_change_address_index() { + _has_bits_[0] &= ~0x00000020u; +} +inline void BytecoinSignAddOutputRequest::clear_change_address_index() { + change_address_index_ = 0u; + clear_has_change_address_index(); +} +inline ::google::protobuf::uint32 BytecoinSignAddOutputRequest::change_address_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.change_address_index) + return change_address_index_; +} +inline void BytecoinSignAddOutputRequest::set_change_address_index(::google::protobuf::uint32 value) { + set_has_change_address_index(); + change_address_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddOutputRequest.change_address_index) +} + +// ------------------------------------------------------------------- + +// BytecoinSignAddOutputResponse + +// optional bytes public_key = 1; +inline bool BytecoinSignAddOutputResponse::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinSignAddOutputResponse::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinSignAddOutputResponse::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinSignAddOutputResponse::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& BytecoinSignAddOutputResponse::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.public_key) + return public_key_.GetNoArena(); +} +inline void BytecoinSignAddOutputResponse::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.public_key) +} +#if LANG_CXX11 +inline void BytecoinSignAddOutputResponse::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.public_key) +} +#endif +inline void BytecoinSignAddOutputResponse::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.public_key) +} +inline void BytecoinSignAddOutputResponse::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.public_key) +} +inline ::std::string* BytecoinSignAddOutputResponse::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignAddOutputResponse::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignAddOutputResponse::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.public_key) +} + +// optional bytes encrypted_secret = 2; +inline bool BytecoinSignAddOutputResponse::has_encrypted_secret() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinSignAddOutputResponse::set_has_encrypted_secret() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinSignAddOutputResponse::clear_has_encrypted_secret() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinSignAddOutputResponse::clear_encrypted_secret() { + encrypted_secret_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_encrypted_secret(); +} +inline const ::std::string& BytecoinSignAddOutputResponse::encrypted_secret() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.encrypted_secret) + return encrypted_secret_.GetNoArena(); +} +inline void BytecoinSignAddOutputResponse::set_encrypted_secret(const ::std::string& value) { + set_has_encrypted_secret(); + encrypted_secret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.encrypted_secret) +} +#if LANG_CXX11 +inline void BytecoinSignAddOutputResponse::set_encrypted_secret(::std::string&& value) { + set_has_encrypted_secret(); + encrypted_secret_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.encrypted_secret) +} +#endif +inline void BytecoinSignAddOutputResponse::set_encrypted_secret(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_encrypted_secret(); + encrypted_secret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.encrypted_secret) +} +inline void BytecoinSignAddOutputResponse::set_encrypted_secret(const void* value, size_t size) { + set_has_encrypted_secret(); + encrypted_secret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.encrypted_secret) +} +inline ::std::string* BytecoinSignAddOutputResponse::mutable_encrypted_secret() { + set_has_encrypted_secret(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.encrypted_secret) + return encrypted_secret_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignAddOutputResponse::release_encrypted_secret() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.encrypted_secret) + if (!has_encrypted_secret()) { + return NULL; + } + clear_has_encrypted_secret(); + return encrypted_secret_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignAddOutputResponse::set_allocated_encrypted_secret(::std::string* encrypted_secret) { + if (encrypted_secret != NULL) { + set_has_encrypted_secret(); + } else { + clear_has_encrypted_secret(); + } + encrypted_secret_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encrypted_secret); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.encrypted_secret) +} + +// optional uint32 encrypted_address_type = 3; +inline bool BytecoinSignAddOutputResponse::has_encrypted_address_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void BytecoinSignAddOutputResponse::set_has_encrypted_address_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void BytecoinSignAddOutputResponse::clear_has_encrypted_address_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void BytecoinSignAddOutputResponse::clear_encrypted_address_type() { + encrypted_address_type_ = 0u; + clear_has_encrypted_address_type(); +} +inline ::google::protobuf::uint32 BytecoinSignAddOutputResponse::encrypted_address_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.encrypted_address_type) + return encrypted_address_type_; +} +inline void BytecoinSignAddOutputResponse::set_encrypted_address_type(::google::protobuf::uint32 value) { + set_has_encrypted_address_type(); + encrypted_address_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddOutputResponse.encrypted_address_type) +} + +// ------------------------------------------------------------------- + +// BytecoinSignAddExtraRequest + +// optional bytes extra_chunk = 1; +inline bool BytecoinSignAddExtraRequest::has_extra_chunk() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinSignAddExtraRequest::set_has_extra_chunk() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinSignAddExtraRequest::clear_has_extra_chunk() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinSignAddExtraRequest::clear_extra_chunk() { + extra_chunk_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_extra_chunk(); +} +inline const ::std::string& BytecoinSignAddExtraRequest::extra_chunk() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest.extra_chunk) + return extra_chunk_.GetNoArena(); +} +inline void BytecoinSignAddExtraRequest::set_extra_chunk(const ::std::string& value) { + set_has_extra_chunk(); + extra_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest.extra_chunk) +} +#if LANG_CXX11 +inline void BytecoinSignAddExtraRequest::set_extra_chunk(::std::string&& value) { + set_has_extra_chunk(); + extra_chunk_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest.extra_chunk) +} +#endif +inline void BytecoinSignAddExtraRequest::set_extra_chunk(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_extra_chunk(); + extra_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest.extra_chunk) +} +inline void BytecoinSignAddExtraRequest::set_extra_chunk(const void* value, size_t size) { + set_has_extra_chunk(); + extra_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest.extra_chunk) +} +inline ::std::string* BytecoinSignAddExtraRequest::mutable_extra_chunk() { + set_has_extra_chunk(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest.extra_chunk) + return extra_chunk_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignAddExtraRequest::release_extra_chunk() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest.extra_chunk) + if (!has_extra_chunk()) { + return NULL; + } + clear_has_extra_chunk(); + return extra_chunk_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignAddExtraRequest::set_allocated_extra_chunk(::std::string* extra_chunk) { + if (extra_chunk != NULL) { + set_has_extra_chunk(); + } else { + clear_has_extra_chunk(); + } + extra_chunk_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extra_chunk); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignAddExtraRequest.extra_chunk) +} + +// ------------------------------------------------------------------- + +// BytecoinSignStepARequest + +// optional bytes inv_output_main_hash = 1; +inline bool BytecoinSignStepARequest::has_inv_output_main_hash() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinSignStepARequest::set_has_inv_output_main_hash() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinSignStepARequest::clear_has_inv_output_main_hash() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinSignStepARequest::clear_inv_output_main_hash() { + inv_output_main_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_inv_output_main_hash(); +} +inline const ::std::string& BytecoinSignStepARequest::inv_output_main_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepARequest.inv_output_main_hash) + return inv_output_main_hash_.GetNoArena(); +} +inline void BytecoinSignStepARequest::set_inv_output_main_hash(const ::std::string& value) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepARequest.inv_output_main_hash) +} +#if LANG_CXX11 +inline void BytecoinSignStepARequest::set_inv_output_main_hash(::std::string&& value) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignStepARequest.inv_output_main_hash) +} +#endif +inline void BytecoinSignStepARequest::set_inv_output_main_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignStepARequest.inv_output_main_hash) +} +inline void BytecoinSignStepARequest::set_inv_output_main_hash(const void* value, size_t size) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignStepARequest.inv_output_main_hash) +} +inline ::std::string* BytecoinSignStepARequest::mutable_inv_output_main_hash() { + set_has_inv_output_main_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignStepARequest.inv_output_main_hash) + return inv_output_main_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignStepARequest::release_inv_output_main_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignStepARequest.inv_output_main_hash) + if (!has_inv_output_main_hash()) { + return NULL; + } + clear_has_inv_output_main_hash(); + return inv_output_main_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignStepARequest::set_allocated_inv_output_main_hash(::std::string* inv_output_main_hash) { + if (inv_output_main_hash != NULL) { + set_has_inv_output_main_hash(); + } else { + clear_has_inv_output_main_hash(); + } + inv_output_main_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), inv_output_main_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignStepARequest.inv_output_main_hash) +} + +// optional uint64 address_index = 2; +inline bool BytecoinSignStepARequest::has_address_index() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinSignStepARequest::set_has_address_index() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinSignStepARequest::clear_has_address_index() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinSignStepARequest::clear_address_index() { + address_index_ = GOOGLE_ULONGLONG(0); + clear_has_address_index(); +} +inline ::google::protobuf::uint64 BytecoinSignStepARequest::address_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepARequest.address_index) + return address_index_; +} +inline void BytecoinSignStepARequest::set_address_index(::google::protobuf::uint64 value) { + set_has_address_index(); + address_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepARequest.address_index) +} + +// ------------------------------------------------------------------- + +// BytecoinSignStepAResponse + +// optional bytes sig_p = 1; +inline bool BytecoinSignStepAResponse::has_sig_p() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinSignStepAResponse::set_has_sig_p() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinSignStepAResponse::clear_has_sig_p() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinSignStepAResponse::clear_sig_p() { + sig_p_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_sig_p(); +} +inline const ::std::string& BytecoinSignStepAResponse::sig_p() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.sig_p) + return sig_p_.GetNoArena(); +} +inline void BytecoinSignStepAResponse::set_sig_p(const ::std::string& value) { + set_has_sig_p(); + sig_p_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.sig_p) +} +#if LANG_CXX11 +inline void BytecoinSignStepAResponse::set_sig_p(::std::string&& value) { + set_has_sig_p(); + sig_p_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.sig_p) +} +#endif +inline void BytecoinSignStepAResponse::set_sig_p(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_sig_p(); + sig_p_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.sig_p) +} +inline void BytecoinSignStepAResponse::set_sig_p(const void* value, size_t size) { + set_has_sig_p(); + sig_p_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.sig_p) +} +inline ::std::string* BytecoinSignStepAResponse::mutable_sig_p() { + set_has_sig_p(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.sig_p) + return sig_p_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignStepAResponse::release_sig_p() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.sig_p) + if (!has_sig_p()) { + return NULL; + } + clear_has_sig_p(); + return sig_p_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignStepAResponse::set_allocated_sig_p(::std::string* sig_p) { + if (sig_p != NULL) { + set_has_sig_p(); + } else { + clear_has_sig_p(); + } + sig_p_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sig_p); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.sig_p) +} + +// optional bytes x = 2; +inline bool BytecoinSignStepAResponse::has_x() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinSignStepAResponse::set_has_x() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinSignStepAResponse::clear_has_x() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinSignStepAResponse::clear_x() { + x_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_x(); +} +inline const ::std::string& BytecoinSignStepAResponse::x() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.x) + return x_.GetNoArena(); +} +inline void BytecoinSignStepAResponse::set_x(const ::std::string& value) { + set_has_x(); + x_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.x) +} +#if LANG_CXX11 +inline void BytecoinSignStepAResponse::set_x(::std::string&& value) { + set_has_x(); + x_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.x) +} +#endif +inline void BytecoinSignStepAResponse::set_x(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_x(); + x_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.x) +} +inline void BytecoinSignStepAResponse::set_x(const void* value, size_t size) { + set_has_x(); + x_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.x) +} +inline ::std::string* BytecoinSignStepAResponse::mutable_x() { + set_has_x(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.x) + return x_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignStepAResponse::release_x() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.x) + if (!has_x()) { + return NULL; + } + clear_has_x(); + return x_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignStepAResponse::set_allocated_x(::std::string* x) { + if (x != NULL) { + set_has_x(); + } else { + clear_has_x(); + } + x_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), x); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.x) +} + +// optional bytes y = 3; +inline bool BytecoinSignStepAResponse::has_y() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void BytecoinSignStepAResponse::set_has_y() { + _has_bits_[0] |= 0x00000004u; +} +inline void BytecoinSignStepAResponse::clear_has_y() { + _has_bits_[0] &= ~0x00000004u; +} +inline void BytecoinSignStepAResponse::clear_y() { + y_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_y(); +} +inline const ::std::string& BytecoinSignStepAResponse::y() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.y) + return y_.GetNoArena(); +} +inline void BytecoinSignStepAResponse::set_y(const ::std::string& value) { + set_has_y(); + y_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.y) +} +#if LANG_CXX11 +inline void BytecoinSignStepAResponse::set_y(::std::string&& value) { + set_has_y(); + y_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.y) +} +#endif +inline void BytecoinSignStepAResponse::set_y(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_y(); + y_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.y) +} +inline void BytecoinSignStepAResponse::set_y(const void* value, size_t size) { + set_has_y(); + y_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.y) +} +inline ::std::string* BytecoinSignStepAResponse::mutable_y() { + set_has_y(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.y) + return y_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignStepAResponse::release_y() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.y) + if (!has_y()) { + return NULL; + } + clear_has_y(); + return y_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignStepAResponse::set_allocated_y(::std::string* y) { + if (y != NULL) { + set_has_y(); + } else { + clear_has_y(); + } + y_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), y); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignStepAResponse.y) +} + +// ------------------------------------------------------------------- + +// BytecoinSignStepAMoreDataRequest + +// optional bytes data_chunk = 1; +inline bool BytecoinSignStepAMoreDataRequest::has_data_chunk() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinSignStepAMoreDataRequest::set_has_data_chunk() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinSignStepAMoreDataRequest::clear_has_data_chunk() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinSignStepAMoreDataRequest::clear_data_chunk() { + data_chunk_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data_chunk(); +} +inline const ::std::string& BytecoinSignStepAMoreDataRequest::data_chunk() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest.data_chunk) + return data_chunk_.GetNoArena(); +} +inline void BytecoinSignStepAMoreDataRequest::set_data_chunk(const ::std::string& value) { + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest.data_chunk) +} +#if LANG_CXX11 +inline void BytecoinSignStepAMoreDataRequest::set_data_chunk(::std::string&& value) { + set_has_data_chunk(); + data_chunk_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest.data_chunk) +} +#endif +inline void BytecoinSignStepAMoreDataRequest::set_data_chunk(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest.data_chunk) +} +inline void BytecoinSignStepAMoreDataRequest::set_data_chunk(const void* value, size_t size) { + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest.data_chunk) +} +inline ::std::string* BytecoinSignStepAMoreDataRequest::mutable_data_chunk() { + set_has_data_chunk(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest.data_chunk) + return data_chunk_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignStepAMoreDataRequest::release_data_chunk() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest.data_chunk) + if (!has_data_chunk()) { + return NULL; + } + clear_has_data_chunk(); + return data_chunk_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignStepAMoreDataRequest::set_allocated_data_chunk(::std::string* data_chunk) { + if (data_chunk != NULL) { + set_has_data_chunk(); + } else { + clear_has_data_chunk(); + } + data_chunk_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_chunk); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignStepAMoreDataRequest.data_chunk) +} + +// ------------------------------------------------------------------- + +// BytecoinSignGetC0Request + +// ------------------------------------------------------------------- + +// BytecoinSignGetC0Response + +// optional bytes c0 = 1; +inline bool BytecoinSignGetC0Response::has_c0() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinSignGetC0Response::set_has_c0() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinSignGetC0Response::clear_has_c0() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinSignGetC0Response::clear_c0() { + c0_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_c0(); +} +inline const ::std::string& BytecoinSignGetC0Response::c0() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response.c0) + return c0_.GetNoArena(); +} +inline void BytecoinSignGetC0Response::set_c0(const ::std::string& value) { + set_has_c0(); + c0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response.c0) +} +#if LANG_CXX11 +inline void BytecoinSignGetC0Response::set_c0(::std::string&& value) { + set_has_c0(); + c0_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response.c0) +} +#endif +inline void BytecoinSignGetC0Response::set_c0(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_c0(); + c0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response.c0) +} +inline void BytecoinSignGetC0Response::set_c0(const void* value, size_t size) { + set_has_c0(); + c0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response.c0) +} +inline ::std::string* BytecoinSignGetC0Response::mutable_c0() { + set_has_c0(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response.c0) + return c0_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignGetC0Response::release_c0() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response.c0) + if (!has_c0()) { + return NULL; + } + clear_has_c0(); + return c0_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignGetC0Response::set_allocated_c0(::std::string* c0) { + if (c0 != NULL) { + set_has_c0(); + } else { + clear_has_c0(); + } + c0_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), c0); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignGetC0Response.c0) +} + +// ------------------------------------------------------------------- + +// BytecoinSignStepBRequest + +// optional bytes inv_output_main_hash = 1; +inline bool BytecoinSignStepBRequest::has_inv_output_main_hash() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinSignStepBRequest::set_has_inv_output_main_hash() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinSignStepBRequest::clear_has_inv_output_main_hash() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinSignStepBRequest::clear_inv_output_main_hash() { + inv_output_main_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_inv_output_main_hash(); +} +inline const ::std::string& BytecoinSignStepBRequest::inv_output_main_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.inv_output_main_hash) + return inv_output_main_hash_.GetNoArena(); +} +inline void BytecoinSignStepBRequest::set_inv_output_main_hash(const ::std::string& value) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.inv_output_main_hash) +} +#if LANG_CXX11 +inline void BytecoinSignStepBRequest::set_inv_output_main_hash(::std::string&& value) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.inv_output_main_hash) +} +#endif +inline void BytecoinSignStepBRequest::set_inv_output_main_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.inv_output_main_hash) +} +inline void BytecoinSignStepBRequest::set_inv_output_main_hash(const void* value, size_t size) { + set_has_inv_output_main_hash(); + inv_output_main_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.inv_output_main_hash) +} +inline ::std::string* BytecoinSignStepBRequest::mutable_inv_output_main_hash() { + set_has_inv_output_main_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.inv_output_main_hash) + return inv_output_main_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignStepBRequest::release_inv_output_main_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.inv_output_main_hash) + if (!has_inv_output_main_hash()) { + return NULL; + } + clear_has_inv_output_main_hash(); + return inv_output_main_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignStepBRequest::set_allocated_inv_output_main_hash(::std::string* inv_output_main_hash) { + if (inv_output_main_hash != NULL) { + set_has_inv_output_main_hash(); + } else { + clear_has_inv_output_main_hash(); + } + inv_output_main_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), inv_output_main_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.inv_output_main_hash) +} + +// optional uint64 address_index = 2; +inline bool BytecoinSignStepBRequest::has_address_index() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void BytecoinSignStepBRequest::set_has_address_index() { + _has_bits_[0] |= 0x00000004u; +} +inline void BytecoinSignStepBRequest::clear_has_address_index() { + _has_bits_[0] &= ~0x00000004u; +} +inline void BytecoinSignStepBRequest::clear_address_index() { + address_index_ = GOOGLE_ULONGLONG(0); + clear_has_address_index(); +} +inline ::google::protobuf::uint64 BytecoinSignStepBRequest::address_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.address_index) + return address_index_; +} +inline void BytecoinSignStepBRequest::set_address_index(::google::protobuf::uint64 value) { + set_has_address_index(); + address_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.address_index) +} + +// optional bytes my_c = 3; +inline bool BytecoinSignStepBRequest::has_my_c() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinSignStepBRequest::set_has_my_c() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinSignStepBRequest::clear_has_my_c() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinSignStepBRequest::clear_my_c() { + my_c_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_my_c(); +} +inline const ::std::string& BytecoinSignStepBRequest::my_c() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.my_c) + return my_c_.GetNoArena(); +} +inline void BytecoinSignStepBRequest::set_my_c(const ::std::string& value) { + set_has_my_c(); + my_c_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.my_c) +} +#if LANG_CXX11 +inline void BytecoinSignStepBRequest::set_my_c(::std::string&& value) { + set_has_my_c(); + my_c_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.my_c) +} +#endif +inline void BytecoinSignStepBRequest::set_my_c(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_my_c(); + my_c_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.my_c) +} +inline void BytecoinSignStepBRequest::set_my_c(const void* value, size_t size) { + set_has_my_c(); + my_c_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.my_c) +} +inline ::std::string* BytecoinSignStepBRequest::mutable_my_c() { + set_has_my_c(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.my_c) + return my_c_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignStepBRequest::release_my_c() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.my_c) + if (!has_my_c()) { + return NULL; + } + clear_has_my_c(); + return my_c_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignStepBRequest::set_allocated_my_c(::std::string* my_c) { + if (my_c != NULL) { + set_has_my_c(); + } else { + clear_has_my_c(); + } + my_c_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), my_c); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignStepBRequest.my_c) +} + +// ------------------------------------------------------------------- + +// BytecoinSignStepBResponse + +// optional bytes my_ra = 1; +inline bool BytecoinSignStepBResponse::has_my_ra() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinSignStepBResponse::set_has_my_ra() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinSignStepBResponse::clear_has_my_ra() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinSignStepBResponse::clear_my_ra() { + my_ra_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_my_ra(); +} +inline const ::std::string& BytecoinSignStepBResponse::my_ra() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.my_ra) + return my_ra_.GetNoArena(); +} +inline void BytecoinSignStepBResponse::set_my_ra(const ::std::string& value) { + set_has_my_ra(); + my_ra_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.my_ra) +} +#if LANG_CXX11 +inline void BytecoinSignStepBResponse::set_my_ra(::std::string&& value) { + set_has_my_ra(); + my_ra_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.my_ra) +} +#endif +inline void BytecoinSignStepBResponse::set_my_ra(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_my_ra(); + my_ra_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.my_ra) +} +inline void BytecoinSignStepBResponse::set_my_ra(const void* value, size_t size) { + set_has_my_ra(); + my_ra_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.my_ra) +} +inline ::std::string* BytecoinSignStepBResponse::mutable_my_ra() { + set_has_my_ra(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.my_ra) + return my_ra_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignStepBResponse::release_my_ra() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.my_ra) + if (!has_my_ra()) { + return NULL; + } + clear_has_my_ra(); + return my_ra_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignStepBResponse::set_allocated_my_ra(::std::string* my_ra) { + if (my_ra != NULL) { + set_has_my_ra(); + } else { + clear_has_my_ra(); + } + my_ra_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), my_ra); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.my_ra) +} + +// optional bytes rb = 2; +inline bool BytecoinSignStepBResponse::has_rb() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytecoinSignStepBResponse::set_has_rb() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytecoinSignStepBResponse::clear_has_rb() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytecoinSignStepBResponse::clear_rb() { + rb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_rb(); +} +inline const ::std::string& BytecoinSignStepBResponse::rb() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rb) + return rb_.GetNoArena(); +} +inline void BytecoinSignStepBResponse::set_rb(const ::std::string& value) { + set_has_rb(); + rb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rb) +} +#if LANG_CXX11 +inline void BytecoinSignStepBResponse::set_rb(::std::string&& value) { + set_has_rb(); + rb_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rb) +} +#endif +inline void BytecoinSignStepBResponse::set_rb(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_rb(); + rb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rb) +} +inline void BytecoinSignStepBResponse::set_rb(const void* value, size_t size) { + set_has_rb(); + rb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rb) +} +inline ::std::string* BytecoinSignStepBResponse::mutable_rb() { + set_has_rb(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rb) + return rb_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignStepBResponse::release_rb() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rb) + if (!has_rb()) { + return NULL; + } + clear_has_rb(); + return rb_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignStepBResponse::set_allocated_rb(::std::string* rb) { + if (rb != NULL) { + set_has_rb(); + } else { + clear_has_rb(); + } + rb_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rb); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rb) +} + +// optional bytes rc = 3; +inline bool BytecoinSignStepBResponse::has_rc() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void BytecoinSignStepBResponse::set_has_rc() { + _has_bits_[0] |= 0x00000004u; +} +inline void BytecoinSignStepBResponse::clear_has_rc() { + _has_bits_[0] &= ~0x00000004u; +} +inline void BytecoinSignStepBResponse::clear_rc() { + rc_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_rc(); +} +inline const ::std::string& BytecoinSignStepBResponse::rc() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rc) + return rc_.GetNoArena(); +} +inline void BytecoinSignStepBResponse::set_rc(const ::std::string& value) { + set_has_rc(); + rc_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rc) +} +#if LANG_CXX11 +inline void BytecoinSignStepBResponse::set_rc(::std::string&& value) { + set_has_rc(); + rc_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rc) +} +#endif +inline void BytecoinSignStepBResponse::set_rc(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_rc(); + rc_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rc) +} +inline void BytecoinSignStepBResponse::set_rc(const void* value, size_t size) { + set_has_rc(); + rc_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rc) +} +inline ::std::string* BytecoinSignStepBResponse::mutable_rc() { + set_has_rc(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rc) + return rc_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinSignStepBResponse::release_rc() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rc) + if (!has_rc()) { + return NULL; + } + clear_has_rc(); + return rc_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinSignStepBResponse::set_allocated_rc(::std::string* rc) { + if (rc != NULL) { + set_has_rc(); + } else { + clear_has_rc(); + } + rc_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rc); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinSignStepBResponse.rc) +} + +// ------------------------------------------------------------------- + +// BytecoinStartProofRequest + +// optional uint32 data_size = 1; +inline bool BytecoinStartProofRequest::has_data_size() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinStartProofRequest::set_has_data_size() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinStartProofRequest::clear_has_data_size() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinStartProofRequest::clear_data_size() { + data_size_ = 0u; + clear_has_data_size(); +} +inline ::google::protobuf::uint32 BytecoinStartProofRequest::data_size() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinStartProofRequest.data_size) + return data_size_; +} +inline void BytecoinStartProofRequest::set_data_size(::google::protobuf::uint32 value) { + set_has_data_size(); + data_size_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinStartProofRequest.data_size) +} + +// ------------------------------------------------------------------- + +// BytecoinProofMoreDataRequest + +// optional bytes data_chunk = 1; +inline bool BytecoinProofMoreDataRequest::has_data_chunk() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytecoinProofMoreDataRequest::set_has_data_chunk() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytecoinProofMoreDataRequest::clear_has_data_chunk() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytecoinProofMoreDataRequest::clear_data_chunk() { + data_chunk_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data_chunk(); +} +inline const ::std::string& BytecoinProofMoreDataRequest::data_chunk() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest.data_chunk) + return data_chunk_.GetNoArena(); +} +inline void BytecoinProofMoreDataRequest::set_data_chunk(const ::std::string& value) { + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest.data_chunk) +} +#if LANG_CXX11 +inline void BytecoinProofMoreDataRequest::set_data_chunk(::std::string&& value) { + set_has_data_chunk(); + data_chunk_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest.data_chunk) +} +#endif +inline void BytecoinProofMoreDataRequest::set_data_chunk(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest.data_chunk) +} +inline void BytecoinProofMoreDataRequest::set_data_chunk(const void* value, size_t size) { + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest.data_chunk) +} +inline ::std::string* BytecoinProofMoreDataRequest::mutable_data_chunk() { + set_has_data_chunk(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest.data_chunk) + return data_chunk_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BytecoinProofMoreDataRequest::release_data_chunk() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest.data_chunk) + if (!has_data_chunk()) { + return NULL; + } + clear_has_data_chunk(); + return data_chunk_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BytecoinProofMoreDataRequest::set_allocated_data_chunk(::std::string* data_chunk) { + if (data_chunk != NULL) { + set_has_data_chunk(); + } else { + clear_has_data_chunk(); + } + data_chunk_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_chunk); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.bytecoin.BytecoinProofMoreDataRequest.data_chunk) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace bytecoin +} // namespace messages +} // namespace trezor +} // namespace hw + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dbytecoin_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-cardano.pb.cc b/src/Core/hardware/trezor/protob/messages-cardano.pb.cc new file mode 100644 index 00000000..08067ffc --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-cardano.pb.cc @@ -0,0 +1,3524 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-cardano.proto + +#include "messages-cardano.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dcardano_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dcardano_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CardanoSignTx_CardanoTxInputType; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dcardano_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CardanoSignTx_CardanoTxOutputType; +} // namespace protobuf_messages_2dcardano_2eproto +namespace protobuf_messages_2dcommon_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HDNodeType; +} // namespace protobuf_messages_2dcommon_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace cardano { +class CardanoGetAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CardanoGetAddress_default_instance_; +class CardanoAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CardanoAddress_default_instance_; +class CardanoGetPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CardanoGetPublicKey_default_instance_; +class CardanoPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CardanoPublicKey_default_instance_; +class CardanoSignTx_CardanoTxInputTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CardanoSignTx_CardanoTxInputType_default_instance_; +class CardanoSignTx_CardanoTxOutputTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CardanoSignTx_CardanoTxOutputType_default_instance_; +class CardanoSignTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CardanoSignTx_default_instance_; +class CardanoTxRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CardanoTxRequest_default_instance_; +class CardanoTxAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CardanoTxAck_default_instance_; +class CardanoSignedTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CardanoSignedTx_default_instance_; +} // namespace cardano +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dcardano_2eproto { +static void InitDefaultsCardanoGetAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::cardano::_CardanoGetAddress_default_instance_; + new (ptr) ::hw::trezor::messages::cardano::CardanoGetAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::cardano::CardanoGetAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CardanoGetAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCardanoGetAddress}, {}}; + +static void InitDefaultsCardanoAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::cardano::_CardanoAddress_default_instance_; + new (ptr) ::hw::trezor::messages::cardano::CardanoAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::cardano::CardanoAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CardanoAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCardanoAddress}, {}}; + +static void InitDefaultsCardanoGetPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::cardano::_CardanoGetPublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::cardano::CardanoGetPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::cardano::CardanoGetPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CardanoGetPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCardanoGetPublicKey}, {}}; + +static void InitDefaultsCardanoPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::cardano::_CardanoPublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::cardano::CardanoPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::cardano::CardanoPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_CardanoPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCardanoPublicKey}, { + &protobuf_messages_2dcommon_2eproto::scc_info_HDNodeType.base,}}; + +static void InitDefaultsCardanoSignTx_CardanoTxInputType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::cardano::_CardanoSignTx_CardanoTxInputType_default_instance_; + new (ptr) ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CardanoSignTx_CardanoTxInputType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCardanoSignTx_CardanoTxInputType}, {}}; + +static void InitDefaultsCardanoSignTx_CardanoTxOutputType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::cardano::_CardanoSignTx_CardanoTxOutputType_default_instance_; + new (ptr) ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CardanoSignTx_CardanoTxOutputType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCardanoSignTx_CardanoTxOutputType}, {}}; + +static void InitDefaultsCardanoSignTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::cardano::_CardanoSignTx_default_instance_; + new (ptr) ::hw::trezor::messages::cardano::CardanoSignTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::cardano::CardanoSignTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_CardanoSignTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCardanoSignTx}, { + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoSignTx_CardanoTxInputType.base, + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoSignTx_CardanoTxOutputType.base,}}; + +static void InitDefaultsCardanoTxRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::cardano::_CardanoTxRequest_default_instance_; + new (ptr) ::hw::trezor::messages::cardano::CardanoTxRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::cardano::CardanoTxRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CardanoTxRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCardanoTxRequest}, {}}; + +static void InitDefaultsCardanoTxAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::cardano::_CardanoTxAck_default_instance_; + new (ptr) ::hw::trezor::messages::cardano::CardanoTxAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::cardano::CardanoTxAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CardanoTxAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCardanoTxAck}, {}}; + +static void InitDefaultsCardanoSignedTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::cardano::_CardanoSignedTx_default_instance_; + new (ptr) ::hw::trezor::messages::cardano::CardanoSignedTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::cardano::CardanoSignedTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CardanoSignedTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCardanoSignedTx}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_CardanoGetAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_CardanoAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_CardanoGetPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_CardanoPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_CardanoSignTx_CardanoTxInputType.base); + ::google::protobuf::internal::InitSCC(&scc_info_CardanoSignTx_CardanoTxOutputType.base); + ::google::protobuf::internal::InitSCC(&scc_info_CardanoSignTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_CardanoTxRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_CardanoTxAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_CardanoSignedTx.base); +} + +::google::protobuf::Metadata file_level_metadata[10]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoGetAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoGetAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoGetAddress, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoGetAddress, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoAddress, address_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoGetPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoGetPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoGetPublicKey, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoGetPublicKey, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoPublicKey, xpub_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoPublicKey, node_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType, prev_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType, prev_index_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType, type_), + ~0u, + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType, address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType, amount_), + 0, + ~0u, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx, inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx, outputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx, transactions_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignTx, protocol_magic_), + ~0u, + ~0u, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoTxRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoTxRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoTxRequest, tx_index_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoTxRequest, tx_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoTxRequest, tx_body_), + 2, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoTxAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoTxAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoTxAck, transaction_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignedTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignedTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignedTx, tx_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::cardano::CardanoSignedTx, tx_body_), + 0, + 1, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::hw::trezor::messages::cardano::CardanoGetAddress)}, + { 9, 15, sizeof(::hw::trezor::messages::cardano::CardanoAddress)}, + { 16, 23, sizeof(::hw::trezor::messages::cardano::CardanoGetPublicKey)}, + { 25, 32, sizeof(::hw::trezor::messages::cardano::CardanoPublicKey)}, + { 34, 43, sizeof(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType)}, + { 47, 55, sizeof(::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType)}, + { 58, 67, sizeof(::hw::trezor::messages::cardano::CardanoSignTx)}, + { 71, 79, sizeof(::hw::trezor::messages::cardano::CardanoTxRequest)}, + { 82, 88, sizeof(::hw::trezor::messages::cardano::CardanoTxAck)}, + { 89, 96, sizeof(::hw::trezor::messages::cardano::CardanoSignedTx)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::cardano::_CardanoGetAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::cardano::_CardanoAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::cardano::_CardanoGetPublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::cardano::_CardanoPublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::cardano::_CardanoSignTx_CardanoTxInputType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::cardano::_CardanoSignTx_CardanoTxOutputType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::cardano::_CardanoSignTx_default_instance_), + reinterpret_cast(&::hw::trezor::messages::cardano::_CardanoTxRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::cardano::_CardanoTxAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::cardano::_CardanoSignedTx_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-cardano.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 10); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\026messages-cardano.proto\022\032hw.trezor.mess" + "ages.cardano\032\025messages-common.proto\"<\n\021C" + "ardanoGetAddress\022\021\n\taddress_n\030\001 \003(\r\022\024\n\014s" + "how_display\030\002 \001(\010\"!\n\016CardanoAddress\022\017\n\007a" + "ddress\030\001 \001(\t\">\n\023CardanoGetPublicKey\022\021\n\ta" + "ddress_n\030\001 \003(\r\022\024\n\014show_display\030\002 \001(\010\"U\n\020" + "CardanoPublicKey\022\014\n\004xpub\030\001 \001(\t\0223\n\004node\030\002" + " \001(\0132%.hw.trezor.messages.common.HDNodeT" + "ype\"\212\003\n\rCardanoSignTx\022L\n\006inputs\030\001 \003(\0132<." + "hw.trezor.messages.cardano.CardanoSignTx" + ".CardanoTxInputType\022N\n\007outputs\030\002 \003(\0132=.h" + "w.trezor.messages.cardano.CardanoSignTx." + "CardanoTxOutputType\022\032\n\022transactions_coun" + "t\030\003 \001(\r\022\026\n\016protocol_magic\030\005 \001(\r\032\\\n\022Carda" + "noTxInputType\022\021\n\taddress_n\030\001 \003(\r\022\021\n\tprev" + "_hash\030\002 \001(\014\022\022\n\nprev_index\030\003 \001(\r\022\014\n\004type\030" + "\004 \001(\r\032I\n\023CardanoTxOutputType\022\017\n\007address\030" + "\001 \001(\t\022\021\n\taddress_n\030\002 \003(\r\022\016\n\006amount\030\003 \001(\004" + "\"F\n\020CardanoTxRequest\022\020\n\010tx_index\030\001 \001(\r\022\017" + "\n\007tx_hash\030\002 \001(\014\022\017\n\007tx_body\030\003 \001(\014\"#\n\014Card" + "anoTxAck\022\023\n\013transaction\030\001 \001(\014\"3\n\017Cardano" + "SignedTx\022\017\n\007tx_hash\030\001 \001(\014\022\017\n\007tx_body\030\002 \001" + "(\014B;\n#com.satoshilabs.trezor.lib.protobu" + "fB\024TrezorMessageCardano" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 943); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-cardano.proto", &protobuf_RegisterTypes); + ::protobuf_messages_2dcommon_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dcardano_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace cardano { + +// =================================================================== + +void CardanoGetAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CardanoGetAddress::kAddressNFieldNumber; +const int CardanoGetAddress::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CardanoGetAddress::CardanoGetAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoGetAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.cardano.CardanoGetAddress) +} +CardanoGetAddress::CardanoGetAddress(const CardanoGetAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.cardano.CardanoGetAddress) +} + +void CardanoGetAddress::SharedCtor() { + show_display_ = false; +} + +CardanoGetAddress::~CardanoGetAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.cardano.CardanoGetAddress) + SharedDtor(); +} + +void CardanoGetAddress::SharedDtor() { +} + +void CardanoGetAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CardanoGetAddress::descriptor() { + ::protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CardanoGetAddress& CardanoGetAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcardano_2eproto::scc_info_CardanoGetAddress.base); + return *internal_default_instance(); +} + + +void CardanoGetAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.cardano.CardanoGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CardanoGetAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.cardano.CardanoGetAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.cardano.CardanoGetAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.cardano.CardanoGetAddress) + return false; +#undef DO_ +} + +void CardanoGetAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.cardano.CardanoGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.cardano.CardanoGetAddress) +} + +::google::protobuf::uint8* CardanoGetAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.cardano.CardanoGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.cardano.CardanoGetAddress) + return target; +} + +size_t CardanoGetAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.cardano.CardanoGetAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CardanoGetAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.cardano.CardanoGetAddress) + GOOGLE_DCHECK_NE(&from, this); + const CardanoGetAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.cardano.CardanoGetAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.cardano.CardanoGetAddress) + MergeFrom(*source); + } +} + +void CardanoGetAddress::MergeFrom(const CardanoGetAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.cardano.CardanoGetAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void CardanoGetAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.cardano.CardanoGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CardanoGetAddress::CopyFrom(const CardanoGetAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.cardano.CardanoGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CardanoGetAddress::IsInitialized() const { + return true; +} + +void CardanoGetAddress::Swap(CardanoGetAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void CardanoGetAddress::InternalSwap(CardanoGetAddress* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CardanoGetAddress::GetMetadata() const { + protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CardanoAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CardanoAddress::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CardanoAddress::CardanoAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.cardano.CardanoAddress) +} +CardanoAddress::CardanoAddress(const CardanoAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.cardano.CardanoAddress) +} + +void CardanoAddress::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CardanoAddress::~CardanoAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.cardano.CardanoAddress) + SharedDtor(); +} + +void CardanoAddress::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CardanoAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CardanoAddress::descriptor() { + ::protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CardanoAddress& CardanoAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcardano_2eproto::scc_info_CardanoAddress.base); + return *internal_default_instance(); +} + + +void CardanoAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.cardano.CardanoAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CardanoAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.cardano.CardanoAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.cardano.CardanoAddress.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.cardano.CardanoAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.cardano.CardanoAddress) + return false; +#undef DO_ +} + +void CardanoAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.cardano.CardanoAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.cardano.CardanoAddress.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.cardano.CardanoAddress) +} + +::google::protobuf::uint8* CardanoAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.cardano.CardanoAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.cardano.CardanoAddress.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.cardano.CardanoAddress) + return target; +} + +size_t CardanoAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.cardano.CardanoAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CardanoAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.cardano.CardanoAddress) + GOOGLE_DCHECK_NE(&from, this); + const CardanoAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.cardano.CardanoAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.cardano.CardanoAddress) + MergeFrom(*source); + } +} + +void CardanoAddress::MergeFrom(const CardanoAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.cardano.CardanoAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_address()) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } +} + +void CardanoAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.cardano.CardanoAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CardanoAddress::CopyFrom(const CardanoAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.cardano.CardanoAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CardanoAddress::IsInitialized() const { + return true; +} + +void CardanoAddress::Swap(CardanoAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void CardanoAddress::InternalSwap(CardanoAddress* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CardanoAddress::GetMetadata() const { + protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CardanoGetPublicKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CardanoGetPublicKey::kAddressNFieldNumber; +const int CardanoGetPublicKey::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CardanoGetPublicKey::CardanoGetPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoGetPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.cardano.CardanoGetPublicKey) +} +CardanoGetPublicKey::CardanoGetPublicKey(const CardanoGetPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.cardano.CardanoGetPublicKey) +} + +void CardanoGetPublicKey::SharedCtor() { + show_display_ = false; +} + +CardanoGetPublicKey::~CardanoGetPublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.cardano.CardanoGetPublicKey) + SharedDtor(); +} + +void CardanoGetPublicKey::SharedDtor() { +} + +void CardanoGetPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CardanoGetPublicKey::descriptor() { + ::protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CardanoGetPublicKey& CardanoGetPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcardano_2eproto::scc_info_CardanoGetPublicKey.base); + return *internal_default_instance(); +} + + +void CardanoGetPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.cardano.CardanoGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CardanoGetPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.cardano.CardanoGetPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.cardano.CardanoGetPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.cardano.CardanoGetPublicKey) + return false; +#undef DO_ +} + +void CardanoGetPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.cardano.CardanoGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.cardano.CardanoGetPublicKey) +} + +::google::protobuf::uint8* CardanoGetPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.cardano.CardanoGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.cardano.CardanoGetPublicKey) + return target; +} + +size_t CardanoGetPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.cardano.CardanoGetPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CardanoGetPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.cardano.CardanoGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const CardanoGetPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.cardano.CardanoGetPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.cardano.CardanoGetPublicKey) + MergeFrom(*source); + } +} + +void CardanoGetPublicKey::MergeFrom(const CardanoGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.cardano.CardanoGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void CardanoGetPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.cardano.CardanoGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CardanoGetPublicKey::CopyFrom(const CardanoGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.cardano.CardanoGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CardanoGetPublicKey::IsInitialized() const { + return true; +} + +void CardanoGetPublicKey::Swap(CardanoGetPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void CardanoGetPublicKey::InternalSwap(CardanoGetPublicKey* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CardanoGetPublicKey::GetMetadata() const { + protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CardanoPublicKey::InitAsDefaultInstance() { + ::hw::trezor::messages::cardano::_CardanoPublicKey_default_instance_._instance.get_mutable()->node_ = const_cast< ::hw::trezor::messages::common::HDNodeType*>( + ::hw::trezor::messages::common::HDNodeType::internal_default_instance()); +} +void CardanoPublicKey::clear_node() { + if (node_ != NULL) node_->Clear(); + clear_has_node(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CardanoPublicKey::kXpubFieldNumber; +const int CardanoPublicKey::kNodeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CardanoPublicKey::CardanoPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.cardano.CardanoPublicKey) +} +CardanoPublicKey::CardanoPublicKey(const CardanoPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + xpub_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_xpub()) { + xpub_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.xpub_); + } + if (from.has_node()) { + node_ = new ::hw::trezor::messages::common::HDNodeType(*from.node_); + } else { + node_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.cardano.CardanoPublicKey) +} + +void CardanoPublicKey::SharedCtor() { + xpub_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + node_ = NULL; +} + +CardanoPublicKey::~CardanoPublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.cardano.CardanoPublicKey) + SharedDtor(); +} + +void CardanoPublicKey::SharedDtor() { + xpub_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete node_; +} + +void CardanoPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CardanoPublicKey::descriptor() { + ::protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CardanoPublicKey& CardanoPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcardano_2eproto::scc_info_CardanoPublicKey.base); + return *internal_default_instance(); +} + + +void CardanoPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.cardano.CardanoPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + xpub_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(node_ != NULL); + node_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CardanoPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.cardano.CardanoPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string xpub = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_xpub())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->xpub().data(), static_cast(this->xpub().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.cardano.CardanoPublicKey.xpub"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.common.HDNodeType node = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.cardano.CardanoPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.cardano.CardanoPublicKey) + return false; +#undef DO_ +} + +void CardanoPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.cardano.CardanoPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string xpub = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->xpub().data(), static_cast(this->xpub().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.cardano.CardanoPublicKey.xpub"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->xpub(), output); + } + + // optional .hw.trezor.messages.common.HDNodeType node = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_node(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.cardano.CardanoPublicKey) +} + +::google::protobuf::uint8* CardanoPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.cardano.CardanoPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string xpub = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->xpub().data(), static_cast(this->xpub().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.cardano.CardanoPublicKey.xpub"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->xpub(), target); + } + + // optional .hw.trezor.messages.common.HDNodeType node = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_node(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.cardano.CardanoPublicKey) + return target; +} + +size_t CardanoPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.cardano.CardanoPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional string xpub = 1; + if (has_xpub()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->xpub()); + } + + // optional .hw.trezor.messages.common.HDNodeType node = 2; + if (has_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *node_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CardanoPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.cardano.CardanoPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const CardanoPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.cardano.CardanoPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.cardano.CardanoPublicKey) + MergeFrom(*source); + } +} + +void CardanoPublicKey::MergeFrom(const CardanoPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.cardano.CardanoPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_xpub(); + xpub_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.xpub_); + } + if (cached_has_bits & 0x00000002u) { + mutable_node()->::hw::trezor::messages::common::HDNodeType::MergeFrom(from.node()); + } + } +} + +void CardanoPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.cardano.CardanoPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CardanoPublicKey::CopyFrom(const CardanoPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.cardano.CardanoPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CardanoPublicKey::IsInitialized() const { + if (has_node()) { + if (!this->node_->IsInitialized()) return false; + } + return true; +} + +void CardanoPublicKey::Swap(CardanoPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void CardanoPublicKey::InternalSwap(CardanoPublicKey* other) { + using std::swap; + xpub_.Swap(&other->xpub_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(node_, other->node_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CardanoPublicKey::GetMetadata() const { + protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CardanoSignTx_CardanoTxInputType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CardanoSignTx_CardanoTxInputType::kAddressNFieldNumber; +const int CardanoSignTx_CardanoTxInputType::kPrevHashFieldNumber; +const int CardanoSignTx_CardanoTxInputType::kPrevIndexFieldNumber; +const int CardanoSignTx_CardanoTxInputType::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CardanoSignTx_CardanoTxInputType::CardanoSignTx_CardanoTxInputType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoSignTx_CardanoTxInputType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) +} +CardanoSignTx_CardanoTxInputType::CardanoSignTx_CardanoTxInputType(const CardanoSignTx_CardanoTxInputType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + prev_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_prev_hash()) { + prev_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.prev_hash_); + } + ::memcpy(&prev_index_, &from.prev_index_, + static_cast(reinterpret_cast(&type_) - + reinterpret_cast(&prev_index_)) + sizeof(type_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) +} + +void CardanoSignTx_CardanoTxInputType::SharedCtor() { + prev_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&prev_index_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&prev_index_)) + sizeof(type_)); +} + +CardanoSignTx_CardanoTxInputType::~CardanoSignTx_CardanoTxInputType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + SharedDtor(); +} + +void CardanoSignTx_CardanoTxInputType::SharedDtor() { + prev_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CardanoSignTx_CardanoTxInputType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CardanoSignTx_CardanoTxInputType::descriptor() { + ::protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CardanoSignTx_CardanoTxInputType& CardanoSignTx_CardanoTxInputType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcardano_2eproto::scc_info_CardanoSignTx_CardanoTxInputType.base); + return *internal_default_instance(); +} + + +void CardanoSignTx_CardanoTxInputType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + prev_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 6u) { + ::memset(&prev_index_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&prev_index_)) + sizeof(type_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CardanoSignTx_CardanoTxInputType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes prev_hash = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_prev_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 prev_index = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_prev_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &prev_index_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 type = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &type_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + return false; +#undef DO_ +} + +void CardanoSignTx_CardanoTxInputType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bytes prev_hash = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->prev_hash(), output); + } + + // optional uint32 prev_index = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->prev_index(), output); + } + + // optional uint32 type = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) +} + +::google::protobuf::uint8* CardanoSignTx_CardanoTxInputType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bytes prev_hash = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->prev_hash(), target); + } + + // optional uint32 prev_index = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->prev_index(), target); + } + + // optional uint32 type = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + return target; +} + +size_t CardanoSignTx_CardanoTxInputType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 7u) { + // optional bytes prev_hash = 2; + if (has_prev_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->prev_hash()); + } + + // optional uint32 prev_index = 3; + if (has_prev_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->prev_index()); + } + + // optional uint32 type = 4; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CardanoSignTx_CardanoTxInputType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + GOOGLE_DCHECK_NE(&from, this); + const CardanoSignTx_CardanoTxInputType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + MergeFrom(*source); + } +} + +void CardanoSignTx_CardanoTxInputType::MergeFrom(const CardanoSignTx_CardanoTxInputType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_prev_hash(); + prev_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.prev_hash_); + } + if (cached_has_bits & 0x00000002u) { + prev_index_ = from.prev_index_; + } + if (cached_has_bits & 0x00000004u) { + type_ = from.type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void CardanoSignTx_CardanoTxInputType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CardanoSignTx_CardanoTxInputType::CopyFrom(const CardanoSignTx_CardanoTxInputType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CardanoSignTx_CardanoTxInputType::IsInitialized() const { + return true; +} + +void CardanoSignTx_CardanoTxInputType::Swap(CardanoSignTx_CardanoTxInputType* other) { + if (other == this) return; + InternalSwap(other); +} +void CardanoSignTx_CardanoTxInputType::InternalSwap(CardanoSignTx_CardanoTxInputType* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + prev_hash_.Swap(&other->prev_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(prev_index_, other->prev_index_); + swap(type_, other->type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CardanoSignTx_CardanoTxInputType::GetMetadata() const { + protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CardanoSignTx_CardanoTxOutputType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CardanoSignTx_CardanoTxOutputType::kAddressFieldNumber; +const int CardanoSignTx_CardanoTxOutputType::kAddressNFieldNumber; +const int CardanoSignTx_CardanoTxOutputType::kAmountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CardanoSignTx_CardanoTxOutputType::CardanoSignTx_CardanoTxOutputType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoSignTx_CardanoTxOutputType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) +} +CardanoSignTx_CardanoTxOutputType::CardanoSignTx_CardanoTxOutputType(const CardanoSignTx_CardanoTxOutputType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + amount_ = from.amount_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) +} + +void CardanoSignTx_CardanoTxOutputType::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_ = GOOGLE_ULONGLONG(0); +} + +CardanoSignTx_CardanoTxOutputType::~CardanoSignTx_CardanoTxOutputType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + SharedDtor(); +} + +void CardanoSignTx_CardanoTxOutputType::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CardanoSignTx_CardanoTxOutputType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CardanoSignTx_CardanoTxOutputType::descriptor() { + ::protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CardanoSignTx_CardanoTxOutputType& CardanoSignTx_CardanoTxOutputType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcardano_2eproto::scc_info_CardanoSignTx_CardanoTxOutputType.base); + return *internal_default_instance(); +} + + +void CardanoSignTx_CardanoTxOutputType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + amount_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CardanoSignTx_CardanoTxOutputType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address"); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 address_n = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 16u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 amount = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + return false; +#undef DO_ +} + +void CardanoSignTx_CardanoTxOutputType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + // repeated uint32 address_n = 2; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 2, this->address_n(i), output); + } + + // optional uint64 amount = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->amount(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) +} + +::google::protobuf::uint8* CardanoSignTx_CardanoTxOutputType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + // repeated uint32 address_n = 2; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(2, this->address_n_, target); + + // optional uint64 amount = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->amount(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + return target; +} + +size_t CardanoSignTx_CardanoTxOutputType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 2; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 3u) { + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + // optional uint64 amount = 3; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CardanoSignTx_CardanoTxOutputType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + GOOGLE_DCHECK_NE(&from, this); + const CardanoSignTx_CardanoTxOutputType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + MergeFrom(*source); + } +} + +void CardanoSignTx_CardanoTxOutputType::MergeFrom(const CardanoSignTx_CardanoTxOutputType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + if (cached_has_bits & 0x00000002u) { + amount_ = from.amount_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void CardanoSignTx_CardanoTxOutputType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CardanoSignTx_CardanoTxOutputType::CopyFrom(const CardanoSignTx_CardanoTxOutputType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CardanoSignTx_CardanoTxOutputType::IsInitialized() const { + return true; +} + +void CardanoSignTx_CardanoTxOutputType::Swap(CardanoSignTx_CardanoTxOutputType* other) { + if (other == this) return; + InternalSwap(other); +} +void CardanoSignTx_CardanoTxOutputType::InternalSwap(CardanoSignTx_CardanoTxOutputType* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(amount_, other->amount_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CardanoSignTx_CardanoTxOutputType::GetMetadata() const { + protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CardanoSignTx::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CardanoSignTx::kInputsFieldNumber; +const int CardanoSignTx::kOutputsFieldNumber; +const int CardanoSignTx::kTransactionsCountFieldNumber; +const int CardanoSignTx::kProtocolMagicFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CardanoSignTx::CardanoSignTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoSignTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.cardano.CardanoSignTx) +} +CardanoSignTx::CardanoSignTx(const CardanoSignTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + inputs_(from.inputs_), + outputs_(from.outputs_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&transactions_count_, &from.transactions_count_, + static_cast(reinterpret_cast(&protocol_magic_) - + reinterpret_cast(&transactions_count_)) + sizeof(protocol_magic_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.cardano.CardanoSignTx) +} + +void CardanoSignTx::SharedCtor() { + ::memset(&transactions_count_, 0, static_cast( + reinterpret_cast(&protocol_magic_) - + reinterpret_cast(&transactions_count_)) + sizeof(protocol_magic_)); +} + +CardanoSignTx::~CardanoSignTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.cardano.CardanoSignTx) + SharedDtor(); +} + +void CardanoSignTx::SharedDtor() { +} + +void CardanoSignTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CardanoSignTx::descriptor() { + ::protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CardanoSignTx& CardanoSignTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcardano_2eproto::scc_info_CardanoSignTx.base); + return *internal_default_instance(); +} + + +void CardanoSignTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.cardano.CardanoSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + inputs_.Clear(); + outputs_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&transactions_count_, 0, static_cast( + reinterpret_cast(&protocol_magic_) - + reinterpret_cast(&transactions_count_)) + sizeof(protocol_magic_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CardanoSignTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.cardano.CardanoSignTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType inputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType outputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 transactions_count = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_transactions_count(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &transactions_count_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 protocol_magic = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_protocol_magic(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &protocol_magic_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.cardano.CardanoSignTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.cardano.CardanoSignTx) + return false; +#undef DO_ +} + +void CardanoSignTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.cardano.CardanoSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType inputs = 1; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->inputs(static_cast(i)), + output); + } + + // repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType outputs = 2; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->outputs(static_cast(i)), + output); + } + + cached_has_bits = _has_bits_[0]; + // optional uint32 transactions_count = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->transactions_count(), output); + } + + // optional uint32 protocol_magic = 5; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->protocol_magic(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.cardano.CardanoSignTx) +} + +::google::protobuf::uint8* CardanoSignTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.cardano.CardanoSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType inputs = 1; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->inputs(static_cast(i)), deterministic, target); + } + + // repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType outputs = 2; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->outputs(static_cast(i)), deterministic, target); + } + + cached_has_bits = _has_bits_[0]; + // optional uint32 transactions_count = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->transactions_count(), target); + } + + // optional uint32 protocol_magic = 5; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->protocol_magic(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.cardano.CardanoSignTx) + return target; +} + +size_t CardanoSignTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.cardano.CardanoSignTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType inputs = 1; + { + unsigned int count = static_cast(this->inputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->inputs(static_cast(i))); + } + } + + // repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType outputs = 2; + { + unsigned int count = static_cast(this->outputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->outputs(static_cast(i))); + } + } + + if (_has_bits_[0 / 32] & 3u) { + // optional uint32 transactions_count = 3; + if (has_transactions_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->transactions_count()); + } + + // optional uint32 protocol_magic = 5; + if (has_protocol_magic()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->protocol_magic()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CardanoSignTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.cardano.CardanoSignTx) + GOOGLE_DCHECK_NE(&from, this); + const CardanoSignTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.cardano.CardanoSignTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.cardano.CardanoSignTx) + MergeFrom(*source); + } +} + +void CardanoSignTx::MergeFrom(const CardanoSignTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.cardano.CardanoSignTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + inputs_.MergeFrom(from.inputs_); + outputs_.MergeFrom(from.outputs_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + transactions_count_ = from.transactions_count_; + } + if (cached_has_bits & 0x00000002u) { + protocol_magic_ = from.protocol_magic_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void CardanoSignTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.cardano.CardanoSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CardanoSignTx::CopyFrom(const CardanoSignTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.cardano.CardanoSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CardanoSignTx::IsInitialized() const { + return true; +} + +void CardanoSignTx::Swap(CardanoSignTx* other) { + if (other == this) return; + InternalSwap(other); +} +void CardanoSignTx::InternalSwap(CardanoSignTx* other) { + using std::swap; + CastToBase(&inputs_)->InternalSwap(CastToBase(&other->inputs_)); + CastToBase(&outputs_)->InternalSwap(CastToBase(&other->outputs_)); + swap(transactions_count_, other->transactions_count_); + swap(protocol_magic_, other->protocol_magic_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CardanoSignTx::GetMetadata() const { + protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CardanoTxRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CardanoTxRequest::kTxIndexFieldNumber; +const int CardanoTxRequest::kTxHashFieldNumber; +const int CardanoTxRequest::kTxBodyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CardanoTxRequest::CardanoTxRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoTxRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.cardano.CardanoTxRequest) +} +CardanoTxRequest::CardanoTxRequest(const CardanoTxRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tx_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_hash()) { + tx_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_hash_); + } + tx_body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_body()) { + tx_body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_body_); + } + tx_index_ = from.tx_index_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.cardano.CardanoTxRequest) +} + +void CardanoTxRequest::SharedCtor() { + tx_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_index_ = 0u; +} + +CardanoTxRequest::~CardanoTxRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.cardano.CardanoTxRequest) + SharedDtor(); +} + +void CardanoTxRequest::SharedDtor() { + tx_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CardanoTxRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CardanoTxRequest::descriptor() { + ::protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CardanoTxRequest& CardanoTxRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcardano_2eproto::scc_info_CardanoTxRequest.base); + return *internal_default_instance(); +} + + +void CardanoTxRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.cardano.CardanoTxRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + tx_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + tx_body_.ClearNonDefaultToEmptyNoArena(); + } + } + tx_index_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CardanoTxRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.cardano.CardanoTxRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 tx_index = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_tx_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &tx_index_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_hash = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_body = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_body())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.cardano.CardanoTxRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.cardano.CardanoTxRequest) + return false; +#undef DO_ +} + +void CardanoTxRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.cardano.CardanoTxRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 tx_index = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->tx_index(), output); + } + + // optional bytes tx_hash = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->tx_hash(), output); + } + + // optional bytes tx_body = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->tx_body(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.cardano.CardanoTxRequest) +} + +::google::protobuf::uint8* CardanoTxRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.cardano.CardanoTxRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 tx_index = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->tx_index(), target); + } + + // optional bytes tx_hash = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->tx_hash(), target); + } + + // optional bytes tx_body = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->tx_body(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.cardano.CardanoTxRequest) + return target; +} + +size_t CardanoTxRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.cardano.CardanoTxRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes tx_hash = 2; + if (has_tx_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_hash()); + } + + // optional bytes tx_body = 3; + if (has_tx_body()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_body()); + } + + // optional uint32 tx_index = 1; + if (has_tx_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->tx_index()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CardanoTxRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.cardano.CardanoTxRequest) + GOOGLE_DCHECK_NE(&from, this); + const CardanoTxRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.cardano.CardanoTxRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.cardano.CardanoTxRequest) + MergeFrom(*source); + } +} + +void CardanoTxRequest::MergeFrom(const CardanoTxRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.cardano.CardanoTxRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_tx_hash(); + tx_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_hash_); + } + if (cached_has_bits & 0x00000002u) { + set_has_tx_body(); + tx_body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_body_); + } + if (cached_has_bits & 0x00000004u) { + tx_index_ = from.tx_index_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void CardanoTxRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.cardano.CardanoTxRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CardanoTxRequest::CopyFrom(const CardanoTxRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.cardano.CardanoTxRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CardanoTxRequest::IsInitialized() const { + return true; +} + +void CardanoTxRequest::Swap(CardanoTxRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void CardanoTxRequest::InternalSwap(CardanoTxRequest* other) { + using std::swap; + tx_hash_.Swap(&other->tx_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tx_body_.Swap(&other->tx_body_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(tx_index_, other->tx_index_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CardanoTxRequest::GetMetadata() const { + protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CardanoTxAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CardanoTxAck::kTransactionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CardanoTxAck::CardanoTxAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoTxAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.cardano.CardanoTxAck) +} +CardanoTxAck::CardanoTxAck(const CardanoTxAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_transaction()) { + transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.cardano.CardanoTxAck) +} + +void CardanoTxAck::SharedCtor() { + transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CardanoTxAck::~CardanoTxAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.cardano.CardanoTxAck) + SharedDtor(); +} + +void CardanoTxAck::SharedDtor() { + transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CardanoTxAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CardanoTxAck::descriptor() { + ::protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CardanoTxAck& CardanoTxAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcardano_2eproto::scc_info_CardanoTxAck.base); + return *internal_default_instance(); +} + + +void CardanoTxAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.cardano.CardanoTxAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + transaction_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CardanoTxAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.cardano.CardanoTxAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes transaction = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_transaction())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.cardano.CardanoTxAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.cardano.CardanoTxAck) + return false; +#undef DO_ +} + +void CardanoTxAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.cardano.CardanoTxAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes transaction = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->transaction(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.cardano.CardanoTxAck) +} + +::google::protobuf::uint8* CardanoTxAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.cardano.CardanoTxAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes transaction = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->transaction(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.cardano.CardanoTxAck) + return target; +} + +size_t CardanoTxAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.cardano.CardanoTxAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes transaction = 1; + if (has_transaction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->transaction()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CardanoTxAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.cardano.CardanoTxAck) + GOOGLE_DCHECK_NE(&from, this); + const CardanoTxAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.cardano.CardanoTxAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.cardano.CardanoTxAck) + MergeFrom(*source); + } +} + +void CardanoTxAck::MergeFrom(const CardanoTxAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.cardano.CardanoTxAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_transaction()) { + set_has_transaction(); + transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_); + } +} + +void CardanoTxAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.cardano.CardanoTxAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CardanoTxAck::CopyFrom(const CardanoTxAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.cardano.CardanoTxAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CardanoTxAck::IsInitialized() const { + return true; +} + +void CardanoTxAck::Swap(CardanoTxAck* other) { + if (other == this) return; + InternalSwap(other); +} +void CardanoTxAck::InternalSwap(CardanoTxAck* other) { + using std::swap; + transaction_.Swap(&other->transaction_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CardanoTxAck::GetMetadata() const { + protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CardanoSignedTx::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CardanoSignedTx::kTxHashFieldNumber; +const int CardanoSignedTx::kTxBodyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CardanoSignedTx::CardanoSignedTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcardano_2eproto::scc_info_CardanoSignedTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.cardano.CardanoSignedTx) +} +CardanoSignedTx::CardanoSignedTx(const CardanoSignedTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tx_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_hash()) { + tx_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_hash_); + } + tx_body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_body()) { + tx_body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_body_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.cardano.CardanoSignedTx) +} + +void CardanoSignedTx::SharedCtor() { + tx_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CardanoSignedTx::~CardanoSignedTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.cardano.CardanoSignedTx) + SharedDtor(); +} + +void CardanoSignedTx::SharedDtor() { + tx_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CardanoSignedTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CardanoSignedTx::descriptor() { + ::protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CardanoSignedTx& CardanoSignedTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcardano_2eproto::scc_info_CardanoSignedTx.base); + return *internal_default_instance(); +} + + +void CardanoSignedTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.cardano.CardanoSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + tx_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + tx_body_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CardanoSignedTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.cardano.CardanoSignedTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes tx_hash = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_body = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_body())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.cardano.CardanoSignedTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.cardano.CardanoSignedTx) + return false; +#undef DO_ +} + +void CardanoSignedTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.cardano.CardanoSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes tx_hash = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->tx_hash(), output); + } + + // optional bytes tx_body = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->tx_body(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.cardano.CardanoSignedTx) +} + +::google::protobuf::uint8* CardanoSignedTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.cardano.CardanoSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes tx_hash = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->tx_hash(), target); + } + + // optional bytes tx_body = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->tx_body(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.cardano.CardanoSignedTx) + return target; +} + +size_t CardanoSignedTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.cardano.CardanoSignedTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes tx_hash = 1; + if (has_tx_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_hash()); + } + + // optional bytes tx_body = 2; + if (has_tx_body()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_body()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CardanoSignedTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.cardano.CardanoSignedTx) + GOOGLE_DCHECK_NE(&from, this); + const CardanoSignedTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.cardano.CardanoSignedTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.cardano.CardanoSignedTx) + MergeFrom(*source); + } +} + +void CardanoSignedTx::MergeFrom(const CardanoSignedTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.cardano.CardanoSignedTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_tx_hash(); + tx_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_hash_); + } + if (cached_has_bits & 0x00000002u) { + set_has_tx_body(); + tx_body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_body_); + } + } +} + +void CardanoSignedTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.cardano.CardanoSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CardanoSignedTx::CopyFrom(const CardanoSignedTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.cardano.CardanoSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CardanoSignedTx::IsInitialized() const { + return true; +} + +void CardanoSignedTx::Swap(CardanoSignedTx* other) { + if (other == this) return; + InternalSwap(other); +} +void CardanoSignedTx::InternalSwap(CardanoSignedTx* other) { + using std::swap; + tx_hash_.Swap(&other->tx_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tx_body_.Swap(&other->tx_body_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CardanoSignedTx::GetMetadata() const { + protobuf_messages_2dcardano_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcardano_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace cardano +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::cardano::CardanoGetAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::cardano::CardanoGetAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::cardano::CardanoGetAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::cardano::CardanoAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::cardano::CardanoAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::cardano::CardanoAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::cardano::CardanoGetPublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::cardano::CardanoGetPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::cardano::CardanoGetPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::cardano::CardanoPublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::cardano::CardanoPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::cardano::CardanoPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType* Arena::CreateMaybeMessage< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType* Arena::CreateMaybeMessage< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::cardano::CardanoSignTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::cardano::CardanoSignTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::cardano::CardanoSignTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::cardano::CardanoTxRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::cardano::CardanoTxRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::cardano::CardanoTxRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::cardano::CardanoTxAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::cardano::CardanoTxAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::cardano::CardanoTxAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::cardano::CardanoSignedTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::cardano::CardanoSignedTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::cardano::CardanoSignedTx >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-cardano.pb.h b/src/Core/hardware/trezor/protob/messages-cardano.pb.h new file mode 100644 index 00000000..08722497 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-cardano.pb.h @@ -0,0 +1,2582 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-cardano.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dcardano_2eproto +#define PROTOBUF_INCLUDED_messages_2dcardano_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "messages-common.pb.h" +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dcardano_2eproto + +namespace protobuf_messages_2dcardano_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[10]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dcardano_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace cardano { +class CardanoAddress; +class CardanoAddressDefaultTypeInternal; +extern CardanoAddressDefaultTypeInternal _CardanoAddress_default_instance_; +class CardanoGetAddress; +class CardanoGetAddressDefaultTypeInternal; +extern CardanoGetAddressDefaultTypeInternal _CardanoGetAddress_default_instance_; +class CardanoGetPublicKey; +class CardanoGetPublicKeyDefaultTypeInternal; +extern CardanoGetPublicKeyDefaultTypeInternal _CardanoGetPublicKey_default_instance_; +class CardanoPublicKey; +class CardanoPublicKeyDefaultTypeInternal; +extern CardanoPublicKeyDefaultTypeInternal _CardanoPublicKey_default_instance_; +class CardanoSignTx; +class CardanoSignTxDefaultTypeInternal; +extern CardanoSignTxDefaultTypeInternal _CardanoSignTx_default_instance_; +class CardanoSignTx_CardanoTxInputType; +class CardanoSignTx_CardanoTxInputTypeDefaultTypeInternal; +extern CardanoSignTx_CardanoTxInputTypeDefaultTypeInternal _CardanoSignTx_CardanoTxInputType_default_instance_; +class CardanoSignTx_CardanoTxOutputType; +class CardanoSignTx_CardanoTxOutputTypeDefaultTypeInternal; +extern CardanoSignTx_CardanoTxOutputTypeDefaultTypeInternal _CardanoSignTx_CardanoTxOutputType_default_instance_; +class CardanoSignedTx; +class CardanoSignedTxDefaultTypeInternal; +extern CardanoSignedTxDefaultTypeInternal _CardanoSignedTx_default_instance_; +class CardanoTxAck; +class CardanoTxAckDefaultTypeInternal; +extern CardanoTxAckDefaultTypeInternal _CardanoTxAck_default_instance_; +class CardanoTxRequest; +class CardanoTxRequestDefaultTypeInternal; +extern CardanoTxRequestDefaultTypeInternal _CardanoTxRequest_default_instance_; +} // namespace cardano +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::cardano::CardanoAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::cardano::CardanoAddress>(Arena*); +template<> ::hw::trezor::messages::cardano::CardanoGetAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::cardano::CardanoGetAddress>(Arena*); +template<> ::hw::trezor::messages::cardano::CardanoGetPublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::cardano::CardanoGetPublicKey>(Arena*); +template<> ::hw::trezor::messages::cardano::CardanoPublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::cardano::CardanoPublicKey>(Arena*); +template<> ::hw::trezor::messages::cardano::CardanoSignTx* Arena::CreateMaybeMessage<::hw::trezor::messages::cardano::CardanoSignTx>(Arena*); +template<> ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType* Arena::CreateMaybeMessage<::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType>(Arena*); +template<> ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType* Arena::CreateMaybeMessage<::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType>(Arena*); +template<> ::hw::trezor::messages::cardano::CardanoSignedTx* Arena::CreateMaybeMessage<::hw::trezor::messages::cardano::CardanoSignedTx>(Arena*); +template<> ::hw::trezor::messages::cardano::CardanoTxAck* Arena::CreateMaybeMessage<::hw::trezor::messages::cardano::CardanoTxAck>(Arena*); +template<> ::hw::trezor::messages::cardano::CardanoTxRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::cardano::CardanoTxRequest>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace cardano { + +// =================================================================== + +class CardanoGetAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.cardano.CardanoGetAddress) */ { + public: + CardanoGetAddress(); + virtual ~CardanoGetAddress(); + + CardanoGetAddress(const CardanoGetAddress& from); + + inline CardanoGetAddress& operator=(const CardanoGetAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CardanoGetAddress(CardanoGetAddress&& from) noexcept + : CardanoGetAddress() { + *this = ::std::move(from); + } + + inline CardanoGetAddress& operator=(CardanoGetAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CardanoGetAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CardanoGetAddress* internal_default_instance() { + return reinterpret_cast( + &_CardanoGetAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(CardanoGetAddress* other); + friend void swap(CardanoGetAddress& a, CardanoGetAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CardanoGetAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + CardanoGetAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CardanoGetAddress& from); + void MergeFrom(const CardanoGetAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CardanoGetAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.cardano.CardanoGetAddress) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dcardano_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CardanoAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.cardano.CardanoAddress) */ { + public: + CardanoAddress(); + virtual ~CardanoAddress(); + + CardanoAddress(const CardanoAddress& from); + + inline CardanoAddress& operator=(const CardanoAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CardanoAddress(CardanoAddress&& from) noexcept + : CardanoAddress() { + *this = ::std::move(from); + } + + inline CardanoAddress& operator=(CardanoAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CardanoAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CardanoAddress* internal_default_instance() { + return reinterpret_cast( + &_CardanoAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(CardanoAddress* other); + friend void swap(CardanoAddress& a, CardanoAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CardanoAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + CardanoAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CardanoAddress& from); + void MergeFrom(const CardanoAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CardanoAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.cardano.CardanoAddress) + private: + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dcardano_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CardanoGetPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.cardano.CardanoGetPublicKey) */ { + public: + CardanoGetPublicKey(); + virtual ~CardanoGetPublicKey(); + + CardanoGetPublicKey(const CardanoGetPublicKey& from); + + inline CardanoGetPublicKey& operator=(const CardanoGetPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CardanoGetPublicKey(CardanoGetPublicKey&& from) noexcept + : CardanoGetPublicKey() { + *this = ::std::move(from); + } + + inline CardanoGetPublicKey& operator=(CardanoGetPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CardanoGetPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CardanoGetPublicKey* internal_default_instance() { + return reinterpret_cast( + &_CardanoGetPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(CardanoGetPublicKey* other); + friend void swap(CardanoGetPublicKey& a, CardanoGetPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CardanoGetPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + CardanoGetPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CardanoGetPublicKey& from); + void MergeFrom(const CardanoGetPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CardanoGetPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.cardano.CardanoGetPublicKey) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dcardano_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CardanoPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.cardano.CardanoPublicKey) */ { + public: + CardanoPublicKey(); + virtual ~CardanoPublicKey(); + + CardanoPublicKey(const CardanoPublicKey& from); + + inline CardanoPublicKey& operator=(const CardanoPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CardanoPublicKey(CardanoPublicKey&& from) noexcept + : CardanoPublicKey() { + *this = ::std::move(from); + } + + inline CardanoPublicKey& operator=(CardanoPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CardanoPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CardanoPublicKey* internal_default_instance() { + return reinterpret_cast( + &_CardanoPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(CardanoPublicKey* other); + friend void swap(CardanoPublicKey& a, CardanoPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CardanoPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + CardanoPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CardanoPublicKey& from); + void MergeFrom(const CardanoPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CardanoPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string xpub = 1; + bool has_xpub() const; + void clear_xpub(); + static const int kXpubFieldNumber = 1; + const ::std::string& xpub() const; + void set_xpub(const ::std::string& value); + #if LANG_CXX11 + void set_xpub(::std::string&& value); + #endif + void set_xpub(const char* value); + void set_xpub(const char* value, size_t size); + ::std::string* mutable_xpub(); + ::std::string* release_xpub(); + void set_allocated_xpub(::std::string* xpub); + + // optional .hw.trezor.messages.common.HDNodeType node = 2; + bool has_node() const; + void clear_node(); + static const int kNodeFieldNumber = 2; + private: + const ::hw::trezor::messages::common::HDNodeType& _internal_node() const; + public: + const ::hw::trezor::messages::common::HDNodeType& node() const; + ::hw::trezor::messages::common::HDNodeType* release_node(); + ::hw::trezor::messages::common::HDNodeType* mutable_node(); + void set_allocated_node(::hw::trezor::messages::common::HDNodeType* node); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.cardano.CardanoPublicKey) + private: + void set_has_xpub(); + void clear_has_xpub(); + void set_has_node(); + void clear_has_node(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr xpub_; + ::hw::trezor::messages::common::HDNodeType* node_; + friend struct ::protobuf_messages_2dcardano_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CardanoSignTx_CardanoTxInputType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) */ { + public: + CardanoSignTx_CardanoTxInputType(); + virtual ~CardanoSignTx_CardanoTxInputType(); + + CardanoSignTx_CardanoTxInputType(const CardanoSignTx_CardanoTxInputType& from); + + inline CardanoSignTx_CardanoTxInputType& operator=(const CardanoSignTx_CardanoTxInputType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CardanoSignTx_CardanoTxInputType(CardanoSignTx_CardanoTxInputType&& from) noexcept + : CardanoSignTx_CardanoTxInputType() { + *this = ::std::move(from); + } + + inline CardanoSignTx_CardanoTxInputType& operator=(CardanoSignTx_CardanoTxInputType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CardanoSignTx_CardanoTxInputType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CardanoSignTx_CardanoTxInputType* internal_default_instance() { + return reinterpret_cast( + &_CardanoSignTx_CardanoTxInputType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(CardanoSignTx_CardanoTxInputType* other); + friend void swap(CardanoSignTx_CardanoTxInputType& a, CardanoSignTx_CardanoTxInputType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CardanoSignTx_CardanoTxInputType* New() const final { + return CreateMaybeMessage(NULL); + } + + CardanoSignTx_CardanoTxInputType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CardanoSignTx_CardanoTxInputType& from); + void MergeFrom(const CardanoSignTx_CardanoTxInputType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CardanoSignTx_CardanoTxInputType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes prev_hash = 2; + bool has_prev_hash() const; + void clear_prev_hash(); + static const int kPrevHashFieldNumber = 2; + const ::std::string& prev_hash() const; + void set_prev_hash(const ::std::string& value); + #if LANG_CXX11 + void set_prev_hash(::std::string&& value); + #endif + void set_prev_hash(const char* value); + void set_prev_hash(const void* value, size_t size); + ::std::string* mutable_prev_hash(); + ::std::string* release_prev_hash(); + void set_allocated_prev_hash(::std::string* prev_hash); + + // optional uint32 prev_index = 3; + bool has_prev_index() const; + void clear_prev_index(); + static const int kPrevIndexFieldNumber = 3; + ::google::protobuf::uint32 prev_index() const; + void set_prev_index(::google::protobuf::uint32 value); + + // optional uint32 type = 4; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 4; + ::google::protobuf::uint32 type() const; + void set_type(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType) + private: + void set_has_prev_hash(); + void clear_has_prev_hash(); + void set_has_prev_index(); + void clear_has_prev_index(); + void set_has_type(); + void clear_has_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr prev_hash_; + ::google::protobuf::uint32 prev_index_; + ::google::protobuf::uint32 type_; + friend struct ::protobuf_messages_2dcardano_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CardanoSignTx_CardanoTxOutputType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) */ { + public: + CardanoSignTx_CardanoTxOutputType(); + virtual ~CardanoSignTx_CardanoTxOutputType(); + + CardanoSignTx_CardanoTxOutputType(const CardanoSignTx_CardanoTxOutputType& from); + + inline CardanoSignTx_CardanoTxOutputType& operator=(const CardanoSignTx_CardanoTxOutputType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CardanoSignTx_CardanoTxOutputType(CardanoSignTx_CardanoTxOutputType&& from) noexcept + : CardanoSignTx_CardanoTxOutputType() { + *this = ::std::move(from); + } + + inline CardanoSignTx_CardanoTxOutputType& operator=(CardanoSignTx_CardanoTxOutputType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CardanoSignTx_CardanoTxOutputType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CardanoSignTx_CardanoTxOutputType* internal_default_instance() { + return reinterpret_cast( + &_CardanoSignTx_CardanoTxOutputType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(CardanoSignTx_CardanoTxOutputType* other); + friend void swap(CardanoSignTx_CardanoTxOutputType& a, CardanoSignTx_CardanoTxOutputType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CardanoSignTx_CardanoTxOutputType* New() const final { + return CreateMaybeMessage(NULL); + } + + CardanoSignTx_CardanoTxOutputType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CardanoSignTx_CardanoTxOutputType& from); + void MergeFrom(const CardanoSignTx_CardanoTxOutputType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CardanoSignTx_CardanoTxOutputType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 2; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 2; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // optional uint64 amount = 3; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 3; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType) + private: + void set_has_address(); + void clear_has_address(); + void set_has_amount(); + void clear_has_amount(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr address_; + ::google::protobuf::uint64 amount_; + friend struct ::protobuf_messages_2dcardano_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CardanoSignTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.cardano.CardanoSignTx) */ { + public: + CardanoSignTx(); + virtual ~CardanoSignTx(); + + CardanoSignTx(const CardanoSignTx& from); + + inline CardanoSignTx& operator=(const CardanoSignTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CardanoSignTx(CardanoSignTx&& from) noexcept + : CardanoSignTx() { + *this = ::std::move(from); + } + + inline CardanoSignTx& operator=(CardanoSignTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CardanoSignTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CardanoSignTx* internal_default_instance() { + return reinterpret_cast( + &_CardanoSignTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(CardanoSignTx* other); + friend void swap(CardanoSignTx& a, CardanoSignTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CardanoSignTx* New() const final { + return CreateMaybeMessage(NULL); + } + + CardanoSignTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CardanoSignTx& from); + void MergeFrom(const CardanoSignTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CardanoSignTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef CardanoSignTx_CardanoTxInputType CardanoTxInputType; + typedef CardanoSignTx_CardanoTxOutputType CardanoTxOutputType; + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType inputs = 1; + int inputs_size() const; + void clear_inputs(); + static const int kInputsFieldNumber = 1; + ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType* mutable_inputs(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType >* + mutable_inputs(); + const ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType& inputs(int index) const; + ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType* add_inputs(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType >& + inputs() const; + + // repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType outputs = 2; + int outputs_size() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 2; + ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType* mutable_outputs(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType >* + mutable_outputs(); + const ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType& outputs(int index) const; + ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType* add_outputs(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType >& + outputs() const; + + // optional uint32 transactions_count = 3; + bool has_transactions_count() const; + void clear_transactions_count(); + static const int kTransactionsCountFieldNumber = 3; + ::google::protobuf::uint32 transactions_count() const; + void set_transactions_count(::google::protobuf::uint32 value); + + // optional uint32 protocol_magic = 5; + bool has_protocol_magic() const; + void clear_protocol_magic(); + static const int kProtocolMagicFieldNumber = 5; + ::google::protobuf::uint32 protocol_magic() const; + void set_protocol_magic(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.cardano.CardanoSignTx) + private: + void set_has_transactions_count(); + void clear_has_transactions_count(); + void set_has_protocol_magic(); + void clear_has_protocol_magic(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType > inputs_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType > outputs_; + ::google::protobuf::uint32 transactions_count_; + ::google::protobuf::uint32 protocol_magic_; + friend struct ::protobuf_messages_2dcardano_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CardanoTxRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.cardano.CardanoTxRequest) */ { + public: + CardanoTxRequest(); + virtual ~CardanoTxRequest(); + + CardanoTxRequest(const CardanoTxRequest& from); + + inline CardanoTxRequest& operator=(const CardanoTxRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CardanoTxRequest(CardanoTxRequest&& from) noexcept + : CardanoTxRequest() { + *this = ::std::move(from); + } + + inline CardanoTxRequest& operator=(CardanoTxRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CardanoTxRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CardanoTxRequest* internal_default_instance() { + return reinterpret_cast( + &_CardanoTxRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(CardanoTxRequest* other); + friend void swap(CardanoTxRequest& a, CardanoTxRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CardanoTxRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + CardanoTxRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CardanoTxRequest& from); + void MergeFrom(const CardanoTxRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CardanoTxRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes tx_hash = 2; + bool has_tx_hash() const; + void clear_tx_hash(); + static const int kTxHashFieldNumber = 2; + const ::std::string& tx_hash() const; + void set_tx_hash(const ::std::string& value); + #if LANG_CXX11 + void set_tx_hash(::std::string&& value); + #endif + void set_tx_hash(const char* value); + void set_tx_hash(const void* value, size_t size); + ::std::string* mutable_tx_hash(); + ::std::string* release_tx_hash(); + void set_allocated_tx_hash(::std::string* tx_hash); + + // optional bytes tx_body = 3; + bool has_tx_body() const; + void clear_tx_body(); + static const int kTxBodyFieldNumber = 3; + const ::std::string& tx_body() const; + void set_tx_body(const ::std::string& value); + #if LANG_CXX11 + void set_tx_body(::std::string&& value); + #endif + void set_tx_body(const char* value); + void set_tx_body(const void* value, size_t size); + ::std::string* mutable_tx_body(); + ::std::string* release_tx_body(); + void set_allocated_tx_body(::std::string* tx_body); + + // optional uint32 tx_index = 1; + bool has_tx_index() const; + void clear_tx_index(); + static const int kTxIndexFieldNumber = 1; + ::google::protobuf::uint32 tx_index() const; + void set_tx_index(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.cardano.CardanoTxRequest) + private: + void set_has_tx_index(); + void clear_has_tx_index(); + void set_has_tx_hash(); + void clear_has_tx_hash(); + void set_has_tx_body(); + void clear_has_tx_body(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr tx_hash_; + ::google::protobuf::internal::ArenaStringPtr tx_body_; + ::google::protobuf::uint32 tx_index_; + friend struct ::protobuf_messages_2dcardano_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CardanoTxAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.cardano.CardanoTxAck) */ { + public: + CardanoTxAck(); + virtual ~CardanoTxAck(); + + CardanoTxAck(const CardanoTxAck& from); + + inline CardanoTxAck& operator=(const CardanoTxAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CardanoTxAck(CardanoTxAck&& from) noexcept + : CardanoTxAck() { + *this = ::std::move(from); + } + + inline CardanoTxAck& operator=(CardanoTxAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CardanoTxAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CardanoTxAck* internal_default_instance() { + return reinterpret_cast( + &_CardanoTxAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(CardanoTxAck* other); + friend void swap(CardanoTxAck& a, CardanoTxAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CardanoTxAck* New() const final { + return CreateMaybeMessage(NULL); + } + + CardanoTxAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CardanoTxAck& from); + void MergeFrom(const CardanoTxAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CardanoTxAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes transaction = 1; + bool has_transaction() const; + void clear_transaction(); + static const int kTransactionFieldNumber = 1; + const ::std::string& transaction() const; + void set_transaction(const ::std::string& value); + #if LANG_CXX11 + void set_transaction(::std::string&& value); + #endif + void set_transaction(const char* value); + void set_transaction(const void* value, size_t size); + ::std::string* mutable_transaction(); + ::std::string* release_transaction(); + void set_allocated_transaction(::std::string* transaction); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.cardano.CardanoTxAck) + private: + void set_has_transaction(); + void clear_has_transaction(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr transaction_; + friend struct ::protobuf_messages_2dcardano_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CardanoSignedTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.cardano.CardanoSignedTx) */ { + public: + CardanoSignedTx(); + virtual ~CardanoSignedTx(); + + CardanoSignedTx(const CardanoSignedTx& from); + + inline CardanoSignedTx& operator=(const CardanoSignedTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CardanoSignedTx(CardanoSignedTx&& from) noexcept + : CardanoSignedTx() { + *this = ::std::move(from); + } + + inline CardanoSignedTx& operator=(CardanoSignedTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CardanoSignedTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CardanoSignedTx* internal_default_instance() { + return reinterpret_cast( + &_CardanoSignedTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(CardanoSignedTx* other); + friend void swap(CardanoSignedTx& a, CardanoSignedTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CardanoSignedTx* New() const final { + return CreateMaybeMessage(NULL); + } + + CardanoSignedTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CardanoSignedTx& from); + void MergeFrom(const CardanoSignedTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CardanoSignedTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes tx_hash = 1; + bool has_tx_hash() const; + void clear_tx_hash(); + static const int kTxHashFieldNumber = 1; + const ::std::string& tx_hash() const; + void set_tx_hash(const ::std::string& value); + #if LANG_CXX11 + void set_tx_hash(::std::string&& value); + #endif + void set_tx_hash(const char* value); + void set_tx_hash(const void* value, size_t size); + ::std::string* mutable_tx_hash(); + ::std::string* release_tx_hash(); + void set_allocated_tx_hash(::std::string* tx_hash); + + // optional bytes tx_body = 2; + bool has_tx_body() const; + void clear_tx_body(); + static const int kTxBodyFieldNumber = 2; + const ::std::string& tx_body() const; + void set_tx_body(const ::std::string& value); + #if LANG_CXX11 + void set_tx_body(::std::string&& value); + #endif + void set_tx_body(const char* value); + void set_tx_body(const void* value, size_t size); + ::std::string* mutable_tx_body(); + ::std::string* release_tx_body(); + void set_allocated_tx_body(::std::string* tx_body); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.cardano.CardanoSignedTx) + private: + void set_has_tx_hash(); + void clear_has_tx_hash(); + void set_has_tx_body(); + void clear_has_tx_body(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr tx_hash_; + ::google::protobuf::internal::ArenaStringPtr tx_body_; + friend struct ::protobuf_messages_2dcardano_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// CardanoGetAddress + +// repeated uint32 address_n = 1; +inline int CardanoGetAddress::address_n_size() const { + return address_n_.size(); +} +inline void CardanoGetAddress::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 CardanoGetAddress::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoGetAddress.address_n) + return address_n_.Get(index); +} +inline void CardanoGetAddress::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoGetAddress.address_n) +} +inline void CardanoGetAddress::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.cardano.CardanoGetAddress.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +CardanoGetAddress::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.cardano.CardanoGetAddress.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +CardanoGetAddress::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.cardano.CardanoGetAddress.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool CardanoGetAddress::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CardanoGetAddress::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void CardanoGetAddress::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CardanoGetAddress::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool CardanoGetAddress::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoGetAddress.show_display) + return show_display_; +} +inline void CardanoGetAddress::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoGetAddress.show_display) +} + +// ------------------------------------------------------------------- + +// CardanoAddress + +// optional string address = 1; +inline bool CardanoAddress::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CardanoAddress::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void CardanoAddress::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CardanoAddress::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& CardanoAddress::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoAddress.address) + return address_.GetNoArena(); +} +inline void CardanoAddress::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoAddress.address) +} +#if LANG_CXX11 +inline void CardanoAddress::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.cardano.CardanoAddress.address) +} +#endif +inline void CardanoAddress::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.cardano.CardanoAddress.address) +} +inline void CardanoAddress::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.cardano.CardanoAddress.address) +} +inline ::std::string* CardanoAddress::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoAddress.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CardanoAddress::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.cardano.CardanoAddress.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CardanoAddress::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.cardano.CardanoAddress.address) +} + +// ------------------------------------------------------------------- + +// CardanoGetPublicKey + +// repeated uint32 address_n = 1; +inline int CardanoGetPublicKey::address_n_size() const { + return address_n_.size(); +} +inline void CardanoGetPublicKey::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 CardanoGetPublicKey::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoGetPublicKey.address_n) + return address_n_.Get(index); +} +inline void CardanoGetPublicKey::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoGetPublicKey.address_n) +} +inline void CardanoGetPublicKey::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.cardano.CardanoGetPublicKey.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +CardanoGetPublicKey::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.cardano.CardanoGetPublicKey.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +CardanoGetPublicKey::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.cardano.CardanoGetPublicKey.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool CardanoGetPublicKey::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CardanoGetPublicKey::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void CardanoGetPublicKey::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CardanoGetPublicKey::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool CardanoGetPublicKey::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoGetPublicKey.show_display) + return show_display_; +} +inline void CardanoGetPublicKey::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoGetPublicKey.show_display) +} + +// ------------------------------------------------------------------- + +// CardanoPublicKey + +// optional string xpub = 1; +inline bool CardanoPublicKey::has_xpub() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CardanoPublicKey::set_has_xpub() { + _has_bits_[0] |= 0x00000001u; +} +inline void CardanoPublicKey::clear_has_xpub() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CardanoPublicKey::clear_xpub() { + xpub_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_xpub(); +} +inline const ::std::string& CardanoPublicKey::xpub() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoPublicKey.xpub) + return xpub_.GetNoArena(); +} +inline void CardanoPublicKey::set_xpub(const ::std::string& value) { + set_has_xpub(); + xpub_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoPublicKey.xpub) +} +#if LANG_CXX11 +inline void CardanoPublicKey::set_xpub(::std::string&& value) { + set_has_xpub(); + xpub_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.cardano.CardanoPublicKey.xpub) +} +#endif +inline void CardanoPublicKey::set_xpub(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_xpub(); + xpub_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.cardano.CardanoPublicKey.xpub) +} +inline void CardanoPublicKey::set_xpub(const char* value, size_t size) { + set_has_xpub(); + xpub_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.cardano.CardanoPublicKey.xpub) +} +inline ::std::string* CardanoPublicKey::mutable_xpub() { + set_has_xpub(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoPublicKey.xpub) + return xpub_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CardanoPublicKey::release_xpub() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.cardano.CardanoPublicKey.xpub) + if (!has_xpub()) { + return NULL; + } + clear_has_xpub(); + return xpub_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CardanoPublicKey::set_allocated_xpub(::std::string* xpub) { + if (xpub != NULL) { + set_has_xpub(); + } else { + clear_has_xpub(); + } + xpub_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xpub); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.cardano.CardanoPublicKey.xpub) +} + +// optional .hw.trezor.messages.common.HDNodeType node = 2; +inline bool CardanoPublicKey::has_node() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CardanoPublicKey::set_has_node() { + _has_bits_[0] |= 0x00000002u; +} +inline void CardanoPublicKey::clear_has_node() { + _has_bits_[0] &= ~0x00000002u; +} +inline const ::hw::trezor::messages::common::HDNodeType& CardanoPublicKey::_internal_node() const { + return *node_; +} +inline const ::hw::trezor::messages::common::HDNodeType& CardanoPublicKey::node() const { + const ::hw::trezor::messages::common::HDNodeType* p = node_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoPublicKey.node) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::common::_HDNodeType_default_instance_); +} +inline ::hw::trezor::messages::common::HDNodeType* CardanoPublicKey::release_node() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.cardano.CardanoPublicKey.node) + clear_has_node(); + ::hw::trezor::messages::common::HDNodeType* temp = node_; + node_ = NULL; + return temp; +} +inline ::hw::trezor::messages::common::HDNodeType* CardanoPublicKey::mutable_node() { + set_has_node(); + if (node_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::common::HDNodeType>(GetArenaNoVirtual()); + node_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoPublicKey.node) + return node_; +} +inline void CardanoPublicKey::set_allocated_node(::hw::trezor::messages::common::HDNodeType* node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(node_); + } + if (node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node, submessage_arena); + } + set_has_node(); + } else { + clear_has_node(); + } + node_ = node; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.cardano.CardanoPublicKey.node) +} + +// ------------------------------------------------------------------- + +// CardanoSignTx_CardanoTxInputType + +// repeated uint32 address_n = 1; +inline int CardanoSignTx_CardanoTxInputType::address_n_size() const { + return address_n_.size(); +} +inline void CardanoSignTx_CardanoTxInputType::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 CardanoSignTx_CardanoTxInputType::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.address_n) + return address_n_.Get(index); +} +inline void CardanoSignTx_CardanoTxInputType::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.address_n) +} +inline void CardanoSignTx_CardanoTxInputType::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +CardanoSignTx_CardanoTxInputType::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +CardanoSignTx_CardanoTxInputType::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.address_n) + return &address_n_; +} + +// optional bytes prev_hash = 2; +inline bool CardanoSignTx_CardanoTxInputType::has_prev_hash() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CardanoSignTx_CardanoTxInputType::set_has_prev_hash() { + _has_bits_[0] |= 0x00000001u; +} +inline void CardanoSignTx_CardanoTxInputType::clear_has_prev_hash() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CardanoSignTx_CardanoTxInputType::clear_prev_hash() { + prev_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_prev_hash(); +} +inline const ::std::string& CardanoSignTx_CardanoTxInputType::prev_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.prev_hash) + return prev_hash_.GetNoArena(); +} +inline void CardanoSignTx_CardanoTxInputType::set_prev_hash(const ::std::string& value) { + set_has_prev_hash(); + prev_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.prev_hash) +} +#if LANG_CXX11 +inline void CardanoSignTx_CardanoTxInputType::set_prev_hash(::std::string&& value) { + set_has_prev_hash(); + prev_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.prev_hash) +} +#endif +inline void CardanoSignTx_CardanoTxInputType::set_prev_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_prev_hash(); + prev_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.prev_hash) +} +inline void CardanoSignTx_CardanoTxInputType::set_prev_hash(const void* value, size_t size) { + set_has_prev_hash(); + prev_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.prev_hash) +} +inline ::std::string* CardanoSignTx_CardanoTxInputType::mutable_prev_hash() { + set_has_prev_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.prev_hash) + return prev_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CardanoSignTx_CardanoTxInputType::release_prev_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.prev_hash) + if (!has_prev_hash()) { + return NULL; + } + clear_has_prev_hash(); + return prev_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CardanoSignTx_CardanoTxInputType::set_allocated_prev_hash(::std::string* prev_hash) { + if (prev_hash != NULL) { + set_has_prev_hash(); + } else { + clear_has_prev_hash(); + } + prev_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), prev_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.prev_hash) +} + +// optional uint32 prev_index = 3; +inline bool CardanoSignTx_CardanoTxInputType::has_prev_index() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CardanoSignTx_CardanoTxInputType::set_has_prev_index() { + _has_bits_[0] |= 0x00000002u; +} +inline void CardanoSignTx_CardanoTxInputType::clear_has_prev_index() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CardanoSignTx_CardanoTxInputType::clear_prev_index() { + prev_index_ = 0u; + clear_has_prev_index(); +} +inline ::google::protobuf::uint32 CardanoSignTx_CardanoTxInputType::prev_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.prev_index) + return prev_index_; +} +inline void CardanoSignTx_CardanoTxInputType::set_prev_index(::google::protobuf::uint32 value) { + set_has_prev_index(); + prev_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.prev_index) +} + +// optional uint32 type = 4; +inline bool CardanoSignTx_CardanoTxInputType::has_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CardanoSignTx_CardanoTxInputType::set_has_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void CardanoSignTx_CardanoTxInputType::clear_has_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CardanoSignTx_CardanoTxInputType::clear_type() { + type_ = 0u; + clear_has_type(); +} +inline ::google::protobuf::uint32 CardanoSignTx_CardanoTxInputType::type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.type) + return type_; +} +inline void CardanoSignTx_CardanoTxInputType::set_type(::google::protobuf::uint32 value) { + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType.type) +} + +// ------------------------------------------------------------------- + +// CardanoSignTx_CardanoTxOutputType + +// optional string address = 1; +inline bool CardanoSignTx_CardanoTxOutputType::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CardanoSignTx_CardanoTxOutputType::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void CardanoSignTx_CardanoTxOutputType::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CardanoSignTx_CardanoTxOutputType::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& CardanoSignTx_CardanoTxOutputType::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address) + return address_.GetNoArena(); +} +inline void CardanoSignTx_CardanoTxOutputType::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address) +} +#if LANG_CXX11 +inline void CardanoSignTx_CardanoTxOutputType::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address) +} +#endif +inline void CardanoSignTx_CardanoTxOutputType::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address) +} +inline void CardanoSignTx_CardanoTxOutputType::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address) +} +inline ::std::string* CardanoSignTx_CardanoTxOutputType::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CardanoSignTx_CardanoTxOutputType::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CardanoSignTx_CardanoTxOutputType::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address) +} + +// repeated uint32 address_n = 2; +inline int CardanoSignTx_CardanoTxOutputType::address_n_size() const { + return address_n_.size(); +} +inline void CardanoSignTx_CardanoTxOutputType::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 CardanoSignTx_CardanoTxOutputType::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address_n) + return address_n_.Get(index); +} +inline void CardanoSignTx_CardanoTxOutputType::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address_n) +} +inline void CardanoSignTx_CardanoTxOutputType::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +CardanoSignTx_CardanoTxOutputType::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +CardanoSignTx_CardanoTxOutputType::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.address_n) + return &address_n_; +} + +// optional uint64 amount = 3; +inline bool CardanoSignTx_CardanoTxOutputType::has_amount() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CardanoSignTx_CardanoTxOutputType::set_has_amount() { + _has_bits_[0] |= 0x00000002u; +} +inline void CardanoSignTx_CardanoTxOutputType::clear_has_amount() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CardanoSignTx_CardanoTxOutputType::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 CardanoSignTx_CardanoTxOutputType::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.amount) + return amount_; +} +inline void CardanoSignTx_CardanoTxOutputType::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType.amount) +} + +// ------------------------------------------------------------------- + +// CardanoSignTx + +// repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxInputType inputs = 1; +inline int CardanoSignTx::inputs_size() const { + return inputs_.size(); +} +inline void CardanoSignTx::clear_inputs() { + inputs_.Clear(); +} +inline ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType* CardanoSignTx::mutable_inputs(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoSignTx.inputs) + return inputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType >* +CardanoSignTx::mutable_inputs() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.cardano.CardanoSignTx.inputs) + return &inputs_; +} +inline const ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType& CardanoSignTx::inputs(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignTx.inputs) + return inputs_.Get(index); +} +inline ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType* CardanoSignTx::add_inputs() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.cardano.CardanoSignTx.inputs) + return inputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxInputType >& +CardanoSignTx::inputs() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.cardano.CardanoSignTx.inputs) + return inputs_; +} + +// repeated .hw.trezor.messages.cardano.CardanoSignTx.CardanoTxOutputType outputs = 2; +inline int CardanoSignTx::outputs_size() const { + return outputs_.size(); +} +inline void CardanoSignTx::clear_outputs() { + outputs_.Clear(); +} +inline ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType* CardanoSignTx::mutable_outputs(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoSignTx.outputs) + return outputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType >* +CardanoSignTx::mutable_outputs() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.cardano.CardanoSignTx.outputs) + return &outputs_; +} +inline const ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType& CardanoSignTx::outputs(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignTx.outputs) + return outputs_.Get(index); +} +inline ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType* CardanoSignTx::add_outputs() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.cardano.CardanoSignTx.outputs) + return outputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::cardano::CardanoSignTx_CardanoTxOutputType >& +CardanoSignTx::outputs() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.cardano.CardanoSignTx.outputs) + return outputs_; +} + +// optional uint32 transactions_count = 3; +inline bool CardanoSignTx::has_transactions_count() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CardanoSignTx::set_has_transactions_count() { + _has_bits_[0] |= 0x00000001u; +} +inline void CardanoSignTx::clear_has_transactions_count() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CardanoSignTx::clear_transactions_count() { + transactions_count_ = 0u; + clear_has_transactions_count(); +} +inline ::google::protobuf::uint32 CardanoSignTx::transactions_count() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignTx.transactions_count) + return transactions_count_; +} +inline void CardanoSignTx::set_transactions_count(::google::protobuf::uint32 value) { + set_has_transactions_count(); + transactions_count_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoSignTx.transactions_count) +} + +// optional uint32 protocol_magic = 5; +inline bool CardanoSignTx::has_protocol_magic() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CardanoSignTx::set_has_protocol_magic() { + _has_bits_[0] |= 0x00000002u; +} +inline void CardanoSignTx::clear_has_protocol_magic() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CardanoSignTx::clear_protocol_magic() { + protocol_magic_ = 0u; + clear_has_protocol_magic(); +} +inline ::google::protobuf::uint32 CardanoSignTx::protocol_magic() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignTx.protocol_magic) + return protocol_magic_; +} +inline void CardanoSignTx::set_protocol_magic(::google::protobuf::uint32 value) { + set_has_protocol_magic(); + protocol_magic_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoSignTx.protocol_magic) +} + +// ------------------------------------------------------------------- + +// CardanoTxRequest + +// optional uint32 tx_index = 1; +inline bool CardanoTxRequest::has_tx_index() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CardanoTxRequest::set_has_tx_index() { + _has_bits_[0] |= 0x00000004u; +} +inline void CardanoTxRequest::clear_has_tx_index() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CardanoTxRequest::clear_tx_index() { + tx_index_ = 0u; + clear_has_tx_index(); +} +inline ::google::protobuf::uint32 CardanoTxRequest::tx_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoTxRequest.tx_index) + return tx_index_; +} +inline void CardanoTxRequest::set_tx_index(::google::protobuf::uint32 value) { + set_has_tx_index(); + tx_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoTxRequest.tx_index) +} + +// optional bytes tx_hash = 2; +inline bool CardanoTxRequest::has_tx_hash() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CardanoTxRequest::set_has_tx_hash() { + _has_bits_[0] |= 0x00000001u; +} +inline void CardanoTxRequest::clear_has_tx_hash() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CardanoTxRequest::clear_tx_hash() { + tx_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_hash(); +} +inline const ::std::string& CardanoTxRequest::tx_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoTxRequest.tx_hash) + return tx_hash_.GetNoArena(); +} +inline void CardanoTxRequest::set_tx_hash(const ::std::string& value) { + set_has_tx_hash(); + tx_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoTxRequest.tx_hash) +} +#if LANG_CXX11 +inline void CardanoTxRequest::set_tx_hash(::std::string&& value) { + set_has_tx_hash(); + tx_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.cardano.CardanoTxRequest.tx_hash) +} +#endif +inline void CardanoTxRequest::set_tx_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_hash(); + tx_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.cardano.CardanoTxRequest.tx_hash) +} +inline void CardanoTxRequest::set_tx_hash(const void* value, size_t size) { + set_has_tx_hash(); + tx_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.cardano.CardanoTxRequest.tx_hash) +} +inline ::std::string* CardanoTxRequest::mutable_tx_hash() { + set_has_tx_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoTxRequest.tx_hash) + return tx_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CardanoTxRequest::release_tx_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.cardano.CardanoTxRequest.tx_hash) + if (!has_tx_hash()) { + return NULL; + } + clear_has_tx_hash(); + return tx_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CardanoTxRequest::set_allocated_tx_hash(::std::string* tx_hash) { + if (tx_hash != NULL) { + set_has_tx_hash(); + } else { + clear_has_tx_hash(); + } + tx_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.cardano.CardanoTxRequest.tx_hash) +} + +// optional bytes tx_body = 3; +inline bool CardanoTxRequest::has_tx_body() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CardanoTxRequest::set_has_tx_body() { + _has_bits_[0] |= 0x00000002u; +} +inline void CardanoTxRequest::clear_has_tx_body() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CardanoTxRequest::clear_tx_body() { + tx_body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_body(); +} +inline const ::std::string& CardanoTxRequest::tx_body() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoTxRequest.tx_body) + return tx_body_.GetNoArena(); +} +inline void CardanoTxRequest::set_tx_body(const ::std::string& value) { + set_has_tx_body(); + tx_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoTxRequest.tx_body) +} +#if LANG_CXX11 +inline void CardanoTxRequest::set_tx_body(::std::string&& value) { + set_has_tx_body(); + tx_body_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.cardano.CardanoTxRequest.tx_body) +} +#endif +inline void CardanoTxRequest::set_tx_body(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_body(); + tx_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.cardano.CardanoTxRequest.tx_body) +} +inline void CardanoTxRequest::set_tx_body(const void* value, size_t size) { + set_has_tx_body(); + tx_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.cardano.CardanoTxRequest.tx_body) +} +inline ::std::string* CardanoTxRequest::mutable_tx_body() { + set_has_tx_body(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoTxRequest.tx_body) + return tx_body_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CardanoTxRequest::release_tx_body() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.cardano.CardanoTxRequest.tx_body) + if (!has_tx_body()) { + return NULL; + } + clear_has_tx_body(); + return tx_body_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CardanoTxRequest::set_allocated_tx_body(::std::string* tx_body) { + if (tx_body != NULL) { + set_has_tx_body(); + } else { + clear_has_tx_body(); + } + tx_body_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_body); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.cardano.CardanoTxRequest.tx_body) +} + +// ------------------------------------------------------------------- + +// CardanoTxAck + +// optional bytes transaction = 1; +inline bool CardanoTxAck::has_transaction() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CardanoTxAck::set_has_transaction() { + _has_bits_[0] |= 0x00000001u; +} +inline void CardanoTxAck::clear_has_transaction() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CardanoTxAck::clear_transaction() { + transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_transaction(); +} +inline const ::std::string& CardanoTxAck::transaction() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoTxAck.transaction) + return transaction_.GetNoArena(); +} +inline void CardanoTxAck::set_transaction(const ::std::string& value) { + set_has_transaction(); + transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoTxAck.transaction) +} +#if LANG_CXX11 +inline void CardanoTxAck::set_transaction(::std::string&& value) { + set_has_transaction(); + transaction_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.cardano.CardanoTxAck.transaction) +} +#endif +inline void CardanoTxAck::set_transaction(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_transaction(); + transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.cardano.CardanoTxAck.transaction) +} +inline void CardanoTxAck::set_transaction(const void* value, size_t size) { + set_has_transaction(); + transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.cardano.CardanoTxAck.transaction) +} +inline ::std::string* CardanoTxAck::mutable_transaction() { + set_has_transaction(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoTxAck.transaction) + return transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CardanoTxAck::release_transaction() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.cardano.CardanoTxAck.transaction) + if (!has_transaction()) { + return NULL; + } + clear_has_transaction(); + return transaction_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CardanoTxAck::set_allocated_transaction(::std::string* transaction) { + if (transaction != NULL) { + set_has_transaction(); + } else { + clear_has_transaction(); + } + transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transaction); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.cardano.CardanoTxAck.transaction) +} + +// ------------------------------------------------------------------- + +// CardanoSignedTx + +// optional bytes tx_hash = 1; +inline bool CardanoSignedTx::has_tx_hash() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CardanoSignedTx::set_has_tx_hash() { + _has_bits_[0] |= 0x00000001u; +} +inline void CardanoSignedTx::clear_has_tx_hash() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CardanoSignedTx::clear_tx_hash() { + tx_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_hash(); +} +inline const ::std::string& CardanoSignedTx::tx_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignedTx.tx_hash) + return tx_hash_.GetNoArena(); +} +inline void CardanoSignedTx::set_tx_hash(const ::std::string& value) { + set_has_tx_hash(); + tx_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoSignedTx.tx_hash) +} +#if LANG_CXX11 +inline void CardanoSignedTx::set_tx_hash(::std::string&& value) { + set_has_tx_hash(); + tx_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.cardano.CardanoSignedTx.tx_hash) +} +#endif +inline void CardanoSignedTx::set_tx_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_hash(); + tx_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.cardano.CardanoSignedTx.tx_hash) +} +inline void CardanoSignedTx::set_tx_hash(const void* value, size_t size) { + set_has_tx_hash(); + tx_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.cardano.CardanoSignedTx.tx_hash) +} +inline ::std::string* CardanoSignedTx::mutable_tx_hash() { + set_has_tx_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoSignedTx.tx_hash) + return tx_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CardanoSignedTx::release_tx_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.cardano.CardanoSignedTx.tx_hash) + if (!has_tx_hash()) { + return NULL; + } + clear_has_tx_hash(); + return tx_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CardanoSignedTx::set_allocated_tx_hash(::std::string* tx_hash) { + if (tx_hash != NULL) { + set_has_tx_hash(); + } else { + clear_has_tx_hash(); + } + tx_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.cardano.CardanoSignedTx.tx_hash) +} + +// optional bytes tx_body = 2; +inline bool CardanoSignedTx::has_tx_body() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CardanoSignedTx::set_has_tx_body() { + _has_bits_[0] |= 0x00000002u; +} +inline void CardanoSignedTx::clear_has_tx_body() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CardanoSignedTx::clear_tx_body() { + tx_body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_body(); +} +inline const ::std::string& CardanoSignedTx::tx_body() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.cardano.CardanoSignedTx.tx_body) + return tx_body_.GetNoArena(); +} +inline void CardanoSignedTx::set_tx_body(const ::std::string& value) { + set_has_tx_body(); + tx_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.cardano.CardanoSignedTx.tx_body) +} +#if LANG_CXX11 +inline void CardanoSignedTx::set_tx_body(::std::string&& value) { + set_has_tx_body(); + tx_body_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.cardano.CardanoSignedTx.tx_body) +} +#endif +inline void CardanoSignedTx::set_tx_body(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_body(); + tx_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.cardano.CardanoSignedTx.tx_body) +} +inline void CardanoSignedTx::set_tx_body(const void* value, size_t size) { + set_has_tx_body(); + tx_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.cardano.CardanoSignedTx.tx_body) +} +inline ::std::string* CardanoSignedTx::mutable_tx_body() { + set_has_tx_body(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.cardano.CardanoSignedTx.tx_body) + return tx_body_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CardanoSignedTx::release_tx_body() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.cardano.CardanoSignedTx.tx_body) + if (!has_tx_body()) { + return NULL; + } + clear_has_tx_body(); + return tx_body_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CardanoSignedTx::set_allocated_tx_body(::std::string* tx_body) { + if (tx_body != NULL) { + set_has_tx_body(); + } else { + clear_has_tx_body(); + } + tx_body_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_body); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.cardano.CardanoSignedTx.tx_body) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace cardano +} // namespace messages +} // namespace trezor +} // namespace hw + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dcardano_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-common.pb.cc b/src/Core/hardware/trezor/protob/messages-common.pb.cc new file mode 100644 index 00000000..24d574e8 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-common.pb.cc @@ -0,0 +1,3587 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-common.proto + +#include "messages-common.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace hw { +namespace trezor { +namespace messages { +namespace common { +class SuccessDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Success_default_instance_; +class FailureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Failure_default_instance_; +class ButtonRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ButtonRequest_default_instance_; +class ButtonAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ButtonAck_default_instance_; +class PinMatrixRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PinMatrixRequest_default_instance_; +class PinMatrixAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PinMatrixAck_default_instance_; +class PassphraseRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PassphraseRequest_default_instance_; +class PassphraseAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PassphraseAck_default_instance_; +class PassphraseStateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PassphraseStateRequest_default_instance_; +class PassphraseStateAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PassphraseStateAck_default_instance_; +class HDNodeTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _HDNodeType_default_instance_; +} // namespace common +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dcommon_2eproto { +static void InitDefaultsSuccess() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::common::_Success_default_instance_; + new (ptr) ::hw::trezor::messages::common::Success(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::common::Success::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Success = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSuccess}, {}}; + +static void InitDefaultsFailure() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::common::_Failure_default_instance_; + new (ptr) ::hw::trezor::messages::common::Failure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::common::Failure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Failure = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFailure}, {}}; + +static void InitDefaultsButtonRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::common::_ButtonRequest_default_instance_; + new (ptr) ::hw::trezor::messages::common::ButtonRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::common::ButtonRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ButtonRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsButtonRequest}, {}}; + +static void InitDefaultsButtonAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::common::_ButtonAck_default_instance_; + new (ptr) ::hw::trezor::messages::common::ButtonAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::common::ButtonAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ButtonAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsButtonAck}, {}}; + +static void InitDefaultsPinMatrixRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::common::_PinMatrixRequest_default_instance_; + new (ptr) ::hw::trezor::messages::common::PinMatrixRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::common::PinMatrixRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PinMatrixRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPinMatrixRequest}, {}}; + +static void InitDefaultsPinMatrixAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::common::_PinMatrixAck_default_instance_; + new (ptr) ::hw::trezor::messages::common::PinMatrixAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::common::PinMatrixAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PinMatrixAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPinMatrixAck}, {}}; + +static void InitDefaultsPassphraseRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::common::_PassphraseRequest_default_instance_; + new (ptr) ::hw::trezor::messages::common::PassphraseRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::common::PassphraseRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PassphraseRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPassphraseRequest}, {}}; + +static void InitDefaultsPassphraseAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::common::_PassphraseAck_default_instance_; + new (ptr) ::hw::trezor::messages::common::PassphraseAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::common::PassphraseAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PassphraseAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPassphraseAck}, {}}; + +static void InitDefaultsPassphraseStateRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::common::_PassphraseStateRequest_default_instance_; + new (ptr) ::hw::trezor::messages::common::PassphraseStateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::common::PassphraseStateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PassphraseStateRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPassphraseStateRequest}, {}}; + +static void InitDefaultsPassphraseStateAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::common::_PassphraseStateAck_default_instance_; + new (ptr) ::hw::trezor::messages::common::PassphraseStateAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::common::PassphraseStateAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PassphraseStateAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPassphraseStateAck}, {}}; + +static void InitDefaultsHDNodeType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::common::_HDNodeType_default_instance_; + new (ptr) ::hw::trezor::messages::common::HDNodeType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::common::HDNodeType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HDNodeType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHDNodeType}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_Success.base); + ::google::protobuf::internal::InitSCC(&scc_info_Failure.base); + ::google::protobuf::internal::InitSCC(&scc_info_ButtonRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_ButtonAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_PinMatrixRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_PinMatrixAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_PassphraseRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_PassphraseAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_PassphraseStateRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_PassphraseStateAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_HDNodeType.base); +} + +::google::protobuf::Metadata file_level_metadata[11]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::Success, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::Success, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::Success, message_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::Failure, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::Failure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::Failure, code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::Failure, message_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::ButtonRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::ButtonRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::ButtonRequest, code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::ButtonRequest, data_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::ButtonAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::ButtonAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PinMatrixRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PinMatrixRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PinMatrixRequest, type_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PinMatrixAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PinMatrixAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PinMatrixAck, pin_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseRequest, on_device_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseAck, passphrase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseAck, state_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseStateRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseStateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseStateRequest, state_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseStateAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::PassphraseStateAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::HDNodeType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::HDNodeType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::HDNodeType, depth_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::HDNodeType, fingerprint_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::HDNodeType, child_num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::HDNodeType, chain_code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::HDNodeType, private_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::common::HDNodeType, public_key_), + 3, + 4, + 5, + 0, + 1, + 2, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 6, sizeof(::hw::trezor::messages::common::Success)}, + { 7, 14, sizeof(::hw::trezor::messages::common::Failure)}, + { 16, 23, sizeof(::hw::trezor::messages::common::ButtonRequest)}, + { 25, 30, sizeof(::hw::trezor::messages::common::ButtonAck)}, + { 30, 36, sizeof(::hw::trezor::messages::common::PinMatrixRequest)}, + { 37, 43, sizeof(::hw::trezor::messages::common::PinMatrixAck)}, + { 44, 50, sizeof(::hw::trezor::messages::common::PassphraseRequest)}, + { 51, 58, sizeof(::hw::trezor::messages::common::PassphraseAck)}, + { 60, 66, sizeof(::hw::trezor::messages::common::PassphraseStateRequest)}, + { 67, 72, sizeof(::hw::trezor::messages::common::PassphraseStateAck)}, + { 72, 83, sizeof(::hw::trezor::messages::common::HDNodeType)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::common::_Success_default_instance_), + reinterpret_cast(&::hw::trezor::messages::common::_Failure_default_instance_), + reinterpret_cast(&::hw::trezor::messages::common::_ButtonRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::common::_ButtonAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::common::_PinMatrixRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::common::_PinMatrixAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::common::_PassphraseRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::common::_PassphraseAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::common::_PassphraseStateRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::common::_PassphraseStateAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::common::_HDNodeType_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-common.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 11); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\025messages-common.proto\022\031hw.trezor.messa" + "ges.common\"\032\n\007Success\022\017\n\007message\030\001 \001(\t\"\306" + "\003\n\007Failure\022<\n\004code\030\001 \001(\0162..hw.trezor.mes" + "sages.common.Failure.FailureType\022\017\n\007mess" + "age\030\002 \001(\t\"\353\002\n\013FailureType\022\035\n\031Failure_Une" + "xpectedMessage\020\001\022\032\n\026Failure_ButtonExpect" + "ed\020\002\022\025\n\021Failure_DataError\020\003\022\033\n\027Failure_A" + "ctionCancelled\020\004\022\027\n\023Failure_PinExpected\020" + "\005\022\030\n\024Failure_PinCancelled\020\006\022\026\n\022Failure_P" + "inInvalid\020\007\022\034\n\030Failure_InvalidSignature\020" + "\010\022\030\n\024Failure_ProcessError\020\t\022\032\n\026Failure_N" + "otEnoughFunds\020\n\022\032\n\026Failure_NotInitialize" + "d\020\013\022\027\n\023Failure_PinMismatch\020\014\022\031\n\025Failure_" + "FirmwareError\020c\"\332\004\n\rButtonRequest\022H\n\004cod" + "e\030\001 \001(\0162:.hw.trezor.messages.common.Butt" + "onRequest.ButtonRequestType\022\014\n\004data\030\002 \001(" + "\t\"\360\003\n\021ButtonRequestType\022\027\n\023ButtonRequest" + "_Other\020\001\022\"\n\036ButtonRequest_FeeOverThresho" + "ld\020\002\022\037\n\033ButtonRequest_ConfirmOutput\020\003\022\035\n" + "\031ButtonRequest_ResetDevice\020\004\022\035\n\031ButtonRe" + "quest_ConfirmWord\020\005\022\034\n\030ButtonRequest_Wip" + "eDevice\020\006\022\035\n\031ButtonRequest_ProtectCall\020\007" + "\022\030\n\024ButtonRequest_SignTx\020\010\022\037\n\033ButtonRequ" + "est_FirmwareCheck\020\t\022\031\n\025ButtonRequest_Add" + "ress\020\n\022\033\n\027ButtonRequest_PublicKey\020\013\022#\n\037B" + "uttonRequest_MnemonicWordCount\020\014\022\037\n\033Butt" + "onRequest_MnemonicInput\020\r\022 \n\034ButtonReque" + "st_PassphraseType\020\016\022\'\n#ButtonRequest_Unk" + "nownDerivationPath\020\017\"\013\n\tButtonAck\"\343\001\n\020Pi" + "nMatrixRequest\022N\n\004type\030\001 \001(\0162@.hw.trezor" + ".messages.common.PinMatrixRequest.PinMat" + "rixRequestType\"\177\n\024PinMatrixRequestType\022 " + "\n\034PinMatrixRequestType_Current\020\001\022!\n\035PinM" + "atrixRequestType_NewFirst\020\002\022\"\n\036PinMatrix" + "RequestType_NewSecond\020\003\"\033\n\014PinMatrixAck\022" + "\013\n\003pin\030\001 \002(\t\"&\n\021PassphraseRequest\022\021\n\ton_" + "device\030\001 \001(\010\"2\n\rPassphraseAck\022\022\n\npassphr" + "ase\030\001 \001(\t\022\r\n\005state\030\002 \001(\014\"\'\n\026PassphraseSt" + "ateRequest\022\r\n\005state\030\001 \001(\014\"\024\n\022PassphraseS" + "tateAck\"\200\001\n\nHDNodeType\022\r\n\005depth\030\001 \002(\r\022\023\n" + "\013fingerprint\030\002 \002(\r\022\021\n\tchild_num\030\003 \002(\r\022\022\n" + "\nchain_code\030\004 \002(\014\022\023\n\013private_key\030\005 \001(\014\022\022" + "\n\npublic_key\030\006 \001(\014" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1698); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-common.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dcommon_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace common { +const ::google::protobuf::EnumDescriptor* Failure_FailureType_descriptor() { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dcommon_2eproto::file_level_enum_descriptors[0]; +} +bool Failure_FailureType_IsValid(int value) { + switch (value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 99: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const Failure_FailureType Failure::Failure_UnexpectedMessage; +const Failure_FailureType Failure::Failure_ButtonExpected; +const Failure_FailureType Failure::Failure_DataError; +const Failure_FailureType Failure::Failure_ActionCancelled; +const Failure_FailureType Failure::Failure_PinExpected; +const Failure_FailureType Failure::Failure_PinCancelled; +const Failure_FailureType Failure::Failure_PinInvalid; +const Failure_FailureType Failure::Failure_InvalidSignature; +const Failure_FailureType Failure::Failure_ProcessError; +const Failure_FailureType Failure::Failure_NotEnoughFunds; +const Failure_FailureType Failure::Failure_NotInitialized; +const Failure_FailureType Failure::Failure_PinMismatch; +const Failure_FailureType Failure::Failure_FirmwareError; +const Failure_FailureType Failure::FailureType_MIN; +const Failure_FailureType Failure::FailureType_MAX; +const int Failure::FailureType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* ButtonRequest_ButtonRequestType_descriptor() { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dcommon_2eproto::file_level_enum_descriptors[1]; +} +bool ButtonRequest_ButtonRequestType_IsValid(int value) { + switch (value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_Other; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_FeeOverThreshold; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_ConfirmOutput; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_ResetDevice; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_ConfirmWord; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_WipeDevice; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_ProtectCall; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_SignTx; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_FirmwareCheck; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_Address; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_PublicKey; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_MnemonicWordCount; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_MnemonicInput; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_PassphraseType; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequest_UnknownDerivationPath; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequestType_MIN; +const ButtonRequest_ButtonRequestType ButtonRequest::ButtonRequestType_MAX; +const int ButtonRequest::ButtonRequestType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* PinMatrixRequest_PinMatrixRequestType_descriptor() { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dcommon_2eproto::file_level_enum_descriptors[2]; +} +bool PinMatrixRequest_PinMatrixRequestType_IsValid(int value) { + switch (value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const PinMatrixRequest_PinMatrixRequestType PinMatrixRequest::PinMatrixRequestType_Current; +const PinMatrixRequest_PinMatrixRequestType PinMatrixRequest::PinMatrixRequestType_NewFirst; +const PinMatrixRequest_PinMatrixRequestType PinMatrixRequest::PinMatrixRequestType_NewSecond; +const PinMatrixRequest_PinMatrixRequestType PinMatrixRequest::PinMatrixRequestType_MIN; +const PinMatrixRequest_PinMatrixRequestType PinMatrixRequest::PinMatrixRequestType_MAX; +const int PinMatrixRequest::PinMatrixRequestType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void Success::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Success::kMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Success::Success() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcommon_2eproto::scc_info_Success.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.common.Success) +} +Success::Success(const Success& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_message()) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.common.Success) +} + +void Success::SharedCtor() { + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Success::~Success() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.common.Success) + SharedDtor(); +} + +void Success::SharedDtor() { + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Success::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* Success::descriptor() { + ::protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Success& Success::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcommon_2eproto::scc_info_Success.base); + return *internal_default_instance(); +} + + +void Success::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.common.Success) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + message_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool Success::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.common.Success) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string message = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.common.Success.message"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.common.Success) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.common.Success) + return false; +#undef DO_ +} + +void Success::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.common.Success) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string message = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.common.Success.message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->message(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.common.Success) +} + +::google::protobuf::uint8* Success::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.common.Success) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string message = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.common.Success.message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->message(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.common.Success) + return target; +} + +size_t Success::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.common.Success) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string message = 1; + if (has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Success::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.common.Success) + GOOGLE_DCHECK_NE(&from, this); + const Success* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.common.Success) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.common.Success) + MergeFrom(*source); + } +} + +void Success::MergeFrom(const Success& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.common.Success) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_message()) { + set_has_message(); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } +} + +void Success::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.common.Success) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Success::CopyFrom(const Success& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.common.Success) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Success::IsInitialized() const { + return true; +} + +void Success::Swap(Success* other) { + if (other == this) return; + InternalSwap(other); +} +void Success::InternalSwap(Success* other) { + using std::swap; + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata Success::GetMetadata() const { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Failure::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Failure::kCodeFieldNumber; +const int Failure::kMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Failure::Failure() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcommon_2eproto::scc_info_Failure.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.common.Failure) +} +Failure::Failure(const Failure& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_message()) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + code_ = from.code_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.common.Failure) +} + +void Failure::SharedCtor() { + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + code_ = 1; +} + +Failure::~Failure() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.common.Failure) + SharedDtor(); +} + +void Failure::SharedDtor() { + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Failure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* Failure::descriptor() { + ::protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Failure& Failure::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcommon_2eproto::scc_info_Failure.base); + return *internal_default_instance(); +} + + +void Failure::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.common.Failure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + message_.ClearNonDefaultToEmptyNoArena(); + } + code_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool Failure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.common.Failure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.common.Failure.FailureType code = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::common::Failure_FailureType_IsValid(value)) { + set_code(static_cast< ::hw::trezor::messages::common::Failure_FailureType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional string message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.common.Failure.message"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.common.Failure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.common.Failure) + return false; +#undef DO_ +} + +void Failure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.common.Failure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.common.Failure.FailureType code = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->code(), output); + } + + // optional string message = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.common.Failure.message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->message(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.common.Failure) +} + +::google::protobuf::uint8* Failure::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.common.Failure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.common.Failure.FailureType code = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->code(), target); + } + + // optional string message = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.common.Failure.message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->message(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.common.Failure) + return target; +} + +size_t Failure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.common.Failure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional string message = 2; + if (has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + // optional .hw.trezor.messages.common.Failure.FailureType code = 1; + if (has_code()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->code()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Failure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.common.Failure) + GOOGLE_DCHECK_NE(&from, this); + const Failure* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.common.Failure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.common.Failure) + MergeFrom(*source); + } +} + +void Failure::MergeFrom(const Failure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.common.Failure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_message(); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (cached_has_bits & 0x00000002u) { + code_ = from.code_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void Failure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.common.Failure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Failure::CopyFrom(const Failure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.common.Failure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Failure::IsInitialized() const { + return true; +} + +void Failure::Swap(Failure* other) { + if (other == this) return; + InternalSwap(other); +} +void Failure::InternalSwap(Failure* other) { + using std::swap; + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(code_, other->code_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata Failure::GetMetadata() const { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ButtonRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ButtonRequest::kCodeFieldNumber; +const int ButtonRequest::kDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ButtonRequest::ButtonRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcommon_2eproto::scc_info_ButtonRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.common.ButtonRequest) +} +ButtonRequest::ButtonRequest(const ButtonRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data()) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + code_ = from.code_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.common.ButtonRequest) +} + +void ButtonRequest::SharedCtor() { + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + code_ = 1; +} + +ButtonRequest::~ButtonRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.common.ButtonRequest) + SharedDtor(); +} + +void ButtonRequest::SharedDtor() { + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ButtonRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* ButtonRequest::descriptor() { + ::protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ButtonRequest& ButtonRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcommon_2eproto::scc_info_ButtonRequest.base); + return *internal_default_instance(); +} + + +void ButtonRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.common.ButtonRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + data_.ClearNonDefaultToEmptyNoArena(); + } + code_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ButtonRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.common.ButtonRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.common.ButtonRequest.ButtonRequestType code = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::common::ButtonRequest_ButtonRequestType_IsValid(value)) { + set_code(static_cast< ::hw::trezor::messages::common::ButtonRequest_ButtonRequestType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional string data = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_data())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->data().data(), static_cast(this->data().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.common.ButtonRequest.data"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.common.ButtonRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.common.ButtonRequest) + return false; +#undef DO_ +} + +void ButtonRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.common.ButtonRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.common.ButtonRequest.ButtonRequestType code = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->code(), output); + } + + // optional string data = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->data().data(), static_cast(this->data().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.common.ButtonRequest.data"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->data(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.common.ButtonRequest) +} + +::google::protobuf::uint8* ButtonRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.common.ButtonRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.common.ButtonRequest.ButtonRequestType code = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->code(), target); + } + + // optional string data = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->data().data(), static_cast(this->data().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.common.ButtonRequest.data"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->data(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.common.ButtonRequest) + return target; +} + +size_t ButtonRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.common.ButtonRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional string data = 2; + if (has_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->data()); + } + + // optional .hw.trezor.messages.common.ButtonRequest.ButtonRequestType code = 1; + if (has_code()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->code()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ButtonRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.common.ButtonRequest) + GOOGLE_DCHECK_NE(&from, this); + const ButtonRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.common.ButtonRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.common.ButtonRequest) + MergeFrom(*source); + } +} + +void ButtonRequest::MergeFrom(const ButtonRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.common.ButtonRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_data(); + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + if (cached_has_bits & 0x00000002u) { + code_ = from.code_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ButtonRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.common.ButtonRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ButtonRequest::CopyFrom(const ButtonRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.common.ButtonRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ButtonRequest::IsInitialized() const { + return true; +} + +void ButtonRequest::Swap(ButtonRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ButtonRequest::InternalSwap(ButtonRequest* other) { + using std::swap; + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(code_, other->code_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ButtonRequest::GetMetadata() const { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ButtonAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ButtonAck::ButtonAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcommon_2eproto::scc_info_ButtonAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.common.ButtonAck) +} +ButtonAck::ButtonAck(const ButtonAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.common.ButtonAck) +} + +void ButtonAck::SharedCtor() { +} + +ButtonAck::~ButtonAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.common.ButtonAck) + SharedDtor(); +} + +void ButtonAck::SharedDtor() { +} + +void ButtonAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* ButtonAck::descriptor() { + ::protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ButtonAck& ButtonAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcommon_2eproto::scc_info_ButtonAck.base); + return *internal_default_instance(); +} + + +void ButtonAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.common.ButtonAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ButtonAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.common.ButtonAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.common.ButtonAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.common.ButtonAck) + return false; +#undef DO_ +} + +void ButtonAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.common.ButtonAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.common.ButtonAck) +} + +::google::protobuf::uint8* ButtonAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.common.ButtonAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.common.ButtonAck) + return target; +} + +size_t ButtonAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.common.ButtonAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ButtonAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.common.ButtonAck) + GOOGLE_DCHECK_NE(&from, this); + const ButtonAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.common.ButtonAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.common.ButtonAck) + MergeFrom(*source); + } +} + +void ButtonAck::MergeFrom(const ButtonAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.common.ButtonAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ButtonAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.common.ButtonAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ButtonAck::CopyFrom(const ButtonAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.common.ButtonAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ButtonAck::IsInitialized() const { + return true; +} + +void ButtonAck::Swap(ButtonAck* other) { + if (other == this) return; + InternalSwap(other); +} +void ButtonAck::InternalSwap(ButtonAck* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ButtonAck::GetMetadata() const { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PinMatrixRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PinMatrixRequest::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PinMatrixRequest::PinMatrixRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcommon_2eproto::scc_info_PinMatrixRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.common.PinMatrixRequest) +} +PinMatrixRequest::PinMatrixRequest(const PinMatrixRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.common.PinMatrixRequest) +} + +void PinMatrixRequest::SharedCtor() { + type_ = 1; +} + +PinMatrixRequest::~PinMatrixRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.common.PinMatrixRequest) + SharedDtor(); +} + +void PinMatrixRequest::SharedDtor() { +} + +void PinMatrixRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* PinMatrixRequest::descriptor() { + ::protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PinMatrixRequest& PinMatrixRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcommon_2eproto::scc_info_PinMatrixRequest.base); + return *internal_default_instance(); +} + + +void PinMatrixRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.common.PinMatrixRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + type_ = 1; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PinMatrixRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.common.PinMatrixRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.common.PinMatrixRequest.PinMatrixRequestType type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::common::PinMatrixRequest_PinMatrixRequestType_IsValid(value)) { + set_type(static_cast< ::hw::trezor::messages::common::PinMatrixRequest_PinMatrixRequestType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.common.PinMatrixRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.common.PinMatrixRequest) + return false; +#undef DO_ +} + +void PinMatrixRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.common.PinMatrixRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.common.PinMatrixRequest.PinMatrixRequestType type = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.common.PinMatrixRequest) +} + +::google::protobuf::uint8* PinMatrixRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.common.PinMatrixRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.common.PinMatrixRequest.PinMatrixRequestType type = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.common.PinMatrixRequest) + return target; +} + +size_t PinMatrixRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.common.PinMatrixRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional .hw.trezor.messages.common.PinMatrixRequest.PinMatrixRequestType type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PinMatrixRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.common.PinMatrixRequest) + GOOGLE_DCHECK_NE(&from, this); + const PinMatrixRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.common.PinMatrixRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.common.PinMatrixRequest) + MergeFrom(*source); + } +} + +void PinMatrixRequest::MergeFrom(const PinMatrixRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.common.PinMatrixRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_type()) { + set_type(from.type()); + } +} + +void PinMatrixRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.common.PinMatrixRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PinMatrixRequest::CopyFrom(const PinMatrixRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.common.PinMatrixRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PinMatrixRequest::IsInitialized() const { + return true; +} + +void PinMatrixRequest::Swap(PinMatrixRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void PinMatrixRequest::InternalSwap(PinMatrixRequest* other) { + using std::swap; + swap(type_, other->type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata PinMatrixRequest::GetMetadata() const { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PinMatrixAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PinMatrixAck::kPinFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PinMatrixAck::PinMatrixAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcommon_2eproto::scc_info_PinMatrixAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.common.PinMatrixAck) +} +PinMatrixAck::PinMatrixAck(const PinMatrixAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + pin_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pin()) { + pin_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pin_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.common.PinMatrixAck) +} + +void PinMatrixAck::SharedCtor() { + pin_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +PinMatrixAck::~PinMatrixAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.common.PinMatrixAck) + SharedDtor(); +} + +void PinMatrixAck::SharedDtor() { + pin_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void PinMatrixAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* PinMatrixAck::descriptor() { + ::protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PinMatrixAck& PinMatrixAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcommon_2eproto::scc_info_PinMatrixAck.base); + return *internal_default_instance(); +} + + +void PinMatrixAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.common.PinMatrixAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + pin_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PinMatrixAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.common.PinMatrixAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string pin = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_pin())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->pin().data(), static_cast(this->pin().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.common.PinMatrixAck.pin"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.common.PinMatrixAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.common.PinMatrixAck) + return false; +#undef DO_ +} + +void PinMatrixAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.common.PinMatrixAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string pin = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->pin().data(), static_cast(this->pin().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.common.PinMatrixAck.pin"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->pin(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.common.PinMatrixAck) +} + +::google::protobuf::uint8* PinMatrixAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.common.PinMatrixAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string pin = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->pin().data(), static_cast(this->pin().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.common.PinMatrixAck.pin"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->pin(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.common.PinMatrixAck) + return target; +} + +size_t PinMatrixAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.common.PinMatrixAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // required string pin = 1; + if (has_pin()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->pin()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PinMatrixAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.common.PinMatrixAck) + GOOGLE_DCHECK_NE(&from, this); + const PinMatrixAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.common.PinMatrixAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.common.PinMatrixAck) + MergeFrom(*source); + } +} + +void PinMatrixAck::MergeFrom(const PinMatrixAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.common.PinMatrixAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_pin()) { + set_has_pin(); + pin_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pin_); + } +} + +void PinMatrixAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.common.PinMatrixAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PinMatrixAck::CopyFrom(const PinMatrixAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.common.PinMatrixAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PinMatrixAck::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + return true; +} + +void PinMatrixAck::Swap(PinMatrixAck* other) { + if (other == this) return; + InternalSwap(other); +} +void PinMatrixAck::InternalSwap(PinMatrixAck* other) { + using std::swap; + pin_.Swap(&other->pin_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata PinMatrixAck::GetMetadata() const { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PassphraseRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PassphraseRequest::kOnDeviceFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PassphraseRequest::PassphraseRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcommon_2eproto::scc_info_PassphraseRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.common.PassphraseRequest) +} +PassphraseRequest::PassphraseRequest(const PassphraseRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + on_device_ = from.on_device_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.common.PassphraseRequest) +} + +void PassphraseRequest::SharedCtor() { + on_device_ = false; +} + +PassphraseRequest::~PassphraseRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.common.PassphraseRequest) + SharedDtor(); +} + +void PassphraseRequest::SharedDtor() { +} + +void PassphraseRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* PassphraseRequest::descriptor() { + ::protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PassphraseRequest& PassphraseRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcommon_2eproto::scc_info_PassphraseRequest.base); + return *internal_default_instance(); +} + + +void PassphraseRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.common.PassphraseRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + on_device_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PassphraseRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.common.PassphraseRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool on_device = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_on_device(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &on_device_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.common.PassphraseRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.common.PassphraseRequest) + return false; +#undef DO_ +} + +void PassphraseRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.common.PassphraseRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool on_device = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->on_device(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.common.PassphraseRequest) +} + +::google::protobuf::uint8* PassphraseRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.common.PassphraseRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool on_device = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->on_device(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.common.PassphraseRequest) + return target; +} + +size_t PassphraseRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.common.PassphraseRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bool on_device = 1; + if (has_on_device()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PassphraseRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.common.PassphraseRequest) + GOOGLE_DCHECK_NE(&from, this); + const PassphraseRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.common.PassphraseRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.common.PassphraseRequest) + MergeFrom(*source); + } +} + +void PassphraseRequest::MergeFrom(const PassphraseRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.common.PassphraseRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_on_device()) { + set_on_device(from.on_device()); + } +} + +void PassphraseRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.common.PassphraseRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PassphraseRequest::CopyFrom(const PassphraseRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.common.PassphraseRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PassphraseRequest::IsInitialized() const { + return true; +} + +void PassphraseRequest::Swap(PassphraseRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void PassphraseRequest::InternalSwap(PassphraseRequest* other) { + using std::swap; + swap(on_device_, other->on_device_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata PassphraseRequest::GetMetadata() const { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PassphraseAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PassphraseAck::kPassphraseFieldNumber; +const int PassphraseAck::kStateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PassphraseAck::PassphraseAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcommon_2eproto::scc_info_PassphraseAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.common.PassphraseAck) +} +PassphraseAck::PassphraseAck(const PassphraseAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + passphrase_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_passphrase()) { + passphrase_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.passphrase_); + } + state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_state()) { + state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.common.PassphraseAck) +} + +void PassphraseAck::SharedCtor() { + passphrase_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +PassphraseAck::~PassphraseAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.common.PassphraseAck) + SharedDtor(); +} + +void PassphraseAck::SharedDtor() { + passphrase_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + state_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void PassphraseAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* PassphraseAck::descriptor() { + ::protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PassphraseAck& PassphraseAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcommon_2eproto::scc_info_PassphraseAck.base); + return *internal_default_instance(); +} + + +void PassphraseAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.common.PassphraseAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + passphrase_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + state_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PassphraseAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.common.PassphraseAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string passphrase = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_passphrase())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->passphrase().data(), static_cast(this->passphrase().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.common.PassphraseAck.passphrase"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes state = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_state())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.common.PassphraseAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.common.PassphraseAck) + return false; +#undef DO_ +} + +void PassphraseAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.common.PassphraseAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string passphrase = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->passphrase().data(), static_cast(this->passphrase().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.common.PassphraseAck.passphrase"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->passphrase(), output); + } + + // optional bytes state = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->state(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.common.PassphraseAck) +} + +::google::protobuf::uint8* PassphraseAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.common.PassphraseAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string passphrase = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->passphrase().data(), static_cast(this->passphrase().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.common.PassphraseAck.passphrase"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->passphrase(), target); + } + + // optional bytes state = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->state(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.common.PassphraseAck) + return target; +} + +size_t PassphraseAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.common.PassphraseAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional string passphrase = 1; + if (has_passphrase()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->passphrase()); + } + + // optional bytes state = 2; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->state()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PassphraseAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.common.PassphraseAck) + GOOGLE_DCHECK_NE(&from, this); + const PassphraseAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.common.PassphraseAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.common.PassphraseAck) + MergeFrom(*source); + } +} + +void PassphraseAck::MergeFrom(const PassphraseAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.common.PassphraseAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_passphrase(); + passphrase_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.passphrase_); + } + if (cached_has_bits & 0x00000002u) { + set_has_state(); + state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_); + } + } +} + +void PassphraseAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.common.PassphraseAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PassphraseAck::CopyFrom(const PassphraseAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.common.PassphraseAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PassphraseAck::IsInitialized() const { + return true; +} + +void PassphraseAck::Swap(PassphraseAck* other) { + if (other == this) return; + InternalSwap(other); +} +void PassphraseAck::InternalSwap(PassphraseAck* other) { + using std::swap; + passphrase_.Swap(&other->passphrase_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + state_.Swap(&other->state_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata PassphraseAck::GetMetadata() const { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PassphraseStateRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PassphraseStateRequest::kStateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PassphraseStateRequest::PassphraseStateRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcommon_2eproto::scc_info_PassphraseStateRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.common.PassphraseStateRequest) +} +PassphraseStateRequest::PassphraseStateRequest(const PassphraseStateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_state()) { + state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.common.PassphraseStateRequest) +} + +void PassphraseStateRequest::SharedCtor() { + state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +PassphraseStateRequest::~PassphraseStateRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.common.PassphraseStateRequest) + SharedDtor(); +} + +void PassphraseStateRequest::SharedDtor() { + state_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void PassphraseStateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* PassphraseStateRequest::descriptor() { + ::protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PassphraseStateRequest& PassphraseStateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcommon_2eproto::scc_info_PassphraseStateRequest.base); + return *internal_default_instance(); +} + + +void PassphraseStateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.common.PassphraseStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + state_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PassphraseStateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.common.PassphraseStateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes state = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_state())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.common.PassphraseStateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.common.PassphraseStateRequest) + return false; +#undef DO_ +} + +void PassphraseStateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.common.PassphraseStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes state = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->state(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.common.PassphraseStateRequest) +} + +::google::protobuf::uint8* PassphraseStateRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.common.PassphraseStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes state = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->state(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.common.PassphraseStateRequest) + return target; +} + +size_t PassphraseStateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.common.PassphraseStateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes state = 1; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PassphraseStateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.common.PassphraseStateRequest) + GOOGLE_DCHECK_NE(&from, this); + const PassphraseStateRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.common.PassphraseStateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.common.PassphraseStateRequest) + MergeFrom(*source); + } +} + +void PassphraseStateRequest::MergeFrom(const PassphraseStateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.common.PassphraseStateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_state()) { + set_has_state(); + state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_); + } +} + +void PassphraseStateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.common.PassphraseStateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PassphraseStateRequest::CopyFrom(const PassphraseStateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.common.PassphraseStateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PassphraseStateRequest::IsInitialized() const { + return true; +} + +void PassphraseStateRequest::Swap(PassphraseStateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void PassphraseStateRequest::InternalSwap(PassphraseStateRequest* other) { + using std::swap; + state_.Swap(&other->state_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata PassphraseStateRequest::GetMetadata() const { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PassphraseStateAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PassphraseStateAck::PassphraseStateAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcommon_2eproto::scc_info_PassphraseStateAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.common.PassphraseStateAck) +} +PassphraseStateAck::PassphraseStateAck(const PassphraseStateAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.common.PassphraseStateAck) +} + +void PassphraseStateAck::SharedCtor() { +} + +PassphraseStateAck::~PassphraseStateAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.common.PassphraseStateAck) + SharedDtor(); +} + +void PassphraseStateAck::SharedDtor() { +} + +void PassphraseStateAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* PassphraseStateAck::descriptor() { + ::protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PassphraseStateAck& PassphraseStateAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcommon_2eproto::scc_info_PassphraseStateAck.base); + return *internal_default_instance(); +} + + +void PassphraseStateAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.common.PassphraseStateAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PassphraseStateAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.common.PassphraseStateAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.common.PassphraseStateAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.common.PassphraseStateAck) + return false; +#undef DO_ +} + +void PassphraseStateAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.common.PassphraseStateAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.common.PassphraseStateAck) +} + +::google::protobuf::uint8* PassphraseStateAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.common.PassphraseStateAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.common.PassphraseStateAck) + return target; +} + +size_t PassphraseStateAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.common.PassphraseStateAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PassphraseStateAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.common.PassphraseStateAck) + GOOGLE_DCHECK_NE(&from, this); + const PassphraseStateAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.common.PassphraseStateAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.common.PassphraseStateAck) + MergeFrom(*source); + } +} + +void PassphraseStateAck::MergeFrom(const PassphraseStateAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.common.PassphraseStateAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void PassphraseStateAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.common.PassphraseStateAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PassphraseStateAck::CopyFrom(const PassphraseStateAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.common.PassphraseStateAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PassphraseStateAck::IsInitialized() const { + return true; +} + +void PassphraseStateAck::Swap(PassphraseStateAck* other) { + if (other == this) return; + InternalSwap(other); +} +void PassphraseStateAck::InternalSwap(PassphraseStateAck* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata PassphraseStateAck::GetMetadata() const { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void HDNodeType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HDNodeType::kDepthFieldNumber; +const int HDNodeType::kFingerprintFieldNumber; +const int HDNodeType::kChildNumFieldNumber; +const int HDNodeType::kChainCodeFieldNumber; +const int HDNodeType::kPrivateKeyFieldNumber; +const int HDNodeType::kPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HDNodeType::HDNodeType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcommon_2eproto::scc_info_HDNodeType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.common.HDNodeType) +} +HDNodeType::HDNodeType(const HDNodeType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + chain_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_chain_code()) { + chain_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chain_code_); + } + private_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_private_key()) { + private_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.private_key_); + } + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + ::memcpy(&depth_, &from.depth_, + static_cast(reinterpret_cast(&child_num_) - + reinterpret_cast(&depth_)) + sizeof(child_num_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.common.HDNodeType) +} + +void HDNodeType::SharedCtor() { + chain_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + private_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&depth_, 0, static_cast( + reinterpret_cast(&child_num_) - + reinterpret_cast(&depth_)) + sizeof(child_num_)); +} + +HDNodeType::~HDNodeType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.common.HDNodeType) + SharedDtor(); +} + +void HDNodeType::SharedDtor() { + chain_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + private_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void HDNodeType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* HDNodeType::descriptor() { + ::protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const HDNodeType& HDNodeType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcommon_2eproto::scc_info_HDNodeType.base); + return *internal_default_instance(); +} + + +void HDNodeType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.common.HDNodeType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + chain_code_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + private_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 56u) { + ::memset(&depth_, 0, static_cast( + reinterpret_cast(&child_num_) - + reinterpret_cast(&depth_)) + sizeof(child_num_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool HDNodeType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.common.HDNodeType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 depth = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_depth(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &depth_))); + } else { + goto handle_unusual; + } + break; + } + + // required uint32 fingerprint = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_fingerprint(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &fingerprint_))); + } else { + goto handle_unusual; + } + break; + } + + // required uint32 child_num = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_child_num(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &child_num_))); + } else { + goto handle_unusual; + } + break; + } + + // required bytes chain_code = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_chain_code())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes private_key = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_private_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes public_key = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.common.HDNodeType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.common.HDNodeType) + return false; +#undef DO_ +} + +void HDNodeType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.common.HDNodeType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 depth = 1; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->depth(), output); + } + + // required uint32 fingerprint = 2; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->fingerprint(), output); + } + + // required uint32 child_num = 3; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->child_num(), output); + } + + // required bytes chain_code = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->chain_code(), output); + } + + // optional bytes private_key = 5; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->private_key(), output); + } + + // optional bytes public_key = 6; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.common.HDNodeType) +} + +::google::protobuf::uint8* HDNodeType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.common.HDNodeType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 depth = 1; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->depth(), target); + } + + // required uint32 fingerprint = 2; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->fingerprint(), target); + } + + // required uint32 child_num = 3; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->child_num(), target); + } + + // required bytes chain_code = 4; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->chain_code(), target); + } + + // optional bytes private_key = 5; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->private_key(), target); + } + + // optional bytes public_key = 6; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.common.HDNodeType) + return target; +} + +size_t HDNodeType::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:hw.trezor.messages.common.HDNodeType) + size_t total_size = 0; + + if (has_chain_code()) { + // required bytes chain_code = 4; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->chain_code()); + } + + if (has_depth()) { + // required uint32 depth = 1; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->depth()); + } + + if (has_fingerprint()) { + // required uint32 fingerprint = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->fingerprint()); + } + + if (has_child_num()) { + // required uint32 child_num = 3; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->child_num()); + } + + return total_size; +} +size_t HDNodeType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.common.HDNodeType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (((_has_bits_[0] & 0x00000039) ^ 0x00000039) == 0) { // All required fields are present. + // required bytes chain_code = 4; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->chain_code()); + + // required uint32 depth = 1; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->depth()); + + // required uint32 fingerprint = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->fingerprint()); + + // required uint32 child_num = 3; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->child_num()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + if (_has_bits_[0 / 32] & 6u) { + // optional bytes private_key = 5; + if (has_private_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->private_key()); + } + + // optional bytes public_key = 6; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HDNodeType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.common.HDNodeType) + GOOGLE_DCHECK_NE(&from, this); + const HDNodeType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.common.HDNodeType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.common.HDNodeType) + MergeFrom(*source); + } +} + +void HDNodeType::MergeFrom(const HDNodeType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.common.HDNodeType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_chain_code(); + chain_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chain_code_); + } + if (cached_has_bits & 0x00000002u) { + set_has_private_key(); + private_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.private_key_); + } + if (cached_has_bits & 0x00000004u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (cached_has_bits & 0x00000008u) { + depth_ = from.depth_; + } + if (cached_has_bits & 0x00000010u) { + fingerprint_ = from.fingerprint_; + } + if (cached_has_bits & 0x00000020u) { + child_num_ = from.child_num_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void HDNodeType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.common.HDNodeType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HDNodeType::CopyFrom(const HDNodeType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.common.HDNodeType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HDNodeType::IsInitialized() const { + if ((_has_bits_[0] & 0x00000039) != 0x00000039) return false; + return true; +} + +void HDNodeType::Swap(HDNodeType* other) { + if (other == this) return; + InternalSwap(other); +} +void HDNodeType::InternalSwap(HDNodeType* other) { + using std::swap; + chain_code_.Swap(&other->chain_code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + private_key_.Swap(&other->private_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(depth_, other->depth_); + swap(fingerprint_, other->fingerprint_); + swap(child_num_, other->child_num_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata HDNodeType::GetMetadata() const { + protobuf_messages_2dcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace common +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::common::Success* Arena::CreateMaybeMessage< ::hw::trezor::messages::common::Success >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::common::Success >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::common::Failure* Arena::CreateMaybeMessage< ::hw::trezor::messages::common::Failure >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::common::Failure >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::common::ButtonRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::common::ButtonRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::common::ButtonRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::common::ButtonAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::common::ButtonAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::common::ButtonAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::common::PinMatrixRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::common::PinMatrixRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::common::PinMatrixRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::common::PinMatrixAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::common::PinMatrixAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::common::PinMatrixAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::common::PassphraseRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::common::PassphraseRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::common::PassphraseRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::common::PassphraseAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::common::PassphraseAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::common::PassphraseAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::common::PassphraseStateRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::common::PassphraseStateRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::common::PassphraseStateRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::common::PassphraseStateAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::common::PassphraseStateAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::common::PassphraseStateAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::common::HDNodeType* Arena::CreateMaybeMessage< ::hw::trezor::messages::common::HDNodeType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::common::HDNodeType >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-common.pb.h b/src/Core/hardware/trezor/protob/messages-common.pb.h new file mode 100644 index 00000000..040ec3dc --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-common.pb.h @@ -0,0 +1,2654 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-common.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dcommon_2eproto +#define PROTOBUF_INCLUDED_messages_2dcommon_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dcommon_2eproto + +namespace protobuf_messages_2dcommon_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[11]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dcommon_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace common { +class ButtonAck; +class ButtonAckDefaultTypeInternal; +extern ButtonAckDefaultTypeInternal _ButtonAck_default_instance_; +class ButtonRequest; +class ButtonRequestDefaultTypeInternal; +extern ButtonRequestDefaultTypeInternal _ButtonRequest_default_instance_; +class Failure; +class FailureDefaultTypeInternal; +extern FailureDefaultTypeInternal _Failure_default_instance_; +class HDNodeType; +class HDNodeTypeDefaultTypeInternal; +extern HDNodeTypeDefaultTypeInternal _HDNodeType_default_instance_; +class PassphraseAck; +class PassphraseAckDefaultTypeInternal; +extern PassphraseAckDefaultTypeInternal _PassphraseAck_default_instance_; +class PassphraseRequest; +class PassphraseRequestDefaultTypeInternal; +extern PassphraseRequestDefaultTypeInternal _PassphraseRequest_default_instance_; +class PassphraseStateAck; +class PassphraseStateAckDefaultTypeInternal; +extern PassphraseStateAckDefaultTypeInternal _PassphraseStateAck_default_instance_; +class PassphraseStateRequest; +class PassphraseStateRequestDefaultTypeInternal; +extern PassphraseStateRequestDefaultTypeInternal _PassphraseStateRequest_default_instance_; +class PinMatrixAck; +class PinMatrixAckDefaultTypeInternal; +extern PinMatrixAckDefaultTypeInternal _PinMatrixAck_default_instance_; +class PinMatrixRequest; +class PinMatrixRequestDefaultTypeInternal; +extern PinMatrixRequestDefaultTypeInternal _PinMatrixRequest_default_instance_; +class Success; +class SuccessDefaultTypeInternal; +extern SuccessDefaultTypeInternal _Success_default_instance_; +} // namespace common +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::common::ButtonAck* Arena::CreateMaybeMessage<::hw::trezor::messages::common::ButtonAck>(Arena*); +template<> ::hw::trezor::messages::common::ButtonRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::common::ButtonRequest>(Arena*); +template<> ::hw::trezor::messages::common::Failure* Arena::CreateMaybeMessage<::hw::trezor::messages::common::Failure>(Arena*); +template<> ::hw::trezor::messages::common::HDNodeType* Arena::CreateMaybeMessage<::hw::trezor::messages::common::HDNodeType>(Arena*); +template<> ::hw::trezor::messages::common::PassphraseAck* Arena::CreateMaybeMessage<::hw::trezor::messages::common::PassphraseAck>(Arena*); +template<> ::hw::trezor::messages::common::PassphraseRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::common::PassphraseRequest>(Arena*); +template<> ::hw::trezor::messages::common::PassphraseStateAck* Arena::CreateMaybeMessage<::hw::trezor::messages::common::PassphraseStateAck>(Arena*); +template<> ::hw::trezor::messages::common::PassphraseStateRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::common::PassphraseStateRequest>(Arena*); +template<> ::hw::trezor::messages::common::PinMatrixAck* Arena::CreateMaybeMessage<::hw::trezor::messages::common::PinMatrixAck>(Arena*); +template<> ::hw::trezor::messages::common::PinMatrixRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::common::PinMatrixRequest>(Arena*); +template<> ::hw::trezor::messages::common::Success* Arena::CreateMaybeMessage<::hw::trezor::messages::common::Success>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace common { + +enum Failure_FailureType { + Failure_FailureType_Failure_UnexpectedMessage = 1, + Failure_FailureType_Failure_ButtonExpected = 2, + Failure_FailureType_Failure_DataError = 3, + Failure_FailureType_Failure_ActionCancelled = 4, + Failure_FailureType_Failure_PinExpected = 5, + Failure_FailureType_Failure_PinCancelled = 6, + Failure_FailureType_Failure_PinInvalid = 7, + Failure_FailureType_Failure_InvalidSignature = 8, + Failure_FailureType_Failure_ProcessError = 9, + Failure_FailureType_Failure_NotEnoughFunds = 10, + Failure_FailureType_Failure_NotInitialized = 11, + Failure_FailureType_Failure_PinMismatch = 12, + Failure_FailureType_Failure_FirmwareError = 99 +}; +bool Failure_FailureType_IsValid(int value); +const Failure_FailureType Failure_FailureType_FailureType_MIN = Failure_FailureType_Failure_UnexpectedMessage; +const Failure_FailureType Failure_FailureType_FailureType_MAX = Failure_FailureType_Failure_FirmwareError; +const int Failure_FailureType_FailureType_ARRAYSIZE = Failure_FailureType_FailureType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Failure_FailureType_descriptor(); +inline const ::std::string& Failure_FailureType_Name(Failure_FailureType value) { + return ::google::protobuf::internal::NameOfEnum( + Failure_FailureType_descriptor(), value); +} +inline bool Failure_FailureType_Parse( + const ::std::string& name, Failure_FailureType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Failure_FailureType_descriptor(), name, value); +} +enum ButtonRequest_ButtonRequestType { + ButtonRequest_ButtonRequestType_ButtonRequest_Other = 1, + ButtonRequest_ButtonRequestType_ButtonRequest_FeeOverThreshold = 2, + ButtonRequest_ButtonRequestType_ButtonRequest_ConfirmOutput = 3, + ButtonRequest_ButtonRequestType_ButtonRequest_ResetDevice = 4, + ButtonRequest_ButtonRequestType_ButtonRequest_ConfirmWord = 5, + ButtonRequest_ButtonRequestType_ButtonRequest_WipeDevice = 6, + ButtonRequest_ButtonRequestType_ButtonRequest_ProtectCall = 7, + ButtonRequest_ButtonRequestType_ButtonRequest_SignTx = 8, + ButtonRequest_ButtonRequestType_ButtonRequest_FirmwareCheck = 9, + ButtonRequest_ButtonRequestType_ButtonRequest_Address = 10, + ButtonRequest_ButtonRequestType_ButtonRequest_PublicKey = 11, + ButtonRequest_ButtonRequestType_ButtonRequest_MnemonicWordCount = 12, + ButtonRequest_ButtonRequestType_ButtonRequest_MnemonicInput = 13, + ButtonRequest_ButtonRequestType_ButtonRequest_PassphraseType = 14, + ButtonRequest_ButtonRequestType_ButtonRequest_UnknownDerivationPath = 15 +}; +bool ButtonRequest_ButtonRequestType_IsValid(int value); +const ButtonRequest_ButtonRequestType ButtonRequest_ButtonRequestType_ButtonRequestType_MIN = ButtonRequest_ButtonRequestType_ButtonRequest_Other; +const ButtonRequest_ButtonRequestType ButtonRequest_ButtonRequestType_ButtonRequestType_MAX = ButtonRequest_ButtonRequestType_ButtonRequest_UnknownDerivationPath; +const int ButtonRequest_ButtonRequestType_ButtonRequestType_ARRAYSIZE = ButtonRequest_ButtonRequestType_ButtonRequestType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ButtonRequest_ButtonRequestType_descriptor(); +inline const ::std::string& ButtonRequest_ButtonRequestType_Name(ButtonRequest_ButtonRequestType value) { + return ::google::protobuf::internal::NameOfEnum( + ButtonRequest_ButtonRequestType_descriptor(), value); +} +inline bool ButtonRequest_ButtonRequestType_Parse( + const ::std::string& name, ButtonRequest_ButtonRequestType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ButtonRequest_ButtonRequestType_descriptor(), name, value); +} +enum PinMatrixRequest_PinMatrixRequestType { + PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_Current = 1, + PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_NewFirst = 2, + PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_NewSecond = 3 +}; +bool PinMatrixRequest_PinMatrixRequestType_IsValid(int value); +const PinMatrixRequest_PinMatrixRequestType PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_MIN = PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_Current; +const PinMatrixRequest_PinMatrixRequestType PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_MAX = PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_NewSecond; +const int PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_ARRAYSIZE = PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* PinMatrixRequest_PinMatrixRequestType_descriptor(); +inline const ::std::string& PinMatrixRequest_PinMatrixRequestType_Name(PinMatrixRequest_PinMatrixRequestType value) { + return ::google::protobuf::internal::NameOfEnum( + PinMatrixRequest_PinMatrixRequestType_descriptor(), value); +} +inline bool PinMatrixRequest_PinMatrixRequestType_Parse( + const ::std::string& name, PinMatrixRequest_PinMatrixRequestType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + PinMatrixRequest_PinMatrixRequestType_descriptor(), name, value); +} +// =================================================================== + +class Success : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.common.Success) */ { + public: + Success(); + virtual ~Success(); + + Success(const Success& from); + + inline Success& operator=(const Success& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Success(Success&& from) noexcept + : Success() { + *this = ::std::move(from); + } + + inline Success& operator=(Success&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Success& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Success* internal_default_instance() { + return reinterpret_cast( + &_Success_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Success* other); + friend void swap(Success& a, Success& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Success* New() const final { + return CreateMaybeMessage(NULL); + } + + Success* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Success& from); + void MergeFrom(const Success& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Success* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string message = 1; + bool has_message() const; + void clear_message(); + static const int kMessageFieldNumber = 1; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const char* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.common.Success) + private: + void set_has_message(); + void clear_has_message(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr message_; + friend struct ::protobuf_messages_2dcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class Failure : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.common.Failure) */ { + public: + Failure(); + virtual ~Failure(); + + Failure(const Failure& from); + + inline Failure& operator=(const Failure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Failure(Failure&& from) noexcept + : Failure() { + *this = ::std::move(from); + } + + inline Failure& operator=(Failure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Failure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Failure* internal_default_instance() { + return reinterpret_cast( + &_Failure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(Failure* other); + friend void swap(Failure& a, Failure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Failure* New() const final { + return CreateMaybeMessage(NULL); + } + + Failure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Failure& from); + void MergeFrom(const Failure& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Failure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Failure_FailureType FailureType; + static const FailureType Failure_UnexpectedMessage = + Failure_FailureType_Failure_UnexpectedMessage; + static const FailureType Failure_ButtonExpected = + Failure_FailureType_Failure_ButtonExpected; + static const FailureType Failure_DataError = + Failure_FailureType_Failure_DataError; + static const FailureType Failure_ActionCancelled = + Failure_FailureType_Failure_ActionCancelled; + static const FailureType Failure_PinExpected = + Failure_FailureType_Failure_PinExpected; + static const FailureType Failure_PinCancelled = + Failure_FailureType_Failure_PinCancelled; + static const FailureType Failure_PinInvalid = + Failure_FailureType_Failure_PinInvalid; + static const FailureType Failure_InvalidSignature = + Failure_FailureType_Failure_InvalidSignature; + static const FailureType Failure_ProcessError = + Failure_FailureType_Failure_ProcessError; + static const FailureType Failure_NotEnoughFunds = + Failure_FailureType_Failure_NotEnoughFunds; + static const FailureType Failure_NotInitialized = + Failure_FailureType_Failure_NotInitialized; + static const FailureType Failure_PinMismatch = + Failure_FailureType_Failure_PinMismatch; + static const FailureType Failure_FirmwareError = + Failure_FailureType_Failure_FirmwareError; + static inline bool FailureType_IsValid(int value) { + return Failure_FailureType_IsValid(value); + } + static const FailureType FailureType_MIN = + Failure_FailureType_FailureType_MIN; + static const FailureType FailureType_MAX = + Failure_FailureType_FailureType_MAX; + static const int FailureType_ARRAYSIZE = + Failure_FailureType_FailureType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + FailureType_descriptor() { + return Failure_FailureType_descriptor(); + } + static inline const ::std::string& FailureType_Name(FailureType value) { + return Failure_FailureType_Name(value); + } + static inline bool FailureType_Parse(const ::std::string& name, + FailureType* value) { + return Failure_FailureType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional string message = 2; + bool has_message() const; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const char* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // optional .hw.trezor.messages.common.Failure.FailureType code = 1; + bool has_code() const; + void clear_code(); + static const int kCodeFieldNumber = 1; + ::hw::trezor::messages::common::Failure_FailureType code() const; + void set_code(::hw::trezor::messages::common::Failure_FailureType value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.common.Failure) + private: + void set_has_code(); + void clear_has_code(); + void set_has_message(); + void clear_has_message(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr message_; + int code_; + friend struct ::protobuf_messages_2dcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class ButtonRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.common.ButtonRequest) */ { + public: + ButtonRequest(); + virtual ~ButtonRequest(); + + ButtonRequest(const ButtonRequest& from); + + inline ButtonRequest& operator=(const ButtonRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ButtonRequest(ButtonRequest&& from) noexcept + : ButtonRequest() { + *this = ::std::move(from); + } + + inline ButtonRequest& operator=(ButtonRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ButtonRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ButtonRequest* internal_default_instance() { + return reinterpret_cast( + &_ButtonRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(ButtonRequest* other); + friend void swap(ButtonRequest& a, ButtonRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ButtonRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + ButtonRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ButtonRequest& from); + void MergeFrom(const ButtonRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ButtonRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ButtonRequest_ButtonRequestType ButtonRequestType; + static const ButtonRequestType ButtonRequest_Other = + ButtonRequest_ButtonRequestType_ButtonRequest_Other; + static const ButtonRequestType ButtonRequest_FeeOverThreshold = + ButtonRequest_ButtonRequestType_ButtonRequest_FeeOverThreshold; + static const ButtonRequestType ButtonRequest_ConfirmOutput = + ButtonRequest_ButtonRequestType_ButtonRequest_ConfirmOutput; + static const ButtonRequestType ButtonRequest_ResetDevice = + ButtonRequest_ButtonRequestType_ButtonRequest_ResetDevice; + static const ButtonRequestType ButtonRequest_ConfirmWord = + ButtonRequest_ButtonRequestType_ButtonRequest_ConfirmWord; + static const ButtonRequestType ButtonRequest_WipeDevice = + ButtonRequest_ButtonRequestType_ButtonRequest_WipeDevice; + static const ButtonRequestType ButtonRequest_ProtectCall = + ButtonRequest_ButtonRequestType_ButtonRequest_ProtectCall; + static const ButtonRequestType ButtonRequest_SignTx = + ButtonRequest_ButtonRequestType_ButtonRequest_SignTx; + static const ButtonRequestType ButtonRequest_FirmwareCheck = + ButtonRequest_ButtonRequestType_ButtonRequest_FirmwareCheck; + static const ButtonRequestType ButtonRequest_Address = + ButtonRequest_ButtonRequestType_ButtonRequest_Address; + static const ButtonRequestType ButtonRequest_PublicKey = + ButtonRequest_ButtonRequestType_ButtonRequest_PublicKey; + static const ButtonRequestType ButtonRequest_MnemonicWordCount = + ButtonRequest_ButtonRequestType_ButtonRequest_MnemonicWordCount; + static const ButtonRequestType ButtonRequest_MnemonicInput = + ButtonRequest_ButtonRequestType_ButtonRequest_MnemonicInput; + static const ButtonRequestType ButtonRequest_PassphraseType = + ButtonRequest_ButtonRequestType_ButtonRequest_PassphraseType; + static const ButtonRequestType ButtonRequest_UnknownDerivationPath = + ButtonRequest_ButtonRequestType_ButtonRequest_UnknownDerivationPath; + static inline bool ButtonRequestType_IsValid(int value) { + return ButtonRequest_ButtonRequestType_IsValid(value); + } + static const ButtonRequestType ButtonRequestType_MIN = + ButtonRequest_ButtonRequestType_ButtonRequestType_MIN; + static const ButtonRequestType ButtonRequestType_MAX = + ButtonRequest_ButtonRequestType_ButtonRequestType_MAX; + static const int ButtonRequestType_ARRAYSIZE = + ButtonRequest_ButtonRequestType_ButtonRequestType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ButtonRequestType_descriptor() { + return ButtonRequest_ButtonRequestType_descriptor(); + } + static inline const ::std::string& ButtonRequestType_Name(ButtonRequestType value) { + return ButtonRequest_ButtonRequestType_Name(value); + } + static inline bool ButtonRequestType_Parse(const ::std::string& name, + ButtonRequestType* value) { + return ButtonRequest_ButtonRequestType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional string data = 2; + bool has_data() const; + void clear_data(); + static const int kDataFieldNumber = 2; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const char* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // optional .hw.trezor.messages.common.ButtonRequest.ButtonRequestType code = 1; + bool has_code() const; + void clear_code(); + static const int kCodeFieldNumber = 1; + ::hw::trezor::messages::common::ButtonRequest_ButtonRequestType code() const; + void set_code(::hw::trezor::messages::common::ButtonRequest_ButtonRequestType value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.common.ButtonRequest) + private: + void set_has_code(); + void clear_has_code(); + void set_has_data(); + void clear_has_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr data_; + int code_; + friend struct ::protobuf_messages_2dcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class ButtonAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.common.ButtonAck) */ { + public: + ButtonAck(); + virtual ~ButtonAck(); + + ButtonAck(const ButtonAck& from); + + inline ButtonAck& operator=(const ButtonAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ButtonAck(ButtonAck&& from) noexcept + : ButtonAck() { + *this = ::std::move(from); + } + + inline ButtonAck& operator=(ButtonAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ButtonAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ButtonAck* internal_default_instance() { + return reinterpret_cast( + &_ButtonAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ButtonAck* other); + friend void swap(ButtonAck& a, ButtonAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ButtonAck* New() const final { + return CreateMaybeMessage(NULL); + } + + ButtonAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ButtonAck& from); + void MergeFrom(const ButtonAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ButtonAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.common.ButtonAck) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class PinMatrixRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.common.PinMatrixRequest) */ { + public: + PinMatrixRequest(); + virtual ~PinMatrixRequest(); + + PinMatrixRequest(const PinMatrixRequest& from); + + inline PinMatrixRequest& operator=(const PinMatrixRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PinMatrixRequest(PinMatrixRequest&& from) noexcept + : PinMatrixRequest() { + *this = ::std::move(from); + } + + inline PinMatrixRequest& operator=(PinMatrixRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PinMatrixRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PinMatrixRequest* internal_default_instance() { + return reinterpret_cast( + &_PinMatrixRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(PinMatrixRequest* other); + friend void swap(PinMatrixRequest& a, PinMatrixRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PinMatrixRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + PinMatrixRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PinMatrixRequest& from); + void MergeFrom(const PinMatrixRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PinMatrixRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef PinMatrixRequest_PinMatrixRequestType PinMatrixRequestType; + static const PinMatrixRequestType PinMatrixRequestType_Current = + PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_Current; + static const PinMatrixRequestType PinMatrixRequestType_NewFirst = + PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_NewFirst; + static const PinMatrixRequestType PinMatrixRequestType_NewSecond = + PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_NewSecond; + static inline bool PinMatrixRequestType_IsValid(int value) { + return PinMatrixRequest_PinMatrixRequestType_IsValid(value); + } + static const PinMatrixRequestType PinMatrixRequestType_MIN = + PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_MIN; + static const PinMatrixRequestType PinMatrixRequestType_MAX = + PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_MAX; + static const int PinMatrixRequestType_ARRAYSIZE = + PinMatrixRequest_PinMatrixRequestType_PinMatrixRequestType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + PinMatrixRequestType_descriptor() { + return PinMatrixRequest_PinMatrixRequestType_descriptor(); + } + static inline const ::std::string& PinMatrixRequestType_Name(PinMatrixRequestType value) { + return PinMatrixRequest_PinMatrixRequestType_Name(value); + } + static inline bool PinMatrixRequestType_Parse(const ::std::string& name, + PinMatrixRequestType* value) { + return PinMatrixRequest_PinMatrixRequestType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.common.PinMatrixRequest.PinMatrixRequestType type = 1; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 1; + ::hw::trezor::messages::common::PinMatrixRequest_PinMatrixRequestType type() const; + void set_type(::hw::trezor::messages::common::PinMatrixRequest_PinMatrixRequestType value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.common.PinMatrixRequest) + private: + void set_has_type(); + void clear_has_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + int type_; + friend struct ::protobuf_messages_2dcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class PinMatrixAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.common.PinMatrixAck) */ { + public: + PinMatrixAck(); + virtual ~PinMatrixAck(); + + PinMatrixAck(const PinMatrixAck& from); + + inline PinMatrixAck& operator=(const PinMatrixAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PinMatrixAck(PinMatrixAck&& from) noexcept + : PinMatrixAck() { + *this = ::std::move(from); + } + + inline PinMatrixAck& operator=(PinMatrixAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PinMatrixAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PinMatrixAck* internal_default_instance() { + return reinterpret_cast( + &_PinMatrixAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(PinMatrixAck* other); + friend void swap(PinMatrixAck& a, PinMatrixAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PinMatrixAck* New() const final { + return CreateMaybeMessage(NULL); + } + + PinMatrixAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PinMatrixAck& from); + void MergeFrom(const PinMatrixAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PinMatrixAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string pin = 1; + bool has_pin() const; + void clear_pin(); + static const int kPinFieldNumber = 1; + const ::std::string& pin() const; + void set_pin(const ::std::string& value); + #if LANG_CXX11 + void set_pin(::std::string&& value); + #endif + void set_pin(const char* value); + void set_pin(const char* value, size_t size); + ::std::string* mutable_pin(); + ::std::string* release_pin(); + void set_allocated_pin(::std::string* pin); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.common.PinMatrixAck) + private: + void set_has_pin(); + void clear_has_pin(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr pin_; + friend struct ::protobuf_messages_2dcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class PassphraseRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.common.PassphraseRequest) */ { + public: + PassphraseRequest(); + virtual ~PassphraseRequest(); + + PassphraseRequest(const PassphraseRequest& from); + + inline PassphraseRequest& operator=(const PassphraseRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PassphraseRequest(PassphraseRequest&& from) noexcept + : PassphraseRequest() { + *this = ::std::move(from); + } + + inline PassphraseRequest& operator=(PassphraseRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PassphraseRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PassphraseRequest* internal_default_instance() { + return reinterpret_cast( + &_PassphraseRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(PassphraseRequest* other); + friend void swap(PassphraseRequest& a, PassphraseRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PassphraseRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + PassphraseRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PassphraseRequest& from); + void MergeFrom(const PassphraseRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PassphraseRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool on_device = 1; + bool has_on_device() const; + void clear_on_device(); + static const int kOnDeviceFieldNumber = 1; + bool on_device() const; + void set_on_device(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.common.PassphraseRequest) + private: + void set_has_on_device(); + void clear_has_on_device(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + bool on_device_; + friend struct ::protobuf_messages_2dcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class PassphraseAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.common.PassphraseAck) */ { + public: + PassphraseAck(); + virtual ~PassphraseAck(); + + PassphraseAck(const PassphraseAck& from); + + inline PassphraseAck& operator=(const PassphraseAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PassphraseAck(PassphraseAck&& from) noexcept + : PassphraseAck() { + *this = ::std::move(from); + } + + inline PassphraseAck& operator=(PassphraseAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PassphraseAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PassphraseAck* internal_default_instance() { + return reinterpret_cast( + &_PassphraseAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(PassphraseAck* other); + friend void swap(PassphraseAck& a, PassphraseAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PassphraseAck* New() const final { + return CreateMaybeMessage(NULL); + } + + PassphraseAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PassphraseAck& from); + void MergeFrom(const PassphraseAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PassphraseAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string passphrase = 1; + bool has_passphrase() const; + void clear_passphrase(); + static const int kPassphraseFieldNumber = 1; + const ::std::string& passphrase() const; + void set_passphrase(const ::std::string& value); + #if LANG_CXX11 + void set_passphrase(::std::string&& value); + #endif + void set_passphrase(const char* value); + void set_passphrase(const char* value, size_t size); + ::std::string* mutable_passphrase(); + ::std::string* release_passphrase(); + void set_allocated_passphrase(::std::string* passphrase); + + // optional bytes state = 2; + bool has_state() const; + void clear_state(); + static const int kStateFieldNumber = 2; + const ::std::string& state() const; + void set_state(const ::std::string& value); + #if LANG_CXX11 + void set_state(::std::string&& value); + #endif + void set_state(const char* value); + void set_state(const void* value, size_t size); + ::std::string* mutable_state(); + ::std::string* release_state(); + void set_allocated_state(::std::string* state); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.common.PassphraseAck) + private: + void set_has_passphrase(); + void clear_has_passphrase(); + void set_has_state(); + void clear_has_state(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr passphrase_; + ::google::protobuf::internal::ArenaStringPtr state_; + friend struct ::protobuf_messages_2dcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class PassphraseStateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.common.PassphraseStateRequest) */ { + public: + PassphraseStateRequest(); + virtual ~PassphraseStateRequest(); + + PassphraseStateRequest(const PassphraseStateRequest& from); + + inline PassphraseStateRequest& operator=(const PassphraseStateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PassphraseStateRequest(PassphraseStateRequest&& from) noexcept + : PassphraseStateRequest() { + *this = ::std::move(from); + } + + inline PassphraseStateRequest& operator=(PassphraseStateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PassphraseStateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PassphraseStateRequest* internal_default_instance() { + return reinterpret_cast( + &_PassphraseStateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(PassphraseStateRequest* other); + friend void swap(PassphraseStateRequest& a, PassphraseStateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PassphraseStateRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + PassphraseStateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PassphraseStateRequest& from); + void MergeFrom(const PassphraseStateRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PassphraseStateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes state = 1; + bool has_state() const; + void clear_state(); + static const int kStateFieldNumber = 1; + const ::std::string& state() const; + void set_state(const ::std::string& value); + #if LANG_CXX11 + void set_state(::std::string&& value); + #endif + void set_state(const char* value); + void set_state(const void* value, size_t size); + ::std::string* mutable_state(); + ::std::string* release_state(); + void set_allocated_state(::std::string* state); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.common.PassphraseStateRequest) + private: + void set_has_state(); + void clear_has_state(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr state_; + friend struct ::protobuf_messages_2dcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class PassphraseStateAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.common.PassphraseStateAck) */ { + public: + PassphraseStateAck(); + virtual ~PassphraseStateAck(); + + PassphraseStateAck(const PassphraseStateAck& from); + + inline PassphraseStateAck& operator=(const PassphraseStateAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PassphraseStateAck(PassphraseStateAck&& from) noexcept + : PassphraseStateAck() { + *this = ::std::move(from); + } + + inline PassphraseStateAck& operator=(PassphraseStateAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PassphraseStateAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PassphraseStateAck* internal_default_instance() { + return reinterpret_cast( + &_PassphraseStateAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(PassphraseStateAck* other); + friend void swap(PassphraseStateAck& a, PassphraseStateAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PassphraseStateAck* New() const final { + return CreateMaybeMessage(NULL); + } + + PassphraseStateAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PassphraseStateAck& from); + void MergeFrom(const PassphraseStateAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PassphraseStateAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.common.PassphraseStateAck) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class HDNodeType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.common.HDNodeType) */ { + public: + HDNodeType(); + virtual ~HDNodeType(); + + HDNodeType(const HDNodeType& from); + + inline HDNodeType& operator=(const HDNodeType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HDNodeType(HDNodeType&& from) noexcept + : HDNodeType() { + *this = ::std::move(from); + } + + inline HDNodeType& operator=(HDNodeType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const HDNodeType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HDNodeType* internal_default_instance() { + return reinterpret_cast( + &_HDNodeType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(HDNodeType* other); + friend void swap(HDNodeType& a, HDNodeType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HDNodeType* New() const final { + return CreateMaybeMessage(NULL); + } + + HDNodeType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HDNodeType& from); + void MergeFrom(const HDNodeType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HDNodeType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes chain_code = 4; + bool has_chain_code() const; + void clear_chain_code(); + static const int kChainCodeFieldNumber = 4; + const ::std::string& chain_code() const; + void set_chain_code(const ::std::string& value); + #if LANG_CXX11 + void set_chain_code(::std::string&& value); + #endif + void set_chain_code(const char* value); + void set_chain_code(const void* value, size_t size); + ::std::string* mutable_chain_code(); + ::std::string* release_chain_code(); + void set_allocated_chain_code(::std::string* chain_code); + + // optional bytes private_key = 5; + bool has_private_key() const; + void clear_private_key(); + static const int kPrivateKeyFieldNumber = 5; + const ::std::string& private_key() const; + void set_private_key(const ::std::string& value); + #if LANG_CXX11 + void set_private_key(::std::string&& value); + #endif + void set_private_key(const char* value); + void set_private_key(const void* value, size_t size); + ::std::string* mutable_private_key(); + ::std::string* release_private_key(); + void set_allocated_private_key(::std::string* private_key); + + // optional bytes public_key = 6; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 6; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // required uint32 depth = 1; + bool has_depth() const; + void clear_depth(); + static const int kDepthFieldNumber = 1; + ::google::protobuf::uint32 depth() const; + void set_depth(::google::protobuf::uint32 value); + + // required uint32 fingerprint = 2; + bool has_fingerprint() const; + void clear_fingerprint(); + static const int kFingerprintFieldNumber = 2; + ::google::protobuf::uint32 fingerprint() const; + void set_fingerprint(::google::protobuf::uint32 value); + + // required uint32 child_num = 3; + bool has_child_num() const; + void clear_child_num(); + static const int kChildNumFieldNumber = 3; + ::google::protobuf::uint32 child_num() const; + void set_child_num(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.common.HDNodeType) + private: + void set_has_depth(); + void clear_has_depth(); + void set_has_fingerprint(); + void clear_has_fingerprint(); + void set_has_child_num(); + void clear_has_child_num(); + void set_has_chain_code(); + void clear_has_chain_code(); + void set_has_private_key(); + void clear_has_private_key(); + void set_has_public_key(); + void clear_has_public_key(); + + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr chain_code_; + ::google::protobuf::internal::ArenaStringPtr private_key_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::uint32 depth_; + ::google::protobuf::uint32 fingerprint_; + ::google::protobuf::uint32 child_num_; + friend struct ::protobuf_messages_2dcommon_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Success + +// optional string message = 1; +inline bool Success::has_message() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Success::set_has_message() { + _has_bits_[0] |= 0x00000001u; +} +inline void Success::clear_has_message() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Success::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_message(); +} +inline const ::std::string& Success::message() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.Success.message) + return message_.GetNoArena(); +} +inline void Success::set_message(const ::std::string& value) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.Success.message) +} +#if LANG_CXX11 +inline void Success::set_message(::std::string&& value) { + set_has_message(); + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.common.Success.message) +} +#endif +inline void Success::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.common.Success.message) +} +inline void Success::set_message(const char* value, size_t size) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.common.Success.message) +} +inline ::std::string* Success::mutable_message() { + set_has_message(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.common.Success.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Success::release_message() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.common.Success.message) + if (!has_message()) { + return NULL; + } + clear_has_message(); + return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Success::set_allocated_message(::std::string* message) { + if (message != NULL) { + set_has_message(); + } else { + clear_has_message(); + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.common.Success.message) +} + +// ------------------------------------------------------------------- + +// Failure + +// optional .hw.trezor.messages.common.Failure.FailureType code = 1; +inline bool Failure::has_code() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Failure::set_has_code() { + _has_bits_[0] |= 0x00000002u; +} +inline void Failure::clear_has_code() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Failure::clear_code() { + code_ = 1; + clear_has_code(); +} +inline ::hw::trezor::messages::common::Failure_FailureType Failure::code() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.Failure.code) + return static_cast< ::hw::trezor::messages::common::Failure_FailureType >(code_); +} +inline void Failure::set_code(::hw::trezor::messages::common::Failure_FailureType value) { + assert(::hw::trezor::messages::common::Failure_FailureType_IsValid(value)); + set_has_code(); + code_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.Failure.code) +} + +// optional string message = 2; +inline bool Failure::has_message() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Failure::set_has_message() { + _has_bits_[0] |= 0x00000001u; +} +inline void Failure::clear_has_message() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Failure::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_message(); +} +inline const ::std::string& Failure::message() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.Failure.message) + return message_.GetNoArena(); +} +inline void Failure::set_message(const ::std::string& value) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.Failure.message) +} +#if LANG_CXX11 +inline void Failure::set_message(::std::string&& value) { + set_has_message(); + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.common.Failure.message) +} +#endif +inline void Failure::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.common.Failure.message) +} +inline void Failure::set_message(const char* value, size_t size) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.common.Failure.message) +} +inline ::std::string* Failure::mutable_message() { + set_has_message(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.common.Failure.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Failure::release_message() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.common.Failure.message) + if (!has_message()) { + return NULL; + } + clear_has_message(); + return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Failure::set_allocated_message(::std::string* message) { + if (message != NULL) { + set_has_message(); + } else { + clear_has_message(); + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.common.Failure.message) +} + +// ------------------------------------------------------------------- + +// ButtonRequest + +// optional .hw.trezor.messages.common.ButtonRequest.ButtonRequestType code = 1; +inline bool ButtonRequest::has_code() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ButtonRequest::set_has_code() { + _has_bits_[0] |= 0x00000002u; +} +inline void ButtonRequest::clear_has_code() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ButtonRequest::clear_code() { + code_ = 1; + clear_has_code(); +} +inline ::hw::trezor::messages::common::ButtonRequest_ButtonRequestType ButtonRequest::code() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.ButtonRequest.code) + return static_cast< ::hw::trezor::messages::common::ButtonRequest_ButtonRequestType >(code_); +} +inline void ButtonRequest::set_code(::hw::trezor::messages::common::ButtonRequest_ButtonRequestType value) { + assert(::hw::trezor::messages::common::ButtonRequest_ButtonRequestType_IsValid(value)); + set_has_code(); + code_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.ButtonRequest.code) +} + +// optional string data = 2; +inline bool ButtonRequest::has_data() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ButtonRequest::set_has_data() { + _has_bits_[0] |= 0x00000001u; +} +inline void ButtonRequest::clear_has_data() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ButtonRequest::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data(); +} +inline const ::std::string& ButtonRequest::data() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.ButtonRequest.data) + return data_.GetNoArena(); +} +inline void ButtonRequest::set_data(const ::std::string& value) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.ButtonRequest.data) +} +#if LANG_CXX11 +inline void ButtonRequest::set_data(::std::string&& value) { + set_has_data(); + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.common.ButtonRequest.data) +} +#endif +inline void ButtonRequest::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.common.ButtonRequest.data) +} +inline void ButtonRequest::set_data(const char* value, size_t size) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.common.ButtonRequest.data) +} +inline ::std::string* ButtonRequest::mutable_data() { + set_has_data(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.common.ButtonRequest.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ButtonRequest::release_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.common.ButtonRequest.data) + if (!has_data()) { + return NULL; + } + clear_has_data(); + return data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ButtonRequest::set_allocated_data(::std::string* data) { + if (data != NULL) { + set_has_data(); + } else { + clear_has_data(); + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.common.ButtonRequest.data) +} + +// ------------------------------------------------------------------- + +// ButtonAck + +// ------------------------------------------------------------------- + +// PinMatrixRequest + +// optional .hw.trezor.messages.common.PinMatrixRequest.PinMatrixRequestType type = 1; +inline bool PinMatrixRequest::has_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PinMatrixRequest::set_has_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void PinMatrixRequest::clear_has_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PinMatrixRequest::clear_type() { + type_ = 1; + clear_has_type(); +} +inline ::hw::trezor::messages::common::PinMatrixRequest_PinMatrixRequestType PinMatrixRequest::type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.PinMatrixRequest.type) + return static_cast< ::hw::trezor::messages::common::PinMatrixRequest_PinMatrixRequestType >(type_); +} +inline void PinMatrixRequest::set_type(::hw::trezor::messages::common::PinMatrixRequest_PinMatrixRequestType value) { + assert(::hw::trezor::messages::common::PinMatrixRequest_PinMatrixRequestType_IsValid(value)); + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.PinMatrixRequest.type) +} + +// ------------------------------------------------------------------- + +// PinMatrixAck + +// required string pin = 1; +inline bool PinMatrixAck::has_pin() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PinMatrixAck::set_has_pin() { + _has_bits_[0] |= 0x00000001u; +} +inline void PinMatrixAck::clear_has_pin() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PinMatrixAck::clear_pin() { + pin_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pin(); +} +inline const ::std::string& PinMatrixAck::pin() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.PinMatrixAck.pin) + return pin_.GetNoArena(); +} +inline void PinMatrixAck::set_pin(const ::std::string& value) { + set_has_pin(); + pin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.PinMatrixAck.pin) +} +#if LANG_CXX11 +inline void PinMatrixAck::set_pin(::std::string&& value) { + set_has_pin(); + pin_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.common.PinMatrixAck.pin) +} +#endif +inline void PinMatrixAck::set_pin(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pin(); + pin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.common.PinMatrixAck.pin) +} +inline void PinMatrixAck::set_pin(const char* value, size_t size) { + set_has_pin(); + pin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.common.PinMatrixAck.pin) +} +inline ::std::string* PinMatrixAck::mutable_pin() { + set_has_pin(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.common.PinMatrixAck.pin) + return pin_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PinMatrixAck::release_pin() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.common.PinMatrixAck.pin) + if (!has_pin()) { + return NULL; + } + clear_has_pin(); + return pin_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PinMatrixAck::set_allocated_pin(::std::string* pin) { + if (pin != NULL) { + set_has_pin(); + } else { + clear_has_pin(); + } + pin_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pin); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.common.PinMatrixAck.pin) +} + +// ------------------------------------------------------------------- + +// PassphraseRequest + +// optional bool on_device = 1; +inline bool PassphraseRequest::has_on_device() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PassphraseRequest::set_has_on_device() { + _has_bits_[0] |= 0x00000001u; +} +inline void PassphraseRequest::clear_has_on_device() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PassphraseRequest::clear_on_device() { + on_device_ = false; + clear_has_on_device(); +} +inline bool PassphraseRequest::on_device() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.PassphraseRequest.on_device) + return on_device_; +} +inline void PassphraseRequest::set_on_device(bool value) { + set_has_on_device(); + on_device_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.PassphraseRequest.on_device) +} + +// ------------------------------------------------------------------- + +// PassphraseAck + +// optional string passphrase = 1; +inline bool PassphraseAck::has_passphrase() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PassphraseAck::set_has_passphrase() { + _has_bits_[0] |= 0x00000001u; +} +inline void PassphraseAck::clear_has_passphrase() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PassphraseAck::clear_passphrase() { + passphrase_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_passphrase(); +} +inline const ::std::string& PassphraseAck::passphrase() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.PassphraseAck.passphrase) + return passphrase_.GetNoArena(); +} +inline void PassphraseAck::set_passphrase(const ::std::string& value) { + set_has_passphrase(); + passphrase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.PassphraseAck.passphrase) +} +#if LANG_CXX11 +inline void PassphraseAck::set_passphrase(::std::string&& value) { + set_has_passphrase(); + passphrase_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.common.PassphraseAck.passphrase) +} +#endif +inline void PassphraseAck::set_passphrase(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_passphrase(); + passphrase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.common.PassphraseAck.passphrase) +} +inline void PassphraseAck::set_passphrase(const char* value, size_t size) { + set_has_passphrase(); + passphrase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.common.PassphraseAck.passphrase) +} +inline ::std::string* PassphraseAck::mutable_passphrase() { + set_has_passphrase(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.common.PassphraseAck.passphrase) + return passphrase_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PassphraseAck::release_passphrase() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.common.PassphraseAck.passphrase) + if (!has_passphrase()) { + return NULL; + } + clear_has_passphrase(); + return passphrase_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PassphraseAck::set_allocated_passphrase(::std::string* passphrase) { + if (passphrase != NULL) { + set_has_passphrase(); + } else { + clear_has_passphrase(); + } + passphrase_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), passphrase); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.common.PassphraseAck.passphrase) +} + +// optional bytes state = 2; +inline bool PassphraseAck::has_state() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PassphraseAck::set_has_state() { + _has_bits_[0] |= 0x00000002u; +} +inline void PassphraseAck::clear_has_state() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PassphraseAck::clear_state() { + state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_state(); +} +inline const ::std::string& PassphraseAck::state() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.PassphraseAck.state) + return state_.GetNoArena(); +} +inline void PassphraseAck::set_state(const ::std::string& value) { + set_has_state(); + state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.PassphraseAck.state) +} +#if LANG_CXX11 +inline void PassphraseAck::set_state(::std::string&& value) { + set_has_state(); + state_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.common.PassphraseAck.state) +} +#endif +inline void PassphraseAck::set_state(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_state(); + state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.common.PassphraseAck.state) +} +inline void PassphraseAck::set_state(const void* value, size_t size) { + set_has_state(); + state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.common.PassphraseAck.state) +} +inline ::std::string* PassphraseAck::mutable_state() { + set_has_state(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.common.PassphraseAck.state) + return state_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PassphraseAck::release_state() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.common.PassphraseAck.state) + if (!has_state()) { + return NULL; + } + clear_has_state(); + return state_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PassphraseAck::set_allocated_state(::std::string* state) { + if (state != NULL) { + set_has_state(); + } else { + clear_has_state(); + } + state_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), state); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.common.PassphraseAck.state) +} + +// ------------------------------------------------------------------- + +// PassphraseStateRequest + +// optional bytes state = 1; +inline bool PassphraseStateRequest::has_state() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PassphraseStateRequest::set_has_state() { + _has_bits_[0] |= 0x00000001u; +} +inline void PassphraseStateRequest::clear_has_state() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PassphraseStateRequest::clear_state() { + state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_state(); +} +inline const ::std::string& PassphraseStateRequest::state() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.PassphraseStateRequest.state) + return state_.GetNoArena(); +} +inline void PassphraseStateRequest::set_state(const ::std::string& value) { + set_has_state(); + state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.PassphraseStateRequest.state) +} +#if LANG_CXX11 +inline void PassphraseStateRequest::set_state(::std::string&& value) { + set_has_state(); + state_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.common.PassphraseStateRequest.state) +} +#endif +inline void PassphraseStateRequest::set_state(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_state(); + state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.common.PassphraseStateRequest.state) +} +inline void PassphraseStateRequest::set_state(const void* value, size_t size) { + set_has_state(); + state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.common.PassphraseStateRequest.state) +} +inline ::std::string* PassphraseStateRequest::mutable_state() { + set_has_state(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.common.PassphraseStateRequest.state) + return state_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PassphraseStateRequest::release_state() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.common.PassphraseStateRequest.state) + if (!has_state()) { + return NULL; + } + clear_has_state(); + return state_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PassphraseStateRequest::set_allocated_state(::std::string* state) { + if (state != NULL) { + set_has_state(); + } else { + clear_has_state(); + } + state_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), state); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.common.PassphraseStateRequest.state) +} + +// ------------------------------------------------------------------- + +// PassphraseStateAck + +// ------------------------------------------------------------------- + +// HDNodeType + +// required uint32 depth = 1; +inline bool HDNodeType::has_depth() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void HDNodeType::set_has_depth() { + _has_bits_[0] |= 0x00000008u; +} +inline void HDNodeType::clear_has_depth() { + _has_bits_[0] &= ~0x00000008u; +} +inline void HDNodeType::clear_depth() { + depth_ = 0u; + clear_has_depth(); +} +inline ::google::protobuf::uint32 HDNodeType::depth() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.HDNodeType.depth) + return depth_; +} +inline void HDNodeType::set_depth(::google::protobuf::uint32 value) { + set_has_depth(); + depth_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.HDNodeType.depth) +} + +// required uint32 fingerprint = 2; +inline bool HDNodeType::has_fingerprint() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void HDNodeType::set_has_fingerprint() { + _has_bits_[0] |= 0x00000010u; +} +inline void HDNodeType::clear_has_fingerprint() { + _has_bits_[0] &= ~0x00000010u; +} +inline void HDNodeType::clear_fingerprint() { + fingerprint_ = 0u; + clear_has_fingerprint(); +} +inline ::google::protobuf::uint32 HDNodeType::fingerprint() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.HDNodeType.fingerprint) + return fingerprint_; +} +inline void HDNodeType::set_fingerprint(::google::protobuf::uint32 value) { + set_has_fingerprint(); + fingerprint_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.HDNodeType.fingerprint) +} + +// required uint32 child_num = 3; +inline bool HDNodeType::has_child_num() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void HDNodeType::set_has_child_num() { + _has_bits_[0] |= 0x00000020u; +} +inline void HDNodeType::clear_has_child_num() { + _has_bits_[0] &= ~0x00000020u; +} +inline void HDNodeType::clear_child_num() { + child_num_ = 0u; + clear_has_child_num(); +} +inline ::google::protobuf::uint32 HDNodeType::child_num() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.HDNodeType.child_num) + return child_num_; +} +inline void HDNodeType::set_child_num(::google::protobuf::uint32 value) { + set_has_child_num(); + child_num_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.HDNodeType.child_num) +} + +// required bytes chain_code = 4; +inline bool HDNodeType::has_chain_code() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void HDNodeType::set_has_chain_code() { + _has_bits_[0] |= 0x00000001u; +} +inline void HDNodeType::clear_has_chain_code() { + _has_bits_[0] &= ~0x00000001u; +} +inline void HDNodeType::clear_chain_code() { + chain_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_chain_code(); +} +inline const ::std::string& HDNodeType::chain_code() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.HDNodeType.chain_code) + return chain_code_.GetNoArena(); +} +inline void HDNodeType::set_chain_code(const ::std::string& value) { + set_has_chain_code(); + chain_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.HDNodeType.chain_code) +} +#if LANG_CXX11 +inline void HDNodeType::set_chain_code(::std::string&& value) { + set_has_chain_code(); + chain_code_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.common.HDNodeType.chain_code) +} +#endif +inline void HDNodeType::set_chain_code(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_chain_code(); + chain_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.common.HDNodeType.chain_code) +} +inline void HDNodeType::set_chain_code(const void* value, size_t size) { + set_has_chain_code(); + chain_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.common.HDNodeType.chain_code) +} +inline ::std::string* HDNodeType::mutable_chain_code() { + set_has_chain_code(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.common.HDNodeType.chain_code) + return chain_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* HDNodeType::release_chain_code() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.common.HDNodeType.chain_code) + if (!has_chain_code()) { + return NULL; + } + clear_has_chain_code(); + return chain_code_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void HDNodeType::set_allocated_chain_code(::std::string* chain_code) { + if (chain_code != NULL) { + set_has_chain_code(); + } else { + clear_has_chain_code(); + } + chain_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chain_code); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.common.HDNodeType.chain_code) +} + +// optional bytes private_key = 5; +inline bool HDNodeType::has_private_key() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void HDNodeType::set_has_private_key() { + _has_bits_[0] |= 0x00000002u; +} +inline void HDNodeType::clear_has_private_key() { + _has_bits_[0] &= ~0x00000002u; +} +inline void HDNodeType::clear_private_key() { + private_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_private_key(); +} +inline const ::std::string& HDNodeType::private_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.HDNodeType.private_key) + return private_key_.GetNoArena(); +} +inline void HDNodeType::set_private_key(const ::std::string& value) { + set_has_private_key(); + private_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.HDNodeType.private_key) +} +#if LANG_CXX11 +inline void HDNodeType::set_private_key(::std::string&& value) { + set_has_private_key(); + private_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.common.HDNodeType.private_key) +} +#endif +inline void HDNodeType::set_private_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_private_key(); + private_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.common.HDNodeType.private_key) +} +inline void HDNodeType::set_private_key(const void* value, size_t size) { + set_has_private_key(); + private_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.common.HDNodeType.private_key) +} +inline ::std::string* HDNodeType::mutable_private_key() { + set_has_private_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.common.HDNodeType.private_key) + return private_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* HDNodeType::release_private_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.common.HDNodeType.private_key) + if (!has_private_key()) { + return NULL; + } + clear_has_private_key(); + return private_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void HDNodeType::set_allocated_private_key(::std::string* private_key) { + if (private_key != NULL) { + set_has_private_key(); + } else { + clear_has_private_key(); + } + private_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), private_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.common.HDNodeType.private_key) +} + +// optional bytes public_key = 6; +inline bool HDNodeType::has_public_key() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void HDNodeType::set_has_public_key() { + _has_bits_[0] |= 0x00000004u; +} +inline void HDNodeType::clear_has_public_key() { + _has_bits_[0] &= ~0x00000004u; +} +inline void HDNodeType::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& HDNodeType::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.common.HDNodeType.public_key) + return public_key_.GetNoArena(); +} +inline void HDNodeType::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.common.HDNodeType.public_key) +} +#if LANG_CXX11 +inline void HDNodeType::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.common.HDNodeType.public_key) +} +#endif +inline void HDNodeType::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.common.HDNodeType.public_key) +} +inline void HDNodeType::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.common.HDNodeType.public_key) +} +inline ::std::string* HDNodeType::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.common.HDNodeType.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* HDNodeType::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.common.HDNodeType.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void HDNodeType::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.common.HDNodeType.public_key) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace common +} // namespace messages +} // namespace trezor +} // namespace hw + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::hw::trezor::messages::common::Failure_FailureType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::common::Failure_FailureType>() { + return ::hw::trezor::messages::common::Failure_FailureType_descriptor(); +} +template <> struct is_proto_enum< ::hw::trezor::messages::common::ButtonRequest_ButtonRequestType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::common::ButtonRequest_ButtonRequestType>() { + return ::hw::trezor::messages::common::ButtonRequest_ButtonRequestType_descriptor(); +} +template <> struct is_proto_enum< ::hw::trezor::messages::common::PinMatrixRequest_PinMatrixRequestType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::common::PinMatrixRequest_PinMatrixRequestType>() { + return ::hw::trezor::messages::common::PinMatrixRequest_PinMatrixRequestType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dcommon_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-crypto.pb.cc b/src/Core/hardware/trezor/protob/messages-crypto.pb.cc new file mode 100644 index 00000000..7e8b06d5 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-crypto.pb.cc @@ -0,0 +1,4367 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-crypto.proto + +#include "messages-crypto.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dcrypto_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dcrypto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IdentityType; +} // namespace protobuf_messages_2dcrypto_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace crypto { +class CipherKeyValueDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CipherKeyValue_default_instance_; +class CipheredKeyValueDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CipheredKeyValue_default_instance_; +class IdentityTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _IdentityType_default_instance_; +class SignIdentityDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SignIdentity_default_instance_; +class SignedIdentityDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SignedIdentity_default_instance_; +class GetECDHSessionKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetECDHSessionKey_default_instance_; +class ECDHSessionKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ECDHSessionKey_default_instance_; +class CosiCommitDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CosiCommit_default_instance_; +class CosiCommitmentDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CosiCommitment_default_instance_; +class CosiSignDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CosiSign_default_instance_; +class CosiSignatureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CosiSignature_default_instance_; +} // namespace crypto +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dcrypto_2eproto { +static void InitDefaultsCipherKeyValue() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::crypto::_CipherKeyValue_default_instance_; + new (ptr) ::hw::trezor::messages::crypto::CipherKeyValue(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::crypto::CipherKeyValue::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CipherKeyValue = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCipherKeyValue}, {}}; + +static void InitDefaultsCipheredKeyValue() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::crypto::_CipheredKeyValue_default_instance_; + new (ptr) ::hw::trezor::messages::crypto::CipheredKeyValue(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::crypto::CipheredKeyValue::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CipheredKeyValue = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCipheredKeyValue}, {}}; + +static void InitDefaultsIdentityType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::crypto::_IdentityType_default_instance_; + new (ptr) ::hw::trezor::messages::crypto::IdentityType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::crypto::IdentityType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_IdentityType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIdentityType}, {}}; + +static void InitDefaultsSignIdentity() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::crypto::_SignIdentity_default_instance_; + new (ptr) ::hw::trezor::messages::crypto::SignIdentity(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::crypto::SignIdentity::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_SignIdentity = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSignIdentity}, { + &protobuf_messages_2dcrypto_2eproto::scc_info_IdentityType.base,}}; + +static void InitDefaultsSignedIdentity() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::crypto::_SignedIdentity_default_instance_; + new (ptr) ::hw::trezor::messages::crypto::SignedIdentity(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::crypto::SignedIdentity::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SignedIdentity = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSignedIdentity}, {}}; + +static void InitDefaultsGetECDHSessionKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::crypto::_GetECDHSessionKey_default_instance_; + new (ptr) ::hw::trezor::messages::crypto::GetECDHSessionKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::crypto::GetECDHSessionKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetECDHSessionKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetECDHSessionKey}, { + &protobuf_messages_2dcrypto_2eproto::scc_info_IdentityType.base,}}; + +static void InitDefaultsECDHSessionKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::crypto::_ECDHSessionKey_default_instance_; + new (ptr) ::hw::trezor::messages::crypto::ECDHSessionKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::crypto::ECDHSessionKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ECDHSessionKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsECDHSessionKey}, {}}; + +static void InitDefaultsCosiCommit() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::crypto::_CosiCommit_default_instance_; + new (ptr) ::hw::trezor::messages::crypto::CosiCommit(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::crypto::CosiCommit::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CosiCommit = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCosiCommit}, {}}; + +static void InitDefaultsCosiCommitment() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::crypto::_CosiCommitment_default_instance_; + new (ptr) ::hw::trezor::messages::crypto::CosiCommitment(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::crypto::CosiCommitment::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CosiCommitment = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCosiCommitment}, {}}; + +static void InitDefaultsCosiSign() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::crypto::_CosiSign_default_instance_; + new (ptr) ::hw::trezor::messages::crypto::CosiSign(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::crypto::CosiSign::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CosiSign = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCosiSign}, {}}; + +static void InitDefaultsCosiSignature() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::crypto::_CosiSignature_default_instance_; + new (ptr) ::hw::trezor::messages::crypto::CosiSignature(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::crypto::CosiSignature::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CosiSignature = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCosiSignature}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_CipherKeyValue.base); + ::google::protobuf::internal::InitSCC(&scc_info_CipheredKeyValue.base); + ::google::protobuf::internal::InitSCC(&scc_info_IdentityType.base); + ::google::protobuf::internal::InitSCC(&scc_info_SignIdentity.base); + ::google::protobuf::internal::InitSCC(&scc_info_SignedIdentity.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetECDHSessionKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_ECDHSessionKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_CosiCommit.base); + ::google::protobuf::internal::InitSCC(&scc_info_CosiCommitment.base); + ::google::protobuf::internal::InitSCC(&scc_info_CosiSign.base); + ::google::protobuf::internal::InitSCC(&scc_info_CosiSignature.base); +} + +::google::protobuf::Metadata file_level_metadata[11]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipherKeyValue, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipherKeyValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipherKeyValue, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipherKeyValue, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipherKeyValue, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipherKeyValue, encrypt_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipherKeyValue, ask_on_encrypt_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipherKeyValue, ask_on_decrypt_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipherKeyValue, iv_), + ~0u, + 0, + 1, + 3, + 4, + 5, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipheredKeyValue, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipheredKeyValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CipheredKeyValue, value_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::IdentityType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::IdentityType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::IdentityType, proto_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::IdentityType, user_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::IdentityType, host_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::IdentityType, port_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::IdentityType, path_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::IdentityType, index_), + 0, + 1, + 2, + 3, + 4, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::SignIdentity, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::SignIdentity, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::SignIdentity, identity_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::SignIdentity, challenge_hidden_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::SignIdentity, challenge_visual_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::SignIdentity, ecdsa_curve_name_), + 3, + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::SignedIdentity, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::SignedIdentity, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::SignedIdentity, address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::SignedIdentity, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::SignedIdentity, signature_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::GetECDHSessionKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::GetECDHSessionKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::GetECDHSessionKey, identity_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::GetECDHSessionKey, peer_public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::GetECDHSessionKey, ecdsa_curve_name_), + 2, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::ECDHSessionKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::ECDHSessionKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::ECDHSessionKey, session_key_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiCommit, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiCommit, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiCommit, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiCommit, data_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiCommitment, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiCommitment, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiCommitment, commitment_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiCommitment, pubkey_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiSign, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiSign, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiSign, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiSign, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiSign, global_commitment_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiSign, global_pubkey_), + ~0u, + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiSignature, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiSignature, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::crypto::CosiSignature, signature_), + 0, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 12, sizeof(::hw::trezor::messages::crypto::CipherKeyValue)}, + { 19, 25, sizeof(::hw::trezor::messages::crypto::CipheredKeyValue)}, + { 26, 37, sizeof(::hw::trezor::messages::crypto::IdentityType)}, + { 43, 52, sizeof(::hw::trezor::messages::crypto::SignIdentity)}, + { 56, 64, sizeof(::hw::trezor::messages::crypto::SignedIdentity)}, + { 67, 75, sizeof(::hw::trezor::messages::crypto::GetECDHSessionKey)}, + { 78, 84, sizeof(::hw::trezor::messages::crypto::ECDHSessionKey)}, + { 85, 92, sizeof(::hw::trezor::messages::crypto::CosiCommit)}, + { 94, 101, sizeof(::hw::trezor::messages::crypto::CosiCommitment)}, + { 103, 112, sizeof(::hw::trezor::messages::crypto::CosiSign)}, + { 116, 122, sizeof(::hw::trezor::messages::crypto::CosiSignature)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::crypto::_CipherKeyValue_default_instance_), + reinterpret_cast(&::hw::trezor::messages::crypto::_CipheredKeyValue_default_instance_), + reinterpret_cast(&::hw::trezor::messages::crypto::_IdentityType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::crypto::_SignIdentity_default_instance_), + reinterpret_cast(&::hw::trezor::messages::crypto::_SignedIdentity_default_instance_), + reinterpret_cast(&::hw::trezor::messages::crypto::_GetECDHSessionKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::crypto::_ECDHSessionKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::crypto::_CosiCommit_default_instance_), + reinterpret_cast(&::hw::trezor::messages::crypto::_CosiCommitment_default_instance_), + reinterpret_cast(&::hw::trezor::messages::crypto::_CosiSign_default_instance_), + reinterpret_cast(&::hw::trezor::messages::crypto::_CosiSignature_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-crypto.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 11); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\025messages-crypto.proto\022\031hw.trezor.messa" + "ges.crypto\"\214\001\n\016CipherKeyValue\022\021\n\taddress" + "_n\030\001 \003(\r\022\013\n\003key\030\002 \001(\t\022\r\n\005value\030\003 \001(\014\022\017\n\007" + "encrypt\030\004 \001(\010\022\026\n\016ask_on_encrypt\030\005 \001(\010\022\026\n" + "\016ask_on_decrypt\030\006 \001(\010\022\n\n\002iv\030\007 \001(\014\"!\n\020Cip" + "heredKeyValue\022\r\n\005value\030\001 \001(\014\"g\n\014Identity" + "Type\022\r\n\005proto\030\001 \001(\t\022\014\n\004user\030\002 \001(\t\022\014\n\004hos" + "t\030\003 \001(\t\022\014\n\004port\030\004 \001(\t\022\014\n\004path\030\005 \001(\t\022\020\n\005i" + "ndex\030\006 \001(\r:\0010\"\227\001\n\014SignIdentity\0229\n\010identi" + "ty\030\001 \001(\0132\'.hw.trezor.messages.crypto.Ide" + "ntityType\022\030\n\020challenge_hidden\030\002 \001(\014\022\030\n\020c" + "hallenge_visual\030\003 \001(\t\022\030\n\020ecdsa_curve_nam" + "e\030\004 \001(\t\"H\n\016SignedIdentity\022\017\n\007address\030\001 \001" + "(\t\022\022\n\npublic_key\030\002 \001(\014\022\021\n\tsignature\030\003 \001(" + "\014\"\201\001\n\021GetECDHSessionKey\0229\n\010identity\030\001 \001(" + "\0132\'.hw.trezor.messages.crypto.IdentityTy" + "pe\022\027\n\017peer_public_key\030\002 \001(\014\022\030\n\020ecdsa_cur" + "ve_name\030\003 \001(\t\"%\n\016ECDHSessionKey\022\023\n\013sessi" + "on_key\030\001 \001(\014\"-\n\nCosiCommit\022\021\n\taddress_n\030" + "\001 \003(\r\022\014\n\004data\030\002 \001(\014\"4\n\016CosiCommitment\022\022\n" + "\ncommitment\030\001 \001(\014\022\016\n\006pubkey\030\002 \001(\014\"]\n\010Cos" + "iSign\022\021\n\taddress_n\030\001 \003(\r\022\014\n\004data\030\002 \001(\014\022\031" + "\n\021global_commitment\030\003 \001(\014\022\025\n\rglobal_pubk" + "ey\030\004 \001(\014\"\"\n\rCosiSignature\022\021\n\tsignature\030\001" + " \001(\014B:\n#com.satoshilabs.trezor.lib.proto" + "bufB\023TrezorMessageCrypto" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1024); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-crypto.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dcrypto_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace crypto { + +// =================================================================== + +void CipherKeyValue::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CipherKeyValue::kAddressNFieldNumber; +const int CipherKeyValue::kKeyFieldNumber; +const int CipherKeyValue::kValueFieldNumber; +const int CipherKeyValue::kEncryptFieldNumber; +const int CipherKeyValue::kAskOnEncryptFieldNumber; +const int CipherKeyValue::kAskOnDecryptFieldNumber; +const int CipherKeyValue::kIvFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CipherKeyValue::CipherKeyValue() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcrypto_2eproto::scc_info_CipherKeyValue.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.crypto.CipherKeyValue) +} +CipherKeyValue::CipherKeyValue(const CipherKeyValue& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_key()) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_value()) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + iv_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_iv()) { + iv_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.iv_); + } + ::memcpy(&encrypt_, &from.encrypt_, + static_cast(reinterpret_cast(&ask_on_decrypt_) - + reinterpret_cast(&encrypt_)) + sizeof(ask_on_decrypt_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.crypto.CipherKeyValue) +} + +void CipherKeyValue::SharedCtor() { + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + iv_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&encrypt_, 0, static_cast( + reinterpret_cast(&ask_on_decrypt_) - + reinterpret_cast(&encrypt_)) + sizeof(ask_on_decrypt_)); +} + +CipherKeyValue::~CipherKeyValue() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.crypto.CipherKeyValue) + SharedDtor(); +} + +void CipherKeyValue::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + iv_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CipherKeyValue::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CipherKeyValue::descriptor() { + ::protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CipherKeyValue& CipherKeyValue::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcrypto_2eproto::scc_info_CipherKeyValue.base); + return *internal_default_instance(); +} + + +void CipherKeyValue::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.crypto.CipherKeyValue) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + value_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + iv_.ClearNonDefaultToEmptyNoArena(); + } + } + ::memset(&encrypt_, 0, static_cast( + reinterpret_cast(&ask_on_decrypt_) - + reinterpret_cast(&encrypt_)) + sizeof(ask_on_decrypt_)); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CipherKeyValue::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.crypto.CipherKeyValue) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional string key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.crypto.CipherKeyValue.key"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes value = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool encrypt = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_encrypt(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &encrypt_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool ask_on_encrypt = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_ask_on_encrypt(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &ask_on_encrypt_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool ask_on_decrypt = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_ask_on_decrypt(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &ask_on_decrypt_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes iv = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_iv())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.crypto.CipherKeyValue) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.crypto.CipherKeyValue) + return false; +#undef DO_ +} + +void CipherKeyValue::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.crypto.CipherKeyValue) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional string key = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.CipherKeyValue.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->key(), output); + } + + // optional bytes value = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->value(), output); + } + + // optional bool encrypt = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->encrypt(), output); + } + + // optional bool ask_on_encrypt = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->ask_on_encrypt(), output); + } + + // optional bool ask_on_decrypt = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->ask_on_decrypt(), output); + } + + // optional bytes iv = 7; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 7, this->iv(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.crypto.CipherKeyValue) +} + +::google::protobuf::uint8* CipherKeyValue::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.crypto.CipherKeyValue) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional string key = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.CipherKeyValue.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->key(), target); + } + + // optional bytes value = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->value(), target); + } + + // optional bool encrypt = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->encrypt(), target); + } + + // optional bool ask_on_encrypt = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->ask_on_encrypt(), target); + } + + // optional bool ask_on_decrypt = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->ask_on_decrypt(), target); + } + + // optional bytes iv = 7; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 7, this->iv(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.crypto.CipherKeyValue) + return target; +} + +size_t CipherKeyValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.crypto.CipherKeyValue) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 63u) { + // optional string key = 2; + if (has_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // optional bytes value = 3; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + // optional bytes iv = 7; + if (has_iv()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->iv()); + } + + // optional bool encrypt = 4; + if (has_encrypt()) { + total_size += 1 + 1; + } + + // optional bool ask_on_encrypt = 5; + if (has_ask_on_encrypt()) { + total_size += 1 + 1; + } + + // optional bool ask_on_decrypt = 6; + if (has_ask_on_decrypt()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CipherKeyValue::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.crypto.CipherKeyValue) + GOOGLE_DCHECK_NE(&from, this); + const CipherKeyValue* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.crypto.CipherKeyValue) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.crypto.CipherKeyValue) + MergeFrom(*source); + } +} + +void CipherKeyValue::MergeFrom(const CipherKeyValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.crypto.CipherKeyValue) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_key(); + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_value(); + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + if (cached_has_bits & 0x00000004u) { + set_has_iv(); + iv_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.iv_); + } + if (cached_has_bits & 0x00000008u) { + encrypt_ = from.encrypt_; + } + if (cached_has_bits & 0x00000010u) { + ask_on_encrypt_ = from.ask_on_encrypt_; + } + if (cached_has_bits & 0x00000020u) { + ask_on_decrypt_ = from.ask_on_decrypt_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void CipherKeyValue::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.crypto.CipherKeyValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CipherKeyValue::CopyFrom(const CipherKeyValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.crypto.CipherKeyValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CipherKeyValue::IsInitialized() const { + return true; +} + +void CipherKeyValue::Swap(CipherKeyValue* other) { + if (other == this) return; + InternalSwap(other); +} +void CipherKeyValue::InternalSwap(CipherKeyValue* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + iv_.Swap(&other->iv_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(encrypt_, other->encrypt_); + swap(ask_on_encrypt_, other->ask_on_encrypt_); + swap(ask_on_decrypt_, other->ask_on_decrypt_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CipherKeyValue::GetMetadata() const { + protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CipheredKeyValue::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CipheredKeyValue::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CipheredKeyValue::CipheredKeyValue() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcrypto_2eproto::scc_info_CipheredKeyValue.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.crypto.CipheredKeyValue) +} +CipheredKeyValue::CipheredKeyValue(const CipheredKeyValue& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_value()) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.crypto.CipheredKeyValue) +} + +void CipheredKeyValue::SharedCtor() { + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CipheredKeyValue::~CipheredKeyValue() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.crypto.CipheredKeyValue) + SharedDtor(); +} + +void CipheredKeyValue::SharedDtor() { + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CipheredKeyValue::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CipheredKeyValue::descriptor() { + ::protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CipheredKeyValue& CipheredKeyValue::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcrypto_2eproto::scc_info_CipheredKeyValue.base); + return *internal_default_instance(); +} + + +void CipheredKeyValue::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.crypto.CipheredKeyValue) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + value_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CipheredKeyValue::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.crypto.CipheredKeyValue) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.crypto.CipheredKeyValue) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.crypto.CipheredKeyValue) + return false; +#undef DO_ +} + +void CipheredKeyValue::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.crypto.CipheredKeyValue) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes value = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.crypto.CipheredKeyValue) +} + +::google::protobuf::uint8* CipheredKeyValue::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.crypto.CipheredKeyValue) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes value = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->value(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.crypto.CipheredKeyValue) + return target; +} + +size_t CipheredKeyValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.crypto.CipheredKeyValue) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes value = 1; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CipheredKeyValue::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.crypto.CipheredKeyValue) + GOOGLE_DCHECK_NE(&from, this); + const CipheredKeyValue* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.crypto.CipheredKeyValue) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.crypto.CipheredKeyValue) + MergeFrom(*source); + } +} + +void CipheredKeyValue::MergeFrom(const CipheredKeyValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.crypto.CipheredKeyValue) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_value()) { + set_has_value(); + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } +} + +void CipheredKeyValue::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.crypto.CipheredKeyValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CipheredKeyValue::CopyFrom(const CipheredKeyValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.crypto.CipheredKeyValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CipheredKeyValue::IsInitialized() const { + return true; +} + +void CipheredKeyValue::Swap(CipheredKeyValue* other) { + if (other == this) return; + InternalSwap(other); +} +void CipheredKeyValue::InternalSwap(CipheredKeyValue* other) { + using std::swap; + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CipheredKeyValue::GetMetadata() const { + protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void IdentityType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IdentityType::kProtoFieldNumber; +const int IdentityType::kUserFieldNumber; +const int IdentityType::kHostFieldNumber; +const int IdentityType::kPortFieldNumber; +const int IdentityType::kPathFieldNumber; +const int IdentityType::kIndexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IdentityType::IdentityType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcrypto_2eproto::scc_info_IdentityType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.crypto.IdentityType) +} +IdentityType::IdentityType(const IdentityType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + proto_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_proto()) { + proto_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.proto_); + } + user_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_user()) { + user_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_); + } + host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_host()) { + host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.host_); + } + port_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_port()) { + port_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.port_); + } + path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_path()) { + path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_); + } + index_ = from.index_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.crypto.IdentityType) +} + +void IdentityType::SharedCtor() { + proto_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + user_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + port_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + index_ = 0u; +} + +IdentityType::~IdentityType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.crypto.IdentityType) + SharedDtor(); +} + +void IdentityType::SharedDtor() { + proto_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + user_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + host_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + port_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void IdentityType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* IdentityType::descriptor() { + ::protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const IdentityType& IdentityType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcrypto_2eproto::scc_info_IdentityType.base); + return *internal_default_instance(); +} + + +void IdentityType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.crypto.IdentityType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + proto_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + user_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + host_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + port_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + path_.ClearNonDefaultToEmptyNoArena(); + } + } + index_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool IdentityType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.crypto.IdentityType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string proto = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_proto())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->proto().data(), static_cast(this->proto().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.crypto.IdentityType.proto"); + } else { + goto handle_unusual; + } + break; + } + + // optional string user = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_user())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->user().data(), static_cast(this->user().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.crypto.IdentityType.user"); + } else { + goto handle_unusual; + } + break; + } + + // optional string host = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_host())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->host().data(), static_cast(this->host().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.crypto.IdentityType.host"); + } else { + goto handle_unusual; + } + break; + } + + // optional string port = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_port())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->port().data(), static_cast(this->port().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.crypto.IdentityType.port"); + } else { + goto handle_unusual; + } + break; + } + + // optional string path = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_path())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->path().data(), static_cast(this->path().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.crypto.IdentityType.path"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 index = 6 [default = 0]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &index_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.crypto.IdentityType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.crypto.IdentityType) + return false; +#undef DO_ +} + +void IdentityType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.crypto.IdentityType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string proto = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->proto().data(), static_cast(this->proto().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.IdentityType.proto"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->proto(), output); + } + + // optional string user = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->user().data(), static_cast(this->user().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.IdentityType.user"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->user(), output); + } + + // optional string host = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->host().data(), static_cast(this->host().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.IdentityType.host"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->host(), output); + } + + // optional string port = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->port().data(), static_cast(this->port().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.IdentityType.port"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->port(), output); + } + + // optional string path = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->path().data(), static_cast(this->path().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.IdentityType.path"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->path(), output); + } + + // optional uint32 index = 6 [default = 0]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->index(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.crypto.IdentityType) +} + +::google::protobuf::uint8* IdentityType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.crypto.IdentityType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string proto = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->proto().data(), static_cast(this->proto().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.IdentityType.proto"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->proto(), target); + } + + // optional string user = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->user().data(), static_cast(this->user().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.IdentityType.user"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->user(), target); + } + + // optional string host = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->host().data(), static_cast(this->host().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.IdentityType.host"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->host(), target); + } + + // optional string port = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->port().data(), static_cast(this->port().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.IdentityType.port"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->port(), target); + } + + // optional string path = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->path().data(), static_cast(this->path().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.IdentityType.path"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->path(), target); + } + + // optional uint32 index = 6 [default = 0]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->index(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.crypto.IdentityType) + return target; +} + +size_t IdentityType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.crypto.IdentityType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 63u) { + // optional string proto = 1; + if (has_proto()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->proto()); + } + + // optional string user = 2; + if (has_user()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->user()); + } + + // optional string host = 3; + if (has_host()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->host()); + } + + // optional string port = 4; + if (has_port()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->port()); + } + + // optional string path = 5; + if (has_path()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->path()); + } + + // optional uint32 index = 6 [default = 0]; + if (has_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->index()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IdentityType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.crypto.IdentityType) + GOOGLE_DCHECK_NE(&from, this); + const IdentityType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.crypto.IdentityType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.crypto.IdentityType) + MergeFrom(*source); + } +} + +void IdentityType::MergeFrom(const IdentityType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.crypto.IdentityType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_proto(); + proto_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.proto_); + } + if (cached_has_bits & 0x00000002u) { + set_has_user(); + user_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_); + } + if (cached_has_bits & 0x00000004u) { + set_has_host(); + host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.host_); + } + if (cached_has_bits & 0x00000008u) { + set_has_port(); + port_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.port_); + } + if (cached_has_bits & 0x00000010u) { + set_has_path(); + path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_); + } + if (cached_has_bits & 0x00000020u) { + index_ = from.index_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void IdentityType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.crypto.IdentityType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IdentityType::CopyFrom(const IdentityType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.crypto.IdentityType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IdentityType::IsInitialized() const { + return true; +} + +void IdentityType::Swap(IdentityType* other) { + if (other == this) return; + InternalSwap(other); +} +void IdentityType::InternalSwap(IdentityType* other) { + using std::swap; + proto_.Swap(&other->proto_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + user_.Swap(&other->user_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + host_.Swap(&other->host_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + port_.Swap(&other->port_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + path_.Swap(&other->path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(index_, other->index_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata IdentityType::GetMetadata() const { + protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SignIdentity::InitAsDefaultInstance() { + ::hw::trezor::messages::crypto::_SignIdentity_default_instance_._instance.get_mutable()->identity_ = const_cast< ::hw::trezor::messages::crypto::IdentityType*>( + ::hw::trezor::messages::crypto::IdentityType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignIdentity::kIdentityFieldNumber; +const int SignIdentity::kChallengeHiddenFieldNumber; +const int SignIdentity::kChallengeVisualFieldNumber; +const int SignIdentity::kEcdsaCurveNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SignIdentity::SignIdentity() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcrypto_2eproto::scc_info_SignIdentity.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.crypto.SignIdentity) +} +SignIdentity::SignIdentity(const SignIdentity& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + challenge_hidden_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_challenge_hidden()) { + challenge_hidden_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.challenge_hidden_); + } + challenge_visual_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_challenge_visual()) { + challenge_visual_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.challenge_visual_); + } + ecdsa_curve_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_ecdsa_curve_name()) { + ecdsa_curve_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ecdsa_curve_name_); + } + if (from.has_identity()) { + identity_ = new ::hw::trezor::messages::crypto::IdentityType(*from.identity_); + } else { + identity_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.crypto.SignIdentity) +} + +void SignIdentity::SharedCtor() { + challenge_hidden_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + challenge_visual_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ecdsa_curve_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + identity_ = NULL; +} + +SignIdentity::~SignIdentity() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.crypto.SignIdentity) + SharedDtor(); +} + +void SignIdentity::SharedDtor() { + challenge_hidden_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + challenge_visual_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ecdsa_curve_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete identity_; +} + +void SignIdentity::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* SignIdentity::descriptor() { + ::protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SignIdentity& SignIdentity::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcrypto_2eproto::scc_info_SignIdentity.base); + return *internal_default_instance(); +} + + +void SignIdentity::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.crypto.SignIdentity) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + challenge_hidden_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + challenge_visual_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + ecdsa_curve_name_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(identity_ != NULL); + identity_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SignIdentity::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.crypto.SignIdentity) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.crypto.IdentityType identity = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_identity())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes challenge_hidden = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_challenge_hidden())); + } else { + goto handle_unusual; + } + break; + } + + // optional string challenge_visual = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_challenge_visual())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->challenge_visual().data(), static_cast(this->challenge_visual().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.crypto.SignIdentity.challenge_visual"); + } else { + goto handle_unusual; + } + break; + } + + // optional string ecdsa_curve_name = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_ecdsa_curve_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ecdsa_curve_name().data(), static_cast(this->ecdsa_curve_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.crypto.SignIdentity.ecdsa_curve_name"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.crypto.SignIdentity) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.crypto.SignIdentity) + return false; +#undef DO_ +} + +void SignIdentity::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.crypto.SignIdentity) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.crypto.IdentityType identity = 1; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_identity(), output); + } + + // optional bytes challenge_hidden = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->challenge_hidden(), output); + } + + // optional string challenge_visual = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->challenge_visual().data(), static_cast(this->challenge_visual().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.SignIdentity.challenge_visual"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->challenge_visual(), output); + } + + // optional string ecdsa_curve_name = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ecdsa_curve_name().data(), static_cast(this->ecdsa_curve_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.SignIdentity.ecdsa_curve_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->ecdsa_curve_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.crypto.SignIdentity) +} + +::google::protobuf::uint8* SignIdentity::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.crypto.SignIdentity) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.crypto.IdentityType identity = 1; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_identity(), deterministic, target); + } + + // optional bytes challenge_hidden = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->challenge_hidden(), target); + } + + // optional string challenge_visual = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->challenge_visual().data(), static_cast(this->challenge_visual().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.SignIdentity.challenge_visual"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->challenge_visual(), target); + } + + // optional string ecdsa_curve_name = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ecdsa_curve_name().data(), static_cast(this->ecdsa_curve_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.SignIdentity.ecdsa_curve_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->ecdsa_curve_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.crypto.SignIdentity) + return target; +} + +size_t SignIdentity::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.crypto.SignIdentity) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional bytes challenge_hidden = 2; + if (has_challenge_hidden()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->challenge_hidden()); + } + + // optional string challenge_visual = 3; + if (has_challenge_visual()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->challenge_visual()); + } + + // optional string ecdsa_curve_name = 4; + if (has_ecdsa_curve_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->ecdsa_curve_name()); + } + + // optional .hw.trezor.messages.crypto.IdentityType identity = 1; + if (has_identity()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *identity_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SignIdentity::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.crypto.SignIdentity) + GOOGLE_DCHECK_NE(&from, this); + const SignIdentity* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.crypto.SignIdentity) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.crypto.SignIdentity) + MergeFrom(*source); + } +} + +void SignIdentity::MergeFrom(const SignIdentity& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.crypto.SignIdentity) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_challenge_hidden(); + challenge_hidden_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.challenge_hidden_); + } + if (cached_has_bits & 0x00000002u) { + set_has_challenge_visual(); + challenge_visual_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.challenge_visual_); + } + if (cached_has_bits & 0x00000004u) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ecdsa_curve_name_); + } + if (cached_has_bits & 0x00000008u) { + mutable_identity()->::hw::trezor::messages::crypto::IdentityType::MergeFrom(from.identity()); + } + } +} + +void SignIdentity::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.crypto.SignIdentity) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SignIdentity::CopyFrom(const SignIdentity& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.crypto.SignIdentity) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SignIdentity::IsInitialized() const { + return true; +} + +void SignIdentity::Swap(SignIdentity* other) { + if (other == this) return; + InternalSwap(other); +} +void SignIdentity::InternalSwap(SignIdentity* other) { + using std::swap; + challenge_hidden_.Swap(&other->challenge_hidden_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + challenge_visual_.Swap(&other->challenge_visual_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + ecdsa_curve_name_.Swap(&other->ecdsa_curve_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(identity_, other->identity_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata SignIdentity::GetMetadata() const { + protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SignedIdentity::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignedIdentity::kAddressFieldNumber; +const int SignedIdentity::kPublicKeyFieldNumber; +const int SignedIdentity::kSignatureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SignedIdentity::SignedIdentity() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcrypto_2eproto::scc_info_SignedIdentity.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.crypto.SignedIdentity) +} +SignedIdentity::SignedIdentity(const SignedIdentity& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.crypto.SignedIdentity) +} + +void SignedIdentity::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +SignedIdentity::~SignedIdentity() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.crypto.SignedIdentity) + SharedDtor(); +} + +void SignedIdentity::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SignedIdentity::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* SignedIdentity::descriptor() { + ::protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SignedIdentity& SignedIdentity::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcrypto_2eproto::scc_info_SignedIdentity.base); + return *internal_default_instance(); +} + + +void SignedIdentity::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.crypto.SignedIdentity) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SignedIdentity::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.crypto.SignedIdentity) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.crypto.SignedIdentity.address"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes public_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.crypto.SignedIdentity) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.crypto.SignedIdentity) + return false; +#undef DO_ +} + +void SignedIdentity::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.crypto.SignedIdentity) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.SignedIdentity.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + // optional bytes public_key = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->public_key(), output); + } + + // optional bytes signature = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->signature(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.crypto.SignedIdentity) +} + +::google::protobuf::uint8* SignedIdentity::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.crypto.SignedIdentity) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.SignedIdentity.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + // optional bytes public_key = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->public_key(), target); + } + + // optional bytes signature = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->signature(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.crypto.SignedIdentity) + return target; +} + +size_t SignedIdentity::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.crypto.SignedIdentity) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + // optional bytes public_key = 2; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + // optional bytes signature = 3; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SignedIdentity::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.crypto.SignedIdentity) + GOOGLE_DCHECK_NE(&from, this); + const SignedIdentity* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.crypto.SignedIdentity) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.crypto.SignedIdentity) + MergeFrom(*source); + } +} + +void SignedIdentity::MergeFrom(const SignedIdentity& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.crypto.SignedIdentity) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + if (cached_has_bits & 0x00000002u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (cached_has_bits & 0x00000004u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + } +} + +void SignedIdentity::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.crypto.SignedIdentity) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SignedIdentity::CopyFrom(const SignedIdentity& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.crypto.SignedIdentity) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SignedIdentity::IsInitialized() const { + return true; +} + +void SignedIdentity::Swap(SignedIdentity* other) { + if (other == this) return; + InternalSwap(other); +} +void SignedIdentity::InternalSwap(SignedIdentity* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata SignedIdentity::GetMetadata() const { + protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetECDHSessionKey::InitAsDefaultInstance() { + ::hw::trezor::messages::crypto::_GetECDHSessionKey_default_instance_._instance.get_mutable()->identity_ = const_cast< ::hw::trezor::messages::crypto::IdentityType*>( + ::hw::trezor::messages::crypto::IdentityType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetECDHSessionKey::kIdentityFieldNumber; +const int GetECDHSessionKey::kPeerPublicKeyFieldNumber; +const int GetECDHSessionKey::kEcdsaCurveNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetECDHSessionKey::GetECDHSessionKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcrypto_2eproto::scc_info_GetECDHSessionKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.crypto.GetECDHSessionKey) +} +GetECDHSessionKey::GetECDHSessionKey(const GetECDHSessionKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + peer_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_peer_public_key()) { + peer_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.peer_public_key_); + } + ecdsa_curve_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_ecdsa_curve_name()) { + ecdsa_curve_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ecdsa_curve_name_); + } + if (from.has_identity()) { + identity_ = new ::hw::trezor::messages::crypto::IdentityType(*from.identity_); + } else { + identity_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.crypto.GetECDHSessionKey) +} + +void GetECDHSessionKey::SharedCtor() { + peer_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ecdsa_curve_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + identity_ = NULL; +} + +GetECDHSessionKey::~GetECDHSessionKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.crypto.GetECDHSessionKey) + SharedDtor(); +} + +void GetECDHSessionKey::SharedDtor() { + peer_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ecdsa_curve_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete identity_; +} + +void GetECDHSessionKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* GetECDHSessionKey::descriptor() { + ::protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const GetECDHSessionKey& GetECDHSessionKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcrypto_2eproto::scc_info_GetECDHSessionKey.base); + return *internal_default_instance(); +} + + +void GetECDHSessionKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.crypto.GetECDHSessionKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + peer_public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + ecdsa_curve_name_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(identity_ != NULL); + identity_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool GetECDHSessionKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.crypto.GetECDHSessionKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.crypto.IdentityType identity = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_identity())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes peer_public_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_peer_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional string ecdsa_curve_name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_ecdsa_curve_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ecdsa_curve_name().data(), static_cast(this->ecdsa_curve_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.crypto.GetECDHSessionKey.ecdsa_curve_name"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.crypto.GetECDHSessionKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.crypto.GetECDHSessionKey) + return false; +#undef DO_ +} + +void GetECDHSessionKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.crypto.GetECDHSessionKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.crypto.IdentityType identity = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_identity(), output); + } + + // optional bytes peer_public_key = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->peer_public_key(), output); + } + + // optional string ecdsa_curve_name = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ecdsa_curve_name().data(), static_cast(this->ecdsa_curve_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.GetECDHSessionKey.ecdsa_curve_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->ecdsa_curve_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.crypto.GetECDHSessionKey) +} + +::google::protobuf::uint8* GetECDHSessionKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.crypto.GetECDHSessionKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.crypto.IdentityType identity = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_identity(), deterministic, target); + } + + // optional bytes peer_public_key = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->peer_public_key(), target); + } + + // optional string ecdsa_curve_name = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ecdsa_curve_name().data(), static_cast(this->ecdsa_curve_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.crypto.GetECDHSessionKey.ecdsa_curve_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->ecdsa_curve_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.crypto.GetECDHSessionKey) + return target; +} + +size_t GetECDHSessionKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.crypto.GetECDHSessionKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes peer_public_key = 2; + if (has_peer_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->peer_public_key()); + } + + // optional string ecdsa_curve_name = 3; + if (has_ecdsa_curve_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->ecdsa_curve_name()); + } + + // optional .hw.trezor.messages.crypto.IdentityType identity = 1; + if (has_identity()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *identity_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetECDHSessionKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.crypto.GetECDHSessionKey) + GOOGLE_DCHECK_NE(&from, this); + const GetECDHSessionKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.crypto.GetECDHSessionKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.crypto.GetECDHSessionKey) + MergeFrom(*source); + } +} + +void GetECDHSessionKey::MergeFrom(const GetECDHSessionKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.crypto.GetECDHSessionKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_peer_public_key(); + peer_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.peer_public_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ecdsa_curve_name_); + } + if (cached_has_bits & 0x00000004u) { + mutable_identity()->::hw::trezor::messages::crypto::IdentityType::MergeFrom(from.identity()); + } + } +} + +void GetECDHSessionKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.crypto.GetECDHSessionKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetECDHSessionKey::CopyFrom(const GetECDHSessionKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.crypto.GetECDHSessionKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetECDHSessionKey::IsInitialized() const { + return true; +} + +void GetECDHSessionKey::Swap(GetECDHSessionKey* other) { + if (other == this) return; + InternalSwap(other); +} +void GetECDHSessionKey::InternalSwap(GetECDHSessionKey* other) { + using std::swap; + peer_public_key_.Swap(&other->peer_public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + ecdsa_curve_name_.Swap(&other->ecdsa_curve_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(identity_, other->identity_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata GetECDHSessionKey::GetMetadata() const { + protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ECDHSessionKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ECDHSessionKey::kSessionKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ECDHSessionKey::ECDHSessionKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcrypto_2eproto::scc_info_ECDHSessionKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.crypto.ECDHSessionKey) +} +ECDHSessionKey::ECDHSessionKey(const ECDHSessionKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + session_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_session_key()) { + session_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.session_key_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.crypto.ECDHSessionKey) +} + +void ECDHSessionKey::SharedCtor() { + session_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ECDHSessionKey::~ECDHSessionKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.crypto.ECDHSessionKey) + SharedDtor(); +} + +void ECDHSessionKey::SharedDtor() { + session_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ECDHSessionKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* ECDHSessionKey::descriptor() { + ::protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ECDHSessionKey& ECDHSessionKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcrypto_2eproto::scc_info_ECDHSessionKey.base); + return *internal_default_instance(); +} + + +void ECDHSessionKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.crypto.ECDHSessionKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + session_key_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ECDHSessionKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.crypto.ECDHSessionKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes session_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_session_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.crypto.ECDHSessionKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.crypto.ECDHSessionKey) + return false; +#undef DO_ +} + +void ECDHSessionKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.crypto.ECDHSessionKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes session_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->session_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.crypto.ECDHSessionKey) +} + +::google::protobuf::uint8* ECDHSessionKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.crypto.ECDHSessionKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes session_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->session_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.crypto.ECDHSessionKey) + return target; +} + +size_t ECDHSessionKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.crypto.ECDHSessionKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes session_key = 1; + if (has_session_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->session_key()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ECDHSessionKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.crypto.ECDHSessionKey) + GOOGLE_DCHECK_NE(&from, this); + const ECDHSessionKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.crypto.ECDHSessionKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.crypto.ECDHSessionKey) + MergeFrom(*source); + } +} + +void ECDHSessionKey::MergeFrom(const ECDHSessionKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.crypto.ECDHSessionKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_session_key()) { + set_has_session_key(); + session_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.session_key_); + } +} + +void ECDHSessionKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.crypto.ECDHSessionKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ECDHSessionKey::CopyFrom(const ECDHSessionKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.crypto.ECDHSessionKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ECDHSessionKey::IsInitialized() const { + return true; +} + +void ECDHSessionKey::Swap(ECDHSessionKey* other) { + if (other == this) return; + InternalSwap(other); +} +void ECDHSessionKey::InternalSwap(ECDHSessionKey* other) { + using std::swap; + session_key_.Swap(&other->session_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ECDHSessionKey::GetMetadata() const { + protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CosiCommit::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CosiCommit::kAddressNFieldNumber; +const int CosiCommit::kDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CosiCommit::CosiCommit() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcrypto_2eproto::scc_info_CosiCommit.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.crypto.CosiCommit) +} +CosiCommit::CosiCommit(const CosiCommit& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data()) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.crypto.CosiCommit) +} + +void CosiCommit::SharedCtor() { + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CosiCommit::~CosiCommit() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.crypto.CosiCommit) + SharedDtor(); +} + +void CosiCommit::SharedDtor() { + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CosiCommit::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CosiCommit::descriptor() { + ::protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CosiCommit& CosiCommit::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcrypto_2eproto::scc_info_CosiCommit.base); + return *internal_default_instance(); +} + + +void CosiCommit::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.crypto.CosiCommit) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + data_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CosiCommit::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.crypto.CosiCommit) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes data = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.crypto.CosiCommit) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.crypto.CosiCommit) + return false; +#undef DO_ +} + +void CosiCommit::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.crypto.CosiCommit) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bytes data = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->data(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.crypto.CosiCommit) +} + +::google::protobuf::uint8* CosiCommit::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.crypto.CosiCommit) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bytes data = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->data(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.crypto.CosiCommit) + return target; +} + +size_t CosiCommit::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.crypto.CosiCommit) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bytes data = 2; + if (has_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CosiCommit::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.crypto.CosiCommit) + GOOGLE_DCHECK_NE(&from, this); + const CosiCommit* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.crypto.CosiCommit) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.crypto.CosiCommit) + MergeFrom(*source); + } +} + +void CosiCommit::MergeFrom(const CosiCommit& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.crypto.CosiCommit) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_data()) { + set_has_data(); + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } +} + +void CosiCommit::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.crypto.CosiCommit) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CosiCommit::CopyFrom(const CosiCommit& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.crypto.CosiCommit) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CosiCommit::IsInitialized() const { + return true; +} + +void CosiCommit::Swap(CosiCommit* other) { + if (other == this) return; + InternalSwap(other); +} +void CosiCommit::InternalSwap(CosiCommit* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CosiCommit::GetMetadata() const { + protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CosiCommitment::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CosiCommitment::kCommitmentFieldNumber; +const int CosiCommitment::kPubkeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CosiCommitment::CosiCommitment() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcrypto_2eproto::scc_info_CosiCommitment.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.crypto.CosiCommitment) +} +CosiCommitment::CosiCommitment(const CosiCommitment& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_commitment()) { + commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.commitment_); + } + pubkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pubkey()) { + pubkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pubkey_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.crypto.CosiCommitment) +} + +void CosiCommitment::SharedCtor() { + commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pubkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CosiCommitment::~CosiCommitment() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.crypto.CosiCommitment) + SharedDtor(); +} + +void CosiCommitment::SharedDtor() { + commitment_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pubkey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CosiCommitment::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CosiCommitment::descriptor() { + ::protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CosiCommitment& CosiCommitment::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcrypto_2eproto::scc_info_CosiCommitment.base); + return *internal_default_instance(); +} + + +void CosiCommitment::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.crypto.CosiCommitment) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + commitment_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + pubkey_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CosiCommitment::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.crypto.CosiCommitment) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes commitment = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_commitment())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes pubkey = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_pubkey())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.crypto.CosiCommitment) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.crypto.CosiCommitment) + return false; +#undef DO_ +} + +void CosiCommitment::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.crypto.CosiCommitment) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes commitment = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->commitment(), output); + } + + // optional bytes pubkey = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->pubkey(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.crypto.CosiCommitment) +} + +::google::protobuf::uint8* CosiCommitment::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.crypto.CosiCommitment) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes commitment = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->commitment(), target); + } + + // optional bytes pubkey = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->pubkey(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.crypto.CosiCommitment) + return target; +} + +size_t CosiCommitment::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.crypto.CosiCommitment) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes commitment = 1; + if (has_commitment()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->commitment()); + } + + // optional bytes pubkey = 2; + if (has_pubkey()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->pubkey()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CosiCommitment::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.crypto.CosiCommitment) + GOOGLE_DCHECK_NE(&from, this); + const CosiCommitment* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.crypto.CosiCommitment) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.crypto.CosiCommitment) + MergeFrom(*source); + } +} + +void CosiCommitment::MergeFrom(const CosiCommitment& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.crypto.CosiCommitment) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_commitment(); + commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.commitment_); + } + if (cached_has_bits & 0x00000002u) { + set_has_pubkey(); + pubkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pubkey_); + } + } +} + +void CosiCommitment::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.crypto.CosiCommitment) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CosiCommitment::CopyFrom(const CosiCommitment& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.crypto.CosiCommitment) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CosiCommitment::IsInitialized() const { + return true; +} + +void CosiCommitment::Swap(CosiCommitment* other) { + if (other == this) return; + InternalSwap(other); +} +void CosiCommitment::InternalSwap(CosiCommitment* other) { + using std::swap; + commitment_.Swap(&other->commitment_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pubkey_.Swap(&other->pubkey_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CosiCommitment::GetMetadata() const { + protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CosiSign::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CosiSign::kAddressNFieldNumber; +const int CosiSign::kDataFieldNumber; +const int CosiSign::kGlobalCommitmentFieldNumber; +const int CosiSign::kGlobalPubkeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CosiSign::CosiSign() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcrypto_2eproto::scc_info_CosiSign.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.crypto.CosiSign) +} +CosiSign::CosiSign(const CosiSign& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data()) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + global_commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_global_commitment()) { + global_commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.global_commitment_); + } + global_pubkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_global_pubkey()) { + global_pubkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.global_pubkey_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.crypto.CosiSign) +} + +void CosiSign::SharedCtor() { + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + global_commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + global_pubkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CosiSign::~CosiSign() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.crypto.CosiSign) + SharedDtor(); +} + +void CosiSign::SharedDtor() { + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + global_commitment_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + global_pubkey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CosiSign::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CosiSign::descriptor() { + ::protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CosiSign& CosiSign::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcrypto_2eproto::scc_info_CosiSign.base); + return *internal_default_instance(); +} + + +void CosiSign::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.crypto.CosiSign) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + data_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + global_commitment_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + global_pubkey_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CosiSign::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.crypto.CosiSign) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes data = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes global_commitment = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_global_commitment())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes global_pubkey = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_global_pubkey())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.crypto.CosiSign) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.crypto.CosiSign) + return false; +#undef DO_ +} + +void CosiSign::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.crypto.CosiSign) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bytes data = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->data(), output); + } + + // optional bytes global_commitment = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->global_commitment(), output); + } + + // optional bytes global_pubkey = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->global_pubkey(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.crypto.CosiSign) +} + +::google::protobuf::uint8* CosiSign::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.crypto.CosiSign) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bytes data = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->data(), target); + } + + // optional bytes global_commitment = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->global_commitment(), target); + } + + // optional bytes global_pubkey = 4; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->global_pubkey(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.crypto.CosiSign) + return target; +} + +size_t CosiSign::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.crypto.CosiSign) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 7u) { + // optional bytes data = 2; + if (has_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + // optional bytes global_commitment = 3; + if (has_global_commitment()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->global_commitment()); + } + + // optional bytes global_pubkey = 4; + if (has_global_pubkey()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->global_pubkey()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CosiSign::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.crypto.CosiSign) + GOOGLE_DCHECK_NE(&from, this); + const CosiSign* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.crypto.CosiSign) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.crypto.CosiSign) + MergeFrom(*source); + } +} + +void CosiSign::MergeFrom(const CosiSign& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.crypto.CosiSign) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_data(); + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + if (cached_has_bits & 0x00000002u) { + set_has_global_commitment(); + global_commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.global_commitment_); + } + if (cached_has_bits & 0x00000004u) { + set_has_global_pubkey(); + global_pubkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.global_pubkey_); + } + } +} + +void CosiSign::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.crypto.CosiSign) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CosiSign::CopyFrom(const CosiSign& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.crypto.CosiSign) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CosiSign::IsInitialized() const { + return true; +} + +void CosiSign::Swap(CosiSign* other) { + if (other == this) return; + InternalSwap(other); +} +void CosiSign::InternalSwap(CosiSign* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + global_commitment_.Swap(&other->global_commitment_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + global_pubkey_.Swap(&other->global_pubkey_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CosiSign::GetMetadata() const { + protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CosiSignature::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CosiSignature::kSignatureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CosiSignature::CosiSignature() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dcrypto_2eproto::scc_info_CosiSignature.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.crypto.CosiSignature) +} +CosiSignature::CosiSignature(const CosiSignature& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.crypto.CosiSignature) +} + +void CosiSignature::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CosiSignature::~CosiSignature() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.crypto.CosiSignature) + SharedDtor(); +} + +void CosiSignature::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CosiSignature::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* CosiSignature::descriptor() { + ::protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CosiSignature& CosiSignature::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dcrypto_2eproto::scc_info_CosiSignature.base); + return *internal_default_instance(); +} + + +void CosiSignature::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.crypto.CosiSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CosiSignature::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.crypto.CosiSignature) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes signature = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.crypto.CosiSignature) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.crypto.CosiSignature) + return false; +#undef DO_ +} + +void CosiSignature::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.crypto.CosiSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->signature(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.crypto.CosiSignature) +} + +::google::protobuf::uint8* CosiSignature::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.crypto.CosiSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->signature(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.crypto.CosiSignature) + return target; +} + +size_t CosiSignature::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.crypto.CosiSignature) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CosiSignature::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.crypto.CosiSignature) + GOOGLE_DCHECK_NE(&from, this); + const CosiSignature* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.crypto.CosiSignature) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.crypto.CosiSignature) + MergeFrom(*source); + } +} + +void CosiSignature::MergeFrom(const CosiSignature& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.crypto.CosiSignature) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_signature()) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } +} + +void CosiSignature::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.crypto.CosiSignature) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CosiSignature::CopyFrom(const CosiSignature& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.crypto.CosiSignature) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CosiSignature::IsInitialized() const { + return true; +} + +void CosiSignature::Swap(CosiSignature* other) { + if (other == this) return; + InternalSwap(other); +} +void CosiSignature::InternalSwap(CosiSignature* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CosiSignature::GetMetadata() const { + protobuf_messages_2dcrypto_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dcrypto_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace crypto +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::crypto::CipherKeyValue* Arena::CreateMaybeMessage< ::hw::trezor::messages::crypto::CipherKeyValue >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::crypto::CipherKeyValue >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::crypto::CipheredKeyValue* Arena::CreateMaybeMessage< ::hw::trezor::messages::crypto::CipheredKeyValue >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::crypto::CipheredKeyValue >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::crypto::IdentityType* Arena::CreateMaybeMessage< ::hw::trezor::messages::crypto::IdentityType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::crypto::IdentityType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::crypto::SignIdentity* Arena::CreateMaybeMessage< ::hw::trezor::messages::crypto::SignIdentity >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::crypto::SignIdentity >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::crypto::SignedIdentity* Arena::CreateMaybeMessage< ::hw::trezor::messages::crypto::SignedIdentity >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::crypto::SignedIdentity >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::crypto::GetECDHSessionKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::crypto::GetECDHSessionKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::crypto::GetECDHSessionKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::crypto::ECDHSessionKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::crypto::ECDHSessionKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::crypto::ECDHSessionKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::crypto::CosiCommit* Arena::CreateMaybeMessage< ::hw::trezor::messages::crypto::CosiCommit >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::crypto::CosiCommit >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::crypto::CosiCommitment* Arena::CreateMaybeMessage< ::hw::trezor::messages::crypto::CosiCommitment >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::crypto::CosiCommitment >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::crypto::CosiSign* Arena::CreateMaybeMessage< ::hw::trezor::messages::crypto::CosiSign >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::crypto::CosiSign >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::crypto::CosiSignature* Arena::CreateMaybeMessage< ::hw::trezor::messages::crypto::CosiSignature >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::crypto::CosiSignature >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-crypto.pb.h b/src/Core/hardware/trezor/protob/messages-crypto.pb.h new file mode 100644 index 00000000..207a9ed1 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-crypto.pb.h @@ -0,0 +1,3848 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-crypto.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dcrypto_2eproto +#define PROTOBUF_INCLUDED_messages_2dcrypto_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dcrypto_2eproto + +namespace protobuf_messages_2dcrypto_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[11]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dcrypto_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace crypto { +class CipherKeyValue; +class CipherKeyValueDefaultTypeInternal; +extern CipherKeyValueDefaultTypeInternal _CipherKeyValue_default_instance_; +class CipheredKeyValue; +class CipheredKeyValueDefaultTypeInternal; +extern CipheredKeyValueDefaultTypeInternal _CipheredKeyValue_default_instance_; +class CosiCommit; +class CosiCommitDefaultTypeInternal; +extern CosiCommitDefaultTypeInternal _CosiCommit_default_instance_; +class CosiCommitment; +class CosiCommitmentDefaultTypeInternal; +extern CosiCommitmentDefaultTypeInternal _CosiCommitment_default_instance_; +class CosiSign; +class CosiSignDefaultTypeInternal; +extern CosiSignDefaultTypeInternal _CosiSign_default_instance_; +class CosiSignature; +class CosiSignatureDefaultTypeInternal; +extern CosiSignatureDefaultTypeInternal _CosiSignature_default_instance_; +class ECDHSessionKey; +class ECDHSessionKeyDefaultTypeInternal; +extern ECDHSessionKeyDefaultTypeInternal _ECDHSessionKey_default_instance_; +class GetECDHSessionKey; +class GetECDHSessionKeyDefaultTypeInternal; +extern GetECDHSessionKeyDefaultTypeInternal _GetECDHSessionKey_default_instance_; +class IdentityType; +class IdentityTypeDefaultTypeInternal; +extern IdentityTypeDefaultTypeInternal _IdentityType_default_instance_; +class SignIdentity; +class SignIdentityDefaultTypeInternal; +extern SignIdentityDefaultTypeInternal _SignIdentity_default_instance_; +class SignedIdentity; +class SignedIdentityDefaultTypeInternal; +extern SignedIdentityDefaultTypeInternal _SignedIdentity_default_instance_; +} // namespace crypto +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::crypto::CipherKeyValue* Arena::CreateMaybeMessage<::hw::trezor::messages::crypto::CipherKeyValue>(Arena*); +template<> ::hw::trezor::messages::crypto::CipheredKeyValue* Arena::CreateMaybeMessage<::hw::trezor::messages::crypto::CipheredKeyValue>(Arena*); +template<> ::hw::trezor::messages::crypto::CosiCommit* Arena::CreateMaybeMessage<::hw::trezor::messages::crypto::CosiCommit>(Arena*); +template<> ::hw::trezor::messages::crypto::CosiCommitment* Arena::CreateMaybeMessage<::hw::trezor::messages::crypto::CosiCommitment>(Arena*); +template<> ::hw::trezor::messages::crypto::CosiSign* Arena::CreateMaybeMessage<::hw::trezor::messages::crypto::CosiSign>(Arena*); +template<> ::hw::trezor::messages::crypto::CosiSignature* Arena::CreateMaybeMessage<::hw::trezor::messages::crypto::CosiSignature>(Arena*); +template<> ::hw::trezor::messages::crypto::ECDHSessionKey* Arena::CreateMaybeMessage<::hw::trezor::messages::crypto::ECDHSessionKey>(Arena*); +template<> ::hw::trezor::messages::crypto::GetECDHSessionKey* Arena::CreateMaybeMessage<::hw::trezor::messages::crypto::GetECDHSessionKey>(Arena*); +template<> ::hw::trezor::messages::crypto::IdentityType* Arena::CreateMaybeMessage<::hw::trezor::messages::crypto::IdentityType>(Arena*); +template<> ::hw::trezor::messages::crypto::SignIdentity* Arena::CreateMaybeMessage<::hw::trezor::messages::crypto::SignIdentity>(Arena*); +template<> ::hw::trezor::messages::crypto::SignedIdentity* Arena::CreateMaybeMessage<::hw::trezor::messages::crypto::SignedIdentity>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace crypto { + +// =================================================================== + +class CipherKeyValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.crypto.CipherKeyValue) */ { + public: + CipherKeyValue(); + virtual ~CipherKeyValue(); + + CipherKeyValue(const CipherKeyValue& from); + + inline CipherKeyValue& operator=(const CipherKeyValue& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CipherKeyValue(CipherKeyValue&& from) noexcept + : CipherKeyValue() { + *this = ::std::move(from); + } + + inline CipherKeyValue& operator=(CipherKeyValue&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CipherKeyValue& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CipherKeyValue* internal_default_instance() { + return reinterpret_cast( + &_CipherKeyValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(CipherKeyValue* other); + friend void swap(CipherKeyValue& a, CipherKeyValue& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CipherKeyValue* New() const final { + return CreateMaybeMessage(NULL); + } + + CipherKeyValue* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CipherKeyValue& from); + void MergeFrom(const CipherKeyValue& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CipherKeyValue* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional string key = 2; + bool has_key() const; + void clear_key(); + static const int kKeyFieldNumber = 2; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // optional bytes value = 3; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 3; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const void* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // optional bytes iv = 7; + bool has_iv() const; + void clear_iv(); + static const int kIvFieldNumber = 7; + const ::std::string& iv() const; + void set_iv(const ::std::string& value); + #if LANG_CXX11 + void set_iv(::std::string&& value); + #endif + void set_iv(const char* value); + void set_iv(const void* value, size_t size); + ::std::string* mutable_iv(); + ::std::string* release_iv(); + void set_allocated_iv(::std::string* iv); + + // optional bool encrypt = 4; + bool has_encrypt() const; + void clear_encrypt(); + static const int kEncryptFieldNumber = 4; + bool encrypt() const; + void set_encrypt(bool value); + + // optional bool ask_on_encrypt = 5; + bool has_ask_on_encrypt() const; + void clear_ask_on_encrypt(); + static const int kAskOnEncryptFieldNumber = 5; + bool ask_on_encrypt() const; + void set_ask_on_encrypt(bool value); + + // optional bool ask_on_decrypt = 6; + bool has_ask_on_decrypt() const; + void clear_ask_on_decrypt(); + static const int kAskOnDecryptFieldNumber = 6; + bool ask_on_decrypt() const; + void set_ask_on_decrypt(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.crypto.CipherKeyValue) + private: + void set_has_key(); + void clear_has_key(); + void set_has_value(); + void clear_has_value(); + void set_has_encrypt(); + void clear_has_encrypt(); + void set_has_ask_on_encrypt(); + void clear_has_ask_on_encrypt(); + void set_has_ask_on_decrypt(); + void clear_has_ask_on_decrypt(); + void set_has_iv(); + void clear_has_iv(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + ::google::protobuf::internal::ArenaStringPtr iv_; + bool encrypt_; + bool ask_on_encrypt_; + bool ask_on_decrypt_; + friend struct ::protobuf_messages_2dcrypto_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CipheredKeyValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.crypto.CipheredKeyValue) */ { + public: + CipheredKeyValue(); + virtual ~CipheredKeyValue(); + + CipheredKeyValue(const CipheredKeyValue& from); + + inline CipheredKeyValue& operator=(const CipheredKeyValue& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CipheredKeyValue(CipheredKeyValue&& from) noexcept + : CipheredKeyValue() { + *this = ::std::move(from); + } + + inline CipheredKeyValue& operator=(CipheredKeyValue&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CipheredKeyValue& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CipheredKeyValue* internal_default_instance() { + return reinterpret_cast( + &_CipheredKeyValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(CipheredKeyValue* other); + friend void swap(CipheredKeyValue& a, CipheredKeyValue& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CipheredKeyValue* New() const final { + return CreateMaybeMessage(NULL); + } + + CipheredKeyValue* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CipheredKeyValue& from); + void MergeFrom(const CipheredKeyValue& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CipheredKeyValue* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes value = 1; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 1; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const void* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.crypto.CipheredKeyValue) + private: + void set_has_value(); + void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr value_; + friend struct ::protobuf_messages_2dcrypto_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class IdentityType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.crypto.IdentityType) */ { + public: + IdentityType(); + virtual ~IdentityType(); + + IdentityType(const IdentityType& from); + + inline IdentityType& operator=(const IdentityType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IdentityType(IdentityType&& from) noexcept + : IdentityType() { + *this = ::std::move(from); + } + + inline IdentityType& operator=(IdentityType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IdentityType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IdentityType* internal_default_instance() { + return reinterpret_cast( + &_IdentityType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(IdentityType* other); + friend void swap(IdentityType& a, IdentityType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IdentityType* New() const final { + return CreateMaybeMessage(NULL); + } + + IdentityType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const IdentityType& from); + void MergeFrom(const IdentityType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IdentityType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string proto = 1; + bool has_proto() const; + void clear_proto(); + static const int kProtoFieldNumber = 1; + const ::std::string& proto() const; + void set_proto(const ::std::string& value); + #if LANG_CXX11 + void set_proto(::std::string&& value); + #endif + void set_proto(const char* value); + void set_proto(const char* value, size_t size); + ::std::string* mutable_proto(); + ::std::string* release_proto(); + void set_allocated_proto(::std::string* proto); + + // optional string user = 2; + bool has_user() const; + void clear_user(); + static const int kUserFieldNumber = 2; + const ::std::string& user() const; + void set_user(const ::std::string& value); + #if LANG_CXX11 + void set_user(::std::string&& value); + #endif + void set_user(const char* value); + void set_user(const char* value, size_t size); + ::std::string* mutable_user(); + ::std::string* release_user(); + void set_allocated_user(::std::string* user); + + // optional string host = 3; + bool has_host() const; + void clear_host(); + static const int kHostFieldNumber = 3; + const ::std::string& host() const; + void set_host(const ::std::string& value); + #if LANG_CXX11 + void set_host(::std::string&& value); + #endif + void set_host(const char* value); + void set_host(const char* value, size_t size); + ::std::string* mutable_host(); + ::std::string* release_host(); + void set_allocated_host(::std::string* host); + + // optional string port = 4; + bool has_port() const; + void clear_port(); + static const int kPortFieldNumber = 4; + const ::std::string& port() const; + void set_port(const ::std::string& value); + #if LANG_CXX11 + void set_port(::std::string&& value); + #endif + void set_port(const char* value); + void set_port(const char* value, size_t size); + ::std::string* mutable_port(); + ::std::string* release_port(); + void set_allocated_port(::std::string* port); + + // optional string path = 5; + bool has_path() const; + void clear_path(); + static const int kPathFieldNumber = 5; + const ::std::string& path() const; + void set_path(const ::std::string& value); + #if LANG_CXX11 + void set_path(::std::string&& value); + #endif + void set_path(const char* value); + void set_path(const char* value, size_t size); + ::std::string* mutable_path(); + ::std::string* release_path(); + void set_allocated_path(::std::string* path); + + // optional uint32 index = 6 [default = 0]; + bool has_index() const; + void clear_index(); + static const int kIndexFieldNumber = 6; + ::google::protobuf::uint32 index() const; + void set_index(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.crypto.IdentityType) + private: + void set_has_proto(); + void clear_has_proto(); + void set_has_user(); + void clear_has_user(); + void set_has_host(); + void clear_has_host(); + void set_has_port(); + void clear_has_port(); + void set_has_path(); + void clear_has_path(); + void set_has_index(); + void clear_has_index(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr proto_; + ::google::protobuf::internal::ArenaStringPtr user_; + ::google::protobuf::internal::ArenaStringPtr host_; + ::google::protobuf::internal::ArenaStringPtr port_; + ::google::protobuf::internal::ArenaStringPtr path_; + ::google::protobuf::uint32 index_; + friend struct ::protobuf_messages_2dcrypto_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class SignIdentity : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.crypto.SignIdentity) */ { + public: + SignIdentity(); + virtual ~SignIdentity(); + + SignIdentity(const SignIdentity& from); + + inline SignIdentity& operator=(const SignIdentity& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SignIdentity(SignIdentity&& from) noexcept + : SignIdentity() { + *this = ::std::move(from); + } + + inline SignIdentity& operator=(SignIdentity&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SignIdentity& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SignIdentity* internal_default_instance() { + return reinterpret_cast( + &_SignIdentity_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(SignIdentity* other); + friend void swap(SignIdentity& a, SignIdentity& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SignIdentity* New() const final { + return CreateMaybeMessage(NULL); + } + + SignIdentity* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SignIdentity& from); + void MergeFrom(const SignIdentity& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SignIdentity* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes challenge_hidden = 2; + bool has_challenge_hidden() const; + void clear_challenge_hidden(); + static const int kChallengeHiddenFieldNumber = 2; + const ::std::string& challenge_hidden() const; + void set_challenge_hidden(const ::std::string& value); + #if LANG_CXX11 + void set_challenge_hidden(::std::string&& value); + #endif + void set_challenge_hidden(const char* value); + void set_challenge_hidden(const void* value, size_t size); + ::std::string* mutable_challenge_hidden(); + ::std::string* release_challenge_hidden(); + void set_allocated_challenge_hidden(::std::string* challenge_hidden); + + // optional string challenge_visual = 3; + bool has_challenge_visual() const; + void clear_challenge_visual(); + static const int kChallengeVisualFieldNumber = 3; + const ::std::string& challenge_visual() const; + void set_challenge_visual(const ::std::string& value); + #if LANG_CXX11 + void set_challenge_visual(::std::string&& value); + #endif + void set_challenge_visual(const char* value); + void set_challenge_visual(const char* value, size_t size); + ::std::string* mutable_challenge_visual(); + ::std::string* release_challenge_visual(); + void set_allocated_challenge_visual(::std::string* challenge_visual); + + // optional string ecdsa_curve_name = 4; + bool has_ecdsa_curve_name() const; + void clear_ecdsa_curve_name(); + static const int kEcdsaCurveNameFieldNumber = 4; + const ::std::string& ecdsa_curve_name() const; + void set_ecdsa_curve_name(const ::std::string& value); + #if LANG_CXX11 + void set_ecdsa_curve_name(::std::string&& value); + #endif + void set_ecdsa_curve_name(const char* value); + void set_ecdsa_curve_name(const char* value, size_t size); + ::std::string* mutable_ecdsa_curve_name(); + ::std::string* release_ecdsa_curve_name(); + void set_allocated_ecdsa_curve_name(::std::string* ecdsa_curve_name); + + // optional .hw.trezor.messages.crypto.IdentityType identity = 1; + bool has_identity() const; + void clear_identity(); + static const int kIdentityFieldNumber = 1; + private: + const ::hw::trezor::messages::crypto::IdentityType& _internal_identity() const; + public: + const ::hw::trezor::messages::crypto::IdentityType& identity() const; + ::hw::trezor::messages::crypto::IdentityType* release_identity(); + ::hw::trezor::messages::crypto::IdentityType* mutable_identity(); + void set_allocated_identity(::hw::trezor::messages::crypto::IdentityType* identity); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.crypto.SignIdentity) + private: + void set_has_identity(); + void clear_has_identity(); + void set_has_challenge_hidden(); + void clear_has_challenge_hidden(); + void set_has_challenge_visual(); + void clear_has_challenge_visual(); + void set_has_ecdsa_curve_name(); + void clear_has_ecdsa_curve_name(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr challenge_hidden_; + ::google::protobuf::internal::ArenaStringPtr challenge_visual_; + ::google::protobuf::internal::ArenaStringPtr ecdsa_curve_name_; + ::hw::trezor::messages::crypto::IdentityType* identity_; + friend struct ::protobuf_messages_2dcrypto_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class SignedIdentity : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.crypto.SignedIdentity) */ { + public: + SignedIdentity(); + virtual ~SignedIdentity(); + + SignedIdentity(const SignedIdentity& from); + + inline SignedIdentity& operator=(const SignedIdentity& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SignedIdentity(SignedIdentity&& from) noexcept + : SignedIdentity() { + *this = ::std::move(from); + } + + inline SignedIdentity& operator=(SignedIdentity&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SignedIdentity& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SignedIdentity* internal_default_instance() { + return reinterpret_cast( + &_SignedIdentity_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(SignedIdentity* other); + friend void swap(SignedIdentity& a, SignedIdentity& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SignedIdentity* New() const final { + return CreateMaybeMessage(NULL); + } + + SignedIdentity* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SignedIdentity& from); + void MergeFrom(const SignedIdentity& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SignedIdentity* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // optional bytes public_key = 2; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 2; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // optional bytes signature = 3; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 3; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.crypto.SignedIdentity) + private: + void set_has_address(); + void clear_has_address(); + void set_has_public_key(); + void clear_has_public_key(); + void set_has_signature(); + void clear_has_signature(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr signature_; + friend struct ::protobuf_messages_2dcrypto_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class GetECDHSessionKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.crypto.GetECDHSessionKey) */ { + public: + GetECDHSessionKey(); + virtual ~GetECDHSessionKey(); + + GetECDHSessionKey(const GetECDHSessionKey& from); + + inline GetECDHSessionKey& operator=(const GetECDHSessionKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetECDHSessionKey(GetECDHSessionKey&& from) noexcept + : GetECDHSessionKey() { + *this = ::std::move(from); + } + + inline GetECDHSessionKey& operator=(GetECDHSessionKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetECDHSessionKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetECDHSessionKey* internal_default_instance() { + return reinterpret_cast( + &_GetECDHSessionKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(GetECDHSessionKey* other); + friend void swap(GetECDHSessionKey& a, GetECDHSessionKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetECDHSessionKey* New() const final { + return CreateMaybeMessage(NULL); + } + + GetECDHSessionKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetECDHSessionKey& from); + void MergeFrom(const GetECDHSessionKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetECDHSessionKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes peer_public_key = 2; + bool has_peer_public_key() const; + void clear_peer_public_key(); + static const int kPeerPublicKeyFieldNumber = 2; + const ::std::string& peer_public_key() const; + void set_peer_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_peer_public_key(::std::string&& value); + #endif + void set_peer_public_key(const char* value); + void set_peer_public_key(const void* value, size_t size); + ::std::string* mutable_peer_public_key(); + ::std::string* release_peer_public_key(); + void set_allocated_peer_public_key(::std::string* peer_public_key); + + // optional string ecdsa_curve_name = 3; + bool has_ecdsa_curve_name() const; + void clear_ecdsa_curve_name(); + static const int kEcdsaCurveNameFieldNumber = 3; + const ::std::string& ecdsa_curve_name() const; + void set_ecdsa_curve_name(const ::std::string& value); + #if LANG_CXX11 + void set_ecdsa_curve_name(::std::string&& value); + #endif + void set_ecdsa_curve_name(const char* value); + void set_ecdsa_curve_name(const char* value, size_t size); + ::std::string* mutable_ecdsa_curve_name(); + ::std::string* release_ecdsa_curve_name(); + void set_allocated_ecdsa_curve_name(::std::string* ecdsa_curve_name); + + // optional .hw.trezor.messages.crypto.IdentityType identity = 1; + bool has_identity() const; + void clear_identity(); + static const int kIdentityFieldNumber = 1; + private: + const ::hw::trezor::messages::crypto::IdentityType& _internal_identity() const; + public: + const ::hw::trezor::messages::crypto::IdentityType& identity() const; + ::hw::trezor::messages::crypto::IdentityType* release_identity(); + ::hw::trezor::messages::crypto::IdentityType* mutable_identity(); + void set_allocated_identity(::hw::trezor::messages::crypto::IdentityType* identity); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.crypto.GetECDHSessionKey) + private: + void set_has_identity(); + void clear_has_identity(); + void set_has_peer_public_key(); + void clear_has_peer_public_key(); + void set_has_ecdsa_curve_name(); + void clear_has_ecdsa_curve_name(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr peer_public_key_; + ::google::protobuf::internal::ArenaStringPtr ecdsa_curve_name_; + ::hw::trezor::messages::crypto::IdentityType* identity_; + friend struct ::protobuf_messages_2dcrypto_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class ECDHSessionKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.crypto.ECDHSessionKey) */ { + public: + ECDHSessionKey(); + virtual ~ECDHSessionKey(); + + ECDHSessionKey(const ECDHSessionKey& from); + + inline ECDHSessionKey& operator=(const ECDHSessionKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ECDHSessionKey(ECDHSessionKey&& from) noexcept + : ECDHSessionKey() { + *this = ::std::move(from); + } + + inline ECDHSessionKey& operator=(ECDHSessionKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ECDHSessionKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ECDHSessionKey* internal_default_instance() { + return reinterpret_cast( + &_ECDHSessionKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(ECDHSessionKey* other); + friend void swap(ECDHSessionKey& a, ECDHSessionKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ECDHSessionKey* New() const final { + return CreateMaybeMessage(NULL); + } + + ECDHSessionKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ECDHSessionKey& from); + void MergeFrom(const ECDHSessionKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ECDHSessionKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes session_key = 1; + bool has_session_key() const; + void clear_session_key(); + static const int kSessionKeyFieldNumber = 1; + const ::std::string& session_key() const; + void set_session_key(const ::std::string& value); + #if LANG_CXX11 + void set_session_key(::std::string&& value); + #endif + void set_session_key(const char* value); + void set_session_key(const void* value, size_t size); + ::std::string* mutable_session_key(); + ::std::string* release_session_key(); + void set_allocated_session_key(::std::string* session_key); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.crypto.ECDHSessionKey) + private: + void set_has_session_key(); + void clear_has_session_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr session_key_; + friend struct ::protobuf_messages_2dcrypto_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CosiCommit : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.crypto.CosiCommit) */ { + public: + CosiCommit(); + virtual ~CosiCommit(); + + CosiCommit(const CosiCommit& from); + + inline CosiCommit& operator=(const CosiCommit& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CosiCommit(CosiCommit&& from) noexcept + : CosiCommit() { + *this = ::std::move(from); + } + + inline CosiCommit& operator=(CosiCommit&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CosiCommit& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CosiCommit* internal_default_instance() { + return reinterpret_cast( + &_CosiCommit_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(CosiCommit* other); + friend void swap(CosiCommit& a, CosiCommit& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CosiCommit* New() const final { + return CreateMaybeMessage(NULL); + } + + CosiCommit* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CosiCommit& from); + void MergeFrom(const CosiCommit& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CosiCommit* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes data = 2; + bool has_data() const; + void clear_data(); + static const int kDataFieldNumber = 2; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const void* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.crypto.CosiCommit) + private: + void set_has_data(); + void clear_has_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr data_; + friend struct ::protobuf_messages_2dcrypto_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CosiCommitment : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.crypto.CosiCommitment) */ { + public: + CosiCommitment(); + virtual ~CosiCommitment(); + + CosiCommitment(const CosiCommitment& from); + + inline CosiCommitment& operator=(const CosiCommitment& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CosiCommitment(CosiCommitment&& from) noexcept + : CosiCommitment() { + *this = ::std::move(from); + } + + inline CosiCommitment& operator=(CosiCommitment&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CosiCommitment& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CosiCommitment* internal_default_instance() { + return reinterpret_cast( + &_CosiCommitment_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(CosiCommitment* other); + friend void swap(CosiCommitment& a, CosiCommitment& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CosiCommitment* New() const final { + return CreateMaybeMessage(NULL); + } + + CosiCommitment* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CosiCommitment& from); + void MergeFrom(const CosiCommitment& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CosiCommitment* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes commitment = 1; + bool has_commitment() const; + void clear_commitment(); + static const int kCommitmentFieldNumber = 1; + const ::std::string& commitment() const; + void set_commitment(const ::std::string& value); + #if LANG_CXX11 + void set_commitment(::std::string&& value); + #endif + void set_commitment(const char* value); + void set_commitment(const void* value, size_t size); + ::std::string* mutable_commitment(); + ::std::string* release_commitment(); + void set_allocated_commitment(::std::string* commitment); + + // optional bytes pubkey = 2; + bool has_pubkey() const; + void clear_pubkey(); + static const int kPubkeyFieldNumber = 2; + const ::std::string& pubkey() const; + void set_pubkey(const ::std::string& value); + #if LANG_CXX11 + void set_pubkey(::std::string&& value); + #endif + void set_pubkey(const char* value); + void set_pubkey(const void* value, size_t size); + ::std::string* mutable_pubkey(); + ::std::string* release_pubkey(); + void set_allocated_pubkey(::std::string* pubkey); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.crypto.CosiCommitment) + private: + void set_has_commitment(); + void clear_has_commitment(); + void set_has_pubkey(); + void clear_has_pubkey(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr commitment_; + ::google::protobuf::internal::ArenaStringPtr pubkey_; + friend struct ::protobuf_messages_2dcrypto_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CosiSign : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.crypto.CosiSign) */ { + public: + CosiSign(); + virtual ~CosiSign(); + + CosiSign(const CosiSign& from); + + inline CosiSign& operator=(const CosiSign& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CosiSign(CosiSign&& from) noexcept + : CosiSign() { + *this = ::std::move(from); + } + + inline CosiSign& operator=(CosiSign&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CosiSign& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CosiSign* internal_default_instance() { + return reinterpret_cast( + &_CosiSign_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(CosiSign* other); + friend void swap(CosiSign& a, CosiSign& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CosiSign* New() const final { + return CreateMaybeMessage(NULL); + } + + CosiSign* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CosiSign& from); + void MergeFrom(const CosiSign& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CosiSign* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes data = 2; + bool has_data() const; + void clear_data(); + static const int kDataFieldNumber = 2; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const void* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // optional bytes global_commitment = 3; + bool has_global_commitment() const; + void clear_global_commitment(); + static const int kGlobalCommitmentFieldNumber = 3; + const ::std::string& global_commitment() const; + void set_global_commitment(const ::std::string& value); + #if LANG_CXX11 + void set_global_commitment(::std::string&& value); + #endif + void set_global_commitment(const char* value); + void set_global_commitment(const void* value, size_t size); + ::std::string* mutable_global_commitment(); + ::std::string* release_global_commitment(); + void set_allocated_global_commitment(::std::string* global_commitment); + + // optional bytes global_pubkey = 4; + bool has_global_pubkey() const; + void clear_global_pubkey(); + static const int kGlobalPubkeyFieldNumber = 4; + const ::std::string& global_pubkey() const; + void set_global_pubkey(const ::std::string& value); + #if LANG_CXX11 + void set_global_pubkey(::std::string&& value); + #endif + void set_global_pubkey(const char* value); + void set_global_pubkey(const void* value, size_t size); + ::std::string* mutable_global_pubkey(); + ::std::string* release_global_pubkey(); + void set_allocated_global_pubkey(::std::string* global_pubkey); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.crypto.CosiSign) + private: + void set_has_data(); + void clear_has_data(); + void set_has_global_commitment(); + void clear_has_global_commitment(); + void set_has_global_pubkey(); + void clear_has_global_pubkey(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr data_; + ::google::protobuf::internal::ArenaStringPtr global_commitment_; + ::google::protobuf::internal::ArenaStringPtr global_pubkey_; + friend struct ::protobuf_messages_2dcrypto_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class CosiSignature : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.crypto.CosiSignature) */ { + public: + CosiSignature(); + virtual ~CosiSignature(); + + CosiSignature(const CosiSignature& from); + + inline CosiSignature& operator=(const CosiSignature& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CosiSignature(CosiSignature&& from) noexcept + : CosiSignature() { + *this = ::std::move(from); + } + + inline CosiSignature& operator=(CosiSignature&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CosiSignature& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CosiSignature* internal_default_instance() { + return reinterpret_cast( + &_CosiSignature_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(CosiSignature* other); + friend void swap(CosiSignature& a, CosiSignature& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CosiSignature* New() const final { + return CreateMaybeMessage(NULL); + } + + CosiSignature* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CosiSignature& from); + void MergeFrom(const CosiSignature& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CosiSignature* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.crypto.CosiSignature) + private: + void set_has_signature(); + void clear_has_signature(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + friend struct ::protobuf_messages_2dcrypto_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// CipherKeyValue + +// repeated uint32 address_n = 1; +inline int CipherKeyValue::address_n_size() const { + return address_n_.size(); +} +inline void CipherKeyValue::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 CipherKeyValue::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CipherKeyValue.address_n) + return address_n_.Get(index); +} +inline void CipherKeyValue::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CipherKeyValue.address_n) +} +inline void CipherKeyValue::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.crypto.CipherKeyValue.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +CipherKeyValue::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.crypto.CipherKeyValue.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +CipherKeyValue::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.crypto.CipherKeyValue.address_n) + return &address_n_; +} + +// optional string key = 2; +inline bool CipherKeyValue::has_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CipherKeyValue::set_has_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void CipherKeyValue::clear_has_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CipherKeyValue::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_key(); +} +inline const ::std::string& CipherKeyValue::key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CipherKeyValue.key) + return key_.GetNoArena(); +} +inline void CipherKeyValue::set_key(const ::std::string& value) { + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CipherKeyValue.key) +} +#if LANG_CXX11 +inline void CipherKeyValue::set_key(::std::string&& value) { + set_has_key(); + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.CipherKeyValue.key) +} +#endif +inline void CipherKeyValue::set_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.CipherKeyValue.key) +} +inline void CipherKeyValue::set_key(const char* value, size_t size) { + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.CipherKeyValue.key) +} +inline ::std::string* CipherKeyValue::mutable_key() { + set_has_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.CipherKeyValue.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CipherKeyValue::release_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.CipherKeyValue.key) + if (!has_key()) { + return NULL; + } + clear_has_key(); + return key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CipherKeyValue::set_allocated_key(::std::string* key) { + if (key != NULL) { + set_has_key(); + } else { + clear_has_key(); + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.CipherKeyValue.key) +} + +// optional bytes value = 3; +inline bool CipherKeyValue::has_value() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CipherKeyValue::set_has_value() { + _has_bits_[0] |= 0x00000002u; +} +inline void CipherKeyValue::clear_has_value() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CipherKeyValue::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_value(); +} +inline const ::std::string& CipherKeyValue::value() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CipherKeyValue.value) + return value_.GetNoArena(); +} +inline void CipherKeyValue::set_value(const ::std::string& value) { + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CipherKeyValue.value) +} +#if LANG_CXX11 +inline void CipherKeyValue::set_value(::std::string&& value) { + set_has_value(); + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.CipherKeyValue.value) +} +#endif +inline void CipherKeyValue::set_value(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.CipherKeyValue.value) +} +inline void CipherKeyValue::set_value(const void* value, size_t size) { + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.CipherKeyValue.value) +} +inline ::std::string* CipherKeyValue::mutable_value() { + set_has_value(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.CipherKeyValue.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CipherKeyValue::release_value() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.CipherKeyValue.value) + if (!has_value()) { + return NULL; + } + clear_has_value(); + return value_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CipherKeyValue::set_allocated_value(::std::string* value) { + if (value != NULL) { + set_has_value(); + } else { + clear_has_value(); + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.CipherKeyValue.value) +} + +// optional bool encrypt = 4; +inline bool CipherKeyValue::has_encrypt() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void CipherKeyValue::set_has_encrypt() { + _has_bits_[0] |= 0x00000008u; +} +inline void CipherKeyValue::clear_has_encrypt() { + _has_bits_[0] &= ~0x00000008u; +} +inline void CipherKeyValue::clear_encrypt() { + encrypt_ = false; + clear_has_encrypt(); +} +inline bool CipherKeyValue::encrypt() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CipherKeyValue.encrypt) + return encrypt_; +} +inline void CipherKeyValue::set_encrypt(bool value) { + set_has_encrypt(); + encrypt_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CipherKeyValue.encrypt) +} + +// optional bool ask_on_encrypt = 5; +inline bool CipherKeyValue::has_ask_on_encrypt() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void CipherKeyValue::set_has_ask_on_encrypt() { + _has_bits_[0] |= 0x00000010u; +} +inline void CipherKeyValue::clear_has_ask_on_encrypt() { + _has_bits_[0] &= ~0x00000010u; +} +inline void CipherKeyValue::clear_ask_on_encrypt() { + ask_on_encrypt_ = false; + clear_has_ask_on_encrypt(); +} +inline bool CipherKeyValue::ask_on_encrypt() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CipherKeyValue.ask_on_encrypt) + return ask_on_encrypt_; +} +inline void CipherKeyValue::set_ask_on_encrypt(bool value) { + set_has_ask_on_encrypt(); + ask_on_encrypt_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CipherKeyValue.ask_on_encrypt) +} + +// optional bool ask_on_decrypt = 6; +inline bool CipherKeyValue::has_ask_on_decrypt() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void CipherKeyValue::set_has_ask_on_decrypt() { + _has_bits_[0] |= 0x00000020u; +} +inline void CipherKeyValue::clear_has_ask_on_decrypt() { + _has_bits_[0] &= ~0x00000020u; +} +inline void CipherKeyValue::clear_ask_on_decrypt() { + ask_on_decrypt_ = false; + clear_has_ask_on_decrypt(); +} +inline bool CipherKeyValue::ask_on_decrypt() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CipherKeyValue.ask_on_decrypt) + return ask_on_decrypt_; +} +inline void CipherKeyValue::set_ask_on_decrypt(bool value) { + set_has_ask_on_decrypt(); + ask_on_decrypt_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CipherKeyValue.ask_on_decrypt) +} + +// optional bytes iv = 7; +inline bool CipherKeyValue::has_iv() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CipherKeyValue::set_has_iv() { + _has_bits_[0] |= 0x00000004u; +} +inline void CipherKeyValue::clear_has_iv() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CipherKeyValue::clear_iv() { + iv_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_iv(); +} +inline const ::std::string& CipherKeyValue::iv() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CipherKeyValue.iv) + return iv_.GetNoArena(); +} +inline void CipherKeyValue::set_iv(const ::std::string& value) { + set_has_iv(); + iv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CipherKeyValue.iv) +} +#if LANG_CXX11 +inline void CipherKeyValue::set_iv(::std::string&& value) { + set_has_iv(); + iv_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.CipherKeyValue.iv) +} +#endif +inline void CipherKeyValue::set_iv(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_iv(); + iv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.CipherKeyValue.iv) +} +inline void CipherKeyValue::set_iv(const void* value, size_t size) { + set_has_iv(); + iv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.CipherKeyValue.iv) +} +inline ::std::string* CipherKeyValue::mutable_iv() { + set_has_iv(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.CipherKeyValue.iv) + return iv_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CipherKeyValue::release_iv() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.CipherKeyValue.iv) + if (!has_iv()) { + return NULL; + } + clear_has_iv(); + return iv_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CipherKeyValue::set_allocated_iv(::std::string* iv) { + if (iv != NULL) { + set_has_iv(); + } else { + clear_has_iv(); + } + iv_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), iv); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.CipherKeyValue.iv) +} + +// ------------------------------------------------------------------- + +// CipheredKeyValue + +// optional bytes value = 1; +inline bool CipheredKeyValue::has_value() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CipheredKeyValue::set_has_value() { + _has_bits_[0] |= 0x00000001u; +} +inline void CipheredKeyValue::clear_has_value() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CipheredKeyValue::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_value(); +} +inline const ::std::string& CipheredKeyValue::value() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CipheredKeyValue.value) + return value_.GetNoArena(); +} +inline void CipheredKeyValue::set_value(const ::std::string& value) { + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CipheredKeyValue.value) +} +#if LANG_CXX11 +inline void CipheredKeyValue::set_value(::std::string&& value) { + set_has_value(); + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.CipheredKeyValue.value) +} +#endif +inline void CipheredKeyValue::set_value(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.CipheredKeyValue.value) +} +inline void CipheredKeyValue::set_value(const void* value, size_t size) { + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.CipheredKeyValue.value) +} +inline ::std::string* CipheredKeyValue::mutable_value() { + set_has_value(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.CipheredKeyValue.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CipheredKeyValue::release_value() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.CipheredKeyValue.value) + if (!has_value()) { + return NULL; + } + clear_has_value(); + return value_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CipheredKeyValue::set_allocated_value(::std::string* value) { + if (value != NULL) { + set_has_value(); + } else { + clear_has_value(); + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.CipheredKeyValue.value) +} + +// ------------------------------------------------------------------- + +// IdentityType + +// optional string proto = 1; +inline bool IdentityType::has_proto() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IdentityType::set_has_proto() { + _has_bits_[0] |= 0x00000001u; +} +inline void IdentityType::clear_has_proto() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IdentityType::clear_proto() { + proto_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_proto(); +} +inline const ::std::string& IdentityType::proto() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.IdentityType.proto) + return proto_.GetNoArena(); +} +inline void IdentityType::set_proto(const ::std::string& value) { + set_has_proto(); + proto_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.IdentityType.proto) +} +#if LANG_CXX11 +inline void IdentityType::set_proto(::std::string&& value) { + set_has_proto(); + proto_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.IdentityType.proto) +} +#endif +inline void IdentityType::set_proto(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_proto(); + proto_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.IdentityType.proto) +} +inline void IdentityType::set_proto(const char* value, size_t size) { + set_has_proto(); + proto_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.IdentityType.proto) +} +inline ::std::string* IdentityType::mutable_proto() { + set_has_proto(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.IdentityType.proto) + return proto_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* IdentityType::release_proto() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.IdentityType.proto) + if (!has_proto()) { + return NULL; + } + clear_has_proto(); + return proto_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void IdentityType::set_allocated_proto(::std::string* proto) { + if (proto != NULL) { + set_has_proto(); + } else { + clear_has_proto(); + } + proto_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), proto); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.IdentityType.proto) +} + +// optional string user = 2; +inline bool IdentityType::has_user() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void IdentityType::set_has_user() { + _has_bits_[0] |= 0x00000002u; +} +inline void IdentityType::clear_has_user() { + _has_bits_[0] &= ~0x00000002u; +} +inline void IdentityType::clear_user() { + user_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_user(); +} +inline const ::std::string& IdentityType::user() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.IdentityType.user) + return user_.GetNoArena(); +} +inline void IdentityType::set_user(const ::std::string& value) { + set_has_user(); + user_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.IdentityType.user) +} +#if LANG_CXX11 +inline void IdentityType::set_user(::std::string&& value) { + set_has_user(); + user_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.IdentityType.user) +} +#endif +inline void IdentityType::set_user(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_user(); + user_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.IdentityType.user) +} +inline void IdentityType::set_user(const char* value, size_t size) { + set_has_user(); + user_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.IdentityType.user) +} +inline ::std::string* IdentityType::mutable_user() { + set_has_user(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.IdentityType.user) + return user_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* IdentityType::release_user() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.IdentityType.user) + if (!has_user()) { + return NULL; + } + clear_has_user(); + return user_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void IdentityType::set_allocated_user(::std::string* user) { + if (user != NULL) { + set_has_user(); + } else { + clear_has_user(); + } + user_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), user); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.IdentityType.user) +} + +// optional string host = 3; +inline bool IdentityType::has_host() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void IdentityType::set_has_host() { + _has_bits_[0] |= 0x00000004u; +} +inline void IdentityType::clear_has_host() { + _has_bits_[0] &= ~0x00000004u; +} +inline void IdentityType::clear_host() { + host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_host(); +} +inline const ::std::string& IdentityType::host() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.IdentityType.host) + return host_.GetNoArena(); +} +inline void IdentityType::set_host(const ::std::string& value) { + set_has_host(); + host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.IdentityType.host) +} +#if LANG_CXX11 +inline void IdentityType::set_host(::std::string&& value) { + set_has_host(); + host_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.IdentityType.host) +} +#endif +inline void IdentityType::set_host(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_host(); + host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.IdentityType.host) +} +inline void IdentityType::set_host(const char* value, size_t size) { + set_has_host(); + host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.IdentityType.host) +} +inline ::std::string* IdentityType::mutable_host() { + set_has_host(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.IdentityType.host) + return host_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* IdentityType::release_host() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.IdentityType.host) + if (!has_host()) { + return NULL; + } + clear_has_host(); + return host_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void IdentityType::set_allocated_host(::std::string* host) { + if (host != NULL) { + set_has_host(); + } else { + clear_has_host(); + } + host_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), host); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.IdentityType.host) +} + +// optional string port = 4; +inline bool IdentityType::has_port() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void IdentityType::set_has_port() { + _has_bits_[0] |= 0x00000008u; +} +inline void IdentityType::clear_has_port() { + _has_bits_[0] &= ~0x00000008u; +} +inline void IdentityType::clear_port() { + port_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_port(); +} +inline const ::std::string& IdentityType::port() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.IdentityType.port) + return port_.GetNoArena(); +} +inline void IdentityType::set_port(const ::std::string& value) { + set_has_port(); + port_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.IdentityType.port) +} +#if LANG_CXX11 +inline void IdentityType::set_port(::std::string&& value) { + set_has_port(); + port_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.IdentityType.port) +} +#endif +inline void IdentityType::set_port(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_port(); + port_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.IdentityType.port) +} +inline void IdentityType::set_port(const char* value, size_t size) { + set_has_port(); + port_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.IdentityType.port) +} +inline ::std::string* IdentityType::mutable_port() { + set_has_port(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.IdentityType.port) + return port_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* IdentityType::release_port() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.IdentityType.port) + if (!has_port()) { + return NULL; + } + clear_has_port(); + return port_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void IdentityType::set_allocated_port(::std::string* port) { + if (port != NULL) { + set_has_port(); + } else { + clear_has_port(); + } + port_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), port); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.IdentityType.port) +} + +// optional string path = 5; +inline bool IdentityType::has_path() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void IdentityType::set_has_path() { + _has_bits_[0] |= 0x00000010u; +} +inline void IdentityType::clear_has_path() { + _has_bits_[0] &= ~0x00000010u; +} +inline void IdentityType::clear_path() { + path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_path(); +} +inline const ::std::string& IdentityType::path() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.IdentityType.path) + return path_.GetNoArena(); +} +inline void IdentityType::set_path(const ::std::string& value) { + set_has_path(); + path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.IdentityType.path) +} +#if LANG_CXX11 +inline void IdentityType::set_path(::std::string&& value) { + set_has_path(); + path_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.IdentityType.path) +} +#endif +inline void IdentityType::set_path(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_path(); + path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.IdentityType.path) +} +inline void IdentityType::set_path(const char* value, size_t size) { + set_has_path(); + path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.IdentityType.path) +} +inline ::std::string* IdentityType::mutable_path() { + set_has_path(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.IdentityType.path) + return path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* IdentityType::release_path() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.IdentityType.path) + if (!has_path()) { + return NULL; + } + clear_has_path(); + return path_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void IdentityType::set_allocated_path(::std::string* path) { + if (path != NULL) { + set_has_path(); + } else { + clear_has_path(); + } + path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), path); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.IdentityType.path) +} + +// optional uint32 index = 6 [default = 0]; +inline bool IdentityType::has_index() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void IdentityType::set_has_index() { + _has_bits_[0] |= 0x00000020u; +} +inline void IdentityType::clear_has_index() { + _has_bits_[0] &= ~0x00000020u; +} +inline void IdentityType::clear_index() { + index_ = 0u; + clear_has_index(); +} +inline ::google::protobuf::uint32 IdentityType::index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.IdentityType.index) + return index_; +} +inline void IdentityType::set_index(::google::protobuf::uint32 value) { + set_has_index(); + index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.IdentityType.index) +} + +// ------------------------------------------------------------------- + +// SignIdentity + +// optional .hw.trezor.messages.crypto.IdentityType identity = 1; +inline bool SignIdentity::has_identity() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void SignIdentity::set_has_identity() { + _has_bits_[0] |= 0x00000008u; +} +inline void SignIdentity::clear_has_identity() { + _has_bits_[0] &= ~0x00000008u; +} +inline void SignIdentity::clear_identity() { + if (identity_ != NULL) identity_->Clear(); + clear_has_identity(); +} +inline const ::hw::trezor::messages::crypto::IdentityType& SignIdentity::_internal_identity() const { + return *identity_; +} +inline const ::hw::trezor::messages::crypto::IdentityType& SignIdentity::identity() const { + const ::hw::trezor::messages::crypto::IdentityType* p = identity_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.SignIdentity.identity) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::crypto::_IdentityType_default_instance_); +} +inline ::hw::trezor::messages::crypto::IdentityType* SignIdentity::release_identity() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.SignIdentity.identity) + clear_has_identity(); + ::hw::trezor::messages::crypto::IdentityType* temp = identity_; + identity_ = NULL; + return temp; +} +inline ::hw::trezor::messages::crypto::IdentityType* SignIdentity::mutable_identity() { + set_has_identity(); + if (identity_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::crypto::IdentityType>(GetArenaNoVirtual()); + identity_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.SignIdentity.identity) + return identity_; +} +inline void SignIdentity::set_allocated_identity(::hw::trezor::messages::crypto::IdentityType* identity) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete identity_; + } + if (identity) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + identity = ::google::protobuf::internal::GetOwnedMessage( + message_arena, identity, submessage_arena); + } + set_has_identity(); + } else { + clear_has_identity(); + } + identity_ = identity; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.SignIdentity.identity) +} + +// optional bytes challenge_hidden = 2; +inline bool SignIdentity::has_challenge_hidden() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SignIdentity::set_has_challenge_hidden() { + _has_bits_[0] |= 0x00000001u; +} +inline void SignIdentity::clear_has_challenge_hidden() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SignIdentity::clear_challenge_hidden() { + challenge_hidden_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_challenge_hidden(); +} +inline const ::std::string& SignIdentity::challenge_hidden() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.SignIdentity.challenge_hidden) + return challenge_hidden_.GetNoArena(); +} +inline void SignIdentity::set_challenge_hidden(const ::std::string& value) { + set_has_challenge_hidden(); + challenge_hidden_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.SignIdentity.challenge_hidden) +} +#if LANG_CXX11 +inline void SignIdentity::set_challenge_hidden(::std::string&& value) { + set_has_challenge_hidden(); + challenge_hidden_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.SignIdentity.challenge_hidden) +} +#endif +inline void SignIdentity::set_challenge_hidden(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_challenge_hidden(); + challenge_hidden_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.SignIdentity.challenge_hidden) +} +inline void SignIdentity::set_challenge_hidden(const void* value, size_t size) { + set_has_challenge_hidden(); + challenge_hidden_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.SignIdentity.challenge_hidden) +} +inline ::std::string* SignIdentity::mutable_challenge_hidden() { + set_has_challenge_hidden(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.SignIdentity.challenge_hidden) + return challenge_hidden_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignIdentity::release_challenge_hidden() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.SignIdentity.challenge_hidden) + if (!has_challenge_hidden()) { + return NULL; + } + clear_has_challenge_hidden(); + return challenge_hidden_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignIdentity::set_allocated_challenge_hidden(::std::string* challenge_hidden) { + if (challenge_hidden != NULL) { + set_has_challenge_hidden(); + } else { + clear_has_challenge_hidden(); + } + challenge_hidden_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), challenge_hidden); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.SignIdentity.challenge_hidden) +} + +// optional string challenge_visual = 3; +inline bool SignIdentity::has_challenge_visual() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SignIdentity::set_has_challenge_visual() { + _has_bits_[0] |= 0x00000002u; +} +inline void SignIdentity::clear_has_challenge_visual() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SignIdentity::clear_challenge_visual() { + challenge_visual_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_challenge_visual(); +} +inline const ::std::string& SignIdentity::challenge_visual() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.SignIdentity.challenge_visual) + return challenge_visual_.GetNoArena(); +} +inline void SignIdentity::set_challenge_visual(const ::std::string& value) { + set_has_challenge_visual(); + challenge_visual_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.SignIdentity.challenge_visual) +} +#if LANG_CXX11 +inline void SignIdentity::set_challenge_visual(::std::string&& value) { + set_has_challenge_visual(); + challenge_visual_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.SignIdentity.challenge_visual) +} +#endif +inline void SignIdentity::set_challenge_visual(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_challenge_visual(); + challenge_visual_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.SignIdentity.challenge_visual) +} +inline void SignIdentity::set_challenge_visual(const char* value, size_t size) { + set_has_challenge_visual(); + challenge_visual_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.SignIdentity.challenge_visual) +} +inline ::std::string* SignIdentity::mutable_challenge_visual() { + set_has_challenge_visual(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.SignIdentity.challenge_visual) + return challenge_visual_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignIdentity::release_challenge_visual() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.SignIdentity.challenge_visual) + if (!has_challenge_visual()) { + return NULL; + } + clear_has_challenge_visual(); + return challenge_visual_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignIdentity::set_allocated_challenge_visual(::std::string* challenge_visual) { + if (challenge_visual != NULL) { + set_has_challenge_visual(); + } else { + clear_has_challenge_visual(); + } + challenge_visual_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), challenge_visual); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.SignIdentity.challenge_visual) +} + +// optional string ecdsa_curve_name = 4; +inline bool SignIdentity::has_ecdsa_curve_name() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SignIdentity::set_has_ecdsa_curve_name() { + _has_bits_[0] |= 0x00000004u; +} +inline void SignIdentity::clear_has_ecdsa_curve_name() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SignIdentity::clear_ecdsa_curve_name() { + ecdsa_curve_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ecdsa_curve_name(); +} +inline const ::std::string& SignIdentity::ecdsa_curve_name() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.SignIdentity.ecdsa_curve_name) + return ecdsa_curve_name_.GetNoArena(); +} +inline void SignIdentity::set_ecdsa_curve_name(const ::std::string& value) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.SignIdentity.ecdsa_curve_name) +} +#if LANG_CXX11 +inline void SignIdentity::set_ecdsa_curve_name(::std::string&& value) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.SignIdentity.ecdsa_curve_name) +} +#endif +inline void SignIdentity::set_ecdsa_curve_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.SignIdentity.ecdsa_curve_name) +} +inline void SignIdentity::set_ecdsa_curve_name(const char* value, size_t size) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.SignIdentity.ecdsa_curve_name) +} +inline ::std::string* SignIdentity::mutable_ecdsa_curve_name() { + set_has_ecdsa_curve_name(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.SignIdentity.ecdsa_curve_name) + return ecdsa_curve_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignIdentity::release_ecdsa_curve_name() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.SignIdentity.ecdsa_curve_name) + if (!has_ecdsa_curve_name()) { + return NULL; + } + clear_has_ecdsa_curve_name(); + return ecdsa_curve_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignIdentity::set_allocated_ecdsa_curve_name(::std::string* ecdsa_curve_name) { + if (ecdsa_curve_name != NULL) { + set_has_ecdsa_curve_name(); + } else { + clear_has_ecdsa_curve_name(); + } + ecdsa_curve_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ecdsa_curve_name); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.SignIdentity.ecdsa_curve_name) +} + +// ------------------------------------------------------------------- + +// SignedIdentity + +// optional string address = 1; +inline bool SignedIdentity::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SignedIdentity::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void SignedIdentity::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SignedIdentity::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& SignedIdentity::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.SignedIdentity.address) + return address_.GetNoArena(); +} +inline void SignedIdentity::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.SignedIdentity.address) +} +#if LANG_CXX11 +inline void SignedIdentity::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.SignedIdentity.address) +} +#endif +inline void SignedIdentity::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.SignedIdentity.address) +} +inline void SignedIdentity::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.SignedIdentity.address) +} +inline ::std::string* SignedIdentity::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.SignedIdentity.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignedIdentity::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.SignedIdentity.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignedIdentity::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.SignedIdentity.address) +} + +// optional bytes public_key = 2; +inline bool SignedIdentity::has_public_key() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SignedIdentity::set_has_public_key() { + _has_bits_[0] |= 0x00000002u; +} +inline void SignedIdentity::clear_has_public_key() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SignedIdentity::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& SignedIdentity::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.SignedIdentity.public_key) + return public_key_.GetNoArena(); +} +inline void SignedIdentity::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.SignedIdentity.public_key) +} +#if LANG_CXX11 +inline void SignedIdentity::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.SignedIdentity.public_key) +} +#endif +inline void SignedIdentity::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.SignedIdentity.public_key) +} +inline void SignedIdentity::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.SignedIdentity.public_key) +} +inline ::std::string* SignedIdentity::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.SignedIdentity.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignedIdentity::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.SignedIdentity.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignedIdentity::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.SignedIdentity.public_key) +} + +// optional bytes signature = 3; +inline bool SignedIdentity::has_signature() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SignedIdentity::set_has_signature() { + _has_bits_[0] |= 0x00000004u; +} +inline void SignedIdentity::clear_has_signature() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SignedIdentity::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& SignedIdentity::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.SignedIdentity.signature) + return signature_.GetNoArena(); +} +inline void SignedIdentity::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.SignedIdentity.signature) +} +#if LANG_CXX11 +inline void SignedIdentity::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.SignedIdentity.signature) +} +#endif +inline void SignedIdentity::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.SignedIdentity.signature) +} +inline void SignedIdentity::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.SignedIdentity.signature) +} +inline ::std::string* SignedIdentity::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.SignedIdentity.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignedIdentity::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.SignedIdentity.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignedIdentity::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.SignedIdentity.signature) +} + +// ------------------------------------------------------------------- + +// GetECDHSessionKey + +// optional .hw.trezor.messages.crypto.IdentityType identity = 1; +inline bool GetECDHSessionKey::has_identity() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GetECDHSessionKey::set_has_identity() { + _has_bits_[0] |= 0x00000004u; +} +inline void GetECDHSessionKey::clear_has_identity() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GetECDHSessionKey::clear_identity() { + if (identity_ != NULL) identity_->Clear(); + clear_has_identity(); +} +inline const ::hw::trezor::messages::crypto::IdentityType& GetECDHSessionKey::_internal_identity() const { + return *identity_; +} +inline const ::hw::trezor::messages::crypto::IdentityType& GetECDHSessionKey::identity() const { + const ::hw::trezor::messages::crypto::IdentityType* p = identity_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.GetECDHSessionKey.identity) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::crypto::_IdentityType_default_instance_); +} +inline ::hw::trezor::messages::crypto::IdentityType* GetECDHSessionKey::release_identity() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.GetECDHSessionKey.identity) + clear_has_identity(); + ::hw::trezor::messages::crypto::IdentityType* temp = identity_; + identity_ = NULL; + return temp; +} +inline ::hw::trezor::messages::crypto::IdentityType* GetECDHSessionKey::mutable_identity() { + set_has_identity(); + if (identity_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::crypto::IdentityType>(GetArenaNoVirtual()); + identity_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.GetECDHSessionKey.identity) + return identity_; +} +inline void GetECDHSessionKey::set_allocated_identity(::hw::trezor::messages::crypto::IdentityType* identity) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete identity_; + } + if (identity) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + identity = ::google::protobuf::internal::GetOwnedMessage( + message_arena, identity, submessage_arena); + } + set_has_identity(); + } else { + clear_has_identity(); + } + identity_ = identity; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.GetECDHSessionKey.identity) +} + +// optional bytes peer_public_key = 2; +inline bool GetECDHSessionKey::has_peer_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetECDHSessionKey::set_has_peer_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetECDHSessionKey::clear_has_peer_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetECDHSessionKey::clear_peer_public_key() { + peer_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_peer_public_key(); +} +inline const ::std::string& GetECDHSessionKey::peer_public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.GetECDHSessionKey.peer_public_key) + return peer_public_key_.GetNoArena(); +} +inline void GetECDHSessionKey::set_peer_public_key(const ::std::string& value) { + set_has_peer_public_key(); + peer_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.GetECDHSessionKey.peer_public_key) +} +#if LANG_CXX11 +inline void GetECDHSessionKey::set_peer_public_key(::std::string&& value) { + set_has_peer_public_key(); + peer_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.GetECDHSessionKey.peer_public_key) +} +#endif +inline void GetECDHSessionKey::set_peer_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_peer_public_key(); + peer_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.GetECDHSessionKey.peer_public_key) +} +inline void GetECDHSessionKey::set_peer_public_key(const void* value, size_t size) { + set_has_peer_public_key(); + peer_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.GetECDHSessionKey.peer_public_key) +} +inline ::std::string* GetECDHSessionKey::mutable_peer_public_key() { + set_has_peer_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.GetECDHSessionKey.peer_public_key) + return peer_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetECDHSessionKey::release_peer_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.GetECDHSessionKey.peer_public_key) + if (!has_peer_public_key()) { + return NULL; + } + clear_has_peer_public_key(); + return peer_public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetECDHSessionKey::set_allocated_peer_public_key(::std::string* peer_public_key) { + if (peer_public_key != NULL) { + set_has_peer_public_key(); + } else { + clear_has_peer_public_key(); + } + peer_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), peer_public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.GetECDHSessionKey.peer_public_key) +} + +// optional string ecdsa_curve_name = 3; +inline bool GetECDHSessionKey::has_ecdsa_curve_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetECDHSessionKey::set_has_ecdsa_curve_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetECDHSessionKey::clear_has_ecdsa_curve_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetECDHSessionKey::clear_ecdsa_curve_name() { + ecdsa_curve_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ecdsa_curve_name(); +} +inline const ::std::string& GetECDHSessionKey::ecdsa_curve_name() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.GetECDHSessionKey.ecdsa_curve_name) + return ecdsa_curve_name_.GetNoArena(); +} +inline void GetECDHSessionKey::set_ecdsa_curve_name(const ::std::string& value) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.GetECDHSessionKey.ecdsa_curve_name) +} +#if LANG_CXX11 +inline void GetECDHSessionKey::set_ecdsa_curve_name(::std::string&& value) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.GetECDHSessionKey.ecdsa_curve_name) +} +#endif +inline void GetECDHSessionKey::set_ecdsa_curve_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.GetECDHSessionKey.ecdsa_curve_name) +} +inline void GetECDHSessionKey::set_ecdsa_curve_name(const char* value, size_t size) { + set_has_ecdsa_curve_name(); + ecdsa_curve_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.GetECDHSessionKey.ecdsa_curve_name) +} +inline ::std::string* GetECDHSessionKey::mutable_ecdsa_curve_name() { + set_has_ecdsa_curve_name(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.GetECDHSessionKey.ecdsa_curve_name) + return ecdsa_curve_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetECDHSessionKey::release_ecdsa_curve_name() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.GetECDHSessionKey.ecdsa_curve_name) + if (!has_ecdsa_curve_name()) { + return NULL; + } + clear_has_ecdsa_curve_name(); + return ecdsa_curve_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetECDHSessionKey::set_allocated_ecdsa_curve_name(::std::string* ecdsa_curve_name) { + if (ecdsa_curve_name != NULL) { + set_has_ecdsa_curve_name(); + } else { + clear_has_ecdsa_curve_name(); + } + ecdsa_curve_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ecdsa_curve_name); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.GetECDHSessionKey.ecdsa_curve_name) +} + +// ------------------------------------------------------------------- + +// ECDHSessionKey + +// optional bytes session_key = 1; +inline bool ECDHSessionKey::has_session_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ECDHSessionKey::set_has_session_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void ECDHSessionKey::clear_has_session_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ECDHSessionKey::clear_session_key() { + session_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_session_key(); +} +inline const ::std::string& ECDHSessionKey::session_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.ECDHSessionKey.session_key) + return session_key_.GetNoArena(); +} +inline void ECDHSessionKey::set_session_key(const ::std::string& value) { + set_has_session_key(); + session_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.ECDHSessionKey.session_key) +} +#if LANG_CXX11 +inline void ECDHSessionKey::set_session_key(::std::string&& value) { + set_has_session_key(); + session_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.ECDHSessionKey.session_key) +} +#endif +inline void ECDHSessionKey::set_session_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_session_key(); + session_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.ECDHSessionKey.session_key) +} +inline void ECDHSessionKey::set_session_key(const void* value, size_t size) { + set_has_session_key(); + session_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.ECDHSessionKey.session_key) +} +inline ::std::string* ECDHSessionKey::mutable_session_key() { + set_has_session_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.ECDHSessionKey.session_key) + return session_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ECDHSessionKey::release_session_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.ECDHSessionKey.session_key) + if (!has_session_key()) { + return NULL; + } + clear_has_session_key(); + return session_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ECDHSessionKey::set_allocated_session_key(::std::string* session_key) { + if (session_key != NULL) { + set_has_session_key(); + } else { + clear_has_session_key(); + } + session_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), session_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.ECDHSessionKey.session_key) +} + +// ------------------------------------------------------------------- + +// CosiCommit + +// repeated uint32 address_n = 1; +inline int CosiCommit::address_n_size() const { + return address_n_.size(); +} +inline void CosiCommit::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 CosiCommit::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CosiCommit.address_n) + return address_n_.Get(index); +} +inline void CosiCommit::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CosiCommit.address_n) +} +inline void CosiCommit::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.crypto.CosiCommit.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +CosiCommit::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.crypto.CosiCommit.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +CosiCommit::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.crypto.CosiCommit.address_n) + return &address_n_; +} + +// optional bytes data = 2; +inline bool CosiCommit::has_data() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CosiCommit::set_has_data() { + _has_bits_[0] |= 0x00000001u; +} +inline void CosiCommit::clear_has_data() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CosiCommit::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data(); +} +inline const ::std::string& CosiCommit::data() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CosiCommit.data) + return data_.GetNoArena(); +} +inline void CosiCommit::set_data(const ::std::string& value) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CosiCommit.data) +} +#if LANG_CXX11 +inline void CosiCommit::set_data(::std::string&& value) { + set_has_data(); + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.CosiCommit.data) +} +#endif +inline void CosiCommit::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.CosiCommit.data) +} +inline void CosiCommit::set_data(const void* value, size_t size) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.CosiCommit.data) +} +inline ::std::string* CosiCommit::mutable_data() { + set_has_data(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.CosiCommit.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CosiCommit::release_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.CosiCommit.data) + if (!has_data()) { + return NULL; + } + clear_has_data(); + return data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CosiCommit::set_allocated_data(::std::string* data) { + if (data != NULL) { + set_has_data(); + } else { + clear_has_data(); + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.CosiCommit.data) +} + +// ------------------------------------------------------------------- + +// CosiCommitment + +// optional bytes commitment = 1; +inline bool CosiCommitment::has_commitment() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CosiCommitment::set_has_commitment() { + _has_bits_[0] |= 0x00000001u; +} +inline void CosiCommitment::clear_has_commitment() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CosiCommitment::clear_commitment() { + commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_commitment(); +} +inline const ::std::string& CosiCommitment::commitment() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CosiCommitment.commitment) + return commitment_.GetNoArena(); +} +inline void CosiCommitment::set_commitment(const ::std::string& value) { + set_has_commitment(); + commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CosiCommitment.commitment) +} +#if LANG_CXX11 +inline void CosiCommitment::set_commitment(::std::string&& value) { + set_has_commitment(); + commitment_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.CosiCommitment.commitment) +} +#endif +inline void CosiCommitment::set_commitment(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_commitment(); + commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.CosiCommitment.commitment) +} +inline void CosiCommitment::set_commitment(const void* value, size_t size) { + set_has_commitment(); + commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.CosiCommitment.commitment) +} +inline ::std::string* CosiCommitment::mutable_commitment() { + set_has_commitment(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.CosiCommitment.commitment) + return commitment_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CosiCommitment::release_commitment() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.CosiCommitment.commitment) + if (!has_commitment()) { + return NULL; + } + clear_has_commitment(); + return commitment_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CosiCommitment::set_allocated_commitment(::std::string* commitment) { + if (commitment != NULL) { + set_has_commitment(); + } else { + clear_has_commitment(); + } + commitment_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), commitment); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.CosiCommitment.commitment) +} + +// optional bytes pubkey = 2; +inline bool CosiCommitment::has_pubkey() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CosiCommitment::set_has_pubkey() { + _has_bits_[0] |= 0x00000002u; +} +inline void CosiCommitment::clear_has_pubkey() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CosiCommitment::clear_pubkey() { + pubkey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pubkey(); +} +inline const ::std::string& CosiCommitment::pubkey() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CosiCommitment.pubkey) + return pubkey_.GetNoArena(); +} +inline void CosiCommitment::set_pubkey(const ::std::string& value) { + set_has_pubkey(); + pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CosiCommitment.pubkey) +} +#if LANG_CXX11 +inline void CosiCommitment::set_pubkey(::std::string&& value) { + set_has_pubkey(); + pubkey_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.CosiCommitment.pubkey) +} +#endif +inline void CosiCommitment::set_pubkey(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pubkey(); + pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.CosiCommitment.pubkey) +} +inline void CosiCommitment::set_pubkey(const void* value, size_t size) { + set_has_pubkey(); + pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.CosiCommitment.pubkey) +} +inline ::std::string* CosiCommitment::mutable_pubkey() { + set_has_pubkey(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.CosiCommitment.pubkey) + return pubkey_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CosiCommitment::release_pubkey() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.CosiCommitment.pubkey) + if (!has_pubkey()) { + return NULL; + } + clear_has_pubkey(); + return pubkey_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CosiCommitment::set_allocated_pubkey(::std::string* pubkey) { + if (pubkey != NULL) { + set_has_pubkey(); + } else { + clear_has_pubkey(); + } + pubkey_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pubkey); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.CosiCommitment.pubkey) +} + +// ------------------------------------------------------------------- + +// CosiSign + +// repeated uint32 address_n = 1; +inline int CosiSign::address_n_size() const { + return address_n_.size(); +} +inline void CosiSign::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 CosiSign::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CosiSign.address_n) + return address_n_.Get(index); +} +inline void CosiSign::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CosiSign.address_n) +} +inline void CosiSign::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.crypto.CosiSign.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +CosiSign::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.crypto.CosiSign.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +CosiSign::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.crypto.CosiSign.address_n) + return &address_n_; +} + +// optional bytes data = 2; +inline bool CosiSign::has_data() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CosiSign::set_has_data() { + _has_bits_[0] |= 0x00000001u; +} +inline void CosiSign::clear_has_data() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CosiSign::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data(); +} +inline const ::std::string& CosiSign::data() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CosiSign.data) + return data_.GetNoArena(); +} +inline void CosiSign::set_data(const ::std::string& value) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CosiSign.data) +} +#if LANG_CXX11 +inline void CosiSign::set_data(::std::string&& value) { + set_has_data(); + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.CosiSign.data) +} +#endif +inline void CosiSign::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.CosiSign.data) +} +inline void CosiSign::set_data(const void* value, size_t size) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.CosiSign.data) +} +inline ::std::string* CosiSign::mutable_data() { + set_has_data(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.CosiSign.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CosiSign::release_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.CosiSign.data) + if (!has_data()) { + return NULL; + } + clear_has_data(); + return data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CosiSign::set_allocated_data(::std::string* data) { + if (data != NULL) { + set_has_data(); + } else { + clear_has_data(); + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.CosiSign.data) +} + +// optional bytes global_commitment = 3; +inline bool CosiSign::has_global_commitment() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CosiSign::set_has_global_commitment() { + _has_bits_[0] |= 0x00000002u; +} +inline void CosiSign::clear_has_global_commitment() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CosiSign::clear_global_commitment() { + global_commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_global_commitment(); +} +inline const ::std::string& CosiSign::global_commitment() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CosiSign.global_commitment) + return global_commitment_.GetNoArena(); +} +inline void CosiSign::set_global_commitment(const ::std::string& value) { + set_has_global_commitment(); + global_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CosiSign.global_commitment) +} +#if LANG_CXX11 +inline void CosiSign::set_global_commitment(::std::string&& value) { + set_has_global_commitment(); + global_commitment_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.CosiSign.global_commitment) +} +#endif +inline void CosiSign::set_global_commitment(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_global_commitment(); + global_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.CosiSign.global_commitment) +} +inline void CosiSign::set_global_commitment(const void* value, size_t size) { + set_has_global_commitment(); + global_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.CosiSign.global_commitment) +} +inline ::std::string* CosiSign::mutable_global_commitment() { + set_has_global_commitment(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.CosiSign.global_commitment) + return global_commitment_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CosiSign::release_global_commitment() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.CosiSign.global_commitment) + if (!has_global_commitment()) { + return NULL; + } + clear_has_global_commitment(); + return global_commitment_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CosiSign::set_allocated_global_commitment(::std::string* global_commitment) { + if (global_commitment != NULL) { + set_has_global_commitment(); + } else { + clear_has_global_commitment(); + } + global_commitment_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), global_commitment); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.CosiSign.global_commitment) +} + +// optional bytes global_pubkey = 4; +inline bool CosiSign::has_global_pubkey() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CosiSign::set_has_global_pubkey() { + _has_bits_[0] |= 0x00000004u; +} +inline void CosiSign::clear_has_global_pubkey() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CosiSign::clear_global_pubkey() { + global_pubkey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_global_pubkey(); +} +inline const ::std::string& CosiSign::global_pubkey() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CosiSign.global_pubkey) + return global_pubkey_.GetNoArena(); +} +inline void CosiSign::set_global_pubkey(const ::std::string& value) { + set_has_global_pubkey(); + global_pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CosiSign.global_pubkey) +} +#if LANG_CXX11 +inline void CosiSign::set_global_pubkey(::std::string&& value) { + set_has_global_pubkey(); + global_pubkey_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.CosiSign.global_pubkey) +} +#endif +inline void CosiSign::set_global_pubkey(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_global_pubkey(); + global_pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.CosiSign.global_pubkey) +} +inline void CosiSign::set_global_pubkey(const void* value, size_t size) { + set_has_global_pubkey(); + global_pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.CosiSign.global_pubkey) +} +inline ::std::string* CosiSign::mutable_global_pubkey() { + set_has_global_pubkey(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.CosiSign.global_pubkey) + return global_pubkey_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CosiSign::release_global_pubkey() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.CosiSign.global_pubkey) + if (!has_global_pubkey()) { + return NULL; + } + clear_has_global_pubkey(); + return global_pubkey_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CosiSign::set_allocated_global_pubkey(::std::string* global_pubkey) { + if (global_pubkey != NULL) { + set_has_global_pubkey(); + } else { + clear_has_global_pubkey(); + } + global_pubkey_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), global_pubkey); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.CosiSign.global_pubkey) +} + +// ------------------------------------------------------------------- + +// CosiSignature + +// optional bytes signature = 1; +inline bool CosiSignature::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CosiSignature::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void CosiSignature::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CosiSignature::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& CosiSignature::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.crypto.CosiSignature.signature) + return signature_.GetNoArena(); +} +inline void CosiSignature::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.crypto.CosiSignature.signature) +} +#if LANG_CXX11 +inline void CosiSignature::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.crypto.CosiSignature.signature) +} +#endif +inline void CosiSignature::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.crypto.CosiSignature.signature) +} +inline void CosiSignature::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.crypto.CosiSignature.signature) +} +inline ::std::string* CosiSignature::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.crypto.CosiSignature.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CosiSignature::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.crypto.CosiSignature.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CosiSignature::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.crypto.CosiSignature.signature) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace crypto +} // namespace messages +} // namespace trezor +} // namespace hw + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dcrypto_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-debug.pb.cc b/src/Core/hardware/trezor/protob/messages-debug.pb.cc new file mode 100644 index 00000000..ee0500fc --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-debug.pb.cc @@ -0,0 +1,3336 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-debug.proto + +#include "messages-debug.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dcommon_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HDNodeType; +} // namespace protobuf_messages_2dcommon_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace debug { +class DebugLinkDecisionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DebugLinkDecision_default_instance_; +class DebugLinkGetStateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DebugLinkGetState_default_instance_; +class DebugLinkStateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DebugLinkState_default_instance_; +class DebugLinkStopDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DebugLinkStop_default_instance_; +class DebugLinkLogDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DebugLinkLog_default_instance_; +class DebugLinkMemoryReadDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DebugLinkMemoryRead_default_instance_; +class DebugLinkMemoryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DebugLinkMemory_default_instance_; +class DebugLinkMemoryWriteDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DebugLinkMemoryWrite_default_instance_; +class DebugLinkFlashEraseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DebugLinkFlashErase_default_instance_; +} // namespace debug +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2ddebug_2eproto { +static void InitDefaultsDebugLinkDecision() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::debug::_DebugLinkDecision_default_instance_; + new (ptr) ::hw::trezor::messages::debug::DebugLinkDecision(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::debug::DebugLinkDecision::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DebugLinkDecision = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDebugLinkDecision}, {}}; + +static void InitDefaultsDebugLinkGetState() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::debug::_DebugLinkGetState_default_instance_; + new (ptr) ::hw::trezor::messages::debug::DebugLinkGetState(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::debug::DebugLinkGetState::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DebugLinkGetState = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDebugLinkGetState}, {}}; + +static void InitDefaultsDebugLinkState() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::debug::_DebugLinkState_default_instance_; + new (ptr) ::hw::trezor::messages::debug::DebugLinkState(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::debug::DebugLinkState::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_DebugLinkState = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDebugLinkState}, { + &protobuf_messages_2dcommon_2eproto::scc_info_HDNodeType.base,}}; + +static void InitDefaultsDebugLinkStop() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::debug::_DebugLinkStop_default_instance_; + new (ptr) ::hw::trezor::messages::debug::DebugLinkStop(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::debug::DebugLinkStop::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DebugLinkStop = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDebugLinkStop}, {}}; + +static void InitDefaultsDebugLinkLog() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::debug::_DebugLinkLog_default_instance_; + new (ptr) ::hw::trezor::messages::debug::DebugLinkLog(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::debug::DebugLinkLog::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DebugLinkLog = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDebugLinkLog}, {}}; + +static void InitDefaultsDebugLinkMemoryRead() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::debug::_DebugLinkMemoryRead_default_instance_; + new (ptr) ::hw::trezor::messages::debug::DebugLinkMemoryRead(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::debug::DebugLinkMemoryRead::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DebugLinkMemoryRead = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDebugLinkMemoryRead}, {}}; + +static void InitDefaultsDebugLinkMemory() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::debug::_DebugLinkMemory_default_instance_; + new (ptr) ::hw::trezor::messages::debug::DebugLinkMemory(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::debug::DebugLinkMemory::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DebugLinkMemory = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDebugLinkMemory}, {}}; + +static void InitDefaultsDebugLinkMemoryWrite() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::debug::_DebugLinkMemoryWrite_default_instance_; + new (ptr) ::hw::trezor::messages::debug::DebugLinkMemoryWrite(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::debug::DebugLinkMemoryWrite::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DebugLinkMemoryWrite = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDebugLinkMemoryWrite}, {}}; + +static void InitDefaultsDebugLinkFlashErase() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::debug::_DebugLinkFlashErase_default_instance_; + new (ptr) ::hw::trezor::messages::debug::DebugLinkFlashErase(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::debug::DebugLinkFlashErase::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DebugLinkFlashErase = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDebugLinkFlashErase}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_DebugLinkDecision.base); + ::google::protobuf::internal::InitSCC(&scc_info_DebugLinkGetState.base); + ::google::protobuf::internal::InitSCC(&scc_info_DebugLinkState.base); + ::google::protobuf::internal::InitSCC(&scc_info_DebugLinkStop.base); + ::google::protobuf::internal::InitSCC(&scc_info_DebugLinkLog.base); + ::google::protobuf::internal::InitSCC(&scc_info_DebugLinkMemoryRead.base); + ::google::protobuf::internal::InitSCC(&scc_info_DebugLinkMemory.base); + ::google::protobuf::internal::InitSCC(&scc_info_DebugLinkMemoryWrite.base); + ::google::protobuf::internal::InitSCC(&scc_info_DebugLinkFlashErase.base); +} + +::google::protobuf::Metadata file_level_metadata[9]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkDecision, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkDecision, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkDecision, yes_no_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkDecision, up_down_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkDecision, input_), + 1, + 2, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkGetState, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkGetState, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, layout_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, pin_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, matrix_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, mnemonic_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, node_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, passphrase_protection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, reset_word_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, reset_entropy_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, recovery_fake_word_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, recovery_word_pos_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkState, reset_word_pos_), + 0, + 1, + 2, + 3, + 7, + 8, + 4, + 5, + 6, + 9, + 10, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkStop, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkStop, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkLog, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkLog, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkLog, level_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkLog, bucket_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkLog, text_), + 2, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemoryRead, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemoryRead, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemoryRead, address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemoryRead, length_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemory, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemory, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemory, memory_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemoryWrite, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemoryWrite, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemoryWrite, address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemoryWrite, memory_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkMemoryWrite, flash_), + 1, + 0, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkFlashErase, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkFlashErase, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::debug::DebugLinkFlashErase, sector_), + 0, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, sizeof(::hw::trezor::messages::debug::DebugLinkDecision)}, + { 11, 16, sizeof(::hw::trezor::messages::debug::DebugLinkGetState)}, + { 16, 32, sizeof(::hw::trezor::messages::debug::DebugLinkState)}, + { 43, 48, sizeof(::hw::trezor::messages::debug::DebugLinkStop)}, + { 48, 56, sizeof(::hw::trezor::messages::debug::DebugLinkLog)}, + { 59, 66, sizeof(::hw::trezor::messages::debug::DebugLinkMemoryRead)}, + { 68, 74, sizeof(::hw::trezor::messages::debug::DebugLinkMemory)}, + { 75, 83, sizeof(::hw::trezor::messages::debug::DebugLinkMemoryWrite)}, + { 86, 92, sizeof(::hw::trezor::messages::debug::DebugLinkFlashErase)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::debug::_DebugLinkDecision_default_instance_), + reinterpret_cast(&::hw::trezor::messages::debug::_DebugLinkGetState_default_instance_), + reinterpret_cast(&::hw::trezor::messages::debug::_DebugLinkState_default_instance_), + reinterpret_cast(&::hw::trezor::messages::debug::_DebugLinkStop_default_instance_), + reinterpret_cast(&::hw::trezor::messages::debug::_DebugLinkLog_default_instance_), + reinterpret_cast(&::hw::trezor::messages::debug::_DebugLinkMemoryRead_default_instance_), + reinterpret_cast(&::hw::trezor::messages::debug::_DebugLinkMemory_default_instance_), + reinterpret_cast(&::hw::trezor::messages::debug::_DebugLinkMemoryWrite_default_instance_), + reinterpret_cast(&::hw::trezor::messages::debug::_DebugLinkFlashErase_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-debug.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 9); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\024messages-debug.proto\022\030hw.trezor.messag" + "es.debug\032\025messages-common.proto\"C\n\021Debug" + "LinkDecision\022\016\n\006yes_no\030\001 \001(\010\022\017\n\007up_down\030" + "\002 \001(\010\022\r\n\005input\030\003 \001(\t\"\023\n\021DebugLinkGetStat" + "e\"\235\002\n\016DebugLinkState\022\016\n\006layout\030\001 \001(\014\022\013\n\003" + "pin\030\002 \001(\t\022\016\n\006matrix\030\003 \001(\t\022\020\n\010mnemonic\030\004 " + "\001(\t\0223\n\004node\030\005 \001(\0132%.hw.trezor.messages.c" + "ommon.HDNodeType\022\035\n\025passphrase_protectio" + "n\030\006 \001(\010\022\022\n\nreset_word\030\007 \001(\t\022\025\n\rreset_ent" + "ropy\030\010 \001(\014\022\032\n\022recovery_fake_word\030\t \001(\t\022\031" + "\n\021recovery_word_pos\030\n \001(\r\022\026\n\016reset_word_" + "pos\030\013 \001(\r\"\017\n\rDebugLinkStop\";\n\014DebugLinkL" + "og\022\r\n\005level\030\001 \001(\r\022\016\n\006bucket\030\002 \001(\t\022\014\n\004tex" + "t\030\003 \001(\t\"6\n\023DebugLinkMemoryRead\022\017\n\007addres" + "s\030\001 \001(\r\022\016\n\006length\030\002 \001(\r\"!\n\017DebugLinkMemo" + "ry\022\016\n\006memory\030\001 \001(\014\"F\n\024DebugLinkMemoryWri" + "te\022\017\n\007address\030\001 \001(\r\022\016\n\006memory\030\002 \001(\014\022\r\n\005f" + "lash\030\003 \001(\010\"%\n\023DebugLinkFlashErase\022\016\n\006sec" + "tor\030\001 \001(\rB9\n#com.satoshilabs.trezor.lib." + "protobufB\022TrezorMessageDebug" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 788); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-debug.proto", &protobuf_RegisterTypes); + ::protobuf_messages_2dcommon_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2ddebug_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace debug { + +// =================================================================== + +void DebugLinkDecision::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DebugLinkDecision::kYesNoFieldNumber; +const int DebugLinkDecision::kUpDownFieldNumber; +const int DebugLinkDecision::kInputFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DebugLinkDecision::DebugLinkDecision() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkDecision.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.debug.DebugLinkDecision) +} +DebugLinkDecision::DebugLinkDecision(const DebugLinkDecision& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + input_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_input()) { + input_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_); + } + ::memcpy(&yes_no_, &from.yes_no_, + static_cast(reinterpret_cast(&up_down_) - + reinterpret_cast(&yes_no_)) + sizeof(up_down_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.debug.DebugLinkDecision) +} + +void DebugLinkDecision::SharedCtor() { + input_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&yes_no_, 0, static_cast( + reinterpret_cast(&up_down_) - + reinterpret_cast(&yes_no_)) + sizeof(up_down_)); +} + +DebugLinkDecision::~DebugLinkDecision() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.debug.DebugLinkDecision) + SharedDtor(); +} + +void DebugLinkDecision::SharedDtor() { + input_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DebugLinkDecision::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DebugLinkDecision::descriptor() { + ::protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DebugLinkDecision& DebugLinkDecision::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkDecision.base); + return *internal_default_instance(); +} + + +void DebugLinkDecision::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.debug.DebugLinkDecision) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + input_.ClearNonDefaultToEmptyNoArena(); + } + ::memset(&yes_no_, 0, static_cast( + reinterpret_cast(&up_down_) - + reinterpret_cast(&yes_no_)) + sizeof(up_down_)); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DebugLinkDecision::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.debug.DebugLinkDecision) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool yes_no = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_yes_no(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &yes_no_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool up_down = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_up_down(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &up_down_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string input = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_input())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->input().data(), static_cast(this->input().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.debug.DebugLinkDecision.input"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.debug.DebugLinkDecision) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.debug.DebugLinkDecision) + return false; +#undef DO_ +} + +void DebugLinkDecision::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.debug.DebugLinkDecision) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool yes_no = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->yes_no(), output); + } + + // optional bool up_down = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->up_down(), output); + } + + // optional string input = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->input().data(), static_cast(this->input().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkDecision.input"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->input(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.debug.DebugLinkDecision) +} + +::google::protobuf::uint8* DebugLinkDecision::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.debug.DebugLinkDecision) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool yes_no = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->yes_no(), target); + } + + // optional bool up_down = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->up_down(), target); + } + + // optional string input = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->input().data(), static_cast(this->input().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkDecision.input"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->input(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.debug.DebugLinkDecision) + return target; +} + +size_t DebugLinkDecision::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.debug.DebugLinkDecision) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string input = 3; + if (has_input()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->input()); + } + + // optional bool yes_no = 1; + if (has_yes_no()) { + total_size += 1 + 1; + } + + // optional bool up_down = 2; + if (has_up_down()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DebugLinkDecision::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.debug.DebugLinkDecision) + GOOGLE_DCHECK_NE(&from, this); + const DebugLinkDecision* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.debug.DebugLinkDecision) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.debug.DebugLinkDecision) + MergeFrom(*source); + } +} + +void DebugLinkDecision::MergeFrom(const DebugLinkDecision& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.debug.DebugLinkDecision) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_input(); + input_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_); + } + if (cached_has_bits & 0x00000002u) { + yes_no_ = from.yes_no_; + } + if (cached_has_bits & 0x00000004u) { + up_down_ = from.up_down_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DebugLinkDecision::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.debug.DebugLinkDecision) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DebugLinkDecision::CopyFrom(const DebugLinkDecision& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.debug.DebugLinkDecision) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugLinkDecision::IsInitialized() const { + return true; +} + +void DebugLinkDecision::Swap(DebugLinkDecision* other) { + if (other == this) return; + InternalSwap(other); +} +void DebugLinkDecision::InternalSwap(DebugLinkDecision* other) { + using std::swap; + input_.Swap(&other->input_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(yes_no_, other->yes_no_); + swap(up_down_, other->up_down_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DebugLinkDecision::GetMetadata() const { + protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DebugLinkGetState::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DebugLinkGetState::DebugLinkGetState() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkGetState.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.debug.DebugLinkGetState) +} +DebugLinkGetState::DebugLinkGetState(const DebugLinkGetState& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.debug.DebugLinkGetState) +} + +void DebugLinkGetState::SharedCtor() { +} + +DebugLinkGetState::~DebugLinkGetState() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.debug.DebugLinkGetState) + SharedDtor(); +} + +void DebugLinkGetState::SharedDtor() { +} + +void DebugLinkGetState::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DebugLinkGetState::descriptor() { + ::protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DebugLinkGetState& DebugLinkGetState::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkGetState.base); + return *internal_default_instance(); +} + + +void DebugLinkGetState::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.debug.DebugLinkGetState) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DebugLinkGetState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.debug.DebugLinkGetState) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.debug.DebugLinkGetState) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.debug.DebugLinkGetState) + return false; +#undef DO_ +} + +void DebugLinkGetState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.debug.DebugLinkGetState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.debug.DebugLinkGetState) +} + +::google::protobuf::uint8* DebugLinkGetState::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.debug.DebugLinkGetState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.debug.DebugLinkGetState) + return target; +} + +size_t DebugLinkGetState::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.debug.DebugLinkGetState) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DebugLinkGetState::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.debug.DebugLinkGetState) + GOOGLE_DCHECK_NE(&from, this); + const DebugLinkGetState* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.debug.DebugLinkGetState) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.debug.DebugLinkGetState) + MergeFrom(*source); + } +} + +void DebugLinkGetState::MergeFrom(const DebugLinkGetState& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.debug.DebugLinkGetState) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void DebugLinkGetState::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.debug.DebugLinkGetState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DebugLinkGetState::CopyFrom(const DebugLinkGetState& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.debug.DebugLinkGetState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugLinkGetState::IsInitialized() const { + return true; +} + +void DebugLinkGetState::Swap(DebugLinkGetState* other) { + if (other == this) return; + InternalSwap(other); +} +void DebugLinkGetState::InternalSwap(DebugLinkGetState* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DebugLinkGetState::GetMetadata() const { + protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DebugLinkState::InitAsDefaultInstance() { + ::hw::trezor::messages::debug::_DebugLinkState_default_instance_._instance.get_mutable()->node_ = const_cast< ::hw::trezor::messages::common::HDNodeType*>( + ::hw::trezor::messages::common::HDNodeType::internal_default_instance()); +} +void DebugLinkState::clear_node() { + if (node_ != NULL) node_->Clear(); + clear_has_node(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DebugLinkState::kLayoutFieldNumber; +const int DebugLinkState::kPinFieldNumber; +const int DebugLinkState::kMatrixFieldNumber; +const int DebugLinkState::kMnemonicFieldNumber; +const int DebugLinkState::kNodeFieldNumber; +const int DebugLinkState::kPassphraseProtectionFieldNumber; +const int DebugLinkState::kResetWordFieldNumber; +const int DebugLinkState::kResetEntropyFieldNumber; +const int DebugLinkState::kRecoveryFakeWordFieldNumber; +const int DebugLinkState::kRecoveryWordPosFieldNumber; +const int DebugLinkState::kResetWordPosFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DebugLinkState::DebugLinkState() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkState.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.debug.DebugLinkState) +} +DebugLinkState::DebugLinkState(const DebugLinkState& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + layout_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_layout()) { + layout_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.layout_); + } + pin_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pin()) { + pin_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pin_); + } + matrix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_matrix()) { + matrix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.matrix_); + } + mnemonic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_mnemonic()) { + mnemonic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mnemonic_); + } + reset_word_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_reset_word()) { + reset_word_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reset_word_); + } + reset_entropy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_reset_entropy()) { + reset_entropy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reset_entropy_); + } + recovery_fake_word_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_recovery_fake_word()) { + recovery_fake_word_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.recovery_fake_word_); + } + if (from.has_node()) { + node_ = new ::hw::trezor::messages::common::HDNodeType(*from.node_); + } else { + node_ = NULL; + } + ::memcpy(&passphrase_protection_, &from.passphrase_protection_, + static_cast(reinterpret_cast(&reset_word_pos_) - + reinterpret_cast(&passphrase_protection_)) + sizeof(reset_word_pos_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.debug.DebugLinkState) +} + +void DebugLinkState::SharedCtor() { + layout_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pin_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + matrix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mnemonic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reset_word_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reset_entropy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + recovery_fake_word_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&node_, 0, static_cast( + reinterpret_cast(&reset_word_pos_) - + reinterpret_cast(&node_)) + sizeof(reset_word_pos_)); +} + +DebugLinkState::~DebugLinkState() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.debug.DebugLinkState) + SharedDtor(); +} + +void DebugLinkState::SharedDtor() { + layout_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pin_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + matrix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mnemonic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reset_word_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reset_entropy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + recovery_fake_word_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete node_; +} + +void DebugLinkState::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DebugLinkState::descriptor() { + ::protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DebugLinkState& DebugLinkState::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkState.base); + return *internal_default_instance(); +} + + +void DebugLinkState::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.debug.DebugLinkState) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + layout_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + pin_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + matrix_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + mnemonic_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + reset_word_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000020u) { + reset_entropy_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000040u) { + recovery_fake_word_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(node_ != NULL); + node_->Clear(); + } + } + if (cached_has_bits & 1792u) { + ::memset(&passphrase_protection_, 0, static_cast( + reinterpret_cast(&reset_word_pos_) - + reinterpret_cast(&passphrase_protection_)) + sizeof(reset_word_pos_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DebugLinkState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.debug.DebugLinkState) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes layout = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_layout())); + } else { + goto handle_unusual; + } + break; + } + + // optional string pin = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_pin())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->pin().data(), static_cast(this->pin().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.debug.DebugLinkState.pin"); + } else { + goto handle_unusual; + } + break; + } + + // optional string matrix = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_matrix())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->matrix().data(), static_cast(this->matrix().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.debug.DebugLinkState.matrix"); + } else { + goto handle_unusual; + } + break; + } + + // optional string mnemonic = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mnemonic())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mnemonic().data(), static_cast(this->mnemonic().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.debug.DebugLinkState.mnemonic"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.common.HDNodeType node = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool passphrase_protection = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_passphrase_protection(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &passphrase_protection_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string reset_word = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_reset_word())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->reset_word().data(), static_cast(this->reset_word().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.debug.DebugLinkState.reset_word"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes reset_entropy = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_reset_entropy())); + } else { + goto handle_unusual; + } + break; + } + + // optional string recovery_fake_word = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_recovery_fake_word())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->recovery_fake_word().data(), static_cast(this->recovery_fake_word().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.debug.DebugLinkState.recovery_fake_word"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 recovery_word_pos = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_recovery_word_pos(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &recovery_word_pos_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 reset_word_pos = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { + set_has_reset_word_pos(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &reset_word_pos_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.debug.DebugLinkState) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.debug.DebugLinkState) + return false; +#undef DO_ +} + +void DebugLinkState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.debug.DebugLinkState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes layout = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->layout(), output); + } + + // optional string pin = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->pin().data(), static_cast(this->pin().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkState.pin"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->pin(), output); + } + + // optional string matrix = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->matrix().data(), static_cast(this->matrix().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkState.matrix"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->matrix(), output); + } + + // optional string mnemonic = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mnemonic().data(), static_cast(this->mnemonic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkState.mnemonic"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->mnemonic(), output); + } + + // optional .hw.trezor.messages.common.HDNodeType node = 5; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->_internal_node(), output); + } + + // optional bool passphrase_protection = 6; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->passphrase_protection(), output); + } + + // optional string reset_word = 7; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->reset_word().data(), static_cast(this->reset_word().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkState.reset_word"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 7, this->reset_word(), output); + } + + // optional bytes reset_entropy = 8; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 8, this->reset_entropy(), output); + } + + // optional string recovery_fake_word = 9; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->recovery_fake_word().data(), static_cast(this->recovery_fake_word().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkState.recovery_fake_word"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 9, this->recovery_fake_word(), output); + } + + // optional uint32 recovery_word_pos = 10; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->recovery_word_pos(), output); + } + + // optional uint32 reset_word_pos = 11; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->reset_word_pos(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.debug.DebugLinkState) +} + +::google::protobuf::uint8* DebugLinkState::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.debug.DebugLinkState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes layout = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->layout(), target); + } + + // optional string pin = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->pin().data(), static_cast(this->pin().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkState.pin"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->pin(), target); + } + + // optional string matrix = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->matrix().data(), static_cast(this->matrix().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkState.matrix"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->matrix(), target); + } + + // optional string mnemonic = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mnemonic().data(), static_cast(this->mnemonic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkState.mnemonic"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->mnemonic(), target); + } + + // optional .hw.trezor.messages.common.HDNodeType node = 5; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->_internal_node(), deterministic, target); + } + + // optional bool passphrase_protection = 6; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->passphrase_protection(), target); + } + + // optional string reset_word = 7; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->reset_word().data(), static_cast(this->reset_word().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkState.reset_word"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 7, this->reset_word(), target); + } + + // optional bytes reset_entropy = 8; + if (cached_has_bits & 0x00000020u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 8, this->reset_entropy(), target); + } + + // optional string recovery_fake_word = 9; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->recovery_fake_word().data(), static_cast(this->recovery_fake_word().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkState.recovery_fake_word"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 9, this->recovery_fake_word(), target); + } + + // optional uint32 recovery_word_pos = 10; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->recovery_word_pos(), target); + } + + // optional uint32 reset_word_pos = 11; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->reset_word_pos(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.debug.DebugLinkState) + return target; +} + +size_t DebugLinkState::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.debug.DebugLinkState) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional bytes layout = 1; + if (has_layout()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->layout()); + } + + // optional string pin = 2; + if (has_pin()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->pin()); + } + + // optional string matrix = 3; + if (has_matrix()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->matrix()); + } + + // optional string mnemonic = 4; + if (has_mnemonic()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mnemonic()); + } + + // optional string reset_word = 7; + if (has_reset_word()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->reset_word()); + } + + // optional bytes reset_entropy = 8; + if (has_reset_entropy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->reset_entropy()); + } + + // optional string recovery_fake_word = 9; + if (has_recovery_fake_word()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->recovery_fake_word()); + } + + // optional .hw.trezor.messages.common.HDNodeType node = 5; + if (has_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *node_); + } + + } + if (_has_bits_[8 / 32] & 1792u) { + // optional bool passphrase_protection = 6; + if (has_passphrase_protection()) { + total_size += 1 + 1; + } + + // optional uint32 recovery_word_pos = 10; + if (has_recovery_word_pos()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->recovery_word_pos()); + } + + // optional uint32 reset_word_pos = 11; + if (has_reset_word_pos()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->reset_word_pos()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DebugLinkState::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.debug.DebugLinkState) + GOOGLE_DCHECK_NE(&from, this); + const DebugLinkState* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.debug.DebugLinkState) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.debug.DebugLinkState) + MergeFrom(*source); + } +} + +void DebugLinkState::MergeFrom(const DebugLinkState& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.debug.DebugLinkState) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_layout(); + layout_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.layout_); + } + if (cached_has_bits & 0x00000002u) { + set_has_pin(); + pin_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pin_); + } + if (cached_has_bits & 0x00000004u) { + set_has_matrix(); + matrix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.matrix_); + } + if (cached_has_bits & 0x00000008u) { + set_has_mnemonic(); + mnemonic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mnemonic_); + } + if (cached_has_bits & 0x00000010u) { + set_has_reset_word(); + reset_word_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reset_word_); + } + if (cached_has_bits & 0x00000020u) { + set_has_reset_entropy(); + reset_entropy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reset_entropy_); + } + if (cached_has_bits & 0x00000040u) { + set_has_recovery_fake_word(); + recovery_fake_word_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.recovery_fake_word_); + } + if (cached_has_bits & 0x00000080u) { + mutable_node()->::hw::trezor::messages::common::HDNodeType::MergeFrom(from.node()); + } + } + if (cached_has_bits & 1792u) { + if (cached_has_bits & 0x00000100u) { + passphrase_protection_ = from.passphrase_protection_; + } + if (cached_has_bits & 0x00000200u) { + recovery_word_pos_ = from.recovery_word_pos_; + } + if (cached_has_bits & 0x00000400u) { + reset_word_pos_ = from.reset_word_pos_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DebugLinkState::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.debug.DebugLinkState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DebugLinkState::CopyFrom(const DebugLinkState& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.debug.DebugLinkState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugLinkState::IsInitialized() const { + if (has_node()) { + if (!this->node_->IsInitialized()) return false; + } + return true; +} + +void DebugLinkState::Swap(DebugLinkState* other) { + if (other == this) return; + InternalSwap(other); +} +void DebugLinkState::InternalSwap(DebugLinkState* other) { + using std::swap; + layout_.Swap(&other->layout_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pin_.Swap(&other->pin_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + matrix_.Swap(&other->matrix_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + mnemonic_.Swap(&other->mnemonic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + reset_word_.Swap(&other->reset_word_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + reset_entropy_.Swap(&other->reset_entropy_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + recovery_fake_word_.Swap(&other->recovery_fake_word_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(node_, other->node_); + swap(passphrase_protection_, other->passphrase_protection_); + swap(recovery_word_pos_, other->recovery_word_pos_); + swap(reset_word_pos_, other->reset_word_pos_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DebugLinkState::GetMetadata() const { + protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DebugLinkStop::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DebugLinkStop::DebugLinkStop() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkStop.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.debug.DebugLinkStop) +} +DebugLinkStop::DebugLinkStop(const DebugLinkStop& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.debug.DebugLinkStop) +} + +void DebugLinkStop::SharedCtor() { +} + +DebugLinkStop::~DebugLinkStop() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.debug.DebugLinkStop) + SharedDtor(); +} + +void DebugLinkStop::SharedDtor() { +} + +void DebugLinkStop::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DebugLinkStop::descriptor() { + ::protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DebugLinkStop& DebugLinkStop::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkStop.base); + return *internal_default_instance(); +} + + +void DebugLinkStop::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.debug.DebugLinkStop) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DebugLinkStop::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.debug.DebugLinkStop) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.debug.DebugLinkStop) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.debug.DebugLinkStop) + return false; +#undef DO_ +} + +void DebugLinkStop::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.debug.DebugLinkStop) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.debug.DebugLinkStop) +} + +::google::protobuf::uint8* DebugLinkStop::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.debug.DebugLinkStop) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.debug.DebugLinkStop) + return target; +} + +size_t DebugLinkStop::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.debug.DebugLinkStop) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DebugLinkStop::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.debug.DebugLinkStop) + GOOGLE_DCHECK_NE(&from, this); + const DebugLinkStop* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.debug.DebugLinkStop) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.debug.DebugLinkStop) + MergeFrom(*source); + } +} + +void DebugLinkStop::MergeFrom(const DebugLinkStop& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.debug.DebugLinkStop) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void DebugLinkStop::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.debug.DebugLinkStop) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DebugLinkStop::CopyFrom(const DebugLinkStop& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.debug.DebugLinkStop) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugLinkStop::IsInitialized() const { + return true; +} + +void DebugLinkStop::Swap(DebugLinkStop* other) { + if (other == this) return; + InternalSwap(other); +} +void DebugLinkStop::InternalSwap(DebugLinkStop* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DebugLinkStop::GetMetadata() const { + protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DebugLinkLog::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DebugLinkLog::kLevelFieldNumber; +const int DebugLinkLog::kBucketFieldNumber; +const int DebugLinkLog::kTextFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DebugLinkLog::DebugLinkLog() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkLog.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.debug.DebugLinkLog) +} +DebugLinkLog::DebugLinkLog(const DebugLinkLog& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + bucket_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_bucket()) { + bucket_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bucket_); + } + text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_text()) { + text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.text_); + } + level_ = from.level_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.debug.DebugLinkLog) +} + +void DebugLinkLog::SharedCtor() { + bucket_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + level_ = 0u; +} + +DebugLinkLog::~DebugLinkLog() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.debug.DebugLinkLog) + SharedDtor(); +} + +void DebugLinkLog::SharedDtor() { + bucket_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + text_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DebugLinkLog::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DebugLinkLog::descriptor() { + ::protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DebugLinkLog& DebugLinkLog::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkLog.base); + return *internal_default_instance(); +} + + +void DebugLinkLog::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.debug.DebugLinkLog) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + bucket_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + text_.ClearNonDefaultToEmptyNoArena(); + } + } + level_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DebugLinkLog::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.debug.DebugLinkLog) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 level = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_level(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &level_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string bucket = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_bucket())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->bucket().data(), static_cast(this->bucket().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.debug.DebugLinkLog.bucket"); + } else { + goto handle_unusual; + } + break; + } + + // optional string text = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_text())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->text().data(), static_cast(this->text().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.debug.DebugLinkLog.text"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.debug.DebugLinkLog) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.debug.DebugLinkLog) + return false; +#undef DO_ +} + +void DebugLinkLog::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.debug.DebugLinkLog) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 level = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->level(), output); + } + + // optional string bucket = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->bucket().data(), static_cast(this->bucket().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkLog.bucket"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->bucket(), output); + } + + // optional string text = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->text().data(), static_cast(this->text().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkLog.text"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->text(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.debug.DebugLinkLog) +} + +::google::protobuf::uint8* DebugLinkLog::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.debug.DebugLinkLog) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 level = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->level(), target); + } + + // optional string bucket = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->bucket().data(), static_cast(this->bucket().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkLog.bucket"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->bucket(), target); + } + + // optional string text = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->text().data(), static_cast(this->text().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.debug.DebugLinkLog.text"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->text(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.debug.DebugLinkLog) + return target; +} + +size_t DebugLinkLog::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.debug.DebugLinkLog) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string bucket = 2; + if (has_bucket()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->bucket()); + } + + // optional string text = 3; + if (has_text()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->text()); + } + + // optional uint32 level = 1; + if (has_level()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->level()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DebugLinkLog::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.debug.DebugLinkLog) + GOOGLE_DCHECK_NE(&from, this); + const DebugLinkLog* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.debug.DebugLinkLog) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.debug.DebugLinkLog) + MergeFrom(*source); + } +} + +void DebugLinkLog::MergeFrom(const DebugLinkLog& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.debug.DebugLinkLog) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_bucket(); + bucket_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bucket_); + } + if (cached_has_bits & 0x00000002u) { + set_has_text(); + text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.text_); + } + if (cached_has_bits & 0x00000004u) { + level_ = from.level_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DebugLinkLog::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.debug.DebugLinkLog) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DebugLinkLog::CopyFrom(const DebugLinkLog& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.debug.DebugLinkLog) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugLinkLog::IsInitialized() const { + return true; +} + +void DebugLinkLog::Swap(DebugLinkLog* other) { + if (other == this) return; + InternalSwap(other); +} +void DebugLinkLog::InternalSwap(DebugLinkLog* other) { + using std::swap; + bucket_.Swap(&other->bucket_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + text_.Swap(&other->text_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(level_, other->level_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DebugLinkLog::GetMetadata() const { + protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DebugLinkMemoryRead::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DebugLinkMemoryRead::kAddressFieldNumber; +const int DebugLinkMemoryRead::kLengthFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DebugLinkMemoryRead::DebugLinkMemoryRead() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkMemoryRead.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.debug.DebugLinkMemoryRead) +} +DebugLinkMemoryRead::DebugLinkMemoryRead(const DebugLinkMemoryRead& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&address_, &from.address_, + static_cast(reinterpret_cast(&length_) - + reinterpret_cast(&address_)) + sizeof(length_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.debug.DebugLinkMemoryRead) +} + +void DebugLinkMemoryRead::SharedCtor() { + ::memset(&address_, 0, static_cast( + reinterpret_cast(&length_) - + reinterpret_cast(&address_)) + sizeof(length_)); +} + +DebugLinkMemoryRead::~DebugLinkMemoryRead() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.debug.DebugLinkMemoryRead) + SharedDtor(); +} + +void DebugLinkMemoryRead::SharedDtor() { +} + +void DebugLinkMemoryRead::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DebugLinkMemoryRead::descriptor() { + ::protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DebugLinkMemoryRead& DebugLinkMemoryRead::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkMemoryRead.base); + return *internal_default_instance(); +} + + +void DebugLinkMemoryRead::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.debug.DebugLinkMemoryRead) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&address_, 0, static_cast( + reinterpret_cast(&length_) - + reinterpret_cast(&address_)) + sizeof(length_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DebugLinkMemoryRead::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.debug.DebugLinkMemoryRead) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_address(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &address_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 length = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_length(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &length_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.debug.DebugLinkMemoryRead) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.debug.DebugLinkMemoryRead) + return false; +#undef DO_ +} + +void DebugLinkMemoryRead::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.debug.DebugLinkMemoryRead) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->address(), output); + } + + // optional uint32 length = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->length(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.debug.DebugLinkMemoryRead) +} + +::google::protobuf::uint8* DebugLinkMemoryRead::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.debug.DebugLinkMemoryRead) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 address = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->address(), target); + } + + // optional uint32 length = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->length(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.debug.DebugLinkMemoryRead) + return target; +} + +size_t DebugLinkMemoryRead::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.debug.DebugLinkMemoryRead) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional uint32 address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->address()); + } + + // optional uint32 length = 2; + if (has_length()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->length()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DebugLinkMemoryRead::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.debug.DebugLinkMemoryRead) + GOOGLE_DCHECK_NE(&from, this); + const DebugLinkMemoryRead* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.debug.DebugLinkMemoryRead) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.debug.DebugLinkMemoryRead) + MergeFrom(*source); + } +} + +void DebugLinkMemoryRead::MergeFrom(const DebugLinkMemoryRead& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.debug.DebugLinkMemoryRead) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + address_ = from.address_; + } + if (cached_has_bits & 0x00000002u) { + length_ = from.length_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DebugLinkMemoryRead::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.debug.DebugLinkMemoryRead) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DebugLinkMemoryRead::CopyFrom(const DebugLinkMemoryRead& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.debug.DebugLinkMemoryRead) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugLinkMemoryRead::IsInitialized() const { + return true; +} + +void DebugLinkMemoryRead::Swap(DebugLinkMemoryRead* other) { + if (other == this) return; + InternalSwap(other); +} +void DebugLinkMemoryRead::InternalSwap(DebugLinkMemoryRead* other) { + using std::swap; + swap(address_, other->address_); + swap(length_, other->length_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DebugLinkMemoryRead::GetMetadata() const { + protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DebugLinkMemory::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DebugLinkMemory::kMemoryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DebugLinkMemory::DebugLinkMemory() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkMemory.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.debug.DebugLinkMemory) +} +DebugLinkMemory::DebugLinkMemory(const DebugLinkMemory& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + memory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_memory()) { + memory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memory_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.debug.DebugLinkMemory) +} + +void DebugLinkMemory::SharedCtor() { + memory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +DebugLinkMemory::~DebugLinkMemory() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.debug.DebugLinkMemory) + SharedDtor(); +} + +void DebugLinkMemory::SharedDtor() { + memory_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DebugLinkMemory::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DebugLinkMemory::descriptor() { + ::protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DebugLinkMemory& DebugLinkMemory::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkMemory.base); + return *internal_default_instance(); +} + + +void DebugLinkMemory::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.debug.DebugLinkMemory) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + memory_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DebugLinkMemory::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.debug.DebugLinkMemory) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes memory = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_memory())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.debug.DebugLinkMemory) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.debug.DebugLinkMemory) + return false; +#undef DO_ +} + +void DebugLinkMemory::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.debug.DebugLinkMemory) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes memory = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->memory(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.debug.DebugLinkMemory) +} + +::google::protobuf::uint8* DebugLinkMemory::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.debug.DebugLinkMemory) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes memory = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->memory(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.debug.DebugLinkMemory) + return target; +} + +size_t DebugLinkMemory::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.debug.DebugLinkMemory) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes memory = 1; + if (has_memory()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->memory()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DebugLinkMemory::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.debug.DebugLinkMemory) + GOOGLE_DCHECK_NE(&from, this); + const DebugLinkMemory* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.debug.DebugLinkMemory) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.debug.DebugLinkMemory) + MergeFrom(*source); + } +} + +void DebugLinkMemory::MergeFrom(const DebugLinkMemory& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.debug.DebugLinkMemory) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_memory()) { + set_has_memory(); + memory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memory_); + } +} + +void DebugLinkMemory::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.debug.DebugLinkMemory) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DebugLinkMemory::CopyFrom(const DebugLinkMemory& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.debug.DebugLinkMemory) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugLinkMemory::IsInitialized() const { + return true; +} + +void DebugLinkMemory::Swap(DebugLinkMemory* other) { + if (other == this) return; + InternalSwap(other); +} +void DebugLinkMemory::InternalSwap(DebugLinkMemory* other) { + using std::swap; + memory_.Swap(&other->memory_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DebugLinkMemory::GetMetadata() const { + protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DebugLinkMemoryWrite::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DebugLinkMemoryWrite::kAddressFieldNumber; +const int DebugLinkMemoryWrite::kMemoryFieldNumber; +const int DebugLinkMemoryWrite::kFlashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DebugLinkMemoryWrite::DebugLinkMemoryWrite() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkMemoryWrite.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.debug.DebugLinkMemoryWrite) +} +DebugLinkMemoryWrite::DebugLinkMemoryWrite(const DebugLinkMemoryWrite& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + memory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_memory()) { + memory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memory_); + } + ::memcpy(&address_, &from.address_, + static_cast(reinterpret_cast(&flash_) - + reinterpret_cast(&address_)) + sizeof(flash_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.debug.DebugLinkMemoryWrite) +} + +void DebugLinkMemoryWrite::SharedCtor() { + memory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&address_, 0, static_cast( + reinterpret_cast(&flash_) - + reinterpret_cast(&address_)) + sizeof(flash_)); +} + +DebugLinkMemoryWrite::~DebugLinkMemoryWrite() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.debug.DebugLinkMemoryWrite) + SharedDtor(); +} + +void DebugLinkMemoryWrite::SharedDtor() { + memory_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DebugLinkMemoryWrite::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DebugLinkMemoryWrite::descriptor() { + ::protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DebugLinkMemoryWrite& DebugLinkMemoryWrite::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkMemoryWrite.base); + return *internal_default_instance(); +} + + +void DebugLinkMemoryWrite::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.debug.DebugLinkMemoryWrite) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + memory_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 6u) { + ::memset(&address_, 0, static_cast( + reinterpret_cast(&flash_) - + reinterpret_cast(&address_)) + sizeof(flash_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DebugLinkMemoryWrite::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.debug.DebugLinkMemoryWrite) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_address(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &address_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes memory = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_memory())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool flash = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_flash(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &flash_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.debug.DebugLinkMemoryWrite) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.debug.DebugLinkMemoryWrite) + return false; +#undef DO_ +} + +void DebugLinkMemoryWrite::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.debug.DebugLinkMemoryWrite) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 address = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->address(), output); + } + + // optional bytes memory = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->memory(), output); + } + + // optional bool flash = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->flash(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.debug.DebugLinkMemoryWrite) +} + +::google::protobuf::uint8* DebugLinkMemoryWrite::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.debug.DebugLinkMemoryWrite) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 address = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->address(), target); + } + + // optional bytes memory = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->memory(), target); + } + + // optional bool flash = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->flash(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.debug.DebugLinkMemoryWrite) + return target; +} + +size_t DebugLinkMemoryWrite::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.debug.DebugLinkMemoryWrite) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes memory = 2; + if (has_memory()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->memory()); + } + + // optional uint32 address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->address()); + } + + // optional bool flash = 3; + if (has_flash()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DebugLinkMemoryWrite::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.debug.DebugLinkMemoryWrite) + GOOGLE_DCHECK_NE(&from, this); + const DebugLinkMemoryWrite* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.debug.DebugLinkMemoryWrite) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.debug.DebugLinkMemoryWrite) + MergeFrom(*source); + } +} + +void DebugLinkMemoryWrite::MergeFrom(const DebugLinkMemoryWrite& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.debug.DebugLinkMemoryWrite) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_memory(); + memory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memory_); + } + if (cached_has_bits & 0x00000002u) { + address_ = from.address_; + } + if (cached_has_bits & 0x00000004u) { + flash_ = from.flash_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DebugLinkMemoryWrite::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.debug.DebugLinkMemoryWrite) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DebugLinkMemoryWrite::CopyFrom(const DebugLinkMemoryWrite& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.debug.DebugLinkMemoryWrite) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugLinkMemoryWrite::IsInitialized() const { + return true; +} + +void DebugLinkMemoryWrite::Swap(DebugLinkMemoryWrite* other) { + if (other == this) return; + InternalSwap(other); +} +void DebugLinkMemoryWrite::InternalSwap(DebugLinkMemoryWrite* other) { + using std::swap; + memory_.Swap(&other->memory_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(address_, other->address_); + swap(flash_, other->flash_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DebugLinkMemoryWrite::GetMetadata() const { + protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DebugLinkFlashErase::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DebugLinkFlashErase::kSectorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DebugLinkFlashErase::DebugLinkFlashErase() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkFlashErase.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.debug.DebugLinkFlashErase) +} +DebugLinkFlashErase::DebugLinkFlashErase(const DebugLinkFlashErase& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + sector_ = from.sector_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.debug.DebugLinkFlashErase) +} + +void DebugLinkFlashErase::SharedCtor() { + sector_ = 0u; +} + +DebugLinkFlashErase::~DebugLinkFlashErase() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.debug.DebugLinkFlashErase) + SharedDtor(); +} + +void DebugLinkFlashErase::SharedDtor() { +} + +void DebugLinkFlashErase::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DebugLinkFlashErase::descriptor() { + ::protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DebugLinkFlashErase& DebugLinkFlashErase::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2ddebug_2eproto::scc_info_DebugLinkFlashErase.base); + return *internal_default_instance(); +} + + +void DebugLinkFlashErase::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.debug.DebugLinkFlashErase) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + sector_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DebugLinkFlashErase::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.debug.DebugLinkFlashErase) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 sector = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_sector(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, §or_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.debug.DebugLinkFlashErase) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.debug.DebugLinkFlashErase) + return false; +#undef DO_ +} + +void DebugLinkFlashErase::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.debug.DebugLinkFlashErase) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 sector = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->sector(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.debug.DebugLinkFlashErase) +} + +::google::protobuf::uint8* DebugLinkFlashErase::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.debug.DebugLinkFlashErase) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 sector = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->sector(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.debug.DebugLinkFlashErase) + return target; +} + +size_t DebugLinkFlashErase::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.debug.DebugLinkFlashErase) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional uint32 sector = 1; + if (has_sector()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->sector()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DebugLinkFlashErase::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.debug.DebugLinkFlashErase) + GOOGLE_DCHECK_NE(&from, this); + const DebugLinkFlashErase* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.debug.DebugLinkFlashErase) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.debug.DebugLinkFlashErase) + MergeFrom(*source); + } +} + +void DebugLinkFlashErase::MergeFrom(const DebugLinkFlashErase& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.debug.DebugLinkFlashErase) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_sector()) { + set_sector(from.sector()); + } +} + +void DebugLinkFlashErase::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.debug.DebugLinkFlashErase) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DebugLinkFlashErase::CopyFrom(const DebugLinkFlashErase& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.debug.DebugLinkFlashErase) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugLinkFlashErase::IsInitialized() const { + return true; +} + +void DebugLinkFlashErase::Swap(DebugLinkFlashErase* other) { + if (other == this) return; + InternalSwap(other); +} +void DebugLinkFlashErase::InternalSwap(DebugLinkFlashErase* other) { + using std::swap; + swap(sector_, other->sector_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DebugLinkFlashErase::GetMetadata() const { + protobuf_messages_2ddebug_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2ddebug_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace debug +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::debug::DebugLinkDecision* Arena::CreateMaybeMessage< ::hw::trezor::messages::debug::DebugLinkDecision >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::debug::DebugLinkDecision >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::debug::DebugLinkGetState* Arena::CreateMaybeMessage< ::hw::trezor::messages::debug::DebugLinkGetState >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::debug::DebugLinkGetState >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::debug::DebugLinkState* Arena::CreateMaybeMessage< ::hw::trezor::messages::debug::DebugLinkState >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::debug::DebugLinkState >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::debug::DebugLinkStop* Arena::CreateMaybeMessage< ::hw::trezor::messages::debug::DebugLinkStop >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::debug::DebugLinkStop >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::debug::DebugLinkLog* Arena::CreateMaybeMessage< ::hw::trezor::messages::debug::DebugLinkLog >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::debug::DebugLinkLog >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::debug::DebugLinkMemoryRead* Arena::CreateMaybeMessage< ::hw::trezor::messages::debug::DebugLinkMemoryRead >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::debug::DebugLinkMemoryRead >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::debug::DebugLinkMemory* Arena::CreateMaybeMessage< ::hw::trezor::messages::debug::DebugLinkMemory >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::debug::DebugLinkMemory >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::debug::DebugLinkMemoryWrite* Arena::CreateMaybeMessage< ::hw::trezor::messages::debug::DebugLinkMemoryWrite >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::debug::DebugLinkMemoryWrite >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::debug::DebugLinkFlashErase* Arena::CreateMaybeMessage< ::hw::trezor::messages::debug::DebugLinkFlashErase >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::debug::DebugLinkFlashErase >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-debug.pb.h b/src/Core/hardware/trezor/protob/messages-debug.pb.h new file mode 100644 index 00000000..0bfe6392 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-debug.pb.h @@ -0,0 +1,2561 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-debug.proto + +#ifndef PROTOBUF_INCLUDED_messages_2ddebug_2eproto +#define PROTOBUF_INCLUDED_messages_2ddebug_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "messages-common.pb.h" +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2ddebug_2eproto + +namespace protobuf_messages_2ddebug_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[9]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2ddebug_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace debug { +class DebugLinkDecision; +class DebugLinkDecisionDefaultTypeInternal; +extern DebugLinkDecisionDefaultTypeInternal _DebugLinkDecision_default_instance_; +class DebugLinkFlashErase; +class DebugLinkFlashEraseDefaultTypeInternal; +extern DebugLinkFlashEraseDefaultTypeInternal _DebugLinkFlashErase_default_instance_; +class DebugLinkGetState; +class DebugLinkGetStateDefaultTypeInternal; +extern DebugLinkGetStateDefaultTypeInternal _DebugLinkGetState_default_instance_; +class DebugLinkLog; +class DebugLinkLogDefaultTypeInternal; +extern DebugLinkLogDefaultTypeInternal _DebugLinkLog_default_instance_; +class DebugLinkMemory; +class DebugLinkMemoryDefaultTypeInternal; +extern DebugLinkMemoryDefaultTypeInternal _DebugLinkMemory_default_instance_; +class DebugLinkMemoryRead; +class DebugLinkMemoryReadDefaultTypeInternal; +extern DebugLinkMemoryReadDefaultTypeInternal _DebugLinkMemoryRead_default_instance_; +class DebugLinkMemoryWrite; +class DebugLinkMemoryWriteDefaultTypeInternal; +extern DebugLinkMemoryWriteDefaultTypeInternal _DebugLinkMemoryWrite_default_instance_; +class DebugLinkState; +class DebugLinkStateDefaultTypeInternal; +extern DebugLinkStateDefaultTypeInternal _DebugLinkState_default_instance_; +class DebugLinkStop; +class DebugLinkStopDefaultTypeInternal; +extern DebugLinkStopDefaultTypeInternal _DebugLinkStop_default_instance_; +} // namespace debug +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::debug::DebugLinkDecision* Arena::CreateMaybeMessage<::hw::trezor::messages::debug::DebugLinkDecision>(Arena*); +template<> ::hw::trezor::messages::debug::DebugLinkFlashErase* Arena::CreateMaybeMessage<::hw::trezor::messages::debug::DebugLinkFlashErase>(Arena*); +template<> ::hw::trezor::messages::debug::DebugLinkGetState* Arena::CreateMaybeMessage<::hw::trezor::messages::debug::DebugLinkGetState>(Arena*); +template<> ::hw::trezor::messages::debug::DebugLinkLog* Arena::CreateMaybeMessage<::hw::trezor::messages::debug::DebugLinkLog>(Arena*); +template<> ::hw::trezor::messages::debug::DebugLinkMemory* Arena::CreateMaybeMessage<::hw::trezor::messages::debug::DebugLinkMemory>(Arena*); +template<> ::hw::trezor::messages::debug::DebugLinkMemoryRead* Arena::CreateMaybeMessage<::hw::trezor::messages::debug::DebugLinkMemoryRead>(Arena*); +template<> ::hw::trezor::messages::debug::DebugLinkMemoryWrite* Arena::CreateMaybeMessage<::hw::trezor::messages::debug::DebugLinkMemoryWrite>(Arena*); +template<> ::hw::trezor::messages::debug::DebugLinkState* Arena::CreateMaybeMessage<::hw::trezor::messages::debug::DebugLinkState>(Arena*); +template<> ::hw::trezor::messages::debug::DebugLinkStop* Arena::CreateMaybeMessage<::hw::trezor::messages::debug::DebugLinkStop>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace debug { + +// =================================================================== + +class DebugLinkDecision : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.debug.DebugLinkDecision) */ { + public: + DebugLinkDecision(); + virtual ~DebugLinkDecision(); + + DebugLinkDecision(const DebugLinkDecision& from); + + inline DebugLinkDecision& operator=(const DebugLinkDecision& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DebugLinkDecision(DebugLinkDecision&& from) noexcept + : DebugLinkDecision() { + *this = ::std::move(from); + } + + inline DebugLinkDecision& operator=(DebugLinkDecision&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DebugLinkDecision& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DebugLinkDecision* internal_default_instance() { + return reinterpret_cast( + &_DebugLinkDecision_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(DebugLinkDecision* other); + friend void swap(DebugLinkDecision& a, DebugLinkDecision& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DebugLinkDecision* New() const final { + return CreateMaybeMessage(NULL); + } + + DebugLinkDecision* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DebugLinkDecision& from); + void MergeFrom(const DebugLinkDecision& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugLinkDecision* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string input = 3; + bool has_input() const; + void clear_input(); + static const int kInputFieldNumber = 3; + const ::std::string& input() const; + void set_input(const ::std::string& value); + #if LANG_CXX11 + void set_input(::std::string&& value); + #endif + void set_input(const char* value); + void set_input(const char* value, size_t size); + ::std::string* mutable_input(); + ::std::string* release_input(); + void set_allocated_input(::std::string* input); + + // optional bool yes_no = 1; + bool has_yes_no() const; + void clear_yes_no(); + static const int kYesNoFieldNumber = 1; + bool yes_no() const; + void set_yes_no(bool value); + + // optional bool up_down = 2; + bool has_up_down() const; + void clear_up_down(); + static const int kUpDownFieldNumber = 2; + bool up_down() const; + void set_up_down(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.debug.DebugLinkDecision) + private: + void set_has_yes_no(); + void clear_has_yes_no(); + void set_has_up_down(); + void clear_has_up_down(); + void set_has_input(); + void clear_has_input(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr input_; + bool yes_no_; + bool up_down_; + friend struct ::protobuf_messages_2ddebug_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class DebugLinkGetState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.debug.DebugLinkGetState) */ { + public: + DebugLinkGetState(); + virtual ~DebugLinkGetState(); + + DebugLinkGetState(const DebugLinkGetState& from); + + inline DebugLinkGetState& operator=(const DebugLinkGetState& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DebugLinkGetState(DebugLinkGetState&& from) noexcept + : DebugLinkGetState() { + *this = ::std::move(from); + } + + inline DebugLinkGetState& operator=(DebugLinkGetState&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DebugLinkGetState& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DebugLinkGetState* internal_default_instance() { + return reinterpret_cast( + &_DebugLinkGetState_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(DebugLinkGetState* other); + friend void swap(DebugLinkGetState& a, DebugLinkGetState& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DebugLinkGetState* New() const final { + return CreateMaybeMessage(NULL); + } + + DebugLinkGetState* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DebugLinkGetState& from); + void MergeFrom(const DebugLinkGetState& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugLinkGetState* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.debug.DebugLinkGetState) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2ddebug_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class DebugLinkState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.debug.DebugLinkState) */ { + public: + DebugLinkState(); + virtual ~DebugLinkState(); + + DebugLinkState(const DebugLinkState& from); + + inline DebugLinkState& operator=(const DebugLinkState& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DebugLinkState(DebugLinkState&& from) noexcept + : DebugLinkState() { + *this = ::std::move(from); + } + + inline DebugLinkState& operator=(DebugLinkState&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DebugLinkState& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DebugLinkState* internal_default_instance() { + return reinterpret_cast( + &_DebugLinkState_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(DebugLinkState* other); + friend void swap(DebugLinkState& a, DebugLinkState& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DebugLinkState* New() const final { + return CreateMaybeMessage(NULL); + } + + DebugLinkState* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DebugLinkState& from); + void MergeFrom(const DebugLinkState& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugLinkState* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes layout = 1; + bool has_layout() const; + void clear_layout(); + static const int kLayoutFieldNumber = 1; + const ::std::string& layout() const; + void set_layout(const ::std::string& value); + #if LANG_CXX11 + void set_layout(::std::string&& value); + #endif + void set_layout(const char* value); + void set_layout(const void* value, size_t size); + ::std::string* mutable_layout(); + ::std::string* release_layout(); + void set_allocated_layout(::std::string* layout); + + // optional string pin = 2; + bool has_pin() const; + void clear_pin(); + static const int kPinFieldNumber = 2; + const ::std::string& pin() const; + void set_pin(const ::std::string& value); + #if LANG_CXX11 + void set_pin(::std::string&& value); + #endif + void set_pin(const char* value); + void set_pin(const char* value, size_t size); + ::std::string* mutable_pin(); + ::std::string* release_pin(); + void set_allocated_pin(::std::string* pin); + + // optional string matrix = 3; + bool has_matrix() const; + void clear_matrix(); + static const int kMatrixFieldNumber = 3; + const ::std::string& matrix() const; + void set_matrix(const ::std::string& value); + #if LANG_CXX11 + void set_matrix(::std::string&& value); + #endif + void set_matrix(const char* value); + void set_matrix(const char* value, size_t size); + ::std::string* mutable_matrix(); + ::std::string* release_matrix(); + void set_allocated_matrix(::std::string* matrix); + + // optional string mnemonic = 4; + bool has_mnemonic() const; + void clear_mnemonic(); + static const int kMnemonicFieldNumber = 4; + const ::std::string& mnemonic() const; + void set_mnemonic(const ::std::string& value); + #if LANG_CXX11 + void set_mnemonic(::std::string&& value); + #endif + void set_mnemonic(const char* value); + void set_mnemonic(const char* value, size_t size); + ::std::string* mutable_mnemonic(); + ::std::string* release_mnemonic(); + void set_allocated_mnemonic(::std::string* mnemonic); + + // optional string reset_word = 7; + bool has_reset_word() const; + void clear_reset_word(); + static const int kResetWordFieldNumber = 7; + const ::std::string& reset_word() const; + void set_reset_word(const ::std::string& value); + #if LANG_CXX11 + void set_reset_word(::std::string&& value); + #endif + void set_reset_word(const char* value); + void set_reset_word(const char* value, size_t size); + ::std::string* mutable_reset_word(); + ::std::string* release_reset_word(); + void set_allocated_reset_word(::std::string* reset_word); + + // optional bytes reset_entropy = 8; + bool has_reset_entropy() const; + void clear_reset_entropy(); + static const int kResetEntropyFieldNumber = 8; + const ::std::string& reset_entropy() const; + void set_reset_entropy(const ::std::string& value); + #if LANG_CXX11 + void set_reset_entropy(::std::string&& value); + #endif + void set_reset_entropy(const char* value); + void set_reset_entropy(const void* value, size_t size); + ::std::string* mutable_reset_entropy(); + ::std::string* release_reset_entropy(); + void set_allocated_reset_entropy(::std::string* reset_entropy); + + // optional string recovery_fake_word = 9; + bool has_recovery_fake_word() const; + void clear_recovery_fake_word(); + static const int kRecoveryFakeWordFieldNumber = 9; + const ::std::string& recovery_fake_word() const; + void set_recovery_fake_word(const ::std::string& value); + #if LANG_CXX11 + void set_recovery_fake_word(::std::string&& value); + #endif + void set_recovery_fake_word(const char* value); + void set_recovery_fake_word(const char* value, size_t size); + ::std::string* mutable_recovery_fake_word(); + ::std::string* release_recovery_fake_word(); + void set_allocated_recovery_fake_word(::std::string* recovery_fake_word); + + // optional .hw.trezor.messages.common.HDNodeType node = 5; + bool has_node() const; + void clear_node(); + static const int kNodeFieldNumber = 5; + private: + const ::hw::trezor::messages::common::HDNodeType& _internal_node() const; + public: + const ::hw::trezor::messages::common::HDNodeType& node() const; + ::hw::trezor::messages::common::HDNodeType* release_node(); + ::hw::trezor::messages::common::HDNodeType* mutable_node(); + void set_allocated_node(::hw::trezor::messages::common::HDNodeType* node); + + // optional bool passphrase_protection = 6; + bool has_passphrase_protection() const; + void clear_passphrase_protection(); + static const int kPassphraseProtectionFieldNumber = 6; + bool passphrase_protection() const; + void set_passphrase_protection(bool value); + + // optional uint32 recovery_word_pos = 10; + bool has_recovery_word_pos() const; + void clear_recovery_word_pos(); + static const int kRecoveryWordPosFieldNumber = 10; + ::google::protobuf::uint32 recovery_word_pos() const; + void set_recovery_word_pos(::google::protobuf::uint32 value); + + // optional uint32 reset_word_pos = 11; + bool has_reset_word_pos() const; + void clear_reset_word_pos(); + static const int kResetWordPosFieldNumber = 11; + ::google::protobuf::uint32 reset_word_pos() const; + void set_reset_word_pos(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.debug.DebugLinkState) + private: + void set_has_layout(); + void clear_has_layout(); + void set_has_pin(); + void clear_has_pin(); + void set_has_matrix(); + void clear_has_matrix(); + void set_has_mnemonic(); + void clear_has_mnemonic(); + void set_has_node(); + void clear_has_node(); + void set_has_passphrase_protection(); + void clear_has_passphrase_protection(); + void set_has_reset_word(); + void clear_has_reset_word(); + void set_has_reset_entropy(); + void clear_has_reset_entropy(); + void set_has_recovery_fake_word(); + void clear_has_recovery_fake_word(); + void set_has_recovery_word_pos(); + void clear_has_recovery_word_pos(); + void set_has_reset_word_pos(); + void clear_has_reset_word_pos(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr layout_; + ::google::protobuf::internal::ArenaStringPtr pin_; + ::google::protobuf::internal::ArenaStringPtr matrix_; + ::google::protobuf::internal::ArenaStringPtr mnemonic_; + ::google::protobuf::internal::ArenaStringPtr reset_word_; + ::google::protobuf::internal::ArenaStringPtr reset_entropy_; + ::google::protobuf::internal::ArenaStringPtr recovery_fake_word_; + ::hw::trezor::messages::common::HDNodeType* node_; + bool passphrase_protection_; + ::google::protobuf::uint32 recovery_word_pos_; + ::google::protobuf::uint32 reset_word_pos_; + friend struct ::protobuf_messages_2ddebug_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class DebugLinkStop : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.debug.DebugLinkStop) */ { + public: + DebugLinkStop(); + virtual ~DebugLinkStop(); + + DebugLinkStop(const DebugLinkStop& from); + + inline DebugLinkStop& operator=(const DebugLinkStop& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DebugLinkStop(DebugLinkStop&& from) noexcept + : DebugLinkStop() { + *this = ::std::move(from); + } + + inline DebugLinkStop& operator=(DebugLinkStop&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DebugLinkStop& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DebugLinkStop* internal_default_instance() { + return reinterpret_cast( + &_DebugLinkStop_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(DebugLinkStop* other); + friend void swap(DebugLinkStop& a, DebugLinkStop& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DebugLinkStop* New() const final { + return CreateMaybeMessage(NULL); + } + + DebugLinkStop* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DebugLinkStop& from); + void MergeFrom(const DebugLinkStop& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugLinkStop* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.debug.DebugLinkStop) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2ddebug_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class DebugLinkLog : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.debug.DebugLinkLog) */ { + public: + DebugLinkLog(); + virtual ~DebugLinkLog(); + + DebugLinkLog(const DebugLinkLog& from); + + inline DebugLinkLog& operator=(const DebugLinkLog& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DebugLinkLog(DebugLinkLog&& from) noexcept + : DebugLinkLog() { + *this = ::std::move(from); + } + + inline DebugLinkLog& operator=(DebugLinkLog&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DebugLinkLog& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DebugLinkLog* internal_default_instance() { + return reinterpret_cast( + &_DebugLinkLog_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(DebugLinkLog* other); + friend void swap(DebugLinkLog& a, DebugLinkLog& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DebugLinkLog* New() const final { + return CreateMaybeMessage(NULL); + } + + DebugLinkLog* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DebugLinkLog& from); + void MergeFrom(const DebugLinkLog& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugLinkLog* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string bucket = 2; + bool has_bucket() const; + void clear_bucket(); + static const int kBucketFieldNumber = 2; + const ::std::string& bucket() const; + void set_bucket(const ::std::string& value); + #if LANG_CXX11 + void set_bucket(::std::string&& value); + #endif + void set_bucket(const char* value); + void set_bucket(const char* value, size_t size); + ::std::string* mutable_bucket(); + ::std::string* release_bucket(); + void set_allocated_bucket(::std::string* bucket); + + // optional string text = 3; + bool has_text() const; + void clear_text(); + static const int kTextFieldNumber = 3; + const ::std::string& text() const; + void set_text(const ::std::string& value); + #if LANG_CXX11 + void set_text(::std::string&& value); + #endif + void set_text(const char* value); + void set_text(const char* value, size_t size); + ::std::string* mutable_text(); + ::std::string* release_text(); + void set_allocated_text(::std::string* text); + + // optional uint32 level = 1; + bool has_level() const; + void clear_level(); + static const int kLevelFieldNumber = 1; + ::google::protobuf::uint32 level() const; + void set_level(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.debug.DebugLinkLog) + private: + void set_has_level(); + void clear_has_level(); + void set_has_bucket(); + void clear_has_bucket(); + void set_has_text(); + void clear_has_text(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr bucket_; + ::google::protobuf::internal::ArenaStringPtr text_; + ::google::protobuf::uint32 level_; + friend struct ::protobuf_messages_2ddebug_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class DebugLinkMemoryRead : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.debug.DebugLinkMemoryRead) */ { + public: + DebugLinkMemoryRead(); + virtual ~DebugLinkMemoryRead(); + + DebugLinkMemoryRead(const DebugLinkMemoryRead& from); + + inline DebugLinkMemoryRead& operator=(const DebugLinkMemoryRead& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DebugLinkMemoryRead(DebugLinkMemoryRead&& from) noexcept + : DebugLinkMemoryRead() { + *this = ::std::move(from); + } + + inline DebugLinkMemoryRead& operator=(DebugLinkMemoryRead&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DebugLinkMemoryRead& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DebugLinkMemoryRead* internal_default_instance() { + return reinterpret_cast( + &_DebugLinkMemoryRead_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(DebugLinkMemoryRead* other); + friend void swap(DebugLinkMemoryRead& a, DebugLinkMemoryRead& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DebugLinkMemoryRead* New() const final { + return CreateMaybeMessage(NULL); + } + + DebugLinkMemoryRead* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DebugLinkMemoryRead& from); + void MergeFrom(const DebugLinkMemoryRead& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugLinkMemoryRead* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + ::google::protobuf::uint32 address() const; + void set_address(::google::protobuf::uint32 value); + + // optional uint32 length = 2; + bool has_length() const; + void clear_length(); + static const int kLengthFieldNumber = 2; + ::google::protobuf::uint32 length() const; + void set_length(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.debug.DebugLinkMemoryRead) + private: + void set_has_address(); + void clear_has_address(); + void set_has_length(); + void clear_has_length(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 address_; + ::google::protobuf::uint32 length_; + friend struct ::protobuf_messages_2ddebug_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class DebugLinkMemory : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.debug.DebugLinkMemory) */ { + public: + DebugLinkMemory(); + virtual ~DebugLinkMemory(); + + DebugLinkMemory(const DebugLinkMemory& from); + + inline DebugLinkMemory& operator=(const DebugLinkMemory& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DebugLinkMemory(DebugLinkMemory&& from) noexcept + : DebugLinkMemory() { + *this = ::std::move(from); + } + + inline DebugLinkMemory& operator=(DebugLinkMemory&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DebugLinkMemory& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DebugLinkMemory* internal_default_instance() { + return reinterpret_cast( + &_DebugLinkMemory_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(DebugLinkMemory* other); + friend void swap(DebugLinkMemory& a, DebugLinkMemory& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DebugLinkMemory* New() const final { + return CreateMaybeMessage(NULL); + } + + DebugLinkMemory* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DebugLinkMemory& from); + void MergeFrom(const DebugLinkMemory& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugLinkMemory* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes memory = 1; + bool has_memory() const; + void clear_memory(); + static const int kMemoryFieldNumber = 1; + const ::std::string& memory() const; + void set_memory(const ::std::string& value); + #if LANG_CXX11 + void set_memory(::std::string&& value); + #endif + void set_memory(const char* value); + void set_memory(const void* value, size_t size); + ::std::string* mutable_memory(); + ::std::string* release_memory(); + void set_allocated_memory(::std::string* memory); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.debug.DebugLinkMemory) + private: + void set_has_memory(); + void clear_has_memory(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr memory_; + friend struct ::protobuf_messages_2ddebug_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class DebugLinkMemoryWrite : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.debug.DebugLinkMemoryWrite) */ { + public: + DebugLinkMemoryWrite(); + virtual ~DebugLinkMemoryWrite(); + + DebugLinkMemoryWrite(const DebugLinkMemoryWrite& from); + + inline DebugLinkMemoryWrite& operator=(const DebugLinkMemoryWrite& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DebugLinkMemoryWrite(DebugLinkMemoryWrite&& from) noexcept + : DebugLinkMemoryWrite() { + *this = ::std::move(from); + } + + inline DebugLinkMemoryWrite& operator=(DebugLinkMemoryWrite&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DebugLinkMemoryWrite& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DebugLinkMemoryWrite* internal_default_instance() { + return reinterpret_cast( + &_DebugLinkMemoryWrite_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(DebugLinkMemoryWrite* other); + friend void swap(DebugLinkMemoryWrite& a, DebugLinkMemoryWrite& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DebugLinkMemoryWrite* New() const final { + return CreateMaybeMessage(NULL); + } + + DebugLinkMemoryWrite* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DebugLinkMemoryWrite& from); + void MergeFrom(const DebugLinkMemoryWrite& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugLinkMemoryWrite* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes memory = 2; + bool has_memory() const; + void clear_memory(); + static const int kMemoryFieldNumber = 2; + const ::std::string& memory() const; + void set_memory(const ::std::string& value); + #if LANG_CXX11 + void set_memory(::std::string&& value); + #endif + void set_memory(const char* value); + void set_memory(const void* value, size_t size); + ::std::string* mutable_memory(); + ::std::string* release_memory(); + void set_allocated_memory(::std::string* memory); + + // optional uint32 address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + ::google::protobuf::uint32 address() const; + void set_address(::google::protobuf::uint32 value); + + // optional bool flash = 3; + bool has_flash() const; + void clear_flash(); + static const int kFlashFieldNumber = 3; + bool flash() const; + void set_flash(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.debug.DebugLinkMemoryWrite) + private: + void set_has_address(); + void clear_has_address(); + void set_has_memory(); + void clear_has_memory(); + void set_has_flash(); + void clear_has_flash(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr memory_; + ::google::protobuf::uint32 address_; + bool flash_; + friend struct ::protobuf_messages_2ddebug_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class DebugLinkFlashErase : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.debug.DebugLinkFlashErase) */ { + public: + DebugLinkFlashErase(); + virtual ~DebugLinkFlashErase(); + + DebugLinkFlashErase(const DebugLinkFlashErase& from); + + inline DebugLinkFlashErase& operator=(const DebugLinkFlashErase& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DebugLinkFlashErase(DebugLinkFlashErase&& from) noexcept + : DebugLinkFlashErase() { + *this = ::std::move(from); + } + + inline DebugLinkFlashErase& operator=(DebugLinkFlashErase&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DebugLinkFlashErase& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DebugLinkFlashErase* internal_default_instance() { + return reinterpret_cast( + &_DebugLinkFlashErase_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(DebugLinkFlashErase* other); + friend void swap(DebugLinkFlashErase& a, DebugLinkFlashErase& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DebugLinkFlashErase* New() const final { + return CreateMaybeMessage(NULL); + } + + DebugLinkFlashErase* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DebugLinkFlashErase& from); + void MergeFrom(const DebugLinkFlashErase& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugLinkFlashErase* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 sector = 1; + bool has_sector() const; + void clear_sector(); + static const int kSectorFieldNumber = 1; + ::google::protobuf::uint32 sector() const; + void set_sector(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.debug.DebugLinkFlashErase) + private: + void set_has_sector(); + void clear_has_sector(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 sector_; + friend struct ::protobuf_messages_2ddebug_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DebugLinkDecision + +// optional bool yes_no = 1; +inline bool DebugLinkDecision::has_yes_no() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DebugLinkDecision::set_has_yes_no() { + _has_bits_[0] |= 0x00000002u; +} +inline void DebugLinkDecision::clear_has_yes_no() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DebugLinkDecision::clear_yes_no() { + yes_no_ = false; + clear_has_yes_no(); +} +inline bool DebugLinkDecision::yes_no() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkDecision.yes_no) + return yes_no_; +} +inline void DebugLinkDecision::set_yes_no(bool value) { + set_has_yes_no(); + yes_no_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkDecision.yes_no) +} + +// optional bool up_down = 2; +inline bool DebugLinkDecision::has_up_down() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DebugLinkDecision::set_has_up_down() { + _has_bits_[0] |= 0x00000004u; +} +inline void DebugLinkDecision::clear_has_up_down() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DebugLinkDecision::clear_up_down() { + up_down_ = false; + clear_has_up_down(); +} +inline bool DebugLinkDecision::up_down() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkDecision.up_down) + return up_down_; +} +inline void DebugLinkDecision::set_up_down(bool value) { + set_has_up_down(); + up_down_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkDecision.up_down) +} + +// optional string input = 3; +inline bool DebugLinkDecision::has_input() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DebugLinkDecision::set_has_input() { + _has_bits_[0] |= 0x00000001u; +} +inline void DebugLinkDecision::clear_has_input() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DebugLinkDecision::clear_input() { + input_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_input(); +} +inline const ::std::string& DebugLinkDecision::input() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkDecision.input) + return input_.GetNoArena(); +} +inline void DebugLinkDecision::set_input(const ::std::string& value) { + set_has_input(); + input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkDecision.input) +} +#if LANG_CXX11 +inline void DebugLinkDecision::set_input(::std::string&& value) { + set_has_input(); + input_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkDecision.input) +} +#endif +inline void DebugLinkDecision::set_input(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_input(); + input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkDecision.input) +} +inline void DebugLinkDecision::set_input(const char* value, size_t size) { + set_has_input(); + input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkDecision.input) +} +inline ::std::string* DebugLinkDecision::mutable_input() { + set_has_input(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkDecision.input) + return input_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkDecision::release_input() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkDecision.input) + if (!has_input()) { + return NULL; + } + clear_has_input(); + return input_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkDecision::set_allocated_input(::std::string* input) { + if (input != NULL) { + set_has_input(); + } else { + clear_has_input(); + } + input_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkDecision.input) +} + +// ------------------------------------------------------------------- + +// DebugLinkGetState + +// ------------------------------------------------------------------- + +// DebugLinkState + +// optional bytes layout = 1; +inline bool DebugLinkState::has_layout() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DebugLinkState::set_has_layout() { + _has_bits_[0] |= 0x00000001u; +} +inline void DebugLinkState::clear_has_layout() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DebugLinkState::clear_layout() { + layout_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_layout(); +} +inline const ::std::string& DebugLinkState::layout() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkState.layout) + return layout_.GetNoArena(); +} +inline void DebugLinkState::set_layout(const ::std::string& value) { + set_has_layout(); + layout_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkState.layout) +} +#if LANG_CXX11 +inline void DebugLinkState::set_layout(::std::string&& value) { + set_has_layout(); + layout_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkState.layout) +} +#endif +inline void DebugLinkState::set_layout(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_layout(); + layout_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkState.layout) +} +inline void DebugLinkState::set_layout(const void* value, size_t size) { + set_has_layout(); + layout_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkState.layout) +} +inline ::std::string* DebugLinkState::mutable_layout() { + set_has_layout(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkState.layout) + return layout_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkState::release_layout() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkState.layout) + if (!has_layout()) { + return NULL; + } + clear_has_layout(); + return layout_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkState::set_allocated_layout(::std::string* layout) { + if (layout != NULL) { + set_has_layout(); + } else { + clear_has_layout(); + } + layout_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), layout); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkState.layout) +} + +// optional string pin = 2; +inline bool DebugLinkState::has_pin() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DebugLinkState::set_has_pin() { + _has_bits_[0] |= 0x00000002u; +} +inline void DebugLinkState::clear_has_pin() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DebugLinkState::clear_pin() { + pin_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pin(); +} +inline const ::std::string& DebugLinkState::pin() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkState.pin) + return pin_.GetNoArena(); +} +inline void DebugLinkState::set_pin(const ::std::string& value) { + set_has_pin(); + pin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkState.pin) +} +#if LANG_CXX11 +inline void DebugLinkState::set_pin(::std::string&& value) { + set_has_pin(); + pin_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkState.pin) +} +#endif +inline void DebugLinkState::set_pin(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pin(); + pin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkState.pin) +} +inline void DebugLinkState::set_pin(const char* value, size_t size) { + set_has_pin(); + pin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkState.pin) +} +inline ::std::string* DebugLinkState::mutable_pin() { + set_has_pin(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkState.pin) + return pin_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkState::release_pin() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkState.pin) + if (!has_pin()) { + return NULL; + } + clear_has_pin(); + return pin_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkState::set_allocated_pin(::std::string* pin) { + if (pin != NULL) { + set_has_pin(); + } else { + clear_has_pin(); + } + pin_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pin); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkState.pin) +} + +// optional string matrix = 3; +inline bool DebugLinkState::has_matrix() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DebugLinkState::set_has_matrix() { + _has_bits_[0] |= 0x00000004u; +} +inline void DebugLinkState::clear_has_matrix() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DebugLinkState::clear_matrix() { + matrix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_matrix(); +} +inline const ::std::string& DebugLinkState::matrix() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkState.matrix) + return matrix_.GetNoArena(); +} +inline void DebugLinkState::set_matrix(const ::std::string& value) { + set_has_matrix(); + matrix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkState.matrix) +} +#if LANG_CXX11 +inline void DebugLinkState::set_matrix(::std::string&& value) { + set_has_matrix(); + matrix_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkState.matrix) +} +#endif +inline void DebugLinkState::set_matrix(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_matrix(); + matrix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkState.matrix) +} +inline void DebugLinkState::set_matrix(const char* value, size_t size) { + set_has_matrix(); + matrix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkState.matrix) +} +inline ::std::string* DebugLinkState::mutable_matrix() { + set_has_matrix(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkState.matrix) + return matrix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkState::release_matrix() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkState.matrix) + if (!has_matrix()) { + return NULL; + } + clear_has_matrix(); + return matrix_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkState::set_allocated_matrix(::std::string* matrix) { + if (matrix != NULL) { + set_has_matrix(); + } else { + clear_has_matrix(); + } + matrix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), matrix); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkState.matrix) +} + +// optional string mnemonic = 4; +inline bool DebugLinkState::has_mnemonic() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void DebugLinkState::set_has_mnemonic() { + _has_bits_[0] |= 0x00000008u; +} +inline void DebugLinkState::clear_has_mnemonic() { + _has_bits_[0] &= ~0x00000008u; +} +inline void DebugLinkState::clear_mnemonic() { + mnemonic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_mnemonic(); +} +inline const ::std::string& DebugLinkState::mnemonic() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkState.mnemonic) + return mnemonic_.GetNoArena(); +} +inline void DebugLinkState::set_mnemonic(const ::std::string& value) { + set_has_mnemonic(); + mnemonic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkState.mnemonic) +} +#if LANG_CXX11 +inline void DebugLinkState::set_mnemonic(::std::string&& value) { + set_has_mnemonic(); + mnemonic_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkState.mnemonic) +} +#endif +inline void DebugLinkState::set_mnemonic(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_mnemonic(); + mnemonic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkState.mnemonic) +} +inline void DebugLinkState::set_mnemonic(const char* value, size_t size) { + set_has_mnemonic(); + mnemonic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkState.mnemonic) +} +inline ::std::string* DebugLinkState::mutable_mnemonic() { + set_has_mnemonic(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkState.mnemonic) + return mnemonic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkState::release_mnemonic() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkState.mnemonic) + if (!has_mnemonic()) { + return NULL; + } + clear_has_mnemonic(); + return mnemonic_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkState::set_allocated_mnemonic(::std::string* mnemonic) { + if (mnemonic != NULL) { + set_has_mnemonic(); + } else { + clear_has_mnemonic(); + } + mnemonic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mnemonic); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkState.mnemonic) +} + +// optional .hw.trezor.messages.common.HDNodeType node = 5; +inline bool DebugLinkState::has_node() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void DebugLinkState::set_has_node() { + _has_bits_[0] |= 0x00000080u; +} +inline void DebugLinkState::clear_has_node() { + _has_bits_[0] &= ~0x00000080u; +} +inline const ::hw::trezor::messages::common::HDNodeType& DebugLinkState::_internal_node() const { + return *node_; +} +inline const ::hw::trezor::messages::common::HDNodeType& DebugLinkState::node() const { + const ::hw::trezor::messages::common::HDNodeType* p = node_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkState.node) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::common::_HDNodeType_default_instance_); +} +inline ::hw::trezor::messages::common::HDNodeType* DebugLinkState::release_node() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkState.node) + clear_has_node(); + ::hw::trezor::messages::common::HDNodeType* temp = node_; + node_ = NULL; + return temp; +} +inline ::hw::trezor::messages::common::HDNodeType* DebugLinkState::mutable_node() { + set_has_node(); + if (node_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::common::HDNodeType>(GetArenaNoVirtual()); + node_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkState.node) + return node_; +} +inline void DebugLinkState::set_allocated_node(::hw::trezor::messages::common::HDNodeType* node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(node_); + } + if (node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node, submessage_arena); + } + set_has_node(); + } else { + clear_has_node(); + } + node_ = node; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkState.node) +} + +// optional bool passphrase_protection = 6; +inline bool DebugLinkState::has_passphrase_protection() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void DebugLinkState::set_has_passphrase_protection() { + _has_bits_[0] |= 0x00000100u; +} +inline void DebugLinkState::clear_has_passphrase_protection() { + _has_bits_[0] &= ~0x00000100u; +} +inline void DebugLinkState::clear_passphrase_protection() { + passphrase_protection_ = false; + clear_has_passphrase_protection(); +} +inline bool DebugLinkState::passphrase_protection() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkState.passphrase_protection) + return passphrase_protection_; +} +inline void DebugLinkState::set_passphrase_protection(bool value) { + set_has_passphrase_protection(); + passphrase_protection_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkState.passphrase_protection) +} + +// optional string reset_word = 7; +inline bool DebugLinkState::has_reset_word() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void DebugLinkState::set_has_reset_word() { + _has_bits_[0] |= 0x00000010u; +} +inline void DebugLinkState::clear_has_reset_word() { + _has_bits_[0] &= ~0x00000010u; +} +inline void DebugLinkState::clear_reset_word() { + reset_word_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_reset_word(); +} +inline const ::std::string& DebugLinkState::reset_word() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkState.reset_word) + return reset_word_.GetNoArena(); +} +inline void DebugLinkState::set_reset_word(const ::std::string& value) { + set_has_reset_word(); + reset_word_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkState.reset_word) +} +#if LANG_CXX11 +inline void DebugLinkState::set_reset_word(::std::string&& value) { + set_has_reset_word(); + reset_word_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkState.reset_word) +} +#endif +inline void DebugLinkState::set_reset_word(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_reset_word(); + reset_word_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkState.reset_word) +} +inline void DebugLinkState::set_reset_word(const char* value, size_t size) { + set_has_reset_word(); + reset_word_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkState.reset_word) +} +inline ::std::string* DebugLinkState::mutable_reset_word() { + set_has_reset_word(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkState.reset_word) + return reset_word_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkState::release_reset_word() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkState.reset_word) + if (!has_reset_word()) { + return NULL; + } + clear_has_reset_word(); + return reset_word_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkState::set_allocated_reset_word(::std::string* reset_word) { + if (reset_word != NULL) { + set_has_reset_word(); + } else { + clear_has_reset_word(); + } + reset_word_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reset_word); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkState.reset_word) +} + +// optional bytes reset_entropy = 8; +inline bool DebugLinkState::has_reset_entropy() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void DebugLinkState::set_has_reset_entropy() { + _has_bits_[0] |= 0x00000020u; +} +inline void DebugLinkState::clear_has_reset_entropy() { + _has_bits_[0] &= ~0x00000020u; +} +inline void DebugLinkState::clear_reset_entropy() { + reset_entropy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_reset_entropy(); +} +inline const ::std::string& DebugLinkState::reset_entropy() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkState.reset_entropy) + return reset_entropy_.GetNoArena(); +} +inline void DebugLinkState::set_reset_entropy(const ::std::string& value) { + set_has_reset_entropy(); + reset_entropy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkState.reset_entropy) +} +#if LANG_CXX11 +inline void DebugLinkState::set_reset_entropy(::std::string&& value) { + set_has_reset_entropy(); + reset_entropy_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkState.reset_entropy) +} +#endif +inline void DebugLinkState::set_reset_entropy(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_reset_entropy(); + reset_entropy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkState.reset_entropy) +} +inline void DebugLinkState::set_reset_entropy(const void* value, size_t size) { + set_has_reset_entropy(); + reset_entropy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkState.reset_entropy) +} +inline ::std::string* DebugLinkState::mutable_reset_entropy() { + set_has_reset_entropy(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkState.reset_entropy) + return reset_entropy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkState::release_reset_entropy() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkState.reset_entropy) + if (!has_reset_entropy()) { + return NULL; + } + clear_has_reset_entropy(); + return reset_entropy_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkState::set_allocated_reset_entropy(::std::string* reset_entropy) { + if (reset_entropy != NULL) { + set_has_reset_entropy(); + } else { + clear_has_reset_entropy(); + } + reset_entropy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reset_entropy); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkState.reset_entropy) +} + +// optional string recovery_fake_word = 9; +inline bool DebugLinkState::has_recovery_fake_word() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void DebugLinkState::set_has_recovery_fake_word() { + _has_bits_[0] |= 0x00000040u; +} +inline void DebugLinkState::clear_has_recovery_fake_word() { + _has_bits_[0] &= ~0x00000040u; +} +inline void DebugLinkState::clear_recovery_fake_word() { + recovery_fake_word_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_recovery_fake_word(); +} +inline const ::std::string& DebugLinkState::recovery_fake_word() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkState.recovery_fake_word) + return recovery_fake_word_.GetNoArena(); +} +inline void DebugLinkState::set_recovery_fake_word(const ::std::string& value) { + set_has_recovery_fake_word(); + recovery_fake_word_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkState.recovery_fake_word) +} +#if LANG_CXX11 +inline void DebugLinkState::set_recovery_fake_word(::std::string&& value) { + set_has_recovery_fake_word(); + recovery_fake_word_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkState.recovery_fake_word) +} +#endif +inline void DebugLinkState::set_recovery_fake_word(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_recovery_fake_word(); + recovery_fake_word_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkState.recovery_fake_word) +} +inline void DebugLinkState::set_recovery_fake_word(const char* value, size_t size) { + set_has_recovery_fake_word(); + recovery_fake_word_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkState.recovery_fake_word) +} +inline ::std::string* DebugLinkState::mutable_recovery_fake_word() { + set_has_recovery_fake_word(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkState.recovery_fake_word) + return recovery_fake_word_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkState::release_recovery_fake_word() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkState.recovery_fake_word) + if (!has_recovery_fake_word()) { + return NULL; + } + clear_has_recovery_fake_word(); + return recovery_fake_word_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkState::set_allocated_recovery_fake_word(::std::string* recovery_fake_word) { + if (recovery_fake_word != NULL) { + set_has_recovery_fake_word(); + } else { + clear_has_recovery_fake_word(); + } + recovery_fake_word_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), recovery_fake_word); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkState.recovery_fake_word) +} + +// optional uint32 recovery_word_pos = 10; +inline bool DebugLinkState::has_recovery_word_pos() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void DebugLinkState::set_has_recovery_word_pos() { + _has_bits_[0] |= 0x00000200u; +} +inline void DebugLinkState::clear_has_recovery_word_pos() { + _has_bits_[0] &= ~0x00000200u; +} +inline void DebugLinkState::clear_recovery_word_pos() { + recovery_word_pos_ = 0u; + clear_has_recovery_word_pos(); +} +inline ::google::protobuf::uint32 DebugLinkState::recovery_word_pos() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkState.recovery_word_pos) + return recovery_word_pos_; +} +inline void DebugLinkState::set_recovery_word_pos(::google::protobuf::uint32 value) { + set_has_recovery_word_pos(); + recovery_word_pos_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkState.recovery_word_pos) +} + +// optional uint32 reset_word_pos = 11; +inline bool DebugLinkState::has_reset_word_pos() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void DebugLinkState::set_has_reset_word_pos() { + _has_bits_[0] |= 0x00000400u; +} +inline void DebugLinkState::clear_has_reset_word_pos() { + _has_bits_[0] &= ~0x00000400u; +} +inline void DebugLinkState::clear_reset_word_pos() { + reset_word_pos_ = 0u; + clear_has_reset_word_pos(); +} +inline ::google::protobuf::uint32 DebugLinkState::reset_word_pos() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkState.reset_word_pos) + return reset_word_pos_; +} +inline void DebugLinkState::set_reset_word_pos(::google::protobuf::uint32 value) { + set_has_reset_word_pos(); + reset_word_pos_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkState.reset_word_pos) +} + +// ------------------------------------------------------------------- + +// DebugLinkStop + +// ------------------------------------------------------------------- + +// DebugLinkLog + +// optional uint32 level = 1; +inline bool DebugLinkLog::has_level() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DebugLinkLog::set_has_level() { + _has_bits_[0] |= 0x00000004u; +} +inline void DebugLinkLog::clear_has_level() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DebugLinkLog::clear_level() { + level_ = 0u; + clear_has_level(); +} +inline ::google::protobuf::uint32 DebugLinkLog::level() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkLog.level) + return level_; +} +inline void DebugLinkLog::set_level(::google::protobuf::uint32 value) { + set_has_level(); + level_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkLog.level) +} + +// optional string bucket = 2; +inline bool DebugLinkLog::has_bucket() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DebugLinkLog::set_has_bucket() { + _has_bits_[0] |= 0x00000001u; +} +inline void DebugLinkLog::clear_has_bucket() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DebugLinkLog::clear_bucket() { + bucket_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_bucket(); +} +inline const ::std::string& DebugLinkLog::bucket() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkLog.bucket) + return bucket_.GetNoArena(); +} +inline void DebugLinkLog::set_bucket(const ::std::string& value) { + set_has_bucket(); + bucket_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkLog.bucket) +} +#if LANG_CXX11 +inline void DebugLinkLog::set_bucket(::std::string&& value) { + set_has_bucket(); + bucket_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkLog.bucket) +} +#endif +inline void DebugLinkLog::set_bucket(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_bucket(); + bucket_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkLog.bucket) +} +inline void DebugLinkLog::set_bucket(const char* value, size_t size) { + set_has_bucket(); + bucket_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkLog.bucket) +} +inline ::std::string* DebugLinkLog::mutable_bucket() { + set_has_bucket(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkLog.bucket) + return bucket_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkLog::release_bucket() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkLog.bucket) + if (!has_bucket()) { + return NULL; + } + clear_has_bucket(); + return bucket_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkLog::set_allocated_bucket(::std::string* bucket) { + if (bucket != NULL) { + set_has_bucket(); + } else { + clear_has_bucket(); + } + bucket_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bucket); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkLog.bucket) +} + +// optional string text = 3; +inline bool DebugLinkLog::has_text() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DebugLinkLog::set_has_text() { + _has_bits_[0] |= 0x00000002u; +} +inline void DebugLinkLog::clear_has_text() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DebugLinkLog::clear_text() { + text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_text(); +} +inline const ::std::string& DebugLinkLog::text() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkLog.text) + return text_.GetNoArena(); +} +inline void DebugLinkLog::set_text(const ::std::string& value) { + set_has_text(); + text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkLog.text) +} +#if LANG_CXX11 +inline void DebugLinkLog::set_text(::std::string&& value) { + set_has_text(); + text_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkLog.text) +} +#endif +inline void DebugLinkLog::set_text(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_text(); + text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkLog.text) +} +inline void DebugLinkLog::set_text(const char* value, size_t size) { + set_has_text(); + text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkLog.text) +} +inline ::std::string* DebugLinkLog::mutable_text() { + set_has_text(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkLog.text) + return text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkLog::release_text() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkLog.text) + if (!has_text()) { + return NULL; + } + clear_has_text(); + return text_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkLog::set_allocated_text(::std::string* text) { + if (text != NULL) { + set_has_text(); + } else { + clear_has_text(); + } + text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), text); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkLog.text) +} + +// ------------------------------------------------------------------- + +// DebugLinkMemoryRead + +// optional uint32 address = 1; +inline bool DebugLinkMemoryRead::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DebugLinkMemoryRead::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void DebugLinkMemoryRead::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DebugLinkMemoryRead::clear_address() { + address_ = 0u; + clear_has_address(); +} +inline ::google::protobuf::uint32 DebugLinkMemoryRead::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkMemoryRead.address) + return address_; +} +inline void DebugLinkMemoryRead::set_address(::google::protobuf::uint32 value) { + set_has_address(); + address_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkMemoryRead.address) +} + +// optional uint32 length = 2; +inline bool DebugLinkMemoryRead::has_length() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DebugLinkMemoryRead::set_has_length() { + _has_bits_[0] |= 0x00000002u; +} +inline void DebugLinkMemoryRead::clear_has_length() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DebugLinkMemoryRead::clear_length() { + length_ = 0u; + clear_has_length(); +} +inline ::google::protobuf::uint32 DebugLinkMemoryRead::length() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkMemoryRead.length) + return length_; +} +inline void DebugLinkMemoryRead::set_length(::google::protobuf::uint32 value) { + set_has_length(); + length_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkMemoryRead.length) +} + +// ------------------------------------------------------------------- + +// DebugLinkMemory + +// optional bytes memory = 1; +inline bool DebugLinkMemory::has_memory() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DebugLinkMemory::set_has_memory() { + _has_bits_[0] |= 0x00000001u; +} +inline void DebugLinkMemory::clear_has_memory() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DebugLinkMemory::clear_memory() { + memory_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_memory(); +} +inline const ::std::string& DebugLinkMemory::memory() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkMemory.memory) + return memory_.GetNoArena(); +} +inline void DebugLinkMemory::set_memory(const ::std::string& value) { + set_has_memory(); + memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkMemory.memory) +} +#if LANG_CXX11 +inline void DebugLinkMemory::set_memory(::std::string&& value) { + set_has_memory(); + memory_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkMemory.memory) +} +#endif +inline void DebugLinkMemory::set_memory(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_memory(); + memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkMemory.memory) +} +inline void DebugLinkMemory::set_memory(const void* value, size_t size) { + set_has_memory(); + memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkMemory.memory) +} +inline ::std::string* DebugLinkMemory::mutable_memory() { + set_has_memory(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkMemory.memory) + return memory_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkMemory::release_memory() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkMemory.memory) + if (!has_memory()) { + return NULL; + } + clear_has_memory(); + return memory_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkMemory::set_allocated_memory(::std::string* memory) { + if (memory != NULL) { + set_has_memory(); + } else { + clear_has_memory(); + } + memory_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), memory); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkMemory.memory) +} + +// ------------------------------------------------------------------- + +// DebugLinkMemoryWrite + +// optional uint32 address = 1; +inline bool DebugLinkMemoryWrite::has_address() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DebugLinkMemoryWrite::set_has_address() { + _has_bits_[0] |= 0x00000002u; +} +inline void DebugLinkMemoryWrite::clear_has_address() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DebugLinkMemoryWrite::clear_address() { + address_ = 0u; + clear_has_address(); +} +inline ::google::protobuf::uint32 DebugLinkMemoryWrite::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkMemoryWrite.address) + return address_; +} +inline void DebugLinkMemoryWrite::set_address(::google::protobuf::uint32 value) { + set_has_address(); + address_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkMemoryWrite.address) +} + +// optional bytes memory = 2; +inline bool DebugLinkMemoryWrite::has_memory() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DebugLinkMemoryWrite::set_has_memory() { + _has_bits_[0] |= 0x00000001u; +} +inline void DebugLinkMemoryWrite::clear_has_memory() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DebugLinkMemoryWrite::clear_memory() { + memory_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_memory(); +} +inline const ::std::string& DebugLinkMemoryWrite::memory() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkMemoryWrite.memory) + return memory_.GetNoArena(); +} +inline void DebugLinkMemoryWrite::set_memory(const ::std::string& value) { + set_has_memory(); + memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkMemoryWrite.memory) +} +#if LANG_CXX11 +inline void DebugLinkMemoryWrite::set_memory(::std::string&& value) { + set_has_memory(); + memory_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.debug.DebugLinkMemoryWrite.memory) +} +#endif +inline void DebugLinkMemoryWrite::set_memory(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_memory(); + memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.debug.DebugLinkMemoryWrite.memory) +} +inline void DebugLinkMemoryWrite::set_memory(const void* value, size_t size) { + set_has_memory(); + memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.debug.DebugLinkMemoryWrite.memory) +} +inline ::std::string* DebugLinkMemoryWrite::mutable_memory() { + set_has_memory(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.debug.DebugLinkMemoryWrite.memory) + return memory_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugLinkMemoryWrite::release_memory() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.debug.DebugLinkMemoryWrite.memory) + if (!has_memory()) { + return NULL; + } + clear_has_memory(); + return memory_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugLinkMemoryWrite::set_allocated_memory(::std::string* memory) { + if (memory != NULL) { + set_has_memory(); + } else { + clear_has_memory(); + } + memory_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), memory); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.debug.DebugLinkMemoryWrite.memory) +} + +// optional bool flash = 3; +inline bool DebugLinkMemoryWrite::has_flash() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DebugLinkMemoryWrite::set_has_flash() { + _has_bits_[0] |= 0x00000004u; +} +inline void DebugLinkMemoryWrite::clear_has_flash() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DebugLinkMemoryWrite::clear_flash() { + flash_ = false; + clear_has_flash(); +} +inline bool DebugLinkMemoryWrite::flash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkMemoryWrite.flash) + return flash_; +} +inline void DebugLinkMemoryWrite::set_flash(bool value) { + set_has_flash(); + flash_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkMemoryWrite.flash) +} + +// ------------------------------------------------------------------- + +// DebugLinkFlashErase + +// optional uint32 sector = 1; +inline bool DebugLinkFlashErase::has_sector() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DebugLinkFlashErase::set_has_sector() { + _has_bits_[0] |= 0x00000001u; +} +inline void DebugLinkFlashErase::clear_has_sector() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DebugLinkFlashErase::clear_sector() { + sector_ = 0u; + clear_has_sector(); +} +inline ::google::protobuf::uint32 DebugLinkFlashErase::sector() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.debug.DebugLinkFlashErase.sector) + return sector_; +} +inline void DebugLinkFlashErase::set_sector(::google::protobuf::uint32 value) { + set_has_sector(); + sector_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.debug.DebugLinkFlashErase.sector) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace debug +} // namespace messages +} // namespace trezor +} // namespace hw + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2ddebug_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-eos.pb.cc b/src/Core/hardware/trezor/protob/messages-eos.pb.cc new file mode 100644 index 00000000..f1d33191 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-eos.pb.cc @@ -0,0 +1,11009 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-eos.proto + +#include "messages-eos.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2deos_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosSignTx_EosTxHeader; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionBuyRamBytes; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionDeleteAuth; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionLinkAuth; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionRefund; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionSellRam; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionUnknown; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionUnlinkAuth; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionVoteProducer; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosAsset; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosAuthorizationKey; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosAuthorizationWait; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosPermissionLevel; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionBuyRam; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionCommon; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionDelegate; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionNewAccount; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionTransfer; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionUndelegate; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionUpdateAuth; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosAuthorizationAccount; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_EosTxActionAck_EosAuthorization; +} // namespace protobuf_messages_2deos_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace eos { +class EosGetPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosGetPublicKey_default_instance_; +class EosPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosPublicKey_default_instance_; +class EosSignTx_EosTxHeaderDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosSignTx_EosTxHeader_default_instance_; +class EosSignTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosSignTx_default_instance_; +class EosTxActionRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionRequest_default_instance_; +class EosTxActionAck_EosAssetDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosAsset_default_instance_; +class EosTxActionAck_EosPermissionLevelDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosPermissionLevel_default_instance_; +class EosTxActionAck_EosAuthorizationKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosAuthorizationKey_default_instance_; +class EosTxActionAck_EosAuthorizationAccountDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosAuthorizationAccount_default_instance_; +class EosTxActionAck_EosAuthorizationWaitDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosAuthorizationWait_default_instance_; +class EosTxActionAck_EosAuthorizationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosAuthorization_default_instance_; +class EosTxActionAck_EosActionCommonDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionCommon_default_instance_; +class EosTxActionAck_EosActionTransferDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionTransfer_default_instance_; +class EosTxActionAck_EosActionDelegateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionDelegate_default_instance_; +class EosTxActionAck_EosActionUndelegateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionUndelegate_default_instance_; +class EosTxActionAck_EosActionRefundDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionRefund_default_instance_; +class EosTxActionAck_EosActionBuyRamDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionBuyRam_default_instance_; +class EosTxActionAck_EosActionBuyRamBytesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionBuyRamBytes_default_instance_; +class EosTxActionAck_EosActionSellRamDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionSellRam_default_instance_; +class EosTxActionAck_EosActionVoteProducerDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionVoteProducer_default_instance_; +class EosTxActionAck_EosActionUpdateAuthDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionUpdateAuth_default_instance_; +class EosTxActionAck_EosActionDeleteAuthDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionDeleteAuth_default_instance_; +class EosTxActionAck_EosActionLinkAuthDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionLinkAuth_default_instance_; +class EosTxActionAck_EosActionUnlinkAuthDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionUnlinkAuth_default_instance_; +class EosTxActionAck_EosActionNewAccountDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionNewAccount_default_instance_; +class EosTxActionAck_EosActionUnknownDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_EosActionUnknown_default_instance_; +class EosTxActionAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosTxActionAck_default_instance_; +class EosSignedTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EosSignedTx_default_instance_; +} // namespace eos +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2deos_2eproto { +static void InitDefaultsEosGetPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosGetPublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosGetPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosGetPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosGetPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosGetPublicKey}, {}}; + +static void InitDefaultsEosPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosPublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosPublicKey}, {}}; + +static void InitDefaultsEosSignTx_EosTxHeader() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosSignTx_EosTxHeader_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosSignTx_EosTxHeader(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosSignTx_EosTxHeader::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosSignTx_EosTxHeader = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosSignTx_EosTxHeader}, {}}; + +static void InitDefaultsEosSignTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosSignTx_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosSignTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosSignTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_EosSignTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEosSignTx}, { + &protobuf_messages_2deos_2eproto::scc_info_EosSignTx_EosTxHeader.base,}}; + +static void InitDefaultsEosTxActionRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionRequest_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionRequest}, {}}; + +static void InitDefaultsEosTxActionAck_EosAsset() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosAsset_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosAsset(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosAsset = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosAsset}, {}}; + +static void InitDefaultsEosTxActionAck_EosPermissionLevel() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosPermissionLevel_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosPermissionLevel = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosPermissionLevel}, {}}; + +static void InitDefaultsEosTxActionAck_EosAuthorizationKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorizationKey_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosAuthorizationKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosAuthorizationKey}, {}}; + +static void InitDefaultsEosTxActionAck_EosAuthorizationAccount() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorizationAccount_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosAuthorizationAccount = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEosTxActionAck_EosAuthorizationAccount}, { + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosPermissionLevel.base,}}; + +static void InitDefaultsEosTxActionAck_EosAuthorizationWait() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorizationWait_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosAuthorizationWait = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosAuthorizationWait}, {}}; + +static void InitDefaultsEosTxActionAck_EosAuthorization() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorization_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_EosTxActionAck_EosAuthorization = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsEosTxActionAck_EosAuthorization}, { + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorizationKey.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorizationAccount.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorizationWait.base,}}; + +static void InitDefaultsEosTxActionAck_EosActionCommon() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionCommon_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionCommon = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEosTxActionAck_EosActionCommon}, { + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosPermissionLevel.base,}}; + +static void InitDefaultsEosTxActionAck_EosActionTransfer() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionTransfer_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionTransfer = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEosTxActionAck_EosActionTransfer}, { + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAsset.base,}}; + +static void InitDefaultsEosTxActionAck_EosActionDelegate() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionDelegate_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionDelegate = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEosTxActionAck_EosActionDelegate}, { + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAsset.base,}}; + +static void InitDefaultsEosTxActionAck_EosActionUndelegate() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionUndelegate_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionUndelegate = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEosTxActionAck_EosActionUndelegate}, { + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAsset.base,}}; + +static void InitDefaultsEosTxActionAck_EosActionRefund() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionRefund_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionRefund = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosActionRefund}, {}}; + +static void InitDefaultsEosTxActionAck_EosActionBuyRam() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionBuyRam_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionBuyRam = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEosTxActionAck_EosActionBuyRam}, { + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAsset.base,}}; + +static void InitDefaultsEosTxActionAck_EosActionBuyRamBytes() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionBuyRamBytes_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionBuyRamBytes = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosActionBuyRamBytes}, {}}; + +static void InitDefaultsEosTxActionAck_EosActionSellRam() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionSellRam_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionSellRam = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosActionSellRam}, {}}; + +static void InitDefaultsEosTxActionAck_EosActionVoteProducer() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionVoteProducer_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionVoteProducer = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosActionVoteProducer}, {}}; + +static void InitDefaultsEosTxActionAck_EosActionUpdateAuth() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionUpdateAuth_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionUpdateAuth = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEosTxActionAck_EosActionUpdateAuth}, { + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorization.base,}}; + +static void InitDefaultsEosTxActionAck_EosActionDeleteAuth() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionDeleteAuth_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionDeleteAuth = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosActionDeleteAuth}, {}}; + +static void InitDefaultsEosTxActionAck_EosActionLinkAuth() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionLinkAuth_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionLinkAuth = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosActionLinkAuth}, {}}; + +static void InitDefaultsEosTxActionAck_EosActionUnlinkAuth() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionUnlinkAuth_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionUnlinkAuth = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosActionUnlinkAuth}, {}}; + +static void InitDefaultsEosTxActionAck_EosActionNewAccount() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionNewAccount_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_EosTxActionAck_EosActionNewAccount = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEosTxActionAck_EosActionNewAccount}, { + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorization.base,}}; + +static void InitDefaultsEosTxActionAck_EosActionUnknown() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_EosActionUnknown_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosTxActionAck_EosActionUnknown = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosTxActionAck_EosActionUnknown}, {}}; + +static void InitDefaultsEosTxActionAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosTxActionAck_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosTxActionAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosTxActionAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<15> scc_info_EosTxActionAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 15, InitDefaultsEosTxActionAck}, { + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionCommon.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionTransfer.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionDelegate.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUndelegate.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionRefund.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionBuyRam.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionBuyRamBytes.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionSellRam.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionVoteProducer.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUpdateAuth.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionDeleteAuth.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionLinkAuth.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUnlinkAuth.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionNewAccount.base, + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUnknown.base,}}; + +static void InitDefaultsEosSignedTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::eos::_EosSignedTx_default_instance_; + new (ptr) ::hw::trezor::messages::eos::EosSignedTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::eos::EosSignedTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EosSignedTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEosSignedTx}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_EosGetPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosSignTx_EosTxHeader.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosSignTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosAsset.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosPermissionLevel.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosAuthorizationKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosAuthorizationAccount.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosAuthorizationWait.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosAuthorization.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionCommon.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionTransfer.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionDelegate.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionUndelegate.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionRefund.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionBuyRam.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionBuyRamBytes.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionSellRam.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionVoteProducer.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionUpdateAuth.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionDeleteAuth.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionLinkAuth.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionUnlinkAuth.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionNewAccount.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck_EosActionUnknown.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosTxActionAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_EosSignedTx.base); +} + +::google::protobuf::Metadata file_level_metadata[28]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosGetPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosGetPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosGetPublicKey, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosGetPublicKey, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosPublicKey, wif_public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosPublicKey, raw_public_key_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx_EosTxHeader, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx_EosTxHeader, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx_EosTxHeader, expiration_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx_EosTxHeader, ref_block_num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx_EosTxHeader, ref_block_prefix_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx_EosTxHeader, max_net_usage_words_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx_EosTxHeader, max_cpu_usage_ms_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx_EosTxHeader, delay_sec_), + 0, + 1, + 2, + 3, + 4, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx, chain_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx, header_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignTx, num_actions_), + ~0u, + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionRequest, data_size_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAsset, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAsset, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAsset, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAsset, symbol_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel, actor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel, permission_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey, weight_), + 1, + 0, + ~0u, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount, account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount, weight_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait, wait_sec_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait, weight_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization, threshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization, keys_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization, accounts_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization, waits_), + 0, + ~0u, + ~0u, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon, account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon, authorization_), + 0, + 1, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer, sender_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer, receiver_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer, quantity_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer, memo_), + 2, + 3, + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate, sender_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate, receiver_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate, net_quantity_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate, cpu_quantity_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate, transfer_), + 2, + 3, + 0, + 1, + 4, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate, sender_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate, receiver_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate, net_quantity_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate, cpu_quantity_), + 2, + 3, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund, owner_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam, payer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam, receiver_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam, quantity_), + 1, + 2, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes, payer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes, receiver_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes, bytes_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam, account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam, bytes_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer, voter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer, proxy_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer, producers_), + 0, + 1, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth, account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth, permission_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth, parent_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth, auth_), + 1, + 2, + 3, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth, account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth, permission_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth, account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth, code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth, requirement_), + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth, account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth, code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth, type_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount, creator_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount, owner_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount, active_), + 2, + 3, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown, data_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown, data_chunk_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, common_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, transfer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, delegate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, undelegate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, refund_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, buy_ram_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, buy_ram_bytes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, sell_ram_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, vote_producer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, update_auth_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, delete_auth_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, link_auth_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, unlink_auth_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, new_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosTxActionAck, unknown_), + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignedTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignedTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignedTx, signature_v_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignedTx, signature_r_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::eos::EosSignedTx, signature_s_), + 2, + 0, + 1, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::hw::trezor::messages::eos::EosGetPublicKey)}, + { 9, 16, sizeof(::hw::trezor::messages::eos::EosPublicKey)}, + { 18, 29, sizeof(::hw::trezor::messages::eos::EosSignTx_EosTxHeader)}, + { 35, 44, sizeof(::hw::trezor::messages::eos::EosSignTx)}, + { 48, 54, sizeof(::hw::trezor::messages::eos::EosTxActionRequest)}, + { 55, 62, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosAsset)}, + { 64, 71, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel)}, + { 73, 82, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey)}, + { 86, 93, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount)}, + { 95, 102, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait)}, + { 104, 113, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization)}, + { 117, 125, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon)}, + { 128, 137, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer)}, + { 141, 151, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate)}, + { 156, 165, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate)}, + { 169, 175, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund)}, + { 176, 184, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam)}, + { 187, 195, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes)}, + { 198, 205, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam)}, + { 207, 215, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer)}, + { 218, 227, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth)}, + { 231, 238, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth)}, + { 240, 249, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth)}, + { 253, 261, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth)}, + { 264, 273, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount)}, + { 277, 284, sizeof(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown)}, + { 286, 306, sizeof(::hw::trezor::messages::eos::EosTxActionAck)}, + { 321, 329, sizeof(::hw::trezor::messages::eos::EosSignedTx)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::eos::_EosGetPublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosPublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosSignTx_EosTxHeader_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosSignTx_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosAsset_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosPermissionLevel_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorizationKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorizationAccount_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorizationWait_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorization_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionCommon_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionTransfer_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionDelegate_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionUndelegate_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionRefund_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionBuyRam_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionBuyRamBytes_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionSellRam_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionVoteProducer_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionUpdateAuth_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionDeleteAuth_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionLinkAuth_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionUnlinkAuth_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionNewAccount_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_EosActionUnknown_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosTxActionAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::eos::_EosSignedTx_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-eos.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 28); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\022messages-eos.proto\022\026hw.trezor.messages" + ".eos\":\n\017EosGetPublicKey\022\021\n\taddress_n\030\001 \003" + "(\r\022\024\n\014show_display\030\002 \001(\010\">\n\014EosPublicKey" + "\022\026\n\016wif_public_key\030\001 \001(\t\022\026\n\016raw_public_k" + "ey\030\002 \001(\014\"\243\002\n\tEosSignTx\022\021\n\taddress_n\030\001 \003(" + "\r\022\020\n\010chain_id\030\002 \001(\014\022=\n\006header\030\003 \001(\0132-.hw" + ".trezor.messages.eos.EosSignTx.EosTxHead" + "er\022\023\n\013num_actions\030\004 \001(\r\032\234\001\n\013EosTxHeader\022" + "\022\n\nexpiration\030\001 \002(\r\022\025\n\rref_block_num\030\002 \002" + "(\r\022\030\n\020ref_block_prefix\030\003 \002(\r\022\033\n\023max_net_" + "usage_words\030\004 \002(\r\022\030\n\020max_cpu_usage_ms\030\005 " + "\002(\r\022\021\n\tdelay_sec\030\006 \002(\r\"\'\n\022EosTxActionReq" + "uest\022\021\n\tdata_size\030\001 \001(\r\"\226\033\n\016EosTxActionA" + "ck\022F\n\006common\030\001 \001(\01326.hw.trezor.messages." + "eos.EosTxActionAck.EosActionCommon\022J\n\010tr" + "ansfer\030\002 \001(\01328.hw.trezor.messages.eos.Eo" + "sTxActionAck.EosActionTransfer\022J\n\010delega" + "te\030\003 \001(\01328.hw.trezor.messages.eos.EosTxA" + "ctionAck.EosActionDelegate\022N\n\nundelegate" + "\030\004 \001(\0132:.hw.trezor.messages.eos.EosTxAct" + "ionAck.EosActionUndelegate\022F\n\006refund\030\005 \001" + "(\01326.hw.trezor.messages.eos.EosTxActionA" + "ck.EosActionRefund\022G\n\007buy_ram\030\006 \001(\01326.hw" + ".trezor.messages.eos.EosTxActionAck.EosA" + "ctionBuyRam\022R\n\rbuy_ram_bytes\030\007 \001(\0132;.hw." + "trezor.messages.eos.EosTxActionAck.EosAc" + "tionBuyRamBytes\022I\n\010sell_ram\030\010 \001(\01327.hw.t" + "rezor.messages.eos.EosTxActionAck.EosAct" + "ionSellRam\022S\n\rvote_producer\030\t \001(\0132<.hw.t" + "rezor.messages.eos.EosTxActionAck.EosAct" + "ionVoteProducer\022O\n\013update_auth\030\n \001(\0132:.h" + "w.trezor.messages.eos.EosTxActionAck.Eos" + "ActionUpdateAuth\022O\n\013delete_auth\030\013 \001(\0132:." + "hw.trezor.messages.eos.EosTxActionAck.Eo" + "sActionDeleteAuth\022K\n\tlink_auth\030\014 \001(\01328.h" + "w.trezor.messages.eos.EosTxActionAck.Eos" + "ActionLinkAuth\022O\n\013unlink_auth\030\r \001(\0132:.hw" + ".trezor.messages.eos.EosTxActionAck.EosA" + "ctionUnlinkAuth\022O\n\013new_account\030\016 \001(\0132:.h" + "w.trezor.messages.eos.EosTxActionAck.Eos" + "ActionNewAccount\022H\n\007unknown\030\017 \001(\01327.hw.t" + "rezor.messages.eos.EosTxActionAck.EosAct" + "ionUnknown\032*\n\010EosAsset\022\016\n\006amount\030\001 \001(\022\022\016" + "\n\006symbol\030\002 \001(\004\0327\n\022EosPermissionLevel\022\r\n\005" + "actor\030\001 \001(\004\022\022\n\npermission\030\002 \001(\004\032S\n\023EosAu" + "thorizationKey\022\014\n\004type\030\001 \001(\r\022\013\n\003key\030\002 \001(" + "\014\022\021\n\taddress_n\030\003 \003(\r\022\016\n\006weight\030\004 \001(\r\032u\n\027" + "EosAuthorizationAccount\022J\n\007account\030\001 \001(\013" + "29.hw.trezor.messages.eos.EosTxActionAck" + ".EosPermissionLevel\022\016\n\006weight\030\002 \001(\r\0328\n\024E" + "osAuthorizationWait\022\020\n\010wait_sec\030\001 \001(\r\022\016\n" + "\006weight\030\002 \001(\r\032\215\002\n\020EosAuthorization\022\021\n\tth" + "reshold\030\001 \001(\r\022H\n\004keys\030\002 \003(\0132:.hw.trezor." + "messages.eos.EosTxActionAck.EosAuthoriza" + "tionKey\022P\n\010accounts\030\003 \003(\0132>.hw.trezor.me" + "ssages.eos.EosTxActionAck.EosAuthorizati" + "onAccount\022J\n\005waits\030\004 \003(\0132;.hw.trezor.mes" + "sages.eos.EosTxActionAck.EosAuthorizatio" + "nWait\032\202\001\n\017EosActionCommon\022\017\n\007account\030\001 \001" + "(\004\022\014\n\004name\030\002 \001(\004\022P\n\rauthorization\030\003 \003(\0132" + "9.hw.trezor.messages.eos.EosTxActionAck." + "EosPermissionLevel\032\206\001\n\021EosActionTransfer" + "\022\016\n\006sender\030\001 \001(\004\022\020\n\010receiver\030\002 \001(\004\022A\n\010qu" + "antity\030\003 \001(\0132/.hw.trezor.messages.eos.Eo" + "sTxActionAck.EosAsset\022\014\n\004memo\030\004 \001(\t\032\325\001\n\021" + "EosActionDelegate\022\016\n\006sender\030\001 \001(\004\022\020\n\010rec" + "eiver\030\002 \001(\004\022E\n\014net_quantity\030\003 \001(\0132/.hw.t" + "rezor.messages.eos.EosTxActionAck.EosAss" + "et\022E\n\014cpu_quantity\030\004 \001(\0132/.hw.trezor.mes" + "sages.eos.EosTxActionAck.EosAsset\022\020\n\010tra" + "nsfer\030\005 \001(\010\032\305\001\n\023EosActionUndelegate\022\016\n\006s" + "ender\030\001 \001(\004\022\020\n\010receiver\030\002 \001(\004\022E\n\014net_qua" + "ntity\030\003 \001(\0132/.hw.trezor.messages.eos.Eos" + "TxActionAck.EosAsset\022E\n\014cpu_quantity\030\004 \001" + "(\0132/.hw.trezor.messages.eos.EosTxActionA" + "ck.EosAsset\032 \n\017EosActionRefund\022\r\n\005owner\030" + "\001 \001(\004\032u\n\017EosActionBuyRam\022\r\n\005payer\030\001 \001(\004\022" + "\020\n\010receiver\030\002 \001(\004\022A\n\010quantity\030\003 \001(\0132/.hw" + ".trezor.messages.eos.EosTxActionAck.EosA" + "sset\032F\n\024EosActionBuyRamBytes\022\r\n\005payer\030\001 " + "\001(\004\022\020\n\010receiver\030\002 \001(\004\022\r\n\005bytes\030\003 \001(\r\0322\n\020" + "EosActionSellRam\022\017\n\007account\030\001 \001(\004\022\r\n\005byt" + "es\030\002 \001(\004\032H\n\025EosActionVoteProducer\022\r\n\005vot" + "er\030\001 \001(\004\022\r\n\005proxy\030\002 \001(\004\022\021\n\tproducers\030\003 \003" + "(\004\032\221\001\n\023EosActionUpdateAuth\022\017\n\007account\030\001 " + "\001(\004\022\022\n\npermission\030\002 \001(\004\022\016\n\006parent\030\003 \001(\004\022" + "E\n\004auth\030\004 \001(\01327.hw.trezor.messages.eos.E" + "osTxActionAck.EosAuthorization\032:\n\023EosAct" + "ionDeleteAuth\022\017\n\007account\030\001 \001(\004\022\022\n\npermis" + "sion\030\002 \001(\004\032U\n\021EosActionLinkAuth\022\017\n\007accou" + "nt\030\001 \001(\004\022\014\n\004code\030\002 \001(\004\022\014\n\004type\030\003 \001(\004\022\023\n\013" + "requirement\030\004 \001(\004\032B\n\023EosActionUnlinkAuth" + "\022\017\n\007account\030\001 \001(\004\022\014\n\004code\030\002 \001(\004\022\014\n\004type\030" + "\003 \001(\004\032\305\001\n\023EosActionNewAccount\022\017\n\007creator" + "\030\001 \001(\004\022\014\n\004name\030\002 \001(\004\022F\n\005owner\030\003 \001(\01327.hw" + ".trezor.messages.eos.EosTxActionAck.EosA" + "uthorization\022G\n\006active\030\004 \001(\01327.hw.trezor" + ".messages.eos.EosTxActionAck.EosAuthoriz" + "ation\0329\n\020EosActionUnknown\022\021\n\tdata_size\030\001" + " \001(\r\022\022\n\ndata_chunk\030\002 \001(\014\"L\n\013EosSignedTx\022" + "\023\n\013signature_v\030\001 \001(\r\022\023\n\013signature_r\030\002 \001(" + "\014\022\023\n\013signature_s\030\003 \001(\014B7\n#com.satoshilab" + "s.trezor.lib.protobufB\020TrezorMessageEos" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 4119); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-eos.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2deos_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace eos { + +// =================================================================== + +void EosGetPublicKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosGetPublicKey::kAddressNFieldNumber; +const int EosGetPublicKey::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosGetPublicKey::EosGetPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosGetPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosGetPublicKey) +} +EosGetPublicKey::EosGetPublicKey(const EosGetPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosGetPublicKey) +} + +void EosGetPublicKey::SharedCtor() { + show_display_ = false; +} + +EosGetPublicKey::~EosGetPublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosGetPublicKey) + SharedDtor(); +} + +void EosGetPublicKey::SharedDtor() { +} + +void EosGetPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosGetPublicKey::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosGetPublicKey& EosGetPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosGetPublicKey.base); + return *internal_default_instance(); +} + + +void EosGetPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosGetPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosGetPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosGetPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosGetPublicKey) + return false; +#undef DO_ +} + +void EosGetPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosGetPublicKey) +} + +::google::protobuf::uint8* EosGetPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosGetPublicKey) + return target; +} + +size_t EosGetPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosGetPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosGetPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const EosGetPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosGetPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosGetPublicKey) + MergeFrom(*source); + } +} + +void EosGetPublicKey::MergeFrom(const EosGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void EosGetPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosGetPublicKey::CopyFrom(const EosGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosGetPublicKey::IsInitialized() const { + return true; +} + +void EosGetPublicKey::Swap(EosGetPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void EosGetPublicKey::InternalSwap(EosGetPublicKey* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosGetPublicKey::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosPublicKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosPublicKey::kWifPublicKeyFieldNumber; +const int EosPublicKey::kRawPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosPublicKey::EosPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosPublicKey) +} +EosPublicKey::EosPublicKey(const EosPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + wif_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_wif_public_key()) { + wif_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.wif_public_key_); + } + raw_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_raw_public_key()) { + raw_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_public_key_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosPublicKey) +} + +void EosPublicKey::SharedCtor() { + wif_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + raw_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +EosPublicKey::~EosPublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosPublicKey) + SharedDtor(); +} + +void EosPublicKey::SharedDtor() { + wif_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + raw_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EosPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosPublicKey::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosPublicKey& EosPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosPublicKey.base); + return *internal_default_instance(); +} + + +void EosPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + wif_public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + raw_public_key_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string wif_public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_wif_public_key())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->wif_public_key().data(), static_cast(this->wif_public_key().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.eos.EosPublicKey.wif_public_key"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes raw_public_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_raw_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosPublicKey) + return false; +#undef DO_ +} + +void EosPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string wif_public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->wif_public_key().data(), static_cast(this->wif_public_key().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.eos.EosPublicKey.wif_public_key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->wif_public_key(), output); + } + + // optional bytes raw_public_key = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->raw_public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosPublicKey) +} + +::google::protobuf::uint8* EosPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string wif_public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->wif_public_key().data(), static_cast(this->wif_public_key().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.eos.EosPublicKey.wif_public_key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->wif_public_key(), target); + } + + // optional bytes raw_public_key = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->raw_public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosPublicKey) + return target; +} + +size_t EosPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional string wif_public_key = 1; + if (has_wif_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->wif_public_key()); + } + + // optional bytes raw_public_key = 2; + if (has_raw_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->raw_public_key()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const EosPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosPublicKey) + MergeFrom(*source); + } +} + +void EosPublicKey::MergeFrom(const EosPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_wif_public_key(); + wif_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.wif_public_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_raw_public_key(); + raw_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_public_key_); + } + } +} + +void EosPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosPublicKey::CopyFrom(const EosPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosPublicKey::IsInitialized() const { + return true; +} + +void EosPublicKey::Swap(EosPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void EosPublicKey::InternalSwap(EosPublicKey* other) { + using std::swap; + wif_public_key_.Swap(&other->wif_public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + raw_public_key_.Swap(&other->raw_public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosPublicKey::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosSignTx_EosTxHeader::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosSignTx_EosTxHeader::kExpirationFieldNumber; +const int EosSignTx_EosTxHeader::kRefBlockNumFieldNumber; +const int EosSignTx_EosTxHeader::kRefBlockPrefixFieldNumber; +const int EosSignTx_EosTxHeader::kMaxNetUsageWordsFieldNumber; +const int EosSignTx_EosTxHeader::kMaxCpuUsageMsFieldNumber; +const int EosSignTx_EosTxHeader::kDelaySecFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosSignTx_EosTxHeader::EosSignTx_EosTxHeader() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosSignTx_EosTxHeader.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosSignTx.EosTxHeader) +} +EosSignTx_EosTxHeader::EosSignTx_EosTxHeader(const EosSignTx_EosTxHeader& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&expiration_, &from.expiration_, + static_cast(reinterpret_cast(&delay_sec_) - + reinterpret_cast(&expiration_)) + sizeof(delay_sec_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosSignTx.EosTxHeader) +} + +void EosSignTx_EosTxHeader::SharedCtor() { + ::memset(&expiration_, 0, static_cast( + reinterpret_cast(&delay_sec_) - + reinterpret_cast(&expiration_)) + sizeof(delay_sec_)); +} + +EosSignTx_EosTxHeader::~EosSignTx_EosTxHeader() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + SharedDtor(); +} + +void EosSignTx_EosTxHeader::SharedDtor() { +} + +void EosSignTx_EosTxHeader::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosSignTx_EosTxHeader::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosSignTx_EosTxHeader& EosSignTx_EosTxHeader::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosSignTx_EosTxHeader.base); + return *internal_default_instance(); +} + + +void EosSignTx_EosTxHeader::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 63u) { + ::memset(&expiration_, 0, static_cast( + reinterpret_cast(&delay_sec_) - + reinterpret_cast(&expiration_)) + sizeof(delay_sec_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosSignTx_EosTxHeader::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 expiration = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_expiration(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &expiration_))); + } else { + goto handle_unusual; + } + break; + } + + // required uint32 ref_block_num = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_ref_block_num(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &ref_block_num_))); + } else { + goto handle_unusual; + } + break; + } + + // required uint32 ref_block_prefix = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_ref_block_prefix(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &ref_block_prefix_))); + } else { + goto handle_unusual; + } + break; + } + + // required uint32 max_net_usage_words = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_max_net_usage_words(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &max_net_usage_words_))); + } else { + goto handle_unusual; + } + break; + } + + // required uint32 max_cpu_usage_ms = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_max_cpu_usage_ms(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &max_cpu_usage_ms_))); + } else { + goto handle_unusual; + } + break; + } + + // required uint32 delay_sec = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_delay_sec(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &delay_sec_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + return false; +#undef DO_ +} + +void EosSignTx_EosTxHeader::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 expiration = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->expiration(), output); + } + + // required uint32 ref_block_num = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->ref_block_num(), output); + } + + // required uint32 ref_block_prefix = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->ref_block_prefix(), output); + } + + // required uint32 max_net_usage_words = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->max_net_usage_words(), output); + } + + // required uint32 max_cpu_usage_ms = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->max_cpu_usage_ms(), output); + } + + // required uint32 delay_sec = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->delay_sec(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosSignTx.EosTxHeader) +} + +::google::protobuf::uint8* EosSignTx_EosTxHeader::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 expiration = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->expiration(), target); + } + + // required uint32 ref_block_num = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->ref_block_num(), target); + } + + // required uint32 ref_block_prefix = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->ref_block_prefix(), target); + } + + // required uint32 max_net_usage_words = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->max_net_usage_words(), target); + } + + // required uint32 max_cpu_usage_ms = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->max_cpu_usage_ms(), target); + } + + // required uint32 delay_sec = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->delay_sec(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + return target; +} + +size_t EosSignTx_EosTxHeader::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + size_t total_size = 0; + + if (has_expiration()) { + // required uint32 expiration = 1; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->expiration()); + } + + if (has_ref_block_num()) { + // required uint32 ref_block_num = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->ref_block_num()); + } + + if (has_ref_block_prefix()) { + // required uint32 ref_block_prefix = 3; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->ref_block_prefix()); + } + + if (has_max_net_usage_words()) { + // required uint32 max_net_usage_words = 4; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->max_net_usage_words()); + } + + if (has_max_cpu_usage_ms()) { + // required uint32 max_cpu_usage_ms = 5; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->max_cpu_usage_ms()); + } + + if (has_delay_sec()) { + // required uint32 delay_sec = 6; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->delay_sec()); + } + + return total_size; +} +size_t EosSignTx_EosTxHeader::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. + // required uint32 expiration = 1; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->expiration()); + + // required uint32 ref_block_num = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->ref_block_num()); + + // required uint32 ref_block_prefix = 3; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->ref_block_prefix()); + + // required uint32 max_net_usage_words = 4; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->max_net_usage_words()); + + // required uint32 max_cpu_usage_ms = 5; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->max_cpu_usage_ms()); + + // required uint32 delay_sec = 6; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->delay_sec()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosSignTx_EosTxHeader::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + GOOGLE_DCHECK_NE(&from, this); + const EosSignTx_EosTxHeader* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + MergeFrom(*source); + } +} + +void EosSignTx_EosTxHeader::MergeFrom(const EosSignTx_EosTxHeader& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + expiration_ = from.expiration_; + } + if (cached_has_bits & 0x00000002u) { + ref_block_num_ = from.ref_block_num_; + } + if (cached_has_bits & 0x00000004u) { + ref_block_prefix_ = from.ref_block_prefix_; + } + if (cached_has_bits & 0x00000008u) { + max_net_usage_words_ = from.max_net_usage_words_; + } + if (cached_has_bits & 0x00000010u) { + max_cpu_usage_ms_ = from.max_cpu_usage_ms_; + } + if (cached_has_bits & 0x00000020u) { + delay_sec_ = from.delay_sec_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosSignTx_EosTxHeader::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosSignTx_EosTxHeader::CopyFrom(const EosSignTx_EosTxHeader& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosSignTx_EosTxHeader::IsInitialized() const { + if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; + return true; +} + +void EosSignTx_EosTxHeader::Swap(EosSignTx_EosTxHeader* other) { + if (other == this) return; + InternalSwap(other); +} +void EosSignTx_EosTxHeader::InternalSwap(EosSignTx_EosTxHeader* other) { + using std::swap; + swap(expiration_, other->expiration_); + swap(ref_block_num_, other->ref_block_num_); + swap(ref_block_prefix_, other->ref_block_prefix_); + swap(max_net_usage_words_, other->max_net_usage_words_); + swap(max_cpu_usage_ms_, other->max_cpu_usage_ms_); + swap(delay_sec_, other->delay_sec_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosSignTx_EosTxHeader::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosSignTx::InitAsDefaultInstance() { + ::hw::trezor::messages::eos::_EosSignTx_default_instance_._instance.get_mutable()->header_ = const_cast< ::hw::trezor::messages::eos::EosSignTx_EosTxHeader*>( + ::hw::trezor::messages::eos::EosSignTx_EosTxHeader::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosSignTx::kAddressNFieldNumber; +const int EosSignTx::kChainIdFieldNumber; +const int EosSignTx::kHeaderFieldNumber; +const int EosSignTx::kNumActionsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosSignTx::EosSignTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosSignTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosSignTx) +} +EosSignTx::EosSignTx(const EosSignTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + chain_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_chain_id()) { + chain_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chain_id_); + } + if (from.has_header()) { + header_ = new ::hw::trezor::messages::eos::EosSignTx_EosTxHeader(*from.header_); + } else { + header_ = NULL; + } + num_actions_ = from.num_actions_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosSignTx) +} + +void EosSignTx::SharedCtor() { + chain_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&header_, 0, static_cast( + reinterpret_cast(&num_actions_) - + reinterpret_cast(&header_)) + sizeof(num_actions_)); +} + +EosSignTx::~EosSignTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosSignTx) + SharedDtor(); +} + +void EosSignTx::SharedDtor() { + chain_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete header_; +} + +void EosSignTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosSignTx::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosSignTx& EosSignTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosSignTx.base); + return *internal_default_instance(); +} + + +void EosSignTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + chain_id_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(header_ != NULL); + header_->Clear(); + } + } + num_actions_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosSignTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosSignTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes chain_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_chain_id())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosSignTx.EosTxHeader header = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_header())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 num_actions = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_num_actions(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &num_actions_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosSignTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosSignTx) + return false; +#undef DO_ +} + +void EosSignTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bytes chain_id = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->chain_id(), output); + } + + // optional .hw.trezor.messages.eos.EosSignTx.EosTxHeader header = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_header(), output); + } + + // optional uint32 num_actions = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->num_actions(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosSignTx) +} + +::google::protobuf::uint8* EosSignTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bytes chain_id = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->chain_id(), target); + } + + // optional .hw.trezor.messages.eos.EosSignTx.EosTxHeader header = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_header(), deterministic, target); + } + + // optional uint32 num_actions = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->num_actions(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosSignTx) + return target; +} + +size_t EosSignTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosSignTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 7u) { + // optional bytes chain_id = 2; + if (has_chain_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->chain_id()); + } + + // optional .hw.trezor.messages.eos.EosSignTx.EosTxHeader header = 3; + if (has_header()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *header_); + } + + // optional uint32 num_actions = 4; + if (has_num_actions()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num_actions()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosSignTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosSignTx) + GOOGLE_DCHECK_NE(&from, this); + const EosSignTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosSignTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosSignTx) + MergeFrom(*source); + } +} + +void EosSignTx::MergeFrom(const EosSignTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosSignTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_chain_id(); + chain_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chain_id_); + } + if (cached_has_bits & 0x00000002u) { + mutable_header()->::hw::trezor::messages::eos::EosSignTx_EosTxHeader::MergeFrom(from.header()); + } + if (cached_has_bits & 0x00000004u) { + num_actions_ = from.num_actions_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosSignTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosSignTx::CopyFrom(const EosSignTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosSignTx::IsInitialized() const { + if (has_header()) { + if (!this->header_->IsInitialized()) return false; + } + return true; +} + +void EosSignTx::Swap(EosSignTx* other) { + if (other == this) return; + InternalSwap(other); +} +void EosSignTx::InternalSwap(EosSignTx* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + chain_id_.Swap(&other->chain_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(header_, other->header_); + swap(num_actions_, other->num_actions_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosSignTx::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionRequest::kDataSizeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionRequest::EosTxActionRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionRequest) +} +EosTxActionRequest::EosTxActionRequest(const EosTxActionRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_size_ = from.data_size_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionRequest) +} + +void EosTxActionRequest::SharedCtor() { + data_size_ = 0u; +} + +EosTxActionRequest::~EosTxActionRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionRequest) + SharedDtor(); +} + +void EosTxActionRequest::SharedDtor() { +} + +void EosTxActionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionRequest::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionRequest& EosTxActionRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionRequest.base); + return *internal_default_instance(); +} + + +void EosTxActionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_size_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 data_size = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_data_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &data_size_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionRequest) + return false; +#undef DO_ +} + +void EosTxActionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 data_size = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->data_size(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionRequest) +} + +::google::protobuf::uint8* EosTxActionRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 data_size = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->data_size(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionRequest) + return target; +} + +size_t EosTxActionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional uint32 data_size = 1; + if (has_data_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->data_size()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionRequest) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionRequest) + MergeFrom(*source); + } +} + +void EosTxActionRequest::MergeFrom(const EosTxActionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_data_size()) { + set_data_size(from.data_size()); + } +} + +void EosTxActionRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionRequest::CopyFrom(const EosTxActionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionRequest::IsInitialized() const { + return true; +} + +void EosTxActionRequest::Swap(EosTxActionRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionRequest::InternalSwap(EosTxActionRequest* other) { + using std::swap; + swap(data_size_, other->data_size_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionRequest::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosAsset::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosAsset::kAmountFieldNumber; +const int EosTxActionAck_EosAsset::kSymbolFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosAsset::EosTxActionAck_EosAsset() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAsset.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosAsset) +} +EosTxActionAck_EosAsset::EosTxActionAck_EosAsset(const EosTxActionAck_EosAsset& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&amount_, &from.amount_, + static_cast(reinterpret_cast(&symbol_) - + reinterpret_cast(&amount_)) + sizeof(symbol_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosAsset) +} + +void EosTxActionAck_EosAsset::SharedCtor() { + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&symbol_) - + reinterpret_cast(&amount_)) + sizeof(symbol_)); +} + +EosTxActionAck_EosAsset::~EosTxActionAck_EosAsset() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + SharedDtor(); +} + +void EosTxActionAck_EosAsset::SharedDtor() { +} + +void EosTxActionAck_EosAsset::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosAsset::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosAsset& EosTxActionAck_EosAsset::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAsset.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosAsset::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&symbol_) - + reinterpret_cast(&amount_)) + sizeof(symbol_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosAsset::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional sint64 amount = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 symbol = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_symbol(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &symbol_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + return false; +#undef DO_ +} + +void EosTxActionAck_EosAsset::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional sint64 amount = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteSInt64(1, this->amount(), output); + } + + // optional uint64 symbol = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->symbol(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosAsset) +} + +::google::protobuf::uint8* EosTxActionAck_EosAsset::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional sint64 amount = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(1, this->amount(), target); + } + + // optional uint64 symbol = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->symbol(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + return target; +} + +size_t EosTxActionAck_EosAsset::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional sint64 amount = 1; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::SInt64Size( + this->amount()); + } + + // optional uint64 symbol = 2; + if (has_symbol()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->symbol()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosAsset::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosAsset* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosAsset::MergeFrom(const EosTxActionAck_EosAsset& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000002u) { + symbol_ = from.symbol_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosAsset::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosAsset::CopyFrom(const EosTxActionAck_EosAsset& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosAsset::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosAsset::Swap(EosTxActionAck_EosAsset* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosAsset::InternalSwap(EosTxActionAck_EosAsset* other) { + using std::swap; + swap(amount_, other->amount_); + swap(symbol_, other->symbol_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosAsset::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosPermissionLevel::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosPermissionLevel::kActorFieldNumber; +const int EosTxActionAck_EosPermissionLevel::kPermissionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosPermissionLevel::EosTxActionAck_EosPermissionLevel() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosPermissionLevel.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) +} +EosTxActionAck_EosPermissionLevel::EosTxActionAck_EosPermissionLevel(const EosTxActionAck_EosPermissionLevel& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&actor_, &from.actor_, + static_cast(reinterpret_cast(&permission_) - + reinterpret_cast(&actor_)) + sizeof(permission_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) +} + +void EosTxActionAck_EosPermissionLevel::SharedCtor() { + ::memset(&actor_, 0, static_cast( + reinterpret_cast(&permission_) - + reinterpret_cast(&actor_)) + sizeof(permission_)); +} + +EosTxActionAck_EosPermissionLevel::~EosTxActionAck_EosPermissionLevel() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + SharedDtor(); +} + +void EosTxActionAck_EosPermissionLevel::SharedDtor() { +} + +void EosTxActionAck_EosPermissionLevel::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosPermissionLevel::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosPermissionLevel& EosTxActionAck_EosPermissionLevel::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosPermissionLevel.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosPermissionLevel::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&actor_, 0, static_cast( + reinterpret_cast(&permission_) - + reinterpret_cast(&actor_)) + sizeof(permission_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosPermissionLevel::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 actor = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_actor(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &actor_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 permission = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_permission(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &permission_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + return false; +#undef DO_ +} + +void EosTxActionAck_EosPermissionLevel::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 actor = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->actor(), output); + } + + // optional uint64 permission = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->permission(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) +} + +::google::protobuf::uint8* EosTxActionAck_EosPermissionLevel::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 actor = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->actor(), target); + } + + // optional uint64 permission = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->permission(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + return target; +} + +size_t EosTxActionAck_EosPermissionLevel::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional uint64 actor = 1; + if (has_actor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->actor()); + } + + // optional uint64 permission = 2; + if (has_permission()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->permission()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosPermissionLevel::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosPermissionLevel* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosPermissionLevel::MergeFrom(const EosTxActionAck_EosPermissionLevel& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + actor_ = from.actor_; + } + if (cached_has_bits & 0x00000002u) { + permission_ = from.permission_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosPermissionLevel::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosPermissionLevel::CopyFrom(const EosTxActionAck_EosPermissionLevel& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosPermissionLevel::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosPermissionLevel::Swap(EosTxActionAck_EosPermissionLevel* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosPermissionLevel::InternalSwap(EosTxActionAck_EosPermissionLevel* other) { + using std::swap; + swap(actor_, other->actor_); + swap(permission_, other->permission_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosPermissionLevel::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosAuthorizationKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosAuthorizationKey::kTypeFieldNumber; +const int EosTxActionAck_EosAuthorizationKey::kKeyFieldNumber; +const int EosTxActionAck_EosAuthorizationKey::kAddressNFieldNumber; +const int EosTxActionAck_EosAuthorizationKey::kWeightFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosAuthorizationKey::EosTxActionAck_EosAuthorizationKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorizationKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) +} +EosTxActionAck_EosAuthorizationKey::EosTxActionAck_EosAuthorizationKey(const EosTxActionAck_EosAuthorizationKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_key()) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + ::memcpy(&type_, &from.type_, + static_cast(reinterpret_cast(&weight_) - + reinterpret_cast(&type_)) + sizeof(weight_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) +} + +void EosTxActionAck_EosAuthorizationKey::SharedCtor() { + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&type_, 0, static_cast( + reinterpret_cast(&weight_) - + reinterpret_cast(&type_)) + sizeof(weight_)); +} + +EosTxActionAck_EosAuthorizationKey::~EosTxActionAck_EosAuthorizationKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + SharedDtor(); +} + +void EosTxActionAck_EosAuthorizationKey::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EosTxActionAck_EosAuthorizationKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosAuthorizationKey::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosAuthorizationKey& EosTxActionAck_EosAuthorizationKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorizationKey.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosAuthorizationKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 6u) { + ::memset(&type_, 0, static_cast( + reinterpret_cast(&weight_) - + reinterpret_cast(&type_)) + sizeof(weight_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosAuthorizationKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_key())); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 address_n = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 24u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 weight = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_weight(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &weight_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + return false; +#undef DO_ +} + +void EosTxActionAck_EosAuthorizationKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 type = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output); + } + + // optional bytes key = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->key(), output); + } + + // repeated uint32 address_n = 3; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 3, this->address_n(i), output); + } + + // optional uint32 weight = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->weight(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) +} + +::google::protobuf::uint8* EosTxActionAck_EosAuthorizationKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 type = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target); + } + + // optional bytes key = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->key(), target); + } + + // repeated uint32 address_n = 3; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(3, this->address_n_, target); + + // optional uint32 weight = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->weight(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + return target; +} + +size_t EosTxActionAck_EosAuthorizationKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 3; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 7u) { + // optional bytes key = 2; + if (has_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->key()); + } + + // optional uint32 type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->type()); + } + + // optional uint32 weight = 4; + if (has_weight()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->weight()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosAuthorizationKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosAuthorizationKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosAuthorizationKey::MergeFrom(const EosTxActionAck_EosAuthorizationKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_key(); + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (cached_has_bits & 0x00000002u) { + type_ = from.type_; + } + if (cached_has_bits & 0x00000004u) { + weight_ = from.weight_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosAuthorizationKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosAuthorizationKey::CopyFrom(const EosTxActionAck_EosAuthorizationKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosAuthorizationKey::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosAuthorizationKey::Swap(EosTxActionAck_EosAuthorizationKey* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosAuthorizationKey::InternalSwap(EosTxActionAck_EosAuthorizationKey* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); + swap(weight_, other->weight_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosAuthorizationKey::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosAuthorizationAccount::InitAsDefaultInstance() { + ::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorizationAccount_default_instance_._instance.get_mutable()->account_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosAuthorizationAccount::kAccountFieldNumber; +const int EosTxActionAck_EosAuthorizationAccount::kWeightFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosAuthorizationAccount::EosTxActionAck_EosAuthorizationAccount() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorizationAccount.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) +} +EosTxActionAck_EosAuthorizationAccount::EosTxActionAck_EosAuthorizationAccount(const EosTxActionAck_EosAuthorizationAccount& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_account()) { + account_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel(*from.account_); + } else { + account_ = NULL; + } + weight_ = from.weight_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) +} + +void EosTxActionAck_EosAuthorizationAccount::SharedCtor() { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&weight_) - + reinterpret_cast(&account_)) + sizeof(weight_)); +} + +EosTxActionAck_EosAuthorizationAccount::~EosTxActionAck_EosAuthorizationAccount() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + SharedDtor(); +} + +void EosTxActionAck_EosAuthorizationAccount::SharedDtor() { + if (this != internal_default_instance()) delete account_; +} + +void EosTxActionAck_EosAuthorizationAccount::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosAuthorizationAccount::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosAuthorizationAccount& EosTxActionAck_EosAuthorizationAccount::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorizationAccount.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosAuthorizationAccount::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(account_ != NULL); + account_->Clear(); + } + weight_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosAuthorizationAccount::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_account())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 weight = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_weight(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &weight_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + return false; +#undef DO_ +} + +void EosTxActionAck_EosAuthorizationAccount::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_account(), output); + } + + // optional uint32 weight = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->weight(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) +} + +::google::protobuf::uint8* EosTxActionAck_EosAuthorizationAccount::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel account = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_account(), deterministic, target); + } + + // optional uint32 weight = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->weight(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + return target; +} + +size_t EosTxActionAck_EosAuthorizationAccount::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel account = 1; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *account_); + } + + // optional uint32 weight = 2; + if (has_weight()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->weight()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosAuthorizationAccount::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosAuthorizationAccount* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosAuthorizationAccount::MergeFrom(const EosTxActionAck_EosAuthorizationAccount& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + mutable_account()->::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel::MergeFrom(from.account()); + } + if (cached_has_bits & 0x00000002u) { + weight_ = from.weight_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosAuthorizationAccount::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosAuthorizationAccount::CopyFrom(const EosTxActionAck_EosAuthorizationAccount& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosAuthorizationAccount::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosAuthorizationAccount::Swap(EosTxActionAck_EosAuthorizationAccount* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosAuthorizationAccount::InternalSwap(EosTxActionAck_EosAuthorizationAccount* other) { + using std::swap; + swap(account_, other->account_); + swap(weight_, other->weight_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosAuthorizationAccount::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosAuthorizationWait::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosAuthorizationWait::kWaitSecFieldNumber; +const int EosTxActionAck_EosAuthorizationWait::kWeightFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosAuthorizationWait::EosTxActionAck_EosAuthorizationWait() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorizationWait.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) +} +EosTxActionAck_EosAuthorizationWait::EosTxActionAck_EosAuthorizationWait(const EosTxActionAck_EosAuthorizationWait& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&wait_sec_, &from.wait_sec_, + static_cast(reinterpret_cast(&weight_) - + reinterpret_cast(&wait_sec_)) + sizeof(weight_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) +} + +void EosTxActionAck_EosAuthorizationWait::SharedCtor() { + ::memset(&wait_sec_, 0, static_cast( + reinterpret_cast(&weight_) - + reinterpret_cast(&wait_sec_)) + sizeof(weight_)); +} + +EosTxActionAck_EosAuthorizationWait::~EosTxActionAck_EosAuthorizationWait() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + SharedDtor(); +} + +void EosTxActionAck_EosAuthorizationWait::SharedDtor() { +} + +void EosTxActionAck_EosAuthorizationWait::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosAuthorizationWait::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosAuthorizationWait& EosTxActionAck_EosAuthorizationWait::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorizationWait.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosAuthorizationWait::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&wait_sec_, 0, static_cast( + reinterpret_cast(&weight_) - + reinterpret_cast(&wait_sec_)) + sizeof(weight_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosAuthorizationWait::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 wait_sec = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_wait_sec(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &wait_sec_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 weight = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_weight(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &weight_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + return false; +#undef DO_ +} + +void EosTxActionAck_EosAuthorizationWait::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 wait_sec = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->wait_sec(), output); + } + + // optional uint32 weight = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->weight(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) +} + +::google::protobuf::uint8* EosTxActionAck_EosAuthorizationWait::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 wait_sec = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->wait_sec(), target); + } + + // optional uint32 weight = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->weight(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + return target; +} + +size_t EosTxActionAck_EosAuthorizationWait::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional uint32 wait_sec = 1; + if (has_wait_sec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->wait_sec()); + } + + // optional uint32 weight = 2; + if (has_weight()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->weight()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosAuthorizationWait::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosAuthorizationWait* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosAuthorizationWait::MergeFrom(const EosTxActionAck_EosAuthorizationWait& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + wait_sec_ = from.wait_sec_; + } + if (cached_has_bits & 0x00000002u) { + weight_ = from.weight_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosAuthorizationWait::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosAuthorizationWait::CopyFrom(const EosTxActionAck_EosAuthorizationWait& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosAuthorizationWait::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosAuthorizationWait::Swap(EosTxActionAck_EosAuthorizationWait* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosAuthorizationWait::InternalSwap(EosTxActionAck_EosAuthorizationWait* other) { + using std::swap; + swap(wait_sec_, other->wait_sec_); + swap(weight_, other->weight_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosAuthorizationWait::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosAuthorization::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosAuthorization::kThresholdFieldNumber; +const int EosTxActionAck_EosAuthorization::kKeysFieldNumber; +const int EosTxActionAck_EosAuthorization::kAccountsFieldNumber; +const int EosTxActionAck_EosAuthorization::kWaitsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosAuthorization::EosTxActionAck_EosAuthorization() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorization.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) +} +EosTxActionAck_EosAuthorization::EosTxActionAck_EosAuthorization(const EosTxActionAck_EosAuthorization& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + keys_(from.keys_), + accounts_(from.accounts_), + waits_(from.waits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + threshold_ = from.threshold_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) +} + +void EosTxActionAck_EosAuthorization::SharedCtor() { + threshold_ = 0u; +} + +EosTxActionAck_EosAuthorization::~EosTxActionAck_EosAuthorization() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + SharedDtor(); +} + +void EosTxActionAck_EosAuthorization::SharedDtor() { +} + +void EosTxActionAck_EosAuthorization::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosAuthorization::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosAuthorization& EosTxActionAck_EosAuthorization::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosAuthorization.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosAuthorization::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + keys_.Clear(); + accounts_.Clear(); + waits_.Clear(); + threshold_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosAuthorization::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 threshold = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_threshold(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &threshold_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey keys = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_keys())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount accounts = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_accounts())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait waits = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_waits())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + return false; +#undef DO_ +} + +void EosTxActionAck_EosAuthorization::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 threshold = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->threshold(), output); + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey keys = 2; + for (unsigned int i = 0, + n = static_cast(this->keys_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->keys(static_cast(i)), + output); + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount accounts = 3; + for (unsigned int i = 0, + n = static_cast(this->accounts_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->accounts(static_cast(i)), + output); + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait waits = 4; + for (unsigned int i = 0, + n = static_cast(this->waits_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->waits(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) +} + +::google::protobuf::uint8* EosTxActionAck_EosAuthorization::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 threshold = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->threshold(), target); + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey keys = 2; + for (unsigned int i = 0, + n = static_cast(this->keys_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->keys(static_cast(i)), deterministic, target); + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount accounts = 3; + for (unsigned int i = 0, + n = static_cast(this->accounts_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->accounts(static_cast(i)), deterministic, target); + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait waits = 4; + for (unsigned int i = 0, + n = static_cast(this->waits_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->waits(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + return target; +} + +size_t EosTxActionAck_EosAuthorization::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey keys = 2; + { + unsigned int count = static_cast(this->keys_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->keys(static_cast(i))); + } + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount accounts = 3; + { + unsigned int count = static_cast(this->accounts_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->accounts(static_cast(i))); + } + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait waits = 4; + { + unsigned int count = static_cast(this->waits_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->waits(static_cast(i))); + } + } + + // optional uint32 threshold = 1; + if (has_threshold()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->threshold()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosAuthorization::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosAuthorization* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosAuthorization::MergeFrom(const EosTxActionAck_EosAuthorization& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + keys_.MergeFrom(from.keys_); + accounts_.MergeFrom(from.accounts_); + waits_.MergeFrom(from.waits_); + if (from.has_threshold()) { + set_threshold(from.threshold()); + } +} + +void EosTxActionAck_EosAuthorization::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosAuthorization::CopyFrom(const EosTxActionAck_EosAuthorization& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosAuthorization::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosAuthorization::Swap(EosTxActionAck_EosAuthorization* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosAuthorization::InternalSwap(EosTxActionAck_EosAuthorization* other) { + using std::swap; + CastToBase(&keys_)->InternalSwap(CastToBase(&other->keys_)); + CastToBase(&accounts_)->InternalSwap(CastToBase(&other->accounts_)); + CastToBase(&waits_)->InternalSwap(CastToBase(&other->waits_)); + swap(threshold_, other->threshold_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosAuthorization::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionCommon::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionCommon::kAccountFieldNumber; +const int EosTxActionAck_EosActionCommon::kNameFieldNumber; +const int EosTxActionAck_EosActionCommon::kAuthorizationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionCommon::EosTxActionAck_EosActionCommon() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionCommon.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) +} +EosTxActionAck_EosActionCommon::EosTxActionAck_EosActionCommon(const EosTxActionAck_EosActionCommon& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + authorization_(from.authorization_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&account_, &from.account_, + static_cast(reinterpret_cast(&name_) - + reinterpret_cast(&account_)) + sizeof(name_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) +} + +void EosTxActionAck_EosActionCommon::SharedCtor() { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&name_) - + reinterpret_cast(&account_)) + sizeof(name_)); +} + +EosTxActionAck_EosActionCommon::~EosTxActionAck_EosActionCommon() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + SharedDtor(); +} + +void EosTxActionAck_EosActionCommon::SharedDtor() { +} + +void EosTxActionAck_EosActionCommon::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionCommon::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionCommon& EosTxActionAck_EosActionCommon::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionCommon.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionCommon::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + authorization_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&name_) - + reinterpret_cast(&account_)) + sizeof(name_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionCommon::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_account(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &account_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_name(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &name_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel authorization = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_authorization())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionCommon::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->account(), output); + } + + // optional uint64 name = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->name(), output); + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel authorization = 3; + for (unsigned int i = 0, + n = static_cast(this->authorization_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->authorization(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionCommon::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->account(), target); + } + + // optional uint64 name = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->name(), target); + } + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel authorization = 3; + for (unsigned int i = 0, + n = static_cast(this->authorization_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->authorization(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + return target; +} + +size_t EosTxActionAck_EosActionCommon::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel authorization = 3; + { + unsigned int count = static_cast(this->authorization_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->authorization(static_cast(i))); + } + } + + if (_has_bits_[0 / 32] & 3u) { + // optional uint64 account = 1; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->account()); + } + + // optional uint64 name = 2; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->name()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionCommon::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionCommon* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionCommon::MergeFrom(const EosTxActionAck_EosActionCommon& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + authorization_.MergeFrom(from.authorization_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + account_ = from.account_; + } + if (cached_has_bits & 0x00000002u) { + name_ = from.name_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionCommon::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionCommon::CopyFrom(const EosTxActionAck_EosActionCommon& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionCommon::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionCommon::Swap(EosTxActionAck_EosActionCommon* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionCommon::InternalSwap(EosTxActionAck_EosActionCommon* other) { + using std::swap; + CastToBase(&authorization_)->InternalSwap(CastToBase(&other->authorization_)); + swap(account_, other->account_); + swap(name_, other->name_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionCommon::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionTransfer::InitAsDefaultInstance() { + ::hw::trezor::messages::eos::_EosTxActionAck_EosActionTransfer_default_instance_._instance.get_mutable()->quantity_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosAsset*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionTransfer::kSenderFieldNumber; +const int EosTxActionAck_EosActionTransfer::kReceiverFieldNumber; +const int EosTxActionAck_EosActionTransfer::kQuantityFieldNumber; +const int EosTxActionAck_EosActionTransfer::kMemoFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionTransfer::EosTxActionAck_EosActionTransfer() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionTransfer.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) +} +EosTxActionAck_EosActionTransfer::EosTxActionAck_EosActionTransfer(const EosTxActionAck_EosActionTransfer& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + memo_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_memo()) { + memo_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memo_); + } + if (from.has_quantity()) { + quantity_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosAsset(*from.quantity_); + } else { + quantity_ = NULL; + } + ::memcpy(&sender_, &from.sender_, + static_cast(reinterpret_cast(&receiver_) - + reinterpret_cast(&sender_)) + sizeof(receiver_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) +} + +void EosTxActionAck_EosActionTransfer::SharedCtor() { + memo_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&quantity_, 0, static_cast( + reinterpret_cast(&receiver_) - + reinterpret_cast(&quantity_)) + sizeof(receiver_)); +} + +EosTxActionAck_EosActionTransfer::~EosTxActionAck_EosActionTransfer() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + SharedDtor(); +} + +void EosTxActionAck_EosActionTransfer::SharedDtor() { + memo_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete quantity_; +} + +void EosTxActionAck_EosActionTransfer::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionTransfer::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionTransfer& EosTxActionAck_EosActionTransfer::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionTransfer.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionTransfer::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + memo_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(quantity_ != NULL); + quantity_->Clear(); + } + } + if (cached_has_bits & 12u) { + ::memset(&sender_, 0, static_cast( + reinterpret_cast(&receiver_) - + reinterpret_cast(&sender_)) + sizeof(receiver_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionTransfer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 sender = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_sender(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &sender_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 receiver = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_receiver(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &receiver_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_quantity())); + } else { + goto handle_unusual; + } + break; + } + + // optional string memo = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_memo())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->memo().data(), static_cast(this->memo().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.memo"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionTransfer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 sender = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->sender(), output); + } + + // optional uint64 receiver = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->receiver(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_quantity(), output); + } + + // optional string memo = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->memo().data(), static_cast(this->memo().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.memo"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->memo(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionTransfer::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 sender = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->sender(), target); + } + + // optional uint64 receiver = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->receiver(), target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_quantity(), deterministic, target); + } + + // optional string memo = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->memo().data(), static_cast(this->memo().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.memo"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->memo(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + return target; +} + +size_t EosTxActionAck_EosActionTransfer::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional string memo = 4; + if (has_memo()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->memo()); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; + if (has_quantity()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *quantity_); + } + + // optional uint64 sender = 1; + if (has_sender()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->sender()); + } + + // optional uint64 receiver = 2; + if (has_receiver()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->receiver()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionTransfer::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionTransfer* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionTransfer::MergeFrom(const EosTxActionAck_EosActionTransfer& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_memo(); + memo_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memo_); + } + if (cached_has_bits & 0x00000002u) { + mutable_quantity()->::hw::trezor::messages::eos::EosTxActionAck_EosAsset::MergeFrom(from.quantity()); + } + if (cached_has_bits & 0x00000004u) { + sender_ = from.sender_; + } + if (cached_has_bits & 0x00000008u) { + receiver_ = from.receiver_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionTransfer::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionTransfer::CopyFrom(const EosTxActionAck_EosActionTransfer& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionTransfer::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionTransfer::Swap(EosTxActionAck_EosActionTransfer* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionTransfer::InternalSwap(EosTxActionAck_EosActionTransfer* other) { + using std::swap; + memo_.Swap(&other->memo_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(quantity_, other->quantity_); + swap(sender_, other->sender_); + swap(receiver_, other->receiver_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionTransfer::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionDelegate::InitAsDefaultInstance() { + ::hw::trezor::messages::eos::_EosTxActionAck_EosActionDelegate_default_instance_._instance.get_mutable()->net_quantity_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosAsset*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_EosActionDelegate_default_instance_._instance.get_mutable()->cpu_quantity_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosAsset*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionDelegate::kSenderFieldNumber; +const int EosTxActionAck_EosActionDelegate::kReceiverFieldNumber; +const int EosTxActionAck_EosActionDelegate::kNetQuantityFieldNumber; +const int EosTxActionAck_EosActionDelegate::kCpuQuantityFieldNumber; +const int EosTxActionAck_EosActionDelegate::kTransferFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionDelegate::EosTxActionAck_EosActionDelegate() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionDelegate.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) +} +EosTxActionAck_EosActionDelegate::EosTxActionAck_EosActionDelegate(const EosTxActionAck_EosActionDelegate& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_net_quantity()) { + net_quantity_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosAsset(*from.net_quantity_); + } else { + net_quantity_ = NULL; + } + if (from.has_cpu_quantity()) { + cpu_quantity_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosAsset(*from.cpu_quantity_); + } else { + cpu_quantity_ = NULL; + } + ::memcpy(&sender_, &from.sender_, + static_cast(reinterpret_cast(&transfer_) - + reinterpret_cast(&sender_)) + sizeof(transfer_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) +} + +void EosTxActionAck_EosActionDelegate::SharedCtor() { + ::memset(&net_quantity_, 0, static_cast( + reinterpret_cast(&transfer_) - + reinterpret_cast(&net_quantity_)) + sizeof(transfer_)); +} + +EosTxActionAck_EosActionDelegate::~EosTxActionAck_EosActionDelegate() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + SharedDtor(); +} + +void EosTxActionAck_EosActionDelegate::SharedDtor() { + if (this != internal_default_instance()) delete net_quantity_; + if (this != internal_default_instance()) delete cpu_quantity_; +} + +void EosTxActionAck_EosActionDelegate::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionDelegate::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionDelegate& EosTxActionAck_EosActionDelegate::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionDelegate.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionDelegate::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(net_quantity_ != NULL); + net_quantity_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(cpu_quantity_ != NULL); + cpu_quantity_->Clear(); + } + } + if (cached_has_bits & 28u) { + ::memset(&sender_, 0, static_cast( + reinterpret_cast(&transfer_) - + reinterpret_cast(&sender_)) + sizeof(transfer_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionDelegate::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 sender = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_sender(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &sender_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 receiver = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_receiver(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &receiver_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_net_quantity())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_cpu_quantity())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool transfer = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_transfer(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &transfer_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionDelegate::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 sender = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->sender(), output); + } + + // optional uint64 receiver = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->receiver(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_net_quantity(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_cpu_quantity(), output); + } + + // optional bool transfer = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->transfer(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionDelegate::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 sender = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->sender(), target); + } + + // optional uint64 receiver = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->receiver(), target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_net_quantity(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_cpu_quantity(), deterministic, target); + } + + // optional bool transfer = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->transfer(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + return target; +} + +size_t EosTxActionAck_EosActionDelegate::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 31u) { + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; + if (has_net_quantity()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *net_quantity_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; + if (has_cpu_quantity()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *cpu_quantity_); + } + + // optional uint64 sender = 1; + if (has_sender()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->sender()); + } + + // optional uint64 receiver = 2; + if (has_receiver()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->receiver()); + } + + // optional bool transfer = 5; + if (has_transfer()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionDelegate::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionDelegate* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionDelegate::MergeFrom(const EosTxActionAck_EosActionDelegate& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + mutable_net_quantity()->::hw::trezor::messages::eos::EosTxActionAck_EosAsset::MergeFrom(from.net_quantity()); + } + if (cached_has_bits & 0x00000002u) { + mutable_cpu_quantity()->::hw::trezor::messages::eos::EosTxActionAck_EosAsset::MergeFrom(from.cpu_quantity()); + } + if (cached_has_bits & 0x00000004u) { + sender_ = from.sender_; + } + if (cached_has_bits & 0x00000008u) { + receiver_ = from.receiver_; + } + if (cached_has_bits & 0x00000010u) { + transfer_ = from.transfer_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionDelegate::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionDelegate::CopyFrom(const EosTxActionAck_EosActionDelegate& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionDelegate::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionDelegate::Swap(EosTxActionAck_EosActionDelegate* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionDelegate::InternalSwap(EosTxActionAck_EosActionDelegate* other) { + using std::swap; + swap(net_quantity_, other->net_quantity_); + swap(cpu_quantity_, other->cpu_quantity_); + swap(sender_, other->sender_); + swap(receiver_, other->receiver_); + swap(transfer_, other->transfer_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionDelegate::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionUndelegate::InitAsDefaultInstance() { + ::hw::trezor::messages::eos::_EosTxActionAck_EosActionUndelegate_default_instance_._instance.get_mutable()->net_quantity_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosAsset*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_EosActionUndelegate_default_instance_._instance.get_mutable()->cpu_quantity_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosAsset*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionUndelegate::kSenderFieldNumber; +const int EosTxActionAck_EosActionUndelegate::kReceiverFieldNumber; +const int EosTxActionAck_EosActionUndelegate::kNetQuantityFieldNumber; +const int EosTxActionAck_EosActionUndelegate::kCpuQuantityFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionUndelegate::EosTxActionAck_EosActionUndelegate() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUndelegate.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) +} +EosTxActionAck_EosActionUndelegate::EosTxActionAck_EosActionUndelegate(const EosTxActionAck_EosActionUndelegate& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_net_quantity()) { + net_quantity_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosAsset(*from.net_quantity_); + } else { + net_quantity_ = NULL; + } + if (from.has_cpu_quantity()) { + cpu_quantity_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosAsset(*from.cpu_quantity_); + } else { + cpu_quantity_ = NULL; + } + ::memcpy(&sender_, &from.sender_, + static_cast(reinterpret_cast(&receiver_) - + reinterpret_cast(&sender_)) + sizeof(receiver_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) +} + +void EosTxActionAck_EosActionUndelegate::SharedCtor() { + ::memset(&net_quantity_, 0, static_cast( + reinterpret_cast(&receiver_) - + reinterpret_cast(&net_quantity_)) + sizeof(receiver_)); +} + +EosTxActionAck_EosActionUndelegate::~EosTxActionAck_EosActionUndelegate() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + SharedDtor(); +} + +void EosTxActionAck_EosActionUndelegate::SharedDtor() { + if (this != internal_default_instance()) delete net_quantity_; + if (this != internal_default_instance()) delete cpu_quantity_; +} + +void EosTxActionAck_EosActionUndelegate::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionUndelegate::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionUndelegate& EosTxActionAck_EosActionUndelegate::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUndelegate.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionUndelegate::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(net_quantity_ != NULL); + net_quantity_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(cpu_quantity_ != NULL); + cpu_quantity_->Clear(); + } + } + if (cached_has_bits & 12u) { + ::memset(&sender_, 0, static_cast( + reinterpret_cast(&receiver_) - + reinterpret_cast(&sender_)) + sizeof(receiver_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionUndelegate::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 sender = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_sender(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &sender_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 receiver = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_receiver(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &receiver_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_net_quantity())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_cpu_quantity())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionUndelegate::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 sender = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->sender(), output); + } + + // optional uint64 receiver = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->receiver(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_net_quantity(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_cpu_quantity(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionUndelegate::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 sender = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->sender(), target); + } + + // optional uint64 receiver = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->receiver(), target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_net_quantity(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_cpu_quantity(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + return target; +} + +size_t EosTxActionAck_EosActionUndelegate::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; + if (has_net_quantity()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *net_quantity_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; + if (has_cpu_quantity()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *cpu_quantity_); + } + + // optional uint64 sender = 1; + if (has_sender()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->sender()); + } + + // optional uint64 receiver = 2; + if (has_receiver()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->receiver()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionUndelegate::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionUndelegate* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionUndelegate::MergeFrom(const EosTxActionAck_EosActionUndelegate& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + mutable_net_quantity()->::hw::trezor::messages::eos::EosTxActionAck_EosAsset::MergeFrom(from.net_quantity()); + } + if (cached_has_bits & 0x00000002u) { + mutable_cpu_quantity()->::hw::trezor::messages::eos::EosTxActionAck_EosAsset::MergeFrom(from.cpu_quantity()); + } + if (cached_has_bits & 0x00000004u) { + sender_ = from.sender_; + } + if (cached_has_bits & 0x00000008u) { + receiver_ = from.receiver_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionUndelegate::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionUndelegate::CopyFrom(const EosTxActionAck_EosActionUndelegate& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionUndelegate::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionUndelegate::Swap(EosTxActionAck_EosActionUndelegate* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionUndelegate::InternalSwap(EosTxActionAck_EosActionUndelegate* other) { + using std::swap; + swap(net_quantity_, other->net_quantity_); + swap(cpu_quantity_, other->cpu_quantity_); + swap(sender_, other->sender_); + swap(receiver_, other->receiver_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionUndelegate::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionRefund::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionRefund::kOwnerFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionRefund::EosTxActionAck_EosActionRefund() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionRefund.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) +} +EosTxActionAck_EosActionRefund::EosTxActionAck_EosActionRefund(const EosTxActionAck_EosActionRefund& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + owner_ = from.owner_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) +} + +void EosTxActionAck_EosActionRefund::SharedCtor() { + owner_ = GOOGLE_ULONGLONG(0); +} + +EosTxActionAck_EosActionRefund::~EosTxActionAck_EosActionRefund() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + SharedDtor(); +} + +void EosTxActionAck_EosActionRefund::SharedDtor() { +} + +void EosTxActionAck_EosActionRefund::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionRefund::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionRefund& EosTxActionAck_EosActionRefund::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionRefund.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionRefund::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + owner_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionRefund::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 owner = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_owner(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &owner_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionRefund::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 owner = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->owner(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionRefund::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 owner = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->owner(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + return target; +} + +size_t EosTxActionAck_EosActionRefund::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional uint64 owner = 1; + if (has_owner()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->owner()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionRefund::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionRefund* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionRefund::MergeFrom(const EosTxActionAck_EosActionRefund& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_owner()) { + set_owner(from.owner()); + } +} + +void EosTxActionAck_EosActionRefund::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionRefund::CopyFrom(const EosTxActionAck_EosActionRefund& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionRefund::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionRefund::Swap(EosTxActionAck_EosActionRefund* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionRefund::InternalSwap(EosTxActionAck_EosActionRefund* other) { + using std::swap; + swap(owner_, other->owner_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionRefund::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionBuyRam::InitAsDefaultInstance() { + ::hw::trezor::messages::eos::_EosTxActionAck_EosActionBuyRam_default_instance_._instance.get_mutable()->quantity_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosAsset*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionBuyRam::kPayerFieldNumber; +const int EosTxActionAck_EosActionBuyRam::kReceiverFieldNumber; +const int EosTxActionAck_EosActionBuyRam::kQuantityFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionBuyRam::EosTxActionAck_EosActionBuyRam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionBuyRam.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) +} +EosTxActionAck_EosActionBuyRam::EosTxActionAck_EosActionBuyRam(const EosTxActionAck_EosActionBuyRam& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_quantity()) { + quantity_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosAsset(*from.quantity_); + } else { + quantity_ = NULL; + } + ::memcpy(&payer_, &from.payer_, + static_cast(reinterpret_cast(&receiver_) - + reinterpret_cast(&payer_)) + sizeof(receiver_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) +} + +void EosTxActionAck_EosActionBuyRam::SharedCtor() { + ::memset(&quantity_, 0, static_cast( + reinterpret_cast(&receiver_) - + reinterpret_cast(&quantity_)) + sizeof(receiver_)); +} + +EosTxActionAck_EosActionBuyRam::~EosTxActionAck_EosActionBuyRam() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + SharedDtor(); +} + +void EosTxActionAck_EosActionBuyRam::SharedDtor() { + if (this != internal_default_instance()) delete quantity_; +} + +void EosTxActionAck_EosActionBuyRam::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionBuyRam::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionBuyRam& EosTxActionAck_EosActionBuyRam::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionBuyRam.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionBuyRam::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(quantity_ != NULL); + quantity_->Clear(); + } + if (cached_has_bits & 6u) { + ::memset(&payer_, 0, static_cast( + reinterpret_cast(&receiver_) - + reinterpret_cast(&payer_)) + sizeof(receiver_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionBuyRam::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 payer = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_payer(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &payer_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 receiver = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_receiver(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &receiver_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_quantity())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionBuyRam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 payer = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->payer(), output); + } + + // optional uint64 receiver = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->receiver(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_quantity(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionBuyRam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 payer = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->payer(), target); + } + + // optional uint64 receiver = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->receiver(), target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_quantity(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + return target; +} + +size_t EosTxActionAck_EosActionBuyRam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; + if (has_quantity()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *quantity_); + } + + // optional uint64 payer = 1; + if (has_payer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->payer()); + } + + // optional uint64 receiver = 2; + if (has_receiver()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->receiver()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionBuyRam::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionBuyRam* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionBuyRam::MergeFrom(const EosTxActionAck_EosActionBuyRam& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + mutable_quantity()->::hw::trezor::messages::eos::EosTxActionAck_EosAsset::MergeFrom(from.quantity()); + } + if (cached_has_bits & 0x00000002u) { + payer_ = from.payer_; + } + if (cached_has_bits & 0x00000004u) { + receiver_ = from.receiver_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionBuyRam::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionBuyRam::CopyFrom(const EosTxActionAck_EosActionBuyRam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionBuyRam::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionBuyRam::Swap(EosTxActionAck_EosActionBuyRam* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionBuyRam::InternalSwap(EosTxActionAck_EosActionBuyRam* other) { + using std::swap; + swap(quantity_, other->quantity_); + swap(payer_, other->payer_); + swap(receiver_, other->receiver_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionBuyRam::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionBuyRamBytes::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionBuyRamBytes::kPayerFieldNumber; +const int EosTxActionAck_EosActionBuyRamBytes::kReceiverFieldNumber; +const int EosTxActionAck_EosActionBuyRamBytes::kBytesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionBuyRamBytes::EosTxActionAck_EosActionBuyRamBytes() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionBuyRamBytes.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) +} +EosTxActionAck_EosActionBuyRamBytes::EosTxActionAck_EosActionBuyRamBytes(const EosTxActionAck_EosActionBuyRamBytes& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&payer_, &from.payer_, + static_cast(reinterpret_cast(&bytes_) - + reinterpret_cast(&payer_)) + sizeof(bytes_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) +} + +void EosTxActionAck_EosActionBuyRamBytes::SharedCtor() { + ::memset(&payer_, 0, static_cast( + reinterpret_cast(&bytes_) - + reinterpret_cast(&payer_)) + sizeof(bytes_)); +} + +EosTxActionAck_EosActionBuyRamBytes::~EosTxActionAck_EosActionBuyRamBytes() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + SharedDtor(); +} + +void EosTxActionAck_EosActionBuyRamBytes::SharedDtor() { +} + +void EosTxActionAck_EosActionBuyRamBytes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionBuyRamBytes::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionBuyRamBytes& EosTxActionAck_EosActionBuyRamBytes::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionBuyRamBytes.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionBuyRamBytes::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + ::memset(&payer_, 0, static_cast( + reinterpret_cast(&bytes_) - + reinterpret_cast(&payer_)) + sizeof(bytes_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionBuyRamBytes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 payer = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_payer(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &payer_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 receiver = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_receiver(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &receiver_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 bytes = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_bytes(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &bytes_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionBuyRamBytes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 payer = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->payer(), output); + } + + // optional uint64 receiver = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->receiver(), output); + } + + // optional uint32 bytes = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->bytes(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionBuyRamBytes::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 payer = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->payer(), target); + } + + // optional uint64 receiver = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->receiver(), target); + } + + // optional uint32 bytes = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->bytes(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + return target; +} + +size_t EosTxActionAck_EosActionBuyRamBytes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional uint64 payer = 1; + if (has_payer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->payer()); + } + + // optional uint64 receiver = 2; + if (has_receiver()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->receiver()); + } + + // optional uint32 bytes = 3; + if (has_bytes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->bytes()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionBuyRamBytes::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionBuyRamBytes* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionBuyRamBytes::MergeFrom(const EosTxActionAck_EosActionBuyRamBytes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + payer_ = from.payer_; + } + if (cached_has_bits & 0x00000002u) { + receiver_ = from.receiver_; + } + if (cached_has_bits & 0x00000004u) { + bytes_ = from.bytes_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionBuyRamBytes::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionBuyRamBytes::CopyFrom(const EosTxActionAck_EosActionBuyRamBytes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionBuyRamBytes::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionBuyRamBytes::Swap(EosTxActionAck_EosActionBuyRamBytes* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionBuyRamBytes::InternalSwap(EosTxActionAck_EosActionBuyRamBytes* other) { + using std::swap; + swap(payer_, other->payer_); + swap(receiver_, other->receiver_); + swap(bytes_, other->bytes_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionBuyRamBytes::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionSellRam::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionSellRam::kAccountFieldNumber; +const int EosTxActionAck_EosActionSellRam::kBytesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionSellRam::EosTxActionAck_EosActionSellRam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionSellRam.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) +} +EosTxActionAck_EosActionSellRam::EosTxActionAck_EosActionSellRam(const EosTxActionAck_EosActionSellRam& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&account_, &from.account_, + static_cast(reinterpret_cast(&bytes_) - + reinterpret_cast(&account_)) + sizeof(bytes_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) +} + +void EosTxActionAck_EosActionSellRam::SharedCtor() { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&bytes_) - + reinterpret_cast(&account_)) + sizeof(bytes_)); +} + +EosTxActionAck_EosActionSellRam::~EosTxActionAck_EosActionSellRam() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + SharedDtor(); +} + +void EosTxActionAck_EosActionSellRam::SharedDtor() { +} + +void EosTxActionAck_EosActionSellRam::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionSellRam::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionSellRam& EosTxActionAck_EosActionSellRam::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionSellRam.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionSellRam::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&bytes_) - + reinterpret_cast(&account_)) + sizeof(bytes_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionSellRam::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_account(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &account_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 bytes = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_bytes(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &bytes_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionSellRam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->account(), output); + } + + // optional uint64 bytes = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->bytes(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionSellRam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->account(), target); + } + + // optional uint64 bytes = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->bytes(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + return target; +} + +size_t EosTxActionAck_EosActionSellRam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional uint64 account = 1; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->account()); + } + + // optional uint64 bytes = 2; + if (has_bytes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->bytes()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionSellRam::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionSellRam* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionSellRam::MergeFrom(const EosTxActionAck_EosActionSellRam& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + account_ = from.account_; + } + if (cached_has_bits & 0x00000002u) { + bytes_ = from.bytes_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionSellRam::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionSellRam::CopyFrom(const EosTxActionAck_EosActionSellRam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionSellRam::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionSellRam::Swap(EosTxActionAck_EosActionSellRam* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionSellRam::InternalSwap(EosTxActionAck_EosActionSellRam* other) { + using std::swap; + swap(account_, other->account_); + swap(bytes_, other->bytes_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionSellRam::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionVoteProducer::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionVoteProducer::kVoterFieldNumber; +const int EosTxActionAck_EosActionVoteProducer::kProxyFieldNumber; +const int EosTxActionAck_EosActionVoteProducer::kProducersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionVoteProducer::EosTxActionAck_EosActionVoteProducer() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionVoteProducer.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) +} +EosTxActionAck_EosActionVoteProducer::EosTxActionAck_EosActionVoteProducer(const EosTxActionAck_EosActionVoteProducer& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + producers_(from.producers_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&voter_, &from.voter_, + static_cast(reinterpret_cast(&proxy_) - + reinterpret_cast(&voter_)) + sizeof(proxy_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) +} + +void EosTxActionAck_EosActionVoteProducer::SharedCtor() { + ::memset(&voter_, 0, static_cast( + reinterpret_cast(&proxy_) - + reinterpret_cast(&voter_)) + sizeof(proxy_)); +} + +EosTxActionAck_EosActionVoteProducer::~EosTxActionAck_EosActionVoteProducer() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + SharedDtor(); +} + +void EosTxActionAck_EosActionVoteProducer::SharedDtor() { +} + +void EosTxActionAck_EosActionVoteProducer::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionVoteProducer::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionVoteProducer& EosTxActionAck_EosActionVoteProducer::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionVoteProducer.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionVoteProducer::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + producers_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&voter_, 0, static_cast( + reinterpret_cast(&proxy_) - + reinterpret_cast(&voter_)) + sizeof(proxy_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionVoteProducer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 voter = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_voter(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &voter_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 proxy = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_proxy(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proxy_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint64 producers = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + 1, 24u, input, this->mutable_producers()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, this->mutable_producers()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionVoteProducer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 voter = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->voter(), output); + } + + // optional uint64 proxy = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->proxy(), output); + } + + // repeated uint64 producers = 3; + for (int i = 0, n = this->producers_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64( + 3, this->producers(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionVoteProducer::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 voter = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->voter(), target); + } + + // optional uint64 proxy = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->proxy(), target); + } + + // repeated uint64 producers = 3; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt64ToArray(3, this->producers_, target); + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + return target; +} + +size_t EosTxActionAck_EosActionVoteProducer::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint64 producers = 3; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt64Size(this->producers_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->producers_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 3u) { + // optional uint64 voter = 1; + if (has_voter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->voter()); + } + + // optional uint64 proxy = 2; + if (has_proxy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proxy()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionVoteProducer::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionVoteProducer* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionVoteProducer::MergeFrom(const EosTxActionAck_EosActionVoteProducer& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + producers_.MergeFrom(from.producers_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + voter_ = from.voter_; + } + if (cached_has_bits & 0x00000002u) { + proxy_ = from.proxy_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionVoteProducer::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionVoteProducer::CopyFrom(const EosTxActionAck_EosActionVoteProducer& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionVoteProducer::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionVoteProducer::Swap(EosTxActionAck_EosActionVoteProducer* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionVoteProducer::InternalSwap(EosTxActionAck_EosActionVoteProducer* other) { + using std::swap; + producers_.InternalSwap(&other->producers_); + swap(voter_, other->voter_); + swap(proxy_, other->proxy_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionVoteProducer::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionUpdateAuth::InitAsDefaultInstance() { + ::hw::trezor::messages::eos::_EosTxActionAck_EosActionUpdateAuth_default_instance_._instance.get_mutable()->auth_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionUpdateAuth::kAccountFieldNumber; +const int EosTxActionAck_EosActionUpdateAuth::kPermissionFieldNumber; +const int EosTxActionAck_EosActionUpdateAuth::kParentFieldNumber; +const int EosTxActionAck_EosActionUpdateAuth::kAuthFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionUpdateAuth::EosTxActionAck_EosActionUpdateAuth() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUpdateAuth.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) +} +EosTxActionAck_EosActionUpdateAuth::EosTxActionAck_EosActionUpdateAuth(const EosTxActionAck_EosActionUpdateAuth& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_auth()) { + auth_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization(*from.auth_); + } else { + auth_ = NULL; + } + ::memcpy(&account_, &from.account_, + static_cast(reinterpret_cast(&parent_) - + reinterpret_cast(&account_)) + sizeof(parent_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) +} + +void EosTxActionAck_EosActionUpdateAuth::SharedCtor() { + ::memset(&auth_, 0, static_cast( + reinterpret_cast(&parent_) - + reinterpret_cast(&auth_)) + sizeof(parent_)); +} + +EosTxActionAck_EosActionUpdateAuth::~EosTxActionAck_EosActionUpdateAuth() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + SharedDtor(); +} + +void EosTxActionAck_EosActionUpdateAuth::SharedDtor() { + if (this != internal_default_instance()) delete auth_; +} + +void EosTxActionAck_EosActionUpdateAuth::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionUpdateAuth::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionUpdateAuth& EosTxActionAck_EosActionUpdateAuth::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUpdateAuth.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionUpdateAuth::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(auth_ != NULL); + auth_->Clear(); + } + if (cached_has_bits & 14u) { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&parent_) - + reinterpret_cast(&account_)) + sizeof(parent_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionUpdateAuth::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_account(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &account_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 permission = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_permission(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &permission_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 parent = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_parent(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &parent_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization auth = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_auth())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionUpdateAuth::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->account(), output); + } + + // optional uint64 permission = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->permission(), output); + } + + // optional uint64 parent = 3; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->parent(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization auth = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_auth(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionUpdateAuth::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->account(), target); + } + + // optional uint64 permission = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->permission(), target); + } + + // optional uint64 parent = 3; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->parent(), target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization auth = 4; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_auth(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + return target; +} + +size_t EosTxActionAck_EosActionUpdateAuth::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization auth = 4; + if (has_auth()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *auth_); + } + + // optional uint64 account = 1; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->account()); + } + + // optional uint64 permission = 2; + if (has_permission()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->permission()); + } + + // optional uint64 parent = 3; + if (has_parent()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->parent()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionUpdateAuth::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionUpdateAuth* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionUpdateAuth::MergeFrom(const EosTxActionAck_EosActionUpdateAuth& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + mutable_auth()->::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization::MergeFrom(from.auth()); + } + if (cached_has_bits & 0x00000002u) { + account_ = from.account_; + } + if (cached_has_bits & 0x00000004u) { + permission_ = from.permission_; + } + if (cached_has_bits & 0x00000008u) { + parent_ = from.parent_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionUpdateAuth::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionUpdateAuth::CopyFrom(const EosTxActionAck_EosActionUpdateAuth& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionUpdateAuth::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionUpdateAuth::Swap(EosTxActionAck_EosActionUpdateAuth* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionUpdateAuth::InternalSwap(EosTxActionAck_EosActionUpdateAuth* other) { + using std::swap; + swap(auth_, other->auth_); + swap(account_, other->account_); + swap(permission_, other->permission_); + swap(parent_, other->parent_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionUpdateAuth::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionDeleteAuth::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionDeleteAuth::kAccountFieldNumber; +const int EosTxActionAck_EosActionDeleteAuth::kPermissionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionDeleteAuth::EosTxActionAck_EosActionDeleteAuth() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionDeleteAuth.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) +} +EosTxActionAck_EosActionDeleteAuth::EosTxActionAck_EosActionDeleteAuth(const EosTxActionAck_EosActionDeleteAuth& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&account_, &from.account_, + static_cast(reinterpret_cast(&permission_) - + reinterpret_cast(&account_)) + sizeof(permission_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) +} + +void EosTxActionAck_EosActionDeleteAuth::SharedCtor() { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&permission_) - + reinterpret_cast(&account_)) + sizeof(permission_)); +} + +EosTxActionAck_EosActionDeleteAuth::~EosTxActionAck_EosActionDeleteAuth() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + SharedDtor(); +} + +void EosTxActionAck_EosActionDeleteAuth::SharedDtor() { +} + +void EosTxActionAck_EosActionDeleteAuth::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionDeleteAuth::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionDeleteAuth& EosTxActionAck_EosActionDeleteAuth::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionDeleteAuth.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionDeleteAuth::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&permission_) - + reinterpret_cast(&account_)) + sizeof(permission_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionDeleteAuth::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_account(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &account_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 permission = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_permission(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &permission_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionDeleteAuth::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->account(), output); + } + + // optional uint64 permission = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->permission(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionDeleteAuth::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->account(), target); + } + + // optional uint64 permission = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->permission(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + return target; +} + +size_t EosTxActionAck_EosActionDeleteAuth::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional uint64 account = 1; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->account()); + } + + // optional uint64 permission = 2; + if (has_permission()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->permission()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionDeleteAuth::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionDeleteAuth* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionDeleteAuth::MergeFrom(const EosTxActionAck_EosActionDeleteAuth& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + account_ = from.account_; + } + if (cached_has_bits & 0x00000002u) { + permission_ = from.permission_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionDeleteAuth::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionDeleteAuth::CopyFrom(const EosTxActionAck_EosActionDeleteAuth& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionDeleteAuth::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionDeleteAuth::Swap(EosTxActionAck_EosActionDeleteAuth* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionDeleteAuth::InternalSwap(EosTxActionAck_EosActionDeleteAuth* other) { + using std::swap; + swap(account_, other->account_); + swap(permission_, other->permission_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionDeleteAuth::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionLinkAuth::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionLinkAuth::kAccountFieldNumber; +const int EosTxActionAck_EosActionLinkAuth::kCodeFieldNumber; +const int EosTxActionAck_EosActionLinkAuth::kTypeFieldNumber; +const int EosTxActionAck_EosActionLinkAuth::kRequirementFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionLinkAuth::EosTxActionAck_EosActionLinkAuth() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionLinkAuth.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) +} +EosTxActionAck_EosActionLinkAuth::EosTxActionAck_EosActionLinkAuth(const EosTxActionAck_EosActionLinkAuth& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&account_, &from.account_, + static_cast(reinterpret_cast(&requirement_) - + reinterpret_cast(&account_)) + sizeof(requirement_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) +} + +void EosTxActionAck_EosActionLinkAuth::SharedCtor() { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&requirement_) - + reinterpret_cast(&account_)) + sizeof(requirement_)); +} + +EosTxActionAck_EosActionLinkAuth::~EosTxActionAck_EosActionLinkAuth() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + SharedDtor(); +} + +void EosTxActionAck_EosActionLinkAuth::SharedDtor() { +} + +void EosTxActionAck_EosActionLinkAuth::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionLinkAuth::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionLinkAuth& EosTxActionAck_EosActionLinkAuth::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionLinkAuth.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionLinkAuth::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&requirement_) - + reinterpret_cast(&account_)) + sizeof(requirement_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionLinkAuth::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_account(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &account_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 code = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_code(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &code_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 requirement = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_requirement(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &requirement_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionLinkAuth::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->account(), output); + } + + // optional uint64 code = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->code(), output); + } + + // optional uint64 type = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->type(), output); + } + + // optional uint64 requirement = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->requirement(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionLinkAuth::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->account(), target); + } + + // optional uint64 code = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->code(), target); + } + + // optional uint64 type = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->type(), target); + } + + // optional uint64 requirement = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->requirement(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + return target; +} + +size_t EosTxActionAck_EosActionLinkAuth::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional uint64 account = 1; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->account()); + } + + // optional uint64 code = 2; + if (has_code()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->code()); + } + + // optional uint64 type = 3; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->type()); + } + + // optional uint64 requirement = 4; + if (has_requirement()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->requirement()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionLinkAuth::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionLinkAuth* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionLinkAuth::MergeFrom(const EosTxActionAck_EosActionLinkAuth& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + account_ = from.account_; + } + if (cached_has_bits & 0x00000002u) { + code_ = from.code_; + } + if (cached_has_bits & 0x00000004u) { + type_ = from.type_; + } + if (cached_has_bits & 0x00000008u) { + requirement_ = from.requirement_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionLinkAuth::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionLinkAuth::CopyFrom(const EosTxActionAck_EosActionLinkAuth& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionLinkAuth::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionLinkAuth::Swap(EosTxActionAck_EosActionLinkAuth* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionLinkAuth::InternalSwap(EosTxActionAck_EosActionLinkAuth* other) { + using std::swap; + swap(account_, other->account_); + swap(code_, other->code_); + swap(type_, other->type_); + swap(requirement_, other->requirement_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionLinkAuth::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionUnlinkAuth::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionUnlinkAuth::kAccountFieldNumber; +const int EosTxActionAck_EosActionUnlinkAuth::kCodeFieldNumber; +const int EosTxActionAck_EosActionUnlinkAuth::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionUnlinkAuth::EosTxActionAck_EosActionUnlinkAuth() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUnlinkAuth.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) +} +EosTxActionAck_EosActionUnlinkAuth::EosTxActionAck_EosActionUnlinkAuth(const EosTxActionAck_EosActionUnlinkAuth& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&account_, &from.account_, + static_cast(reinterpret_cast(&type_) - + reinterpret_cast(&account_)) + sizeof(type_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) +} + +void EosTxActionAck_EosActionUnlinkAuth::SharedCtor() { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&account_)) + sizeof(type_)); +} + +EosTxActionAck_EosActionUnlinkAuth::~EosTxActionAck_EosActionUnlinkAuth() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + SharedDtor(); +} + +void EosTxActionAck_EosActionUnlinkAuth::SharedDtor() { +} + +void EosTxActionAck_EosActionUnlinkAuth::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionUnlinkAuth::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionUnlinkAuth& EosTxActionAck_EosActionUnlinkAuth::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUnlinkAuth.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionUnlinkAuth::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + ::memset(&account_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&account_)) + sizeof(type_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionUnlinkAuth::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_account(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &account_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 code = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_code(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &code_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &type_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionUnlinkAuth::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->account(), output); + } + + // optional uint64 code = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->code(), output); + } + + // optional uint64 type = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionUnlinkAuth::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 account = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->account(), target); + } + + // optional uint64 code = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->code(), target); + } + + // optional uint64 type = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + return target; +} + +size_t EosTxActionAck_EosActionUnlinkAuth::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional uint64 account = 1; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->account()); + } + + // optional uint64 code = 2; + if (has_code()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->code()); + } + + // optional uint64 type = 3; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionUnlinkAuth::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionUnlinkAuth* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionUnlinkAuth::MergeFrom(const EosTxActionAck_EosActionUnlinkAuth& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + account_ = from.account_; + } + if (cached_has_bits & 0x00000002u) { + code_ = from.code_; + } + if (cached_has_bits & 0x00000004u) { + type_ = from.type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionUnlinkAuth::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionUnlinkAuth::CopyFrom(const EosTxActionAck_EosActionUnlinkAuth& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionUnlinkAuth::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionUnlinkAuth::Swap(EosTxActionAck_EosActionUnlinkAuth* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionUnlinkAuth::InternalSwap(EosTxActionAck_EosActionUnlinkAuth* other) { + using std::swap; + swap(account_, other->account_); + swap(code_, other->code_); + swap(type_, other->type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionUnlinkAuth::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionNewAccount::InitAsDefaultInstance() { + ::hw::trezor::messages::eos::_EosTxActionAck_EosActionNewAccount_default_instance_._instance.get_mutable()->owner_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_EosActionNewAccount_default_instance_._instance.get_mutable()->active_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionNewAccount::kCreatorFieldNumber; +const int EosTxActionAck_EosActionNewAccount::kNameFieldNumber; +const int EosTxActionAck_EosActionNewAccount::kOwnerFieldNumber; +const int EosTxActionAck_EosActionNewAccount::kActiveFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionNewAccount::EosTxActionAck_EosActionNewAccount() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionNewAccount.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) +} +EosTxActionAck_EosActionNewAccount::EosTxActionAck_EosActionNewAccount(const EosTxActionAck_EosActionNewAccount& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_owner()) { + owner_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization(*from.owner_); + } else { + owner_ = NULL; + } + if (from.has_active()) { + active_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization(*from.active_); + } else { + active_ = NULL; + } + ::memcpy(&creator_, &from.creator_, + static_cast(reinterpret_cast(&name_) - + reinterpret_cast(&creator_)) + sizeof(name_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) +} + +void EosTxActionAck_EosActionNewAccount::SharedCtor() { + ::memset(&owner_, 0, static_cast( + reinterpret_cast(&name_) - + reinterpret_cast(&owner_)) + sizeof(name_)); +} + +EosTxActionAck_EosActionNewAccount::~EosTxActionAck_EosActionNewAccount() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + SharedDtor(); +} + +void EosTxActionAck_EosActionNewAccount::SharedDtor() { + if (this != internal_default_instance()) delete owner_; + if (this != internal_default_instance()) delete active_; +} + +void EosTxActionAck_EosActionNewAccount::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionNewAccount::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionNewAccount& EosTxActionAck_EosActionNewAccount::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionNewAccount.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionNewAccount::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(owner_ != NULL); + owner_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(active_ != NULL); + active_->Clear(); + } + } + if (cached_has_bits & 12u) { + ::memset(&creator_, 0, static_cast( + reinterpret_cast(&name_) - + reinterpret_cast(&creator_)) + sizeof(name_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionNewAccount::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 creator = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_creator(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &creator_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_name(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &name_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization owner = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_owner())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization active = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_active())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionNewAccount::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 creator = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->creator(), output); + } + + // optional uint64 name = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->name(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization owner = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_owner(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization active = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_active(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionNewAccount::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 creator = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->creator(), target); + } + + // optional uint64 name = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->name(), target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization owner = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_owner(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization active = 4; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_active(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + return target; +} + +size_t EosTxActionAck_EosActionNewAccount::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization owner = 3; + if (has_owner()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *owner_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization active = 4; + if (has_active()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *active_); + } + + // optional uint64 creator = 1; + if (has_creator()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->creator()); + } + + // optional uint64 name = 2; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->name()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionNewAccount::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionNewAccount* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionNewAccount::MergeFrom(const EosTxActionAck_EosActionNewAccount& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + mutable_owner()->::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization::MergeFrom(from.owner()); + } + if (cached_has_bits & 0x00000002u) { + mutable_active()->::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization::MergeFrom(from.active()); + } + if (cached_has_bits & 0x00000004u) { + creator_ = from.creator_; + } + if (cached_has_bits & 0x00000008u) { + name_ = from.name_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionNewAccount::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionNewAccount::CopyFrom(const EosTxActionAck_EosActionNewAccount& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionNewAccount::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionNewAccount::Swap(EosTxActionAck_EosActionNewAccount* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionNewAccount::InternalSwap(EosTxActionAck_EosActionNewAccount* other) { + using std::swap; + swap(owner_, other->owner_); + swap(active_, other->active_); + swap(creator_, other->creator_); + swap(name_, other->name_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionNewAccount::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck_EosActionUnknown::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck_EosActionUnknown::kDataSizeFieldNumber; +const int EosTxActionAck_EosActionUnknown::kDataChunkFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck_EosActionUnknown::EosTxActionAck_EosActionUnknown() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUnknown.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) +} +EosTxActionAck_EosActionUnknown::EosTxActionAck_EosActionUnknown(const EosTxActionAck_EosActionUnknown& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data_chunk()) { + data_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_chunk_); + } + data_size_ = from.data_size_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) +} + +void EosTxActionAck_EosActionUnknown::SharedCtor() { + data_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_size_ = 0u; +} + +EosTxActionAck_EosActionUnknown::~EosTxActionAck_EosActionUnknown() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + SharedDtor(); +} + +void EosTxActionAck_EosActionUnknown::SharedDtor() { + data_chunk_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EosTxActionAck_EosActionUnknown::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck_EosActionUnknown::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck_EosActionUnknown& EosTxActionAck_EosActionUnknown::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck_EosActionUnknown.base); + return *internal_default_instance(); +} + + +void EosTxActionAck_EosActionUnknown::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + data_chunk_.ClearNonDefaultToEmptyNoArena(); + } + data_size_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck_EosActionUnknown::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 data_size = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_data_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &data_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes data_chunk = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data_chunk())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + return false; +#undef DO_ +} + +void EosTxActionAck_EosActionUnknown::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 data_size = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->data_size(), output); + } + + // optional bytes data_chunk = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->data_chunk(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) +} + +::google::protobuf::uint8* EosTxActionAck_EosActionUnknown::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 data_size = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->data_size(), target); + } + + // optional bytes data_chunk = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->data_chunk(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + return target; +} + +size_t EosTxActionAck_EosActionUnknown::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes data_chunk = 2; + if (has_data_chunk()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data_chunk()); + } + + // optional uint32 data_size = 1; + if (has_data_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->data_size()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck_EosActionUnknown::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck_EosActionUnknown* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + MergeFrom(*source); + } +} + +void EosTxActionAck_EosActionUnknown::MergeFrom(const EosTxActionAck_EosActionUnknown& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_data_chunk(); + data_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_chunk_); + } + if (cached_has_bits & 0x00000002u) { + data_size_ = from.data_size_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosTxActionAck_EosActionUnknown::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck_EosActionUnknown::CopyFrom(const EosTxActionAck_EosActionUnknown& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck_EosActionUnknown::IsInitialized() const { + return true; +} + +void EosTxActionAck_EosActionUnknown::Swap(EosTxActionAck_EosActionUnknown* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck_EosActionUnknown::InternalSwap(EosTxActionAck_EosActionUnknown* other) { + using std::swap; + data_chunk_.Swap(&other->data_chunk_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(data_size_, other->data_size_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck_EosActionUnknown::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosTxActionAck::InitAsDefaultInstance() { + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->common_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->transfer_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->delegate_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->undelegate_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->refund_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->buy_ram_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->buy_ram_bytes_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->sell_ram_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->vote_producer_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->update_auth_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->delete_auth_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->link_auth_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->unlink_auth_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->new_account_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount::internal_default_instance()); + ::hw::trezor::messages::eos::_EosTxActionAck_default_instance_._instance.get_mutable()->unknown_ = const_cast< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown*>( + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosTxActionAck::kCommonFieldNumber; +const int EosTxActionAck::kTransferFieldNumber; +const int EosTxActionAck::kDelegateFieldNumber; +const int EosTxActionAck::kUndelegateFieldNumber; +const int EosTxActionAck::kRefundFieldNumber; +const int EosTxActionAck::kBuyRamFieldNumber; +const int EosTxActionAck::kBuyRamBytesFieldNumber; +const int EosTxActionAck::kSellRamFieldNumber; +const int EosTxActionAck::kVoteProducerFieldNumber; +const int EosTxActionAck::kUpdateAuthFieldNumber; +const int EosTxActionAck::kDeleteAuthFieldNumber; +const int EosTxActionAck::kLinkAuthFieldNumber; +const int EosTxActionAck::kUnlinkAuthFieldNumber; +const int EosTxActionAck::kNewAccountFieldNumber; +const int EosTxActionAck::kUnknownFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosTxActionAck::EosTxActionAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosTxActionAck) +} +EosTxActionAck::EosTxActionAck(const EosTxActionAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_common()) { + common_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon(*from.common_); + } else { + common_ = NULL; + } + if (from.has_transfer()) { + transfer_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer(*from.transfer_); + } else { + transfer_ = NULL; + } + if (from.has_delegate()) { + delegate_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate(*from.delegate_); + } else { + delegate_ = NULL; + } + if (from.has_undelegate()) { + undelegate_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate(*from.undelegate_); + } else { + undelegate_ = NULL; + } + if (from.has_refund()) { + refund_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund(*from.refund_); + } else { + refund_ = NULL; + } + if (from.has_buy_ram()) { + buy_ram_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam(*from.buy_ram_); + } else { + buy_ram_ = NULL; + } + if (from.has_buy_ram_bytes()) { + buy_ram_bytes_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes(*from.buy_ram_bytes_); + } else { + buy_ram_bytes_ = NULL; + } + if (from.has_sell_ram()) { + sell_ram_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam(*from.sell_ram_); + } else { + sell_ram_ = NULL; + } + if (from.has_vote_producer()) { + vote_producer_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer(*from.vote_producer_); + } else { + vote_producer_ = NULL; + } + if (from.has_update_auth()) { + update_auth_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth(*from.update_auth_); + } else { + update_auth_ = NULL; + } + if (from.has_delete_auth()) { + delete_auth_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth(*from.delete_auth_); + } else { + delete_auth_ = NULL; + } + if (from.has_link_auth()) { + link_auth_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth(*from.link_auth_); + } else { + link_auth_ = NULL; + } + if (from.has_unlink_auth()) { + unlink_auth_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth(*from.unlink_auth_); + } else { + unlink_auth_ = NULL; + } + if (from.has_new_account()) { + new_account_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount(*from.new_account_); + } else { + new_account_ = NULL; + } + if (from.has_unknown()) { + unknown_ = new ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown(*from.unknown_); + } else { + unknown_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosTxActionAck) +} + +void EosTxActionAck::SharedCtor() { + ::memset(&common_, 0, static_cast( + reinterpret_cast(&unknown_) - + reinterpret_cast(&common_)) + sizeof(unknown_)); +} + +EosTxActionAck::~EosTxActionAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosTxActionAck) + SharedDtor(); +} + +void EosTxActionAck::SharedDtor() { + if (this != internal_default_instance()) delete common_; + if (this != internal_default_instance()) delete transfer_; + if (this != internal_default_instance()) delete delegate_; + if (this != internal_default_instance()) delete undelegate_; + if (this != internal_default_instance()) delete refund_; + if (this != internal_default_instance()) delete buy_ram_; + if (this != internal_default_instance()) delete buy_ram_bytes_; + if (this != internal_default_instance()) delete sell_ram_; + if (this != internal_default_instance()) delete vote_producer_; + if (this != internal_default_instance()) delete update_auth_; + if (this != internal_default_instance()) delete delete_auth_; + if (this != internal_default_instance()) delete link_auth_; + if (this != internal_default_instance()) delete unlink_auth_; + if (this != internal_default_instance()) delete new_account_; + if (this != internal_default_instance()) delete unknown_; +} + +void EosTxActionAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosTxActionAck::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosTxActionAck& EosTxActionAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosTxActionAck.base); + return *internal_default_instance(); +} + + +void EosTxActionAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosTxActionAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(common_ != NULL); + common_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(transfer_ != NULL); + transfer_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(delegate_ != NULL); + delegate_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(undelegate_ != NULL); + undelegate_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(refund_ != NULL); + refund_->Clear(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(buy_ram_ != NULL); + buy_ram_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(buy_ram_bytes_ != NULL); + buy_ram_bytes_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(sell_ram_ != NULL); + sell_ram_->Clear(); + } + } + if (cached_has_bits & 32512u) { + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(vote_producer_ != NULL); + vote_producer_->Clear(); + } + if (cached_has_bits & 0x00000200u) { + GOOGLE_DCHECK(update_auth_ != NULL); + update_auth_->Clear(); + } + if (cached_has_bits & 0x00000400u) { + GOOGLE_DCHECK(delete_auth_ != NULL); + delete_auth_->Clear(); + } + if (cached_has_bits & 0x00000800u) { + GOOGLE_DCHECK(link_auth_ != NULL); + link_auth_->Clear(); + } + if (cached_has_bits & 0x00001000u) { + GOOGLE_DCHECK(unlink_auth_ != NULL); + unlink_auth_->Clear(); + } + if (cached_has_bits & 0x00002000u) { + GOOGLE_DCHECK(new_account_ != NULL); + new_account_->Clear(); + } + if (cached_has_bits & 0x00004000u) { + GOOGLE_DCHECK(unknown_ != NULL); + unknown_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosTxActionAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosTxActionAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionCommon common = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_common())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer transfer = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transfer())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate delegate = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_delegate())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate undelegate = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_undelegate())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionRefund refund = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_refund())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam buy_ram = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_buy_ram())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes buy_ram_bytes = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_buy_ram_bytes())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam sell_ram = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sell_ram())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer vote_producer = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_vote_producer())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth update_auth = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_update_auth())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth delete_auth = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_delete_auth())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth link_auth = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_link_auth())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth unlink_auth = 13; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_unlink_auth())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount new_account = 14; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_new_account())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown unknown = 15; + case 15: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_unknown())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosTxActionAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosTxActionAck) + return false; +#undef DO_ +} + +void EosTxActionAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosTxActionAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionCommon common = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_common(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer transfer = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_transfer(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate delegate = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_delegate(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate undelegate = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_undelegate(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionRefund refund = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->_internal_refund(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam buy_ram = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->_internal_buy_ram(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes buy_ram_bytes = 7; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->_internal_buy_ram_bytes(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam sell_ram = 8; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, this->_internal_sell_ram(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer vote_producer = 9; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, this->_internal_vote_producer(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth update_auth = 10; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, this->_internal_update_auth(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth delete_auth = 11; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, this->_internal_delete_auth(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth link_auth = 12; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 12, this->_internal_link_auth(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth unlink_auth = 13; + if (cached_has_bits & 0x00001000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 13, this->_internal_unlink_auth(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount new_account = 14; + if (cached_has_bits & 0x00002000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 14, this->_internal_new_account(), output); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown unknown = 15; + if (cached_has_bits & 0x00004000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 15, this->_internal_unknown(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosTxActionAck) +} + +::google::protobuf::uint8* EosTxActionAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosTxActionAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionCommon common = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_common(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer transfer = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_transfer(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate delegate = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_delegate(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate undelegate = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_undelegate(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionRefund refund = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->_internal_refund(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam buy_ram = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->_internal_buy_ram(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes buy_ram_bytes = 7; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->_internal_buy_ram_bytes(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam sell_ram = 8; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, this->_internal_sell_ram(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer vote_producer = 9; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, this->_internal_vote_producer(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth update_auth = 10; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, this->_internal_update_auth(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth delete_auth = 11; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 11, this->_internal_delete_auth(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth link_auth = 12; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 12, this->_internal_link_auth(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth unlink_auth = 13; + if (cached_has_bits & 0x00001000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 13, this->_internal_unlink_auth(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount new_account = 14; + if (cached_has_bits & 0x00002000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 14, this->_internal_new_account(), deterministic, target); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown unknown = 15; + if (cached_has_bits & 0x00004000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 15, this->_internal_unknown(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosTxActionAck) + return target; +} + +size_t EosTxActionAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosTxActionAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionCommon common = 1; + if (has_common()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *common_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer transfer = 2; + if (has_transfer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transfer_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate delegate = 3; + if (has_delegate()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *delegate_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate undelegate = 4; + if (has_undelegate()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *undelegate_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionRefund refund = 5; + if (has_refund()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *refund_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam buy_ram = 6; + if (has_buy_ram()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *buy_ram_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes buy_ram_bytes = 7; + if (has_buy_ram_bytes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *buy_ram_bytes_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam sell_ram = 8; + if (has_sell_ram()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *sell_ram_); + } + + } + if (_has_bits_[8 / 32] & 32512u) { + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer vote_producer = 9; + if (has_vote_producer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *vote_producer_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth update_auth = 10; + if (has_update_auth()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *update_auth_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth delete_auth = 11; + if (has_delete_auth()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *delete_auth_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth link_auth = 12; + if (has_link_auth()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *link_auth_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth unlink_auth = 13; + if (has_unlink_auth()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *unlink_auth_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount new_account = 14; + if (has_new_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *new_account_); + } + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown unknown = 15; + if (has_unknown()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *unknown_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosTxActionAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosTxActionAck) + GOOGLE_DCHECK_NE(&from, this); + const EosTxActionAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosTxActionAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosTxActionAck) + MergeFrom(*source); + } +} + +void EosTxActionAck::MergeFrom(const EosTxActionAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosTxActionAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + mutable_common()->::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon::MergeFrom(from.common()); + } + if (cached_has_bits & 0x00000002u) { + mutable_transfer()->::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer::MergeFrom(from.transfer()); + } + if (cached_has_bits & 0x00000004u) { + mutable_delegate()->::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate::MergeFrom(from.delegate()); + } + if (cached_has_bits & 0x00000008u) { + mutable_undelegate()->::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate::MergeFrom(from.undelegate()); + } + if (cached_has_bits & 0x00000010u) { + mutable_refund()->::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund::MergeFrom(from.refund()); + } + if (cached_has_bits & 0x00000020u) { + mutable_buy_ram()->::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam::MergeFrom(from.buy_ram()); + } + if (cached_has_bits & 0x00000040u) { + mutable_buy_ram_bytes()->::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes::MergeFrom(from.buy_ram_bytes()); + } + if (cached_has_bits & 0x00000080u) { + mutable_sell_ram()->::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam::MergeFrom(from.sell_ram()); + } + } + if (cached_has_bits & 32512u) { + if (cached_has_bits & 0x00000100u) { + mutable_vote_producer()->::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer::MergeFrom(from.vote_producer()); + } + if (cached_has_bits & 0x00000200u) { + mutable_update_auth()->::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth::MergeFrom(from.update_auth()); + } + if (cached_has_bits & 0x00000400u) { + mutable_delete_auth()->::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth::MergeFrom(from.delete_auth()); + } + if (cached_has_bits & 0x00000800u) { + mutable_link_auth()->::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth::MergeFrom(from.link_auth()); + } + if (cached_has_bits & 0x00001000u) { + mutable_unlink_auth()->::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth::MergeFrom(from.unlink_auth()); + } + if (cached_has_bits & 0x00002000u) { + mutable_new_account()->::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount::MergeFrom(from.new_account()); + } + if (cached_has_bits & 0x00004000u) { + mutable_unknown()->::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown::MergeFrom(from.unknown()); + } + } +} + +void EosTxActionAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosTxActionAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosTxActionAck::CopyFrom(const EosTxActionAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosTxActionAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosTxActionAck::IsInitialized() const { + return true; +} + +void EosTxActionAck::Swap(EosTxActionAck* other) { + if (other == this) return; + InternalSwap(other); +} +void EosTxActionAck::InternalSwap(EosTxActionAck* other) { + using std::swap; + swap(common_, other->common_); + swap(transfer_, other->transfer_); + swap(delegate_, other->delegate_); + swap(undelegate_, other->undelegate_); + swap(refund_, other->refund_); + swap(buy_ram_, other->buy_ram_); + swap(buy_ram_bytes_, other->buy_ram_bytes_); + swap(sell_ram_, other->sell_ram_); + swap(vote_producer_, other->vote_producer_); + swap(update_auth_, other->update_auth_); + swap(delete_auth_, other->delete_auth_); + swap(link_auth_, other->link_auth_); + swap(unlink_auth_, other->unlink_auth_); + swap(new_account_, other->new_account_); + swap(unknown_, other->unknown_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosTxActionAck::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EosSignedTx::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EosSignedTx::kSignatureVFieldNumber; +const int EosSignedTx::kSignatureRFieldNumber; +const int EosSignedTx::kSignatureSFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EosSignedTx::EosSignedTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2deos_2eproto::scc_info_EosSignedTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.eos.EosSignedTx) +} +EosSignedTx::EosSignedTx(const EosSignedTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_r_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature_r()) { + signature_r_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_r_); + } + signature_s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature_s()) { + signature_s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_s_); + } + signature_v_ = from.signature_v_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.eos.EosSignedTx) +} + +void EosSignedTx::SharedCtor() { + signature_r_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_v_ = 0u; +} + +EosSignedTx::~EosSignedTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.eos.EosSignedTx) + SharedDtor(); +} + +void EosSignedTx::SharedDtor() { + signature_r_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_s_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EosSignedTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EosSignedTx::descriptor() { + ::protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EosSignedTx& EosSignedTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2deos_2eproto::scc_info_EosSignedTx.base); + return *internal_default_instance(); +} + + +void EosSignedTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.eos.EosSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + signature_r_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + signature_s_.ClearNonDefaultToEmptyNoArena(); + } + } + signature_v_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EosSignedTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.eos.EosSignedTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 signature_v = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_signature_v(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &signature_v_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature_r = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature_r())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature_s = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature_s())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.eos.EosSignedTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.eos.EosSignedTx) + return false; +#undef DO_ +} + +void EosSignedTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.eos.EosSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 signature_v = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->signature_v(), output); + } + + // optional bytes signature_r = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->signature_r(), output); + } + + // optional bytes signature_s = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->signature_s(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.eos.EosSignedTx) +} + +::google::protobuf::uint8* EosSignedTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.eos.EosSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 signature_v = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->signature_v(), target); + } + + // optional bytes signature_r = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->signature_r(), target); + } + + // optional bytes signature_s = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->signature_s(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.eos.EosSignedTx) + return target; +} + +size_t EosSignedTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.eos.EosSignedTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes signature_r = 2; + if (has_signature_r()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature_r()); + } + + // optional bytes signature_s = 3; + if (has_signature_s()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature_s()); + } + + // optional uint32 signature_v = 1; + if (has_signature_v()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->signature_v()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EosSignedTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.eos.EosSignedTx) + GOOGLE_DCHECK_NE(&from, this); + const EosSignedTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.eos.EosSignedTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.eos.EosSignedTx) + MergeFrom(*source); + } +} + +void EosSignedTx::MergeFrom(const EosSignedTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.eos.EosSignedTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature_r(); + signature_r_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_r_); + } + if (cached_has_bits & 0x00000002u) { + set_has_signature_s(); + signature_s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_s_); + } + if (cached_has_bits & 0x00000004u) { + signature_v_ = from.signature_v_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EosSignedTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.eos.EosSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EosSignedTx::CopyFrom(const EosSignedTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.eos.EosSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EosSignedTx::IsInitialized() const { + return true; +} + +void EosSignedTx::Swap(EosSignedTx* other) { + if (other == this) return; + InternalSwap(other); +} +void EosSignedTx::InternalSwap(EosSignedTx* other) { + using std::swap; + signature_r_.Swap(&other->signature_r_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + signature_s_.Swap(&other->signature_s_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(signature_v_, other->signature_v_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EosSignedTx::GetMetadata() const { + protobuf_messages_2deos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2deos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace eos +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosGetPublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosGetPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosGetPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosPublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosSignTx_EosTxHeader* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosSignTx_EosTxHeader >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosSignTx_EosTxHeader >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosSignTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosSignTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosSignTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosAsset >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosAsset >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosTxActionAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosTxActionAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosTxActionAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::eos::EosSignedTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::eos::EosSignedTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::eos::EosSignedTx >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-eos.pb.h b/src/Core/hardware/trezor/protob/messages-eos.pb.h new file mode 100644 index 00000000..c0b9a971 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-eos.pb.h @@ -0,0 +1,8052 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-eos.proto + +#ifndef PROTOBUF_INCLUDED_messages_2deos_2eproto +#define PROTOBUF_INCLUDED_messages_2deos_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2deos_2eproto + +namespace protobuf_messages_2deos_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[28]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2deos_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace eos { +class EosGetPublicKey; +class EosGetPublicKeyDefaultTypeInternal; +extern EosGetPublicKeyDefaultTypeInternal _EosGetPublicKey_default_instance_; +class EosPublicKey; +class EosPublicKeyDefaultTypeInternal; +extern EosPublicKeyDefaultTypeInternal _EosPublicKey_default_instance_; +class EosSignTx; +class EosSignTxDefaultTypeInternal; +extern EosSignTxDefaultTypeInternal _EosSignTx_default_instance_; +class EosSignTx_EosTxHeader; +class EosSignTx_EosTxHeaderDefaultTypeInternal; +extern EosSignTx_EosTxHeaderDefaultTypeInternal _EosSignTx_EosTxHeader_default_instance_; +class EosSignedTx; +class EosSignedTxDefaultTypeInternal; +extern EosSignedTxDefaultTypeInternal _EosSignedTx_default_instance_; +class EosTxActionAck; +class EosTxActionAckDefaultTypeInternal; +extern EosTxActionAckDefaultTypeInternal _EosTxActionAck_default_instance_; +class EosTxActionAck_EosActionBuyRam; +class EosTxActionAck_EosActionBuyRamDefaultTypeInternal; +extern EosTxActionAck_EosActionBuyRamDefaultTypeInternal _EosTxActionAck_EosActionBuyRam_default_instance_; +class EosTxActionAck_EosActionBuyRamBytes; +class EosTxActionAck_EosActionBuyRamBytesDefaultTypeInternal; +extern EosTxActionAck_EosActionBuyRamBytesDefaultTypeInternal _EosTxActionAck_EosActionBuyRamBytes_default_instance_; +class EosTxActionAck_EosActionCommon; +class EosTxActionAck_EosActionCommonDefaultTypeInternal; +extern EosTxActionAck_EosActionCommonDefaultTypeInternal _EosTxActionAck_EosActionCommon_default_instance_; +class EosTxActionAck_EosActionDelegate; +class EosTxActionAck_EosActionDelegateDefaultTypeInternal; +extern EosTxActionAck_EosActionDelegateDefaultTypeInternal _EosTxActionAck_EosActionDelegate_default_instance_; +class EosTxActionAck_EosActionDeleteAuth; +class EosTxActionAck_EosActionDeleteAuthDefaultTypeInternal; +extern EosTxActionAck_EosActionDeleteAuthDefaultTypeInternal _EosTxActionAck_EosActionDeleteAuth_default_instance_; +class EosTxActionAck_EosActionLinkAuth; +class EosTxActionAck_EosActionLinkAuthDefaultTypeInternal; +extern EosTxActionAck_EosActionLinkAuthDefaultTypeInternal _EosTxActionAck_EosActionLinkAuth_default_instance_; +class EosTxActionAck_EosActionNewAccount; +class EosTxActionAck_EosActionNewAccountDefaultTypeInternal; +extern EosTxActionAck_EosActionNewAccountDefaultTypeInternal _EosTxActionAck_EosActionNewAccount_default_instance_; +class EosTxActionAck_EosActionRefund; +class EosTxActionAck_EosActionRefundDefaultTypeInternal; +extern EosTxActionAck_EosActionRefundDefaultTypeInternal _EosTxActionAck_EosActionRefund_default_instance_; +class EosTxActionAck_EosActionSellRam; +class EosTxActionAck_EosActionSellRamDefaultTypeInternal; +extern EosTxActionAck_EosActionSellRamDefaultTypeInternal _EosTxActionAck_EosActionSellRam_default_instance_; +class EosTxActionAck_EosActionTransfer; +class EosTxActionAck_EosActionTransferDefaultTypeInternal; +extern EosTxActionAck_EosActionTransferDefaultTypeInternal _EosTxActionAck_EosActionTransfer_default_instance_; +class EosTxActionAck_EosActionUndelegate; +class EosTxActionAck_EosActionUndelegateDefaultTypeInternal; +extern EosTxActionAck_EosActionUndelegateDefaultTypeInternal _EosTxActionAck_EosActionUndelegate_default_instance_; +class EosTxActionAck_EosActionUnknown; +class EosTxActionAck_EosActionUnknownDefaultTypeInternal; +extern EosTxActionAck_EosActionUnknownDefaultTypeInternal _EosTxActionAck_EosActionUnknown_default_instance_; +class EosTxActionAck_EosActionUnlinkAuth; +class EosTxActionAck_EosActionUnlinkAuthDefaultTypeInternal; +extern EosTxActionAck_EosActionUnlinkAuthDefaultTypeInternal _EosTxActionAck_EosActionUnlinkAuth_default_instance_; +class EosTxActionAck_EosActionUpdateAuth; +class EosTxActionAck_EosActionUpdateAuthDefaultTypeInternal; +extern EosTxActionAck_EosActionUpdateAuthDefaultTypeInternal _EosTxActionAck_EosActionUpdateAuth_default_instance_; +class EosTxActionAck_EosActionVoteProducer; +class EosTxActionAck_EosActionVoteProducerDefaultTypeInternal; +extern EosTxActionAck_EosActionVoteProducerDefaultTypeInternal _EosTxActionAck_EosActionVoteProducer_default_instance_; +class EosTxActionAck_EosAsset; +class EosTxActionAck_EosAssetDefaultTypeInternal; +extern EosTxActionAck_EosAssetDefaultTypeInternal _EosTxActionAck_EosAsset_default_instance_; +class EosTxActionAck_EosAuthorization; +class EosTxActionAck_EosAuthorizationDefaultTypeInternal; +extern EosTxActionAck_EosAuthorizationDefaultTypeInternal _EosTxActionAck_EosAuthorization_default_instance_; +class EosTxActionAck_EosAuthorizationAccount; +class EosTxActionAck_EosAuthorizationAccountDefaultTypeInternal; +extern EosTxActionAck_EosAuthorizationAccountDefaultTypeInternal _EosTxActionAck_EosAuthorizationAccount_default_instance_; +class EosTxActionAck_EosAuthorizationKey; +class EosTxActionAck_EosAuthorizationKeyDefaultTypeInternal; +extern EosTxActionAck_EosAuthorizationKeyDefaultTypeInternal _EosTxActionAck_EosAuthorizationKey_default_instance_; +class EosTxActionAck_EosAuthorizationWait; +class EosTxActionAck_EosAuthorizationWaitDefaultTypeInternal; +extern EosTxActionAck_EosAuthorizationWaitDefaultTypeInternal _EosTxActionAck_EosAuthorizationWait_default_instance_; +class EosTxActionAck_EosPermissionLevel; +class EosTxActionAck_EosPermissionLevelDefaultTypeInternal; +extern EosTxActionAck_EosPermissionLevelDefaultTypeInternal _EosTxActionAck_EosPermissionLevel_default_instance_; +class EosTxActionRequest; +class EosTxActionRequestDefaultTypeInternal; +extern EosTxActionRequestDefaultTypeInternal _EosTxActionRequest_default_instance_; +} // namespace eos +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::eos::EosGetPublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosGetPublicKey>(Arena*); +template<> ::hw::trezor::messages::eos::EosPublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosPublicKey>(Arena*); +template<> ::hw::trezor::messages::eos::EosSignTx* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosSignTx>(Arena*); +template<> ::hw::trezor::messages::eos::EosSignTx_EosTxHeader* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosSignTx_EosTxHeader>(Arena*); +template<> ::hw::trezor::messages::eos::EosSignedTx* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosSignedTx>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAsset>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel>(Arena*); +template<> ::hw::trezor::messages::eos::EosTxActionRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionRequest>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace eos { + +// =================================================================== + +class EosGetPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosGetPublicKey) */ { + public: + EosGetPublicKey(); + virtual ~EosGetPublicKey(); + + EosGetPublicKey(const EosGetPublicKey& from); + + inline EosGetPublicKey& operator=(const EosGetPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosGetPublicKey(EosGetPublicKey&& from) noexcept + : EosGetPublicKey() { + *this = ::std::move(from); + } + + inline EosGetPublicKey& operator=(EosGetPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosGetPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosGetPublicKey* internal_default_instance() { + return reinterpret_cast( + &_EosGetPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(EosGetPublicKey* other); + friend void swap(EosGetPublicKey& a, EosGetPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosGetPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + EosGetPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosGetPublicKey& from); + void MergeFrom(const EosGetPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosGetPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosGetPublicKey) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosPublicKey) */ { + public: + EosPublicKey(); + virtual ~EosPublicKey(); + + EosPublicKey(const EosPublicKey& from); + + inline EosPublicKey& operator=(const EosPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosPublicKey(EosPublicKey&& from) noexcept + : EosPublicKey() { + *this = ::std::move(from); + } + + inline EosPublicKey& operator=(EosPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosPublicKey* internal_default_instance() { + return reinterpret_cast( + &_EosPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(EosPublicKey* other); + friend void swap(EosPublicKey& a, EosPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + EosPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosPublicKey& from); + void MergeFrom(const EosPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string wif_public_key = 1; + bool has_wif_public_key() const; + void clear_wif_public_key(); + static const int kWifPublicKeyFieldNumber = 1; + const ::std::string& wif_public_key() const; + void set_wif_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_wif_public_key(::std::string&& value); + #endif + void set_wif_public_key(const char* value); + void set_wif_public_key(const char* value, size_t size); + ::std::string* mutable_wif_public_key(); + ::std::string* release_wif_public_key(); + void set_allocated_wif_public_key(::std::string* wif_public_key); + + // optional bytes raw_public_key = 2; + bool has_raw_public_key() const; + void clear_raw_public_key(); + static const int kRawPublicKeyFieldNumber = 2; + const ::std::string& raw_public_key() const; + void set_raw_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_raw_public_key(::std::string&& value); + #endif + void set_raw_public_key(const char* value); + void set_raw_public_key(const void* value, size_t size); + ::std::string* mutable_raw_public_key(); + ::std::string* release_raw_public_key(); + void set_allocated_raw_public_key(::std::string* raw_public_key); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosPublicKey) + private: + void set_has_wif_public_key(); + void clear_has_wif_public_key(); + void set_has_raw_public_key(); + void clear_has_raw_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr wif_public_key_; + ::google::protobuf::internal::ArenaStringPtr raw_public_key_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosSignTx_EosTxHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosSignTx.EosTxHeader) */ { + public: + EosSignTx_EosTxHeader(); + virtual ~EosSignTx_EosTxHeader(); + + EosSignTx_EosTxHeader(const EosSignTx_EosTxHeader& from); + + inline EosSignTx_EosTxHeader& operator=(const EosSignTx_EosTxHeader& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosSignTx_EosTxHeader(EosSignTx_EosTxHeader&& from) noexcept + : EosSignTx_EosTxHeader() { + *this = ::std::move(from); + } + + inline EosSignTx_EosTxHeader& operator=(EosSignTx_EosTxHeader&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosSignTx_EosTxHeader& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosSignTx_EosTxHeader* internal_default_instance() { + return reinterpret_cast( + &_EosSignTx_EosTxHeader_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(EosSignTx_EosTxHeader* other); + friend void swap(EosSignTx_EosTxHeader& a, EosSignTx_EosTxHeader& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosSignTx_EosTxHeader* New() const final { + return CreateMaybeMessage(NULL); + } + + EosSignTx_EosTxHeader* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosSignTx_EosTxHeader& from); + void MergeFrom(const EosSignTx_EosTxHeader& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosSignTx_EosTxHeader* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 expiration = 1; + bool has_expiration() const; + void clear_expiration(); + static const int kExpirationFieldNumber = 1; + ::google::protobuf::uint32 expiration() const; + void set_expiration(::google::protobuf::uint32 value); + + // required uint32 ref_block_num = 2; + bool has_ref_block_num() const; + void clear_ref_block_num(); + static const int kRefBlockNumFieldNumber = 2; + ::google::protobuf::uint32 ref_block_num() const; + void set_ref_block_num(::google::protobuf::uint32 value); + + // required uint32 ref_block_prefix = 3; + bool has_ref_block_prefix() const; + void clear_ref_block_prefix(); + static const int kRefBlockPrefixFieldNumber = 3; + ::google::protobuf::uint32 ref_block_prefix() const; + void set_ref_block_prefix(::google::protobuf::uint32 value); + + // required uint32 max_net_usage_words = 4; + bool has_max_net_usage_words() const; + void clear_max_net_usage_words(); + static const int kMaxNetUsageWordsFieldNumber = 4; + ::google::protobuf::uint32 max_net_usage_words() const; + void set_max_net_usage_words(::google::protobuf::uint32 value); + + // required uint32 max_cpu_usage_ms = 5; + bool has_max_cpu_usage_ms() const; + void clear_max_cpu_usage_ms(); + static const int kMaxCpuUsageMsFieldNumber = 5; + ::google::protobuf::uint32 max_cpu_usage_ms() const; + void set_max_cpu_usage_ms(::google::protobuf::uint32 value); + + // required uint32 delay_sec = 6; + bool has_delay_sec() const; + void clear_delay_sec(); + static const int kDelaySecFieldNumber = 6; + ::google::protobuf::uint32 delay_sec() const; + void set_delay_sec(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosSignTx.EosTxHeader) + private: + void set_has_expiration(); + void clear_has_expiration(); + void set_has_ref_block_num(); + void clear_has_ref_block_num(); + void set_has_ref_block_prefix(); + void clear_has_ref_block_prefix(); + void set_has_max_net_usage_words(); + void clear_has_max_net_usage_words(); + void set_has_max_cpu_usage_ms(); + void clear_has_max_cpu_usage_ms(); + void set_has_delay_sec(); + void clear_has_delay_sec(); + + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 expiration_; + ::google::protobuf::uint32 ref_block_num_; + ::google::protobuf::uint32 ref_block_prefix_; + ::google::protobuf::uint32 max_net_usage_words_; + ::google::protobuf::uint32 max_cpu_usage_ms_; + ::google::protobuf::uint32 delay_sec_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosSignTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosSignTx) */ { + public: + EosSignTx(); + virtual ~EosSignTx(); + + EosSignTx(const EosSignTx& from); + + inline EosSignTx& operator=(const EosSignTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosSignTx(EosSignTx&& from) noexcept + : EosSignTx() { + *this = ::std::move(from); + } + + inline EosSignTx& operator=(EosSignTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosSignTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosSignTx* internal_default_instance() { + return reinterpret_cast( + &_EosSignTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(EosSignTx* other); + friend void swap(EosSignTx& a, EosSignTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosSignTx* New() const final { + return CreateMaybeMessage(NULL); + } + + EosSignTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosSignTx& from); + void MergeFrom(const EosSignTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosSignTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef EosSignTx_EosTxHeader EosTxHeader; + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes chain_id = 2; + bool has_chain_id() const; + void clear_chain_id(); + static const int kChainIdFieldNumber = 2; + const ::std::string& chain_id() const; + void set_chain_id(const ::std::string& value); + #if LANG_CXX11 + void set_chain_id(::std::string&& value); + #endif + void set_chain_id(const char* value); + void set_chain_id(const void* value, size_t size); + ::std::string* mutable_chain_id(); + ::std::string* release_chain_id(); + void set_allocated_chain_id(::std::string* chain_id); + + // optional .hw.trezor.messages.eos.EosSignTx.EosTxHeader header = 3; + bool has_header() const; + void clear_header(); + static const int kHeaderFieldNumber = 3; + private: + const ::hw::trezor::messages::eos::EosSignTx_EosTxHeader& _internal_header() const; + public: + const ::hw::trezor::messages::eos::EosSignTx_EosTxHeader& header() const; + ::hw::trezor::messages::eos::EosSignTx_EosTxHeader* release_header(); + ::hw::trezor::messages::eos::EosSignTx_EosTxHeader* mutable_header(); + void set_allocated_header(::hw::trezor::messages::eos::EosSignTx_EosTxHeader* header); + + // optional uint32 num_actions = 4; + bool has_num_actions() const; + void clear_num_actions(); + static const int kNumActionsFieldNumber = 4; + ::google::protobuf::uint32 num_actions() const; + void set_num_actions(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosSignTx) + private: + void set_has_chain_id(); + void clear_has_chain_id(); + void set_has_header(); + void clear_has_header(); + void set_has_num_actions(); + void clear_has_num_actions(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr chain_id_; + ::hw::trezor::messages::eos::EosSignTx_EosTxHeader* header_; + ::google::protobuf::uint32 num_actions_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionRequest) */ { + public: + EosTxActionRequest(); + virtual ~EosTxActionRequest(); + + EosTxActionRequest(const EosTxActionRequest& from); + + inline EosTxActionRequest& operator=(const EosTxActionRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionRequest(EosTxActionRequest&& from) noexcept + : EosTxActionRequest() { + *this = ::std::move(from); + } + + inline EosTxActionRequest& operator=(EosTxActionRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionRequest* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(EosTxActionRequest* other); + friend void swap(EosTxActionRequest& a, EosTxActionRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionRequest& from); + void MergeFrom(const EosTxActionRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 data_size = 1; + bool has_data_size() const; + void clear_data_size(); + static const int kDataSizeFieldNumber = 1; + ::google::protobuf::uint32 data_size() const; + void set_data_size(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionRequest) + private: + void set_has_data_size(); + void clear_has_data_size(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 data_size_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosAsset : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosAsset) */ { + public: + EosTxActionAck_EosAsset(); + virtual ~EosTxActionAck_EosAsset(); + + EosTxActionAck_EosAsset(const EosTxActionAck_EosAsset& from); + + inline EosTxActionAck_EosAsset& operator=(const EosTxActionAck_EosAsset& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosAsset(EosTxActionAck_EosAsset&& from) noexcept + : EosTxActionAck_EosAsset() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosAsset& operator=(EosTxActionAck_EosAsset&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosAsset& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosAsset* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosAsset_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(EosTxActionAck_EosAsset* other); + friend void swap(EosTxActionAck_EosAsset& a, EosTxActionAck_EosAsset& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosAsset* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosAsset* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosAsset& from); + void MergeFrom(const EosTxActionAck_EosAsset& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosAsset* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional sint64 amount = 1; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 1; + ::google::protobuf::int64 amount() const; + void set_amount(::google::protobuf::int64 value); + + // optional uint64 symbol = 2; + bool has_symbol() const; + void clear_symbol(); + static const int kSymbolFieldNumber = 2; + ::google::protobuf::uint64 symbol() const; + void set_symbol(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosAsset) + private: + void set_has_amount(); + void clear_has_amount(); + void set_has_symbol(); + void clear_has_symbol(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::int64 amount_; + ::google::protobuf::uint64 symbol_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosPermissionLevel : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) */ { + public: + EosTxActionAck_EosPermissionLevel(); + virtual ~EosTxActionAck_EosPermissionLevel(); + + EosTxActionAck_EosPermissionLevel(const EosTxActionAck_EosPermissionLevel& from); + + inline EosTxActionAck_EosPermissionLevel& operator=(const EosTxActionAck_EosPermissionLevel& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosPermissionLevel(EosTxActionAck_EosPermissionLevel&& from) noexcept + : EosTxActionAck_EosPermissionLevel() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosPermissionLevel& operator=(EosTxActionAck_EosPermissionLevel&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosPermissionLevel& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosPermissionLevel* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosPermissionLevel_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(EosTxActionAck_EosPermissionLevel* other); + friend void swap(EosTxActionAck_EosPermissionLevel& a, EosTxActionAck_EosPermissionLevel& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosPermissionLevel* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosPermissionLevel* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosPermissionLevel& from); + void MergeFrom(const EosTxActionAck_EosPermissionLevel& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosPermissionLevel* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 actor = 1; + bool has_actor() const; + void clear_actor(); + static const int kActorFieldNumber = 1; + ::google::protobuf::uint64 actor() const; + void set_actor(::google::protobuf::uint64 value); + + // optional uint64 permission = 2; + bool has_permission() const; + void clear_permission(); + static const int kPermissionFieldNumber = 2; + ::google::protobuf::uint64 permission() const; + void set_permission(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel) + private: + void set_has_actor(); + void clear_has_actor(); + void set_has_permission(); + void clear_has_permission(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 actor_; + ::google::protobuf::uint64 permission_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosAuthorizationKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) */ { + public: + EosTxActionAck_EosAuthorizationKey(); + virtual ~EosTxActionAck_EosAuthorizationKey(); + + EosTxActionAck_EosAuthorizationKey(const EosTxActionAck_EosAuthorizationKey& from); + + inline EosTxActionAck_EosAuthorizationKey& operator=(const EosTxActionAck_EosAuthorizationKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosAuthorizationKey(EosTxActionAck_EosAuthorizationKey&& from) noexcept + : EosTxActionAck_EosAuthorizationKey() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosAuthorizationKey& operator=(EosTxActionAck_EosAuthorizationKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosAuthorizationKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosAuthorizationKey* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosAuthorizationKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(EosTxActionAck_EosAuthorizationKey* other); + friend void swap(EosTxActionAck_EosAuthorizationKey& a, EosTxActionAck_EosAuthorizationKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosAuthorizationKey* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosAuthorizationKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosAuthorizationKey& from); + void MergeFrom(const EosTxActionAck_EosAuthorizationKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosAuthorizationKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 3; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 3; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes key = 2; + bool has_key() const; + void clear_key(); + static const int kKeyFieldNumber = 2; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const void* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // optional uint32 type = 1; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 1; + ::google::protobuf::uint32 type() const; + void set_type(::google::protobuf::uint32 value); + + // optional uint32 weight = 4; + bool has_weight() const; + void clear_weight(); + static const int kWeightFieldNumber = 4; + ::google::protobuf::uint32 weight() const; + void set_weight(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey) + private: + void set_has_type(); + void clear_has_type(); + void set_has_key(); + void clear_has_key(); + void set_has_weight(); + void clear_has_weight(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::uint32 type_; + ::google::protobuf::uint32 weight_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosAuthorizationAccount : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) */ { + public: + EosTxActionAck_EosAuthorizationAccount(); + virtual ~EosTxActionAck_EosAuthorizationAccount(); + + EosTxActionAck_EosAuthorizationAccount(const EosTxActionAck_EosAuthorizationAccount& from); + + inline EosTxActionAck_EosAuthorizationAccount& operator=(const EosTxActionAck_EosAuthorizationAccount& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosAuthorizationAccount(EosTxActionAck_EosAuthorizationAccount&& from) noexcept + : EosTxActionAck_EosAuthorizationAccount() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosAuthorizationAccount& operator=(EosTxActionAck_EosAuthorizationAccount&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosAuthorizationAccount& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosAuthorizationAccount* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosAuthorizationAccount_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(EosTxActionAck_EosAuthorizationAccount* other); + friend void swap(EosTxActionAck_EosAuthorizationAccount& a, EosTxActionAck_EosAuthorizationAccount& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosAuthorizationAccount* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosAuthorizationAccount* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosAuthorizationAccount& from); + void MergeFrom(const EosTxActionAck_EosAuthorizationAccount& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosAuthorizationAccount* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel account = 1; + bool has_account() const; + void clear_account(); + static const int kAccountFieldNumber = 1; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel& _internal_account() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel& account() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* release_account(); + ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* mutable_account(); + void set_allocated_account(::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* account); + + // optional uint32 weight = 2; + bool has_weight() const; + void clear_weight(); + static const int kWeightFieldNumber = 2; + ::google::protobuf::uint32 weight() const; + void set_weight(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount) + private: + void set_has_account(); + void clear_has_account(); + void set_has_weight(); + void clear_has_weight(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* account_; + ::google::protobuf::uint32 weight_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosAuthorizationWait : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) */ { + public: + EosTxActionAck_EosAuthorizationWait(); + virtual ~EosTxActionAck_EosAuthorizationWait(); + + EosTxActionAck_EosAuthorizationWait(const EosTxActionAck_EosAuthorizationWait& from); + + inline EosTxActionAck_EosAuthorizationWait& operator=(const EosTxActionAck_EosAuthorizationWait& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosAuthorizationWait(EosTxActionAck_EosAuthorizationWait&& from) noexcept + : EosTxActionAck_EosAuthorizationWait() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosAuthorizationWait& operator=(EosTxActionAck_EosAuthorizationWait&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosAuthorizationWait& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosAuthorizationWait* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosAuthorizationWait_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(EosTxActionAck_EosAuthorizationWait* other); + friend void swap(EosTxActionAck_EosAuthorizationWait& a, EosTxActionAck_EosAuthorizationWait& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosAuthorizationWait* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosAuthorizationWait* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosAuthorizationWait& from); + void MergeFrom(const EosTxActionAck_EosAuthorizationWait& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosAuthorizationWait* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 wait_sec = 1; + bool has_wait_sec() const; + void clear_wait_sec(); + static const int kWaitSecFieldNumber = 1; + ::google::protobuf::uint32 wait_sec() const; + void set_wait_sec(::google::protobuf::uint32 value); + + // optional uint32 weight = 2; + bool has_weight() const; + void clear_weight(); + static const int kWeightFieldNumber = 2; + ::google::protobuf::uint32 weight() const; + void set_weight(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait) + private: + void set_has_wait_sec(); + void clear_has_wait_sec(); + void set_has_weight(); + void clear_has_weight(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 wait_sec_; + ::google::protobuf::uint32 weight_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosAuthorization : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) */ { + public: + EosTxActionAck_EosAuthorization(); + virtual ~EosTxActionAck_EosAuthorization(); + + EosTxActionAck_EosAuthorization(const EosTxActionAck_EosAuthorization& from); + + inline EosTxActionAck_EosAuthorization& operator=(const EosTxActionAck_EosAuthorization& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosAuthorization(EosTxActionAck_EosAuthorization&& from) noexcept + : EosTxActionAck_EosAuthorization() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosAuthorization& operator=(EosTxActionAck_EosAuthorization&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosAuthorization& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosAuthorization* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosAuthorization_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(EosTxActionAck_EosAuthorization* other); + friend void swap(EosTxActionAck_EosAuthorization& a, EosTxActionAck_EosAuthorization& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosAuthorization* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosAuthorization* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosAuthorization& from); + void MergeFrom(const EosTxActionAck_EosAuthorization& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosAuthorization* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey keys = 2; + int keys_size() const; + void clear_keys(); + static const int kKeysFieldNumber = 2; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey* mutable_keys(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey >* + mutable_keys(); + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey& keys(int index) const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey* add_keys(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey >& + keys() const; + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount accounts = 3; + int accounts_size() const; + void clear_accounts(); + static const int kAccountsFieldNumber = 3; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount* mutable_accounts(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount >* + mutable_accounts(); + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount& accounts(int index) const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount* add_accounts(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount >& + accounts() const; + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait waits = 4; + int waits_size() const; + void clear_waits(); + static const int kWaitsFieldNumber = 4; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait* mutable_waits(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait >* + mutable_waits(); + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait& waits(int index) const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait* add_waits(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait >& + waits() const; + + // optional uint32 threshold = 1; + bool has_threshold() const; + void clear_threshold(); + static const int kThresholdFieldNumber = 1; + ::google::protobuf::uint32 threshold() const; + void set_threshold(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization) + private: + void set_has_threshold(); + void clear_has_threshold(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey > keys_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount > accounts_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait > waits_; + ::google::protobuf::uint32 threshold_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionCommon : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) */ { + public: + EosTxActionAck_EosActionCommon(); + virtual ~EosTxActionAck_EosActionCommon(); + + EosTxActionAck_EosActionCommon(const EosTxActionAck_EosActionCommon& from); + + inline EosTxActionAck_EosActionCommon& operator=(const EosTxActionAck_EosActionCommon& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionCommon(EosTxActionAck_EosActionCommon&& from) noexcept + : EosTxActionAck_EosActionCommon() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionCommon& operator=(EosTxActionAck_EosActionCommon&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionCommon& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionCommon* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionCommon_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(EosTxActionAck_EosActionCommon* other); + friend void swap(EosTxActionAck_EosActionCommon& a, EosTxActionAck_EosActionCommon& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionCommon* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionCommon* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionCommon& from); + void MergeFrom(const EosTxActionAck_EosActionCommon& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionCommon* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel authorization = 3; + int authorization_size() const; + void clear_authorization(); + static const int kAuthorizationFieldNumber = 3; + ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* mutable_authorization(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel >* + mutable_authorization(); + const ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel& authorization(int index) const; + ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* add_authorization(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel >& + authorization() const; + + // optional uint64 account = 1; + bool has_account() const; + void clear_account(); + static const int kAccountFieldNumber = 1; + ::google::protobuf::uint64 account() const; + void set_account(::google::protobuf::uint64 value); + + // optional uint64 name = 2; + bool has_name() const; + void clear_name(); + static const int kNameFieldNumber = 2; + ::google::protobuf::uint64 name() const; + void set_name(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon) + private: + void set_has_account(); + void clear_has_account(); + void set_has_name(); + void clear_has_name(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel > authorization_; + ::google::protobuf::uint64 account_; + ::google::protobuf::uint64 name_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionTransfer : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) */ { + public: + EosTxActionAck_EosActionTransfer(); + virtual ~EosTxActionAck_EosActionTransfer(); + + EosTxActionAck_EosActionTransfer(const EosTxActionAck_EosActionTransfer& from); + + inline EosTxActionAck_EosActionTransfer& operator=(const EosTxActionAck_EosActionTransfer& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionTransfer(EosTxActionAck_EosActionTransfer&& from) noexcept + : EosTxActionAck_EosActionTransfer() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionTransfer& operator=(EosTxActionAck_EosActionTransfer&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionTransfer& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionTransfer* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionTransfer_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(EosTxActionAck_EosActionTransfer* other); + friend void swap(EosTxActionAck_EosActionTransfer& a, EosTxActionAck_EosActionTransfer& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionTransfer* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionTransfer* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionTransfer& from); + void MergeFrom(const EosTxActionAck_EosActionTransfer& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionTransfer* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string memo = 4; + bool has_memo() const; + void clear_memo(); + static const int kMemoFieldNumber = 4; + const ::std::string& memo() const; + void set_memo(const ::std::string& value); + #if LANG_CXX11 + void set_memo(::std::string&& value); + #endif + void set_memo(const char* value); + void set_memo(const char* value, size_t size); + ::std::string* mutable_memo(); + ::std::string* release_memo(); + void set_allocated_memo(::std::string* memo); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; + bool has_quantity() const; + void clear_quantity(); + static const int kQuantityFieldNumber = 3; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& _internal_quantity() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& quantity() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* release_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* mutable_quantity(); + void set_allocated_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* quantity); + + // optional uint64 sender = 1; + bool has_sender() const; + void clear_sender(); + static const int kSenderFieldNumber = 1; + ::google::protobuf::uint64 sender() const; + void set_sender(::google::protobuf::uint64 value); + + // optional uint64 receiver = 2; + bool has_receiver() const; + void clear_receiver(); + static const int kReceiverFieldNumber = 2; + ::google::protobuf::uint64 receiver() const; + void set_receiver(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer) + private: + void set_has_sender(); + void clear_has_sender(); + void set_has_receiver(); + void clear_has_receiver(); + void set_has_quantity(); + void clear_has_quantity(); + void set_has_memo(); + void clear_has_memo(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr memo_; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* quantity_; + ::google::protobuf::uint64 sender_; + ::google::protobuf::uint64 receiver_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionDelegate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) */ { + public: + EosTxActionAck_EosActionDelegate(); + virtual ~EosTxActionAck_EosActionDelegate(); + + EosTxActionAck_EosActionDelegate(const EosTxActionAck_EosActionDelegate& from); + + inline EosTxActionAck_EosActionDelegate& operator=(const EosTxActionAck_EosActionDelegate& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionDelegate(EosTxActionAck_EosActionDelegate&& from) noexcept + : EosTxActionAck_EosActionDelegate() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionDelegate& operator=(EosTxActionAck_EosActionDelegate&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionDelegate& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionDelegate* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionDelegate_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(EosTxActionAck_EosActionDelegate* other); + friend void swap(EosTxActionAck_EosActionDelegate& a, EosTxActionAck_EosActionDelegate& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionDelegate* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionDelegate* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionDelegate& from); + void MergeFrom(const EosTxActionAck_EosActionDelegate& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionDelegate* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; + bool has_net_quantity() const; + void clear_net_quantity(); + static const int kNetQuantityFieldNumber = 3; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& _internal_net_quantity() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& net_quantity() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* release_net_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* mutable_net_quantity(); + void set_allocated_net_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* net_quantity); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; + bool has_cpu_quantity() const; + void clear_cpu_quantity(); + static const int kCpuQuantityFieldNumber = 4; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& _internal_cpu_quantity() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& cpu_quantity() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* release_cpu_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* mutable_cpu_quantity(); + void set_allocated_cpu_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* cpu_quantity); + + // optional uint64 sender = 1; + bool has_sender() const; + void clear_sender(); + static const int kSenderFieldNumber = 1; + ::google::protobuf::uint64 sender() const; + void set_sender(::google::protobuf::uint64 value); + + // optional uint64 receiver = 2; + bool has_receiver() const; + void clear_receiver(); + static const int kReceiverFieldNumber = 2; + ::google::protobuf::uint64 receiver() const; + void set_receiver(::google::protobuf::uint64 value); + + // optional bool transfer = 5; + bool has_transfer() const; + void clear_transfer(); + static const int kTransferFieldNumber = 5; + bool transfer() const; + void set_transfer(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate) + private: + void set_has_sender(); + void clear_has_sender(); + void set_has_receiver(); + void clear_has_receiver(); + void set_has_net_quantity(); + void clear_has_net_quantity(); + void set_has_cpu_quantity(); + void clear_has_cpu_quantity(); + void set_has_transfer(); + void clear_has_transfer(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* net_quantity_; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* cpu_quantity_; + ::google::protobuf::uint64 sender_; + ::google::protobuf::uint64 receiver_; + bool transfer_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionUndelegate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) */ { + public: + EosTxActionAck_EosActionUndelegate(); + virtual ~EosTxActionAck_EosActionUndelegate(); + + EosTxActionAck_EosActionUndelegate(const EosTxActionAck_EosActionUndelegate& from); + + inline EosTxActionAck_EosActionUndelegate& operator=(const EosTxActionAck_EosActionUndelegate& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionUndelegate(EosTxActionAck_EosActionUndelegate&& from) noexcept + : EosTxActionAck_EosActionUndelegate() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionUndelegate& operator=(EosTxActionAck_EosActionUndelegate&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionUndelegate& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionUndelegate* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionUndelegate_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(EosTxActionAck_EosActionUndelegate* other); + friend void swap(EosTxActionAck_EosActionUndelegate& a, EosTxActionAck_EosActionUndelegate& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionUndelegate* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionUndelegate* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionUndelegate& from); + void MergeFrom(const EosTxActionAck_EosActionUndelegate& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionUndelegate* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; + bool has_net_quantity() const; + void clear_net_quantity(); + static const int kNetQuantityFieldNumber = 3; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& _internal_net_quantity() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& net_quantity() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* release_net_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* mutable_net_quantity(); + void set_allocated_net_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* net_quantity); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; + bool has_cpu_quantity() const; + void clear_cpu_quantity(); + static const int kCpuQuantityFieldNumber = 4; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& _internal_cpu_quantity() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& cpu_quantity() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* release_cpu_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* mutable_cpu_quantity(); + void set_allocated_cpu_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* cpu_quantity); + + // optional uint64 sender = 1; + bool has_sender() const; + void clear_sender(); + static const int kSenderFieldNumber = 1; + ::google::protobuf::uint64 sender() const; + void set_sender(::google::protobuf::uint64 value); + + // optional uint64 receiver = 2; + bool has_receiver() const; + void clear_receiver(); + static const int kReceiverFieldNumber = 2; + ::google::protobuf::uint64 receiver() const; + void set_receiver(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate) + private: + void set_has_sender(); + void clear_has_sender(); + void set_has_receiver(); + void clear_has_receiver(); + void set_has_net_quantity(); + void clear_has_net_quantity(); + void set_has_cpu_quantity(); + void clear_has_cpu_quantity(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* net_quantity_; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* cpu_quantity_; + ::google::protobuf::uint64 sender_; + ::google::protobuf::uint64 receiver_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionRefund : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) */ { + public: + EosTxActionAck_EosActionRefund(); + virtual ~EosTxActionAck_EosActionRefund(); + + EosTxActionAck_EosActionRefund(const EosTxActionAck_EosActionRefund& from); + + inline EosTxActionAck_EosActionRefund& operator=(const EosTxActionAck_EosActionRefund& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionRefund(EosTxActionAck_EosActionRefund&& from) noexcept + : EosTxActionAck_EosActionRefund() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionRefund& operator=(EosTxActionAck_EosActionRefund&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionRefund& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionRefund* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionRefund_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(EosTxActionAck_EosActionRefund* other); + friend void swap(EosTxActionAck_EosActionRefund& a, EosTxActionAck_EosActionRefund& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionRefund* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionRefund* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionRefund& from); + void MergeFrom(const EosTxActionAck_EosActionRefund& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionRefund* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 owner = 1; + bool has_owner() const; + void clear_owner(); + static const int kOwnerFieldNumber = 1; + ::google::protobuf::uint64 owner() const; + void set_owner(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund) + private: + void set_has_owner(); + void clear_has_owner(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 owner_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionBuyRam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) */ { + public: + EosTxActionAck_EosActionBuyRam(); + virtual ~EosTxActionAck_EosActionBuyRam(); + + EosTxActionAck_EosActionBuyRam(const EosTxActionAck_EosActionBuyRam& from); + + inline EosTxActionAck_EosActionBuyRam& operator=(const EosTxActionAck_EosActionBuyRam& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionBuyRam(EosTxActionAck_EosActionBuyRam&& from) noexcept + : EosTxActionAck_EosActionBuyRam() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionBuyRam& operator=(EosTxActionAck_EosActionBuyRam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionBuyRam& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionBuyRam* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionBuyRam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(EosTxActionAck_EosActionBuyRam* other); + friend void swap(EosTxActionAck_EosActionBuyRam& a, EosTxActionAck_EosActionBuyRam& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionBuyRam* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionBuyRam* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionBuyRam& from); + void MergeFrom(const EosTxActionAck_EosActionBuyRam& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionBuyRam* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; + bool has_quantity() const; + void clear_quantity(); + static const int kQuantityFieldNumber = 3; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& _internal_quantity() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& quantity() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* release_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* mutable_quantity(); + void set_allocated_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* quantity); + + // optional uint64 payer = 1; + bool has_payer() const; + void clear_payer(); + static const int kPayerFieldNumber = 1; + ::google::protobuf::uint64 payer() const; + void set_payer(::google::protobuf::uint64 value); + + // optional uint64 receiver = 2; + bool has_receiver() const; + void clear_receiver(); + static const int kReceiverFieldNumber = 2; + ::google::protobuf::uint64 receiver() const; + void set_receiver(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam) + private: + void set_has_payer(); + void clear_has_payer(); + void set_has_receiver(); + void clear_has_receiver(); + void set_has_quantity(); + void clear_has_quantity(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* quantity_; + ::google::protobuf::uint64 payer_; + ::google::protobuf::uint64 receiver_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionBuyRamBytes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) */ { + public: + EosTxActionAck_EosActionBuyRamBytes(); + virtual ~EosTxActionAck_EosActionBuyRamBytes(); + + EosTxActionAck_EosActionBuyRamBytes(const EosTxActionAck_EosActionBuyRamBytes& from); + + inline EosTxActionAck_EosActionBuyRamBytes& operator=(const EosTxActionAck_EosActionBuyRamBytes& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionBuyRamBytes(EosTxActionAck_EosActionBuyRamBytes&& from) noexcept + : EosTxActionAck_EosActionBuyRamBytes() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionBuyRamBytes& operator=(EosTxActionAck_EosActionBuyRamBytes&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionBuyRamBytes& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionBuyRamBytes* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionBuyRamBytes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(EosTxActionAck_EosActionBuyRamBytes* other); + friend void swap(EosTxActionAck_EosActionBuyRamBytes& a, EosTxActionAck_EosActionBuyRamBytes& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionBuyRamBytes* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionBuyRamBytes* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionBuyRamBytes& from); + void MergeFrom(const EosTxActionAck_EosActionBuyRamBytes& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionBuyRamBytes* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 payer = 1; + bool has_payer() const; + void clear_payer(); + static const int kPayerFieldNumber = 1; + ::google::protobuf::uint64 payer() const; + void set_payer(::google::protobuf::uint64 value); + + // optional uint64 receiver = 2; + bool has_receiver() const; + void clear_receiver(); + static const int kReceiverFieldNumber = 2; + ::google::protobuf::uint64 receiver() const; + void set_receiver(::google::protobuf::uint64 value); + + // optional uint32 bytes = 3; + bool has_bytes() const; + void clear_bytes(); + static const int kBytesFieldNumber = 3; + ::google::protobuf::uint32 bytes() const; + void set_bytes(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes) + private: + void set_has_payer(); + void clear_has_payer(); + void set_has_receiver(); + void clear_has_receiver(); + void set_has_bytes(); + void clear_has_bytes(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 payer_; + ::google::protobuf::uint64 receiver_; + ::google::protobuf::uint32 bytes_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionSellRam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) */ { + public: + EosTxActionAck_EosActionSellRam(); + virtual ~EosTxActionAck_EosActionSellRam(); + + EosTxActionAck_EosActionSellRam(const EosTxActionAck_EosActionSellRam& from); + + inline EosTxActionAck_EosActionSellRam& operator=(const EosTxActionAck_EosActionSellRam& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionSellRam(EosTxActionAck_EosActionSellRam&& from) noexcept + : EosTxActionAck_EosActionSellRam() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionSellRam& operator=(EosTxActionAck_EosActionSellRam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionSellRam& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionSellRam* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionSellRam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + void Swap(EosTxActionAck_EosActionSellRam* other); + friend void swap(EosTxActionAck_EosActionSellRam& a, EosTxActionAck_EosActionSellRam& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionSellRam* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionSellRam* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionSellRam& from); + void MergeFrom(const EosTxActionAck_EosActionSellRam& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionSellRam* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 account = 1; + bool has_account() const; + void clear_account(); + static const int kAccountFieldNumber = 1; + ::google::protobuf::uint64 account() const; + void set_account(::google::protobuf::uint64 value); + + // optional uint64 bytes = 2; + bool has_bytes() const; + void clear_bytes(); + static const int kBytesFieldNumber = 2; + ::google::protobuf::uint64 bytes() const; + void set_bytes(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam) + private: + void set_has_account(); + void clear_has_account(); + void set_has_bytes(); + void clear_has_bytes(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 account_; + ::google::protobuf::uint64 bytes_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionVoteProducer : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) */ { + public: + EosTxActionAck_EosActionVoteProducer(); + virtual ~EosTxActionAck_EosActionVoteProducer(); + + EosTxActionAck_EosActionVoteProducer(const EosTxActionAck_EosActionVoteProducer& from); + + inline EosTxActionAck_EosActionVoteProducer& operator=(const EosTxActionAck_EosActionVoteProducer& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionVoteProducer(EosTxActionAck_EosActionVoteProducer&& from) noexcept + : EosTxActionAck_EosActionVoteProducer() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionVoteProducer& operator=(EosTxActionAck_EosActionVoteProducer&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionVoteProducer& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionVoteProducer* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionVoteProducer_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + void Swap(EosTxActionAck_EosActionVoteProducer* other); + friend void swap(EosTxActionAck_EosActionVoteProducer& a, EosTxActionAck_EosActionVoteProducer& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionVoteProducer* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionVoteProducer* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionVoteProducer& from); + void MergeFrom(const EosTxActionAck_EosActionVoteProducer& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionVoteProducer* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint64 producers = 3; + int producers_size() const; + void clear_producers(); + static const int kProducersFieldNumber = 3; + ::google::protobuf::uint64 producers(int index) const; + void set_producers(int index, ::google::protobuf::uint64 value); + void add_producers(::google::protobuf::uint64 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& + producers() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* + mutable_producers(); + + // optional uint64 voter = 1; + bool has_voter() const; + void clear_voter(); + static const int kVoterFieldNumber = 1; + ::google::protobuf::uint64 voter() const; + void set_voter(::google::protobuf::uint64 value); + + // optional uint64 proxy = 2; + bool has_proxy() const; + void clear_proxy(); + static const int kProxyFieldNumber = 2; + ::google::protobuf::uint64 proxy() const; + void set_proxy(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer) + private: + void set_has_voter(); + void clear_has_voter(); + void set_has_proxy(); + void clear_has_proxy(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > producers_; + ::google::protobuf::uint64 voter_; + ::google::protobuf::uint64 proxy_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionUpdateAuth : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) */ { + public: + EosTxActionAck_EosActionUpdateAuth(); + virtual ~EosTxActionAck_EosActionUpdateAuth(); + + EosTxActionAck_EosActionUpdateAuth(const EosTxActionAck_EosActionUpdateAuth& from); + + inline EosTxActionAck_EosActionUpdateAuth& operator=(const EosTxActionAck_EosActionUpdateAuth& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionUpdateAuth(EosTxActionAck_EosActionUpdateAuth&& from) noexcept + : EosTxActionAck_EosActionUpdateAuth() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionUpdateAuth& operator=(EosTxActionAck_EosActionUpdateAuth&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionUpdateAuth& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionUpdateAuth* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionUpdateAuth_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + void Swap(EosTxActionAck_EosActionUpdateAuth* other); + friend void swap(EosTxActionAck_EosActionUpdateAuth& a, EosTxActionAck_EosActionUpdateAuth& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionUpdateAuth* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionUpdateAuth* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionUpdateAuth& from); + void MergeFrom(const EosTxActionAck_EosActionUpdateAuth& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionUpdateAuth* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization auth = 4; + bool has_auth() const; + void clear_auth(); + static const int kAuthFieldNumber = 4; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& _internal_auth() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& auth() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* release_auth(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* mutable_auth(); + void set_allocated_auth(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* auth); + + // optional uint64 account = 1; + bool has_account() const; + void clear_account(); + static const int kAccountFieldNumber = 1; + ::google::protobuf::uint64 account() const; + void set_account(::google::protobuf::uint64 value); + + // optional uint64 permission = 2; + bool has_permission() const; + void clear_permission(); + static const int kPermissionFieldNumber = 2; + ::google::protobuf::uint64 permission() const; + void set_permission(::google::protobuf::uint64 value); + + // optional uint64 parent = 3; + bool has_parent() const; + void clear_parent(); + static const int kParentFieldNumber = 3; + ::google::protobuf::uint64 parent() const; + void set_parent(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth) + private: + void set_has_account(); + void clear_has_account(); + void set_has_permission(); + void clear_has_permission(); + void set_has_parent(); + void clear_has_parent(); + void set_has_auth(); + void clear_has_auth(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* auth_; + ::google::protobuf::uint64 account_; + ::google::protobuf::uint64 permission_; + ::google::protobuf::uint64 parent_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionDeleteAuth : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) */ { + public: + EosTxActionAck_EosActionDeleteAuth(); + virtual ~EosTxActionAck_EosActionDeleteAuth(); + + EosTxActionAck_EosActionDeleteAuth(const EosTxActionAck_EosActionDeleteAuth& from); + + inline EosTxActionAck_EosActionDeleteAuth& operator=(const EosTxActionAck_EosActionDeleteAuth& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionDeleteAuth(EosTxActionAck_EosActionDeleteAuth&& from) noexcept + : EosTxActionAck_EosActionDeleteAuth() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionDeleteAuth& operator=(EosTxActionAck_EosActionDeleteAuth&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionDeleteAuth& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionDeleteAuth* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionDeleteAuth_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + void Swap(EosTxActionAck_EosActionDeleteAuth* other); + friend void swap(EosTxActionAck_EosActionDeleteAuth& a, EosTxActionAck_EosActionDeleteAuth& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionDeleteAuth* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionDeleteAuth* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionDeleteAuth& from); + void MergeFrom(const EosTxActionAck_EosActionDeleteAuth& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionDeleteAuth* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 account = 1; + bool has_account() const; + void clear_account(); + static const int kAccountFieldNumber = 1; + ::google::protobuf::uint64 account() const; + void set_account(::google::protobuf::uint64 value); + + // optional uint64 permission = 2; + bool has_permission() const; + void clear_permission(); + static const int kPermissionFieldNumber = 2; + ::google::protobuf::uint64 permission() const; + void set_permission(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth) + private: + void set_has_account(); + void clear_has_account(); + void set_has_permission(); + void clear_has_permission(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 account_; + ::google::protobuf::uint64 permission_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionLinkAuth : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) */ { + public: + EosTxActionAck_EosActionLinkAuth(); + virtual ~EosTxActionAck_EosActionLinkAuth(); + + EosTxActionAck_EosActionLinkAuth(const EosTxActionAck_EosActionLinkAuth& from); + + inline EosTxActionAck_EosActionLinkAuth& operator=(const EosTxActionAck_EosActionLinkAuth& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionLinkAuth(EosTxActionAck_EosActionLinkAuth&& from) noexcept + : EosTxActionAck_EosActionLinkAuth() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionLinkAuth& operator=(EosTxActionAck_EosActionLinkAuth&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionLinkAuth& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionLinkAuth* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionLinkAuth_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + void Swap(EosTxActionAck_EosActionLinkAuth* other); + friend void swap(EosTxActionAck_EosActionLinkAuth& a, EosTxActionAck_EosActionLinkAuth& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionLinkAuth* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionLinkAuth* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionLinkAuth& from); + void MergeFrom(const EosTxActionAck_EosActionLinkAuth& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionLinkAuth* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 account = 1; + bool has_account() const; + void clear_account(); + static const int kAccountFieldNumber = 1; + ::google::protobuf::uint64 account() const; + void set_account(::google::protobuf::uint64 value); + + // optional uint64 code = 2; + bool has_code() const; + void clear_code(); + static const int kCodeFieldNumber = 2; + ::google::protobuf::uint64 code() const; + void set_code(::google::protobuf::uint64 value); + + // optional uint64 type = 3; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 3; + ::google::protobuf::uint64 type() const; + void set_type(::google::protobuf::uint64 value); + + // optional uint64 requirement = 4; + bool has_requirement() const; + void clear_requirement(); + static const int kRequirementFieldNumber = 4; + ::google::protobuf::uint64 requirement() const; + void set_requirement(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth) + private: + void set_has_account(); + void clear_has_account(); + void set_has_code(); + void clear_has_code(); + void set_has_type(); + void clear_has_type(); + void set_has_requirement(); + void clear_has_requirement(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 account_; + ::google::protobuf::uint64 code_; + ::google::protobuf::uint64 type_; + ::google::protobuf::uint64 requirement_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionUnlinkAuth : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) */ { + public: + EosTxActionAck_EosActionUnlinkAuth(); + virtual ~EosTxActionAck_EosActionUnlinkAuth(); + + EosTxActionAck_EosActionUnlinkAuth(const EosTxActionAck_EosActionUnlinkAuth& from); + + inline EosTxActionAck_EosActionUnlinkAuth& operator=(const EosTxActionAck_EosActionUnlinkAuth& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionUnlinkAuth(EosTxActionAck_EosActionUnlinkAuth&& from) noexcept + : EosTxActionAck_EosActionUnlinkAuth() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionUnlinkAuth& operator=(EosTxActionAck_EosActionUnlinkAuth&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionUnlinkAuth& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionUnlinkAuth* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionUnlinkAuth_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + void Swap(EosTxActionAck_EosActionUnlinkAuth* other); + friend void swap(EosTxActionAck_EosActionUnlinkAuth& a, EosTxActionAck_EosActionUnlinkAuth& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionUnlinkAuth* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionUnlinkAuth* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionUnlinkAuth& from); + void MergeFrom(const EosTxActionAck_EosActionUnlinkAuth& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionUnlinkAuth* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 account = 1; + bool has_account() const; + void clear_account(); + static const int kAccountFieldNumber = 1; + ::google::protobuf::uint64 account() const; + void set_account(::google::protobuf::uint64 value); + + // optional uint64 code = 2; + bool has_code() const; + void clear_code(); + static const int kCodeFieldNumber = 2; + ::google::protobuf::uint64 code() const; + void set_code(::google::protobuf::uint64 value); + + // optional uint64 type = 3; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 3; + ::google::protobuf::uint64 type() const; + void set_type(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth) + private: + void set_has_account(); + void clear_has_account(); + void set_has_code(); + void clear_has_code(); + void set_has_type(); + void clear_has_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 account_; + ::google::protobuf::uint64 code_; + ::google::protobuf::uint64 type_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionNewAccount : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) */ { + public: + EosTxActionAck_EosActionNewAccount(); + virtual ~EosTxActionAck_EosActionNewAccount(); + + EosTxActionAck_EosActionNewAccount(const EosTxActionAck_EosActionNewAccount& from); + + inline EosTxActionAck_EosActionNewAccount& operator=(const EosTxActionAck_EosActionNewAccount& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionNewAccount(EosTxActionAck_EosActionNewAccount&& from) noexcept + : EosTxActionAck_EosActionNewAccount() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionNewAccount& operator=(EosTxActionAck_EosActionNewAccount&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionNewAccount& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionNewAccount* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionNewAccount_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + void Swap(EosTxActionAck_EosActionNewAccount* other); + friend void swap(EosTxActionAck_EosActionNewAccount& a, EosTxActionAck_EosActionNewAccount& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionNewAccount* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionNewAccount* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionNewAccount& from); + void MergeFrom(const EosTxActionAck_EosActionNewAccount& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionNewAccount* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization owner = 3; + bool has_owner() const; + void clear_owner(); + static const int kOwnerFieldNumber = 3; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& _internal_owner() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& owner() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* release_owner(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* mutable_owner(); + void set_allocated_owner(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* owner); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization active = 4; + bool has_active() const; + void clear_active(); + static const int kActiveFieldNumber = 4; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& _internal_active() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& active() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* release_active(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* mutable_active(); + void set_allocated_active(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* active); + + // optional uint64 creator = 1; + bool has_creator() const; + void clear_creator(); + static const int kCreatorFieldNumber = 1; + ::google::protobuf::uint64 creator() const; + void set_creator(::google::protobuf::uint64 value); + + // optional uint64 name = 2; + bool has_name() const; + void clear_name(); + static const int kNameFieldNumber = 2; + ::google::protobuf::uint64 name() const; + void set_name(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount) + private: + void set_has_creator(); + void clear_has_creator(); + void set_has_name(); + void clear_has_name(); + void set_has_owner(); + void clear_has_owner(); + void set_has_active(); + void clear_has_active(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* owner_; + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* active_; + ::google::protobuf::uint64 creator_; + ::google::protobuf::uint64 name_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck_EosActionUnknown : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) */ { + public: + EosTxActionAck_EosActionUnknown(); + virtual ~EosTxActionAck_EosActionUnknown(); + + EosTxActionAck_EosActionUnknown(const EosTxActionAck_EosActionUnknown& from); + + inline EosTxActionAck_EosActionUnknown& operator=(const EosTxActionAck_EosActionUnknown& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck_EosActionUnknown(EosTxActionAck_EosActionUnknown&& from) noexcept + : EosTxActionAck_EosActionUnknown() { + *this = ::std::move(from); + } + + inline EosTxActionAck_EosActionUnknown& operator=(EosTxActionAck_EosActionUnknown&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck_EosActionUnknown& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck_EosActionUnknown* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_EosActionUnknown_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + void Swap(EosTxActionAck_EosActionUnknown* other); + friend void swap(EosTxActionAck_EosActionUnknown& a, EosTxActionAck_EosActionUnknown& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck_EosActionUnknown* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck_EosActionUnknown* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck_EosActionUnknown& from); + void MergeFrom(const EosTxActionAck_EosActionUnknown& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck_EosActionUnknown* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes data_chunk = 2; + bool has_data_chunk() const; + void clear_data_chunk(); + static const int kDataChunkFieldNumber = 2; + const ::std::string& data_chunk() const; + void set_data_chunk(const ::std::string& value); + #if LANG_CXX11 + void set_data_chunk(::std::string&& value); + #endif + void set_data_chunk(const char* value); + void set_data_chunk(const void* value, size_t size); + ::std::string* mutable_data_chunk(); + ::std::string* release_data_chunk(); + void set_allocated_data_chunk(::std::string* data_chunk); + + // optional uint32 data_size = 1; + bool has_data_size() const; + void clear_data_size(); + static const int kDataSizeFieldNumber = 1; + ::google::protobuf::uint32 data_size() const; + void set_data_size(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown) + private: + void set_has_data_size(); + void clear_has_data_size(); + void set_has_data_chunk(); + void clear_has_data_chunk(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr data_chunk_; + ::google::protobuf::uint32 data_size_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosTxActionAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosTxActionAck) */ { + public: + EosTxActionAck(); + virtual ~EosTxActionAck(); + + EosTxActionAck(const EosTxActionAck& from); + + inline EosTxActionAck& operator=(const EosTxActionAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosTxActionAck(EosTxActionAck&& from) noexcept + : EosTxActionAck() { + *this = ::std::move(from); + } + + inline EosTxActionAck& operator=(EosTxActionAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosTxActionAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosTxActionAck* internal_default_instance() { + return reinterpret_cast( + &_EosTxActionAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + void Swap(EosTxActionAck* other); + friend void swap(EosTxActionAck& a, EosTxActionAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosTxActionAck* New() const final { + return CreateMaybeMessage(NULL); + } + + EosTxActionAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosTxActionAck& from); + void MergeFrom(const EosTxActionAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosTxActionAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef EosTxActionAck_EosAsset EosAsset; + typedef EosTxActionAck_EosPermissionLevel EosPermissionLevel; + typedef EosTxActionAck_EosAuthorizationKey EosAuthorizationKey; + typedef EosTxActionAck_EosAuthorizationAccount EosAuthorizationAccount; + typedef EosTxActionAck_EosAuthorizationWait EosAuthorizationWait; + typedef EosTxActionAck_EosAuthorization EosAuthorization; + typedef EosTxActionAck_EosActionCommon EosActionCommon; + typedef EosTxActionAck_EosActionTransfer EosActionTransfer; + typedef EosTxActionAck_EosActionDelegate EosActionDelegate; + typedef EosTxActionAck_EosActionUndelegate EosActionUndelegate; + typedef EosTxActionAck_EosActionRefund EosActionRefund; + typedef EosTxActionAck_EosActionBuyRam EosActionBuyRam; + typedef EosTxActionAck_EosActionBuyRamBytes EosActionBuyRamBytes; + typedef EosTxActionAck_EosActionSellRam EosActionSellRam; + typedef EosTxActionAck_EosActionVoteProducer EosActionVoteProducer; + typedef EosTxActionAck_EosActionUpdateAuth EosActionUpdateAuth; + typedef EosTxActionAck_EosActionDeleteAuth EosActionDeleteAuth; + typedef EosTxActionAck_EosActionLinkAuth EosActionLinkAuth; + typedef EosTxActionAck_EosActionUnlinkAuth EosActionUnlinkAuth; + typedef EosTxActionAck_EosActionNewAccount EosActionNewAccount; + typedef EosTxActionAck_EosActionUnknown EosActionUnknown; + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionCommon common = 1; + bool has_common() const; + void clear_common(); + static const int kCommonFieldNumber = 1; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon& _internal_common() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon& common() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon* release_common(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon* mutable_common(); + void set_allocated_common(::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon* common); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer transfer = 2; + bool has_transfer() const; + void clear_transfer(); + static const int kTransferFieldNumber = 2; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer& _internal_transfer() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer& transfer() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer* release_transfer(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer* mutable_transfer(); + void set_allocated_transfer(::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer* transfer); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate delegate = 3; + bool has_delegate() const; + void clear_delegate(); + static const int kDelegateFieldNumber = 3; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate& _internal_delegate() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate& delegate() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate* release_delegate(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate* mutable_delegate(); + void set_allocated_delegate(::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate* delegate); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate undelegate = 4; + bool has_undelegate() const; + void clear_undelegate(); + static const int kUndelegateFieldNumber = 4; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate& _internal_undelegate() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate& undelegate() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate* release_undelegate(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate* mutable_undelegate(); + void set_allocated_undelegate(::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate* undelegate); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionRefund refund = 5; + bool has_refund() const; + void clear_refund(); + static const int kRefundFieldNumber = 5; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund& _internal_refund() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund& refund() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund* release_refund(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund* mutable_refund(); + void set_allocated_refund(::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund* refund); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam buy_ram = 6; + bool has_buy_ram() const; + void clear_buy_ram(); + static const int kBuyRamFieldNumber = 6; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam& _internal_buy_ram() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam& buy_ram() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam* release_buy_ram(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam* mutable_buy_ram(); + void set_allocated_buy_ram(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam* buy_ram); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes buy_ram_bytes = 7; + bool has_buy_ram_bytes() const; + void clear_buy_ram_bytes(); + static const int kBuyRamBytesFieldNumber = 7; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes& _internal_buy_ram_bytes() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes& buy_ram_bytes() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes* release_buy_ram_bytes(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes* mutable_buy_ram_bytes(); + void set_allocated_buy_ram_bytes(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes* buy_ram_bytes); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam sell_ram = 8; + bool has_sell_ram() const; + void clear_sell_ram(); + static const int kSellRamFieldNumber = 8; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam& _internal_sell_ram() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam& sell_ram() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam* release_sell_ram(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam* mutable_sell_ram(); + void set_allocated_sell_ram(::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam* sell_ram); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer vote_producer = 9; + bool has_vote_producer() const; + void clear_vote_producer(); + static const int kVoteProducerFieldNumber = 9; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer& _internal_vote_producer() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer& vote_producer() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer* release_vote_producer(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer* mutable_vote_producer(); + void set_allocated_vote_producer(::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer* vote_producer); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth update_auth = 10; + bool has_update_auth() const; + void clear_update_auth(); + static const int kUpdateAuthFieldNumber = 10; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth& _internal_update_auth() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth& update_auth() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth* release_update_auth(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth* mutable_update_auth(); + void set_allocated_update_auth(::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth* update_auth); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth delete_auth = 11; + bool has_delete_auth() const; + void clear_delete_auth(); + static const int kDeleteAuthFieldNumber = 11; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth& _internal_delete_auth() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth& delete_auth() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth* release_delete_auth(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth* mutable_delete_auth(); + void set_allocated_delete_auth(::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth* delete_auth); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth link_auth = 12; + bool has_link_auth() const; + void clear_link_auth(); + static const int kLinkAuthFieldNumber = 12; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth& _internal_link_auth() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth& link_auth() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth* release_link_auth(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth* mutable_link_auth(); + void set_allocated_link_auth(::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth* link_auth); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth unlink_auth = 13; + bool has_unlink_auth() const; + void clear_unlink_auth(); + static const int kUnlinkAuthFieldNumber = 13; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth& _internal_unlink_auth() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth& unlink_auth() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth* release_unlink_auth(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth* mutable_unlink_auth(); + void set_allocated_unlink_auth(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth* unlink_auth); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount new_account = 14; + bool has_new_account() const; + void clear_new_account(); + static const int kNewAccountFieldNumber = 14; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount& _internal_new_account() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount& new_account() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount* release_new_account(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount* mutable_new_account(); + void set_allocated_new_account(::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount* new_account); + + // optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown unknown = 15; + bool has_unknown() const; + void clear_unknown(); + static const int kUnknownFieldNumber = 15; + private: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown& _internal_unknown() const; + public: + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown& unknown() const; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown* release_unknown(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown* mutable_unknown(); + void set_allocated_unknown(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown* unknown); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosTxActionAck) + private: + void set_has_common(); + void clear_has_common(); + void set_has_transfer(); + void clear_has_transfer(); + void set_has_delegate(); + void clear_has_delegate(); + void set_has_undelegate(); + void clear_has_undelegate(); + void set_has_refund(); + void clear_has_refund(); + void set_has_buy_ram(); + void clear_has_buy_ram(); + void set_has_buy_ram_bytes(); + void clear_has_buy_ram_bytes(); + void set_has_sell_ram(); + void clear_has_sell_ram(); + void set_has_vote_producer(); + void clear_has_vote_producer(); + void set_has_update_auth(); + void clear_has_update_auth(); + void set_has_delete_auth(); + void clear_has_delete_auth(); + void set_has_link_auth(); + void clear_has_link_auth(); + void set_has_unlink_auth(); + void clear_has_unlink_auth(); + void set_has_new_account(); + void clear_has_new_account(); + void set_has_unknown(); + void clear_has_unknown(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon* common_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer* transfer_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate* delegate_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate* undelegate_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund* refund_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam* buy_ram_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes* buy_ram_bytes_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam* sell_ram_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer* vote_producer_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth* update_auth_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth* delete_auth_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth* link_auth_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth* unlink_auth_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount* new_account_; + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown* unknown_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EosSignedTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.eos.EosSignedTx) */ { + public: + EosSignedTx(); + virtual ~EosSignedTx(); + + EosSignedTx(const EosSignedTx& from); + + inline EosSignedTx& operator=(const EosSignedTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EosSignedTx(EosSignedTx&& from) noexcept + : EosSignedTx() { + *this = ::std::move(from); + } + + inline EosSignedTx& operator=(EosSignedTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EosSignedTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EosSignedTx* internal_default_instance() { + return reinterpret_cast( + &_EosSignedTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + void Swap(EosSignedTx* other); + friend void swap(EosSignedTx& a, EosSignedTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EosSignedTx* New() const final { + return CreateMaybeMessage(NULL); + } + + EosSignedTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EosSignedTx& from); + void MergeFrom(const EosSignedTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EosSignedTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature_r = 2; + bool has_signature_r() const; + void clear_signature_r(); + static const int kSignatureRFieldNumber = 2; + const ::std::string& signature_r() const; + void set_signature_r(const ::std::string& value); + #if LANG_CXX11 + void set_signature_r(::std::string&& value); + #endif + void set_signature_r(const char* value); + void set_signature_r(const void* value, size_t size); + ::std::string* mutable_signature_r(); + ::std::string* release_signature_r(); + void set_allocated_signature_r(::std::string* signature_r); + + // optional bytes signature_s = 3; + bool has_signature_s() const; + void clear_signature_s(); + static const int kSignatureSFieldNumber = 3; + const ::std::string& signature_s() const; + void set_signature_s(const ::std::string& value); + #if LANG_CXX11 + void set_signature_s(::std::string&& value); + #endif + void set_signature_s(const char* value); + void set_signature_s(const void* value, size_t size); + ::std::string* mutable_signature_s(); + ::std::string* release_signature_s(); + void set_allocated_signature_s(::std::string* signature_s); + + // optional uint32 signature_v = 1; + bool has_signature_v() const; + void clear_signature_v(); + static const int kSignatureVFieldNumber = 1; + ::google::protobuf::uint32 signature_v() const; + void set_signature_v(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.eos.EosSignedTx) + private: + void set_has_signature_v(); + void clear_has_signature_v(); + void set_has_signature_r(); + void clear_has_signature_r(); + void set_has_signature_s(); + void clear_has_signature_s(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_r_; + ::google::protobuf::internal::ArenaStringPtr signature_s_; + ::google::protobuf::uint32 signature_v_; + friend struct ::protobuf_messages_2deos_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// EosGetPublicKey + +// repeated uint32 address_n = 1; +inline int EosGetPublicKey::address_n_size() const { + return address_n_.size(); +} +inline void EosGetPublicKey::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 EosGetPublicKey::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosGetPublicKey.address_n) + return address_n_.Get(index); +} +inline void EosGetPublicKey::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosGetPublicKey.address_n) +} +inline void EosGetPublicKey::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.eos.EosGetPublicKey.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +EosGetPublicKey::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.eos.EosGetPublicKey.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +EosGetPublicKey::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.eos.EosGetPublicKey.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool EosGetPublicKey::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosGetPublicKey::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosGetPublicKey::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosGetPublicKey::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool EosGetPublicKey::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosGetPublicKey.show_display) + return show_display_; +} +inline void EosGetPublicKey::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosGetPublicKey.show_display) +} + +// ------------------------------------------------------------------- + +// EosPublicKey + +// optional string wif_public_key = 1; +inline bool EosPublicKey::has_wif_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosPublicKey::set_has_wif_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosPublicKey::clear_has_wif_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosPublicKey::clear_wif_public_key() { + wif_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_wif_public_key(); +} +inline const ::std::string& EosPublicKey::wif_public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosPublicKey.wif_public_key) + return wif_public_key_.GetNoArena(); +} +inline void EosPublicKey::set_wif_public_key(const ::std::string& value) { + set_has_wif_public_key(); + wif_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosPublicKey.wif_public_key) +} +#if LANG_CXX11 +inline void EosPublicKey::set_wif_public_key(::std::string&& value) { + set_has_wif_public_key(); + wif_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.eos.EosPublicKey.wif_public_key) +} +#endif +inline void EosPublicKey::set_wif_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_wif_public_key(); + wif_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.eos.EosPublicKey.wif_public_key) +} +inline void EosPublicKey::set_wif_public_key(const char* value, size_t size) { + set_has_wif_public_key(); + wif_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.eos.EosPublicKey.wif_public_key) +} +inline ::std::string* EosPublicKey::mutable_wif_public_key() { + set_has_wif_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosPublicKey.wif_public_key) + return wif_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EosPublicKey::release_wif_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosPublicKey.wif_public_key) + if (!has_wif_public_key()) { + return NULL; + } + clear_has_wif_public_key(); + return wif_public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EosPublicKey::set_allocated_wif_public_key(::std::string* wif_public_key) { + if (wif_public_key != NULL) { + set_has_wif_public_key(); + } else { + clear_has_wif_public_key(); + } + wif_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), wif_public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosPublicKey.wif_public_key) +} + +// optional bytes raw_public_key = 2; +inline bool EosPublicKey::has_raw_public_key() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosPublicKey::set_has_raw_public_key() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosPublicKey::clear_has_raw_public_key() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosPublicKey::clear_raw_public_key() { + raw_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_raw_public_key(); +} +inline const ::std::string& EosPublicKey::raw_public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosPublicKey.raw_public_key) + return raw_public_key_.GetNoArena(); +} +inline void EosPublicKey::set_raw_public_key(const ::std::string& value) { + set_has_raw_public_key(); + raw_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosPublicKey.raw_public_key) +} +#if LANG_CXX11 +inline void EosPublicKey::set_raw_public_key(::std::string&& value) { + set_has_raw_public_key(); + raw_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.eos.EosPublicKey.raw_public_key) +} +#endif +inline void EosPublicKey::set_raw_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_raw_public_key(); + raw_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.eos.EosPublicKey.raw_public_key) +} +inline void EosPublicKey::set_raw_public_key(const void* value, size_t size) { + set_has_raw_public_key(); + raw_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.eos.EosPublicKey.raw_public_key) +} +inline ::std::string* EosPublicKey::mutable_raw_public_key() { + set_has_raw_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosPublicKey.raw_public_key) + return raw_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EosPublicKey::release_raw_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosPublicKey.raw_public_key) + if (!has_raw_public_key()) { + return NULL; + } + clear_has_raw_public_key(); + return raw_public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EosPublicKey::set_allocated_raw_public_key(::std::string* raw_public_key) { + if (raw_public_key != NULL) { + set_has_raw_public_key(); + } else { + clear_has_raw_public_key(); + } + raw_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), raw_public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosPublicKey.raw_public_key) +} + +// ------------------------------------------------------------------- + +// EosSignTx_EosTxHeader + +// required uint32 expiration = 1; +inline bool EosSignTx_EosTxHeader::has_expiration() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosSignTx_EosTxHeader::set_has_expiration() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosSignTx_EosTxHeader::clear_has_expiration() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosSignTx_EosTxHeader::clear_expiration() { + expiration_ = 0u; + clear_has_expiration(); +} +inline ::google::protobuf::uint32 EosSignTx_EosTxHeader::expiration() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignTx.EosTxHeader.expiration) + return expiration_; +} +inline void EosSignTx_EosTxHeader::set_expiration(::google::protobuf::uint32 value) { + set_has_expiration(); + expiration_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignTx.EosTxHeader.expiration) +} + +// required uint32 ref_block_num = 2; +inline bool EosSignTx_EosTxHeader::has_ref_block_num() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosSignTx_EosTxHeader::set_has_ref_block_num() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosSignTx_EosTxHeader::clear_has_ref_block_num() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosSignTx_EosTxHeader::clear_ref_block_num() { + ref_block_num_ = 0u; + clear_has_ref_block_num(); +} +inline ::google::protobuf::uint32 EosSignTx_EosTxHeader::ref_block_num() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignTx.EosTxHeader.ref_block_num) + return ref_block_num_; +} +inline void EosSignTx_EosTxHeader::set_ref_block_num(::google::protobuf::uint32 value) { + set_has_ref_block_num(); + ref_block_num_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignTx.EosTxHeader.ref_block_num) +} + +// required uint32 ref_block_prefix = 3; +inline bool EosSignTx_EosTxHeader::has_ref_block_prefix() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosSignTx_EosTxHeader::set_has_ref_block_prefix() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosSignTx_EosTxHeader::clear_has_ref_block_prefix() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosSignTx_EosTxHeader::clear_ref_block_prefix() { + ref_block_prefix_ = 0u; + clear_has_ref_block_prefix(); +} +inline ::google::protobuf::uint32 EosSignTx_EosTxHeader::ref_block_prefix() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignTx.EosTxHeader.ref_block_prefix) + return ref_block_prefix_; +} +inline void EosSignTx_EosTxHeader::set_ref_block_prefix(::google::protobuf::uint32 value) { + set_has_ref_block_prefix(); + ref_block_prefix_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignTx.EosTxHeader.ref_block_prefix) +} + +// required uint32 max_net_usage_words = 4; +inline bool EosSignTx_EosTxHeader::has_max_net_usage_words() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EosSignTx_EosTxHeader::set_has_max_net_usage_words() { + _has_bits_[0] |= 0x00000008u; +} +inline void EosSignTx_EosTxHeader::clear_has_max_net_usage_words() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EosSignTx_EosTxHeader::clear_max_net_usage_words() { + max_net_usage_words_ = 0u; + clear_has_max_net_usage_words(); +} +inline ::google::protobuf::uint32 EosSignTx_EosTxHeader::max_net_usage_words() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignTx.EosTxHeader.max_net_usage_words) + return max_net_usage_words_; +} +inline void EosSignTx_EosTxHeader::set_max_net_usage_words(::google::protobuf::uint32 value) { + set_has_max_net_usage_words(); + max_net_usage_words_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignTx.EosTxHeader.max_net_usage_words) +} + +// required uint32 max_cpu_usage_ms = 5; +inline bool EosSignTx_EosTxHeader::has_max_cpu_usage_ms() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void EosSignTx_EosTxHeader::set_has_max_cpu_usage_ms() { + _has_bits_[0] |= 0x00000010u; +} +inline void EosSignTx_EosTxHeader::clear_has_max_cpu_usage_ms() { + _has_bits_[0] &= ~0x00000010u; +} +inline void EosSignTx_EosTxHeader::clear_max_cpu_usage_ms() { + max_cpu_usage_ms_ = 0u; + clear_has_max_cpu_usage_ms(); +} +inline ::google::protobuf::uint32 EosSignTx_EosTxHeader::max_cpu_usage_ms() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignTx.EosTxHeader.max_cpu_usage_ms) + return max_cpu_usage_ms_; +} +inline void EosSignTx_EosTxHeader::set_max_cpu_usage_ms(::google::protobuf::uint32 value) { + set_has_max_cpu_usage_ms(); + max_cpu_usage_ms_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignTx.EosTxHeader.max_cpu_usage_ms) +} + +// required uint32 delay_sec = 6; +inline bool EosSignTx_EosTxHeader::has_delay_sec() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void EosSignTx_EosTxHeader::set_has_delay_sec() { + _has_bits_[0] |= 0x00000020u; +} +inline void EosSignTx_EosTxHeader::clear_has_delay_sec() { + _has_bits_[0] &= ~0x00000020u; +} +inline void EosSignTx_EosTxHeader::clear_delay_sec() { + delay_sec_ = 0u; + clear_has_delay_sec(); +} +inline ::google::protobuf::uint32 EosSignTx_EosTxHeader::delay_sec() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignTx.EosTxHeader.delay_sec) + return delay_sec_; +} +inline void EosSignTx_EosTxHeader::set_delay_sec(::google::protobuf::uint32 value) { + set_has_delay_sec(); + delay_sec_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignTx.EosTxHeader.delay_sec) +} + +// ------------------------------------------------------------------- + +// EosSignTx + +// repeated uint32 address_n = 1; +inline int EosSignTx::address_n_size() const { + return address_n_.size(); +} +inline void EosSignTx::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 EosSignTx::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignTx.address_n) + return address_n_.Get(index); +} +inline void EosSignTx::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignTx.address_n) +} +inline void EosSignTx::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.eos.EosSignTx.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +EosSignTx::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.eos.EosSignTx.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +EosSignTx::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.eos.EosSignTx.address_n) + return &address_n_; +} + +// optional bytes chain_id = 2; +inline bool EosSignTx::has_chain_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosSignTx::set_has_chain_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosSignTx::clear_has_chain_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosSignTx::clear_chain_id() { + chain_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_chain_id(); +} +inline const ::std::string& EosSignTx::chain_id() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignTx.chain_id) + return chain_id_.GetNoArena(); +} +inline void EosSignTx::set_chain_id(const ::std::string& value) { + set_has_chain_id(); + chain_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignTx.chain_id) +} +#if LANG_CXX11 +inline void EosSignTx::set_chain_id(::std::string&& value) { + set_has_chain_id(); + chain_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.eos.EosSignTx.chain_id) +} +#endif +inline void EosSignTx::set_chain_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_chain_id(); + chain_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.eos.EosSignTx.chain_id) +} +inline void EosSignTx::set_chain_id(const void* value, size_t size) { + set_has_chain_id(); + chain_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.eos.EosSignTx.chain_id) +} +inline ::std::string* EosSignTx::mutable_chain_id() { + set_has_chain_id(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosSignTx.chain_id) + return chain_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EosSignTx::release_chain_id() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosSignTx.chain_id) + if (!has_chain_id()) { + return NULL; + } + clear_has_chain_id(); + return chain_id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EosSignTx::set_allocated_chain_id(::std::string* chain_id) { + if (chain_id != NULL) { + set_has_chain_id(); + } else { + clear_has_chain_id(); + } + chain_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chain_id); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosSignTx.chain_id) +} + +// optional .hw.trezor.messages.eos.EosSignTx.EosTxHeader header = 3; +inline bool EosSignTx::has_header() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosSignTx::set_has_header() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosSignTx::clear_has_header() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosSignTx::clear_header() { + if (header_ != NULL) header_->Clear(); + clear_has_header(); +} +inline const ::hw::trezor::messages::eos::EosSignTx_EosTxHeader& EosSignTx::_internal_header() const { + return *header_; +} +inline const ::hw::trezor::messages::eos::EosSignTx_EosTxHeader& EosSignTx::header() const { + const ::hw::trezor::messages::eos::EosSignTx_EosTxHeader* p = header_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignTx.header) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosSignTx_EosTxHeader_default_instance_); +} +inline ::hw::trezor::messages::eos::EosSignTx_EosTxHeader* EosSignTx::release_header() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosSignTx.header) + clear_has_header(); + ::hw::trezor::messages::eos::EosSignTx_EosTxHeader* temp = header_; + header_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosSignTx_EosTxHeader* EosSignTx::mutable_header() { + set_has_header(); + if (header_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosSignTx_EosTxHeader>(GetArenaNoVirtual()); + header_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosSignTx.header) + return header_; +} +inline void EosSignTx::set_allocated_header(::hw::trezor::messages::eos::EosSignTx_EosTxHeader* header) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete header_; + } + if (header) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + header = ::google::protobuf::internal::GetOwnedMessage( + message_arena, header, submessage_arena); + } + set_has_header(); + } else { + clear_has_header(); + } + header_ = header; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosSignTx.header) +} + +// optional uint32 num_actions = 4; +inline bool EosSignTx::has_num_actions() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosSignTx::set_has_num_actions() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosSignTx::clear_has_num_actions() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosSignTx::clear_num_actions() { + num_actions_ = 0u; + clear_has_num_actions(); +} +inline ::google::protobuf::uint32 EosSignTx::num_actions() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignTx.num_actions) + return num_actions_; +} +inline void EosSignTx::set_num_actions(::google::protobuf::uint32 value) { + set_has_num_actions(); + num_actions_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignTx.num_actions) +} + +// ------------------------------------------------------------------- + +// EosTxActionRequest + +// optional uint32 data_size = 1; +inline bool EosTxActionRequest::has_data_size() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionRequest::set_has_data_size() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionRequest::clear_has_data_size() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionRequest::clear_data_size() { + data_size_ = 0u; + clear_has_data_size(); +} +inline ::google::protobuf::uint32 EosTxActionRequest::data_size() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionRequest.data_size) + return data_size_; +} +inline void EosTxActionRequest::set_data_size(::google::protobuf::uint32 value) { + set_has_data_size(); + data_size_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionRequest.data_size) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosAsset + +// optional sint64 amount = 1; +inline bool EosTxActionAck_EosAsset::has_amount() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosAsset::set_has_amount() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosAsset::clear_has_amount() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosAsset::clear_amount() { + amount_ = GOOGLE_LONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::int64 EosTxActionAck_EosAsset::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAsset.amount) + return amount_; +} +inline void EosTxActionAck_EosAsset::set_amount(::google::protobuf::int64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosAsset.amount) +} + +// optional uint64 symbol = 2; +inline bool EosTxActionAck_EosAsset::has_symbol() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosAsset::set_has_symbol() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosAsset::clear_has_symbol() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosAsset::clear_symbol() { + symbol_ = GOOGLE_ULONGLONG(0); + clear_has_symbol(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosAsset::symbol() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAsset.symbol) + return symbol_; +} +inline void EosTxActionAck_EosAsset::set_symbol(::google::protobuf::uint64 value) { + set_has_symbol(); + symbol_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosAsset.symbol) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosPermissionLevel + +// optional uint64 actor = 1; +inline bool EosTxActionAck_EosPermissionLevel::has_actor() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosPermissionLevel::set_has_actor() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosPermissionLevel::clear_has_actor() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosPermissionLevel::clear_actor() { + actor_ = GOOGLE_ULONGLONG(0); + clear_has_actor(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosPermissionLevel::actor() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel.actor) + return actor_; +} +inline void EosTxActionAck_EosPermissionLevel::set_actor(::google::protobuf::uint64 value) { + set_has_actor(); + actor_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel.actor) +} + +// optional uint64 permission = 2; +inline bool EosTxActionAck_EosPermissionLevel::has_permission() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosPermissionLevel::set_has_permission() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosPermissionLevel::clear_has_permission() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosPermissionLevel::clear_permission() { + permission_ = GOOGLE_ULONGLONG(0); + clear_has_permission(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosPermissionLevel::permission() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel.permission) + return permission_; +} +inline void EosTxActionAck_EosPermissionLevel::set_permission(::google::protobuf::uint64 value) { + set_has_permission(); + permission_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel.permission) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosAuthorizationKey + +// optional uint32 type = 1; +inline bool EosTxActionAck_EosAuthorizationKey::has_type() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosAuthorizationKey::set_has_type() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosAuthorizationKey::clear_has_type() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosAuthorizationKey::clear_type() { + type_ = 0u; + clear_has_type(); +} +inline ::google::protobuf::uint32 EosTxActionAck_EosAuthorizationKey::type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.type) + return type_; +} +inline void EosTxActionAck_EosAuthorizationKey::set_type(::google::protobuf::uint32 value) { + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.type) +} + +// optional bytes key = 2; +inline bool EosTxActionAck_EosAuthorizationKey::has_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosAuthorizationKey::set_has_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosAuthorizationKey::clear_has_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosAuthorizationKey::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_key(); +} +inline const ::std::string& EosTxActionAck_EosAuthorizationKey::key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.key) + return key_.GetNoArena(); +} +inline void EosTxActionAck_EosAuthorizationKey::set_key(const ::std::string& value) { + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.key) +} +#if LANG_CXX11 +inline void EosTxActionAck_EosAuthorizationKey::set_key(::std::string&& value) { + set_has_key(); + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.key) +} +#endif +inline void EosTxActionAck_EosAuthorizationKey::set_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.key) +} +inline void EosTxActionAck_EosAuthorizationKey::set_key(const void* value, size_t size) { + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.key) +} +inline ::std::string* EosTxActionAck_EosAuthorizationKey::mutable_key() { + set_has_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EosTxActionAck_EosAuthorizationKey::release_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.key) + if (!has_key()) { + return NULL; + } + clear_has_key(); + return key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EosTxActionAck_EosAuthorizationKey::set_allocated_key(::std::string* key) { + if (key != NULL) { + set_has_key(); + } else { + clear_has_key(); + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.key) +} + +// repeated uint32 address_n = 3; +inline int EosTxActionAck_EosAuthorizationKey::address_n_size() const { + return address_n_.size(); +} +inline void EosTxActionAck_EosAuthorizationKey::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 EosTxActionAck_EosAuthorizationKey::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.address_n) + return address_n_.Get(index); +} +inline void EosTxActionAck_EosAuthorizationKey::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.address_n) +} +inline void EosTxActionAck_EosAuthorizationKey::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +EosTxActionAck_EosAuthorizationKey::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +EosTxActionAck_EosAuthorizationKey::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.address_n) + return &address_n_; +} + +// optional uint32 weight = 4; +inline bool EosTxActionAck_EosAuthorizationKey::has_weight() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosTxActionAck_EosAuthorizationKey::set_has_weight() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosTxActionAck_EosAuthorizationKey::clear_has_weight() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosTxActionAck_EosAuthorizationKey::clear_weight() { + weight_ = 0u; + clear_has_weight(); +} +inline ::google::protobuf::uint32 EosTxActionAck_EosAuthorizationKey::weight() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.weight) + return weight_; +} +inline void EosTxActionAck_EosAuthorizationKey::set_weight(::google::protobuf::uint32 value) { + set_has_weight(); + weight_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey.weight) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosAuthorizationAccount + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel account = 1; +inline bool EosTxActionAck_EosAuthorizationAccount::has_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosAuthorizationAccount::set_has_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosAuthorizationAccount::clear_has_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosAuthorizationAccount::clear_account() { + if (account_ != NULL) account_->Clear(); + clear_has_account(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel& EosTxActionAck_EosAuthorizationAccount::_internal_account() const { + return *account_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel& EosTxActionAck_EosAuthorizationAccount::account() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* p = account_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount.account) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosPermissionLevel_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* EosTxActionAck_EosAuthorizationAccount::release_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount.account) + clear_has_account(); + ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* temp = account_; + account_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* EosTxActionAck_EosAuthorizationAccount::mutable_account() { + set_has_account(); + if (account_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel>(GetArenaNoVirtual()); + account_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount.account) + return account_; +} +inline void EosTxActionAck_EosAuthorizationAccount::set_allocated_account(::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* account) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete account_; + } + if (account) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + account = ::google::protobuf::internal::GetOwnedMessage( + message_arena, account, submessage_arena); + } + set_has_account(); + } else { + clear_has_account(); + } + account_ = account; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount.account) +} + +// optional uint32 weight = 2; +inline bool EosTxActionAck_EosAuthorizationAccount::has_weight() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosAuthorizationAccount::set_has_weight() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosAuthorizationAccount::clear_has_weight() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosAuthorizationAccount::clear_weight() { + weight_ = 0u; + clear_has_weight(); +} +inline ::google::protobuf::uint32 EosTxActionAck_EosAuthorizationAccount::weight() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount.weight) + return weight_; +} +inline void EosTxActionAck_EosAuthorizationAccount::set_weight(::google::protobuf::uint32 value) { + set_has_weight(); + weight_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount.weight) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosAuthorizationWait + +// optional uint32 wait_sec = 1; +inline bool EosTxActionAck_EosAuthorizationWait::has_wait_sec() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosAuthorizationWait::set_has_wait_sec() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosAuthorizationWait::clear_has_wait_sec() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosAuthorizationWait::clear_wait_sec() { + wait_sec_ = 0u; + clear_has_wait_sec(); +} +inline ::google::protobuf::uint32 EosTxActionAck_EosAuthorizationWait::wait_sec() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait.wait_sec) + return wait_sec_; +} +inline void EosTxActionAck_EosAuthorizationWait::set_wait_sec(::google::protobuf::uint32 value) { + set_has_wait_sec(); + wait_sec_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait.wait_sec) +} + +// optional uint32 weight = 2; +inline bool EosTxActionAck_EosAuthorizationWait::has_weight() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosAuthorizationWait::set_has_weight() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosAuthorizationWait::clear_has_weight() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosAuthorizationWait::clear_weight() { + weight_ = 0u; + clear_has_weight(); +} +inline ::google::protobuf::uint32 EosTxActionAck_EosAuthorizationWait::weight() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait.weight) + return weight_; +} +inline void EosTxActionAck_EosAuthorizationWait::set_weight(::google::protobuf::uint32 value) { + set_has_weight(); + weight_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait.weight) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosAuthorization + +// optional uint32 threshold = 1; +inline bool EosTxActionAck_EosAuthorization::has_threshold() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosAuthorization::set_has_threshold() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosAuthorization::clear_has_threshold() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosAuthorization::clear_threshold() { + threshold_ = 0u; + clear_has_threshold(); +} +inline ::google::protobuf::uint32 EosTxActionAck_EosAuthorization::threshold() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.threshold) + return threshold_; +} +inline void EosTxActionAck_EosAuthorization::set_threshold(::google::protobuf::uint32 value) { + set_has_threshold(); + threshold_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.threshold) +} + +// repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationKey keys = 2; +inline int EosTxActionAck_EosAuthorization::keys_size() const { + return keys_.size(); +} +inline void EosTxActionAck_EosAuthorization::clear_keys() { + keys_.Clear(); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey* EosTxActionAck_EosAuthorization::mutable_keys(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.keys) + return keys_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey >* +EosTxActionAck_EosAuthorization::mutable_keys() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.keys) + return &keys_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey& EosTxActionAck_EosAuthorization::keys(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.keys) + return keys_.Get(index); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey* EosTxActionAck_EosAuthorization::add_keys() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.keys) + return keys_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationKey >& +EosTxActionAck_EosAuthorization::keys() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.keys) + return keys_; +} + +// repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationAccount accounts = 3; +inline int EosTxActionAck_EosAuthorization::accounts_size() const { + return accounts_.size(); +} +inline void EosTxActionAck_EosAuthorization::clear_accounts() { + accounts_.Clear(); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount* EosTxActionAck_EosAuthorization::mutable_accounts(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.accounts) + return accounts_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount >* +EosTxActionAck_EosAuthorization::mutable_accounts() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.accounts) + return &accounts_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount& EosTxActionAck_EosAuthorization::accounts(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.accounts) + return accounts_.Get(index); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount* EosTxActionAck_EosAuthorization::add_accounts() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.accounts) + return accounts_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationAccount >& +EosTxActionAck_EosAuthorization::accounts() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.accounts) + return accounts_; +} + +// repeated .hw.trezor.messages.eos.EosTxActionAck.EosAuthorizationWait waits = 4; +inline int EosTxActionAck_EosAuthorization::waits_size() const { + return waits_.size(); +} +inline void EosTxActionAck_EosAuthorization::clear_waits() { + waits_.Clear(); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait* EosTxActionAck_EosAuthorization::mutable_waits(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.waits) + return waits_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait >* +EosTxActionAck_EosAuthorization::mutable_waits() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.waits) + return &waits_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait& EosTxActionAck_EosAuthorization::waits(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.waits) + return waits_.Get(index); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait* EosTxActionAck_EosAuthorization::add_waits() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.waits) + return waits_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorizationWait >& +EosTxActionAck_EosAuthorization::waits() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.eos.EosTxActionAck.EosAuthorization.waits) + return waits_; +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionCommon + +// optional uint64 account = 1; +inline bool EosTxActionAck_EosActionCommon::has_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionCommon::set_has_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionCommon::clear_has_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionCommon::clear_account() { + account_ = GOOGLE_ULONGLONG(0); + clear_has_account(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionCommon::account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon.account) + return account_; +} +inline void EosTxActionAck_EosActionCommon::set_account(::google::protobuf::uint64 value) { + set_has_account(); + account_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon.account) +} + +// optional uint64 name = 2; +inline bool EosTxActionAck_EosActionCommon::has_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionCommon::set_has_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionCommon::clear_has_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionCommon::clear_name() { + name_ = GOOGLE_ULONGLONG(0); + clear_has_name(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionCommon::name() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon.name) + return name_; +} +inline void EosTxActionAck_EosActionCommon::set_name(::google::protobuf::uint64 value) { + set_has_name(); + name_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon.name) +} + +// repeated .hw.trezor.messages.eos.EosTxActionAck.EosPermissionLevel authorization = 3; +inline int EosTxActionAck_EosActionCommon::authorization_size() const { + return authorization_.size(); +} +inline void EosTxActionAck_EosActionCommon::clear_authorization() { + authorization_.Clear(); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* EosTxActionAck_EosActionCommon::mutable_authorization(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon.authorization) + return authorization_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel >* +EosTxActionAck_EosActionCommon::mutable_authorization() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon.authorization) + return &authorization_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel& EosTxActionAck_EosActionCommon::authorization(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon.authorization) + return authorization_.Get(index); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel* EosTxActionAck_EosActionCommon::add_authorization() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon.authorization) + return authorization_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::eos::EosTxActionAck_EosPermissionLevel >& +EosTxActionAck_EosActionCommon::authorization() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.eos.EosTxActionAck.EosActionCommon.authorization) + return authorization_; +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionTransfer + +// optional uint64 sender = 1; +inline bool EosTxActionAck_EosActionTransfer::has_sender() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosTxActionAck_EosActionTransfer::set_has_sender() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosTxActionAck_EosActionTransfer::clear_has_sender() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosTxActionAck_EosActionTransfer::clear_sender() { + sender_ = GOOGLE_ULONGLONG(0); + clear_has_sender(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionTransfer::sender() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.sender) + return sender_; +} +inline void EosTxActionAck_EosActionTransfer::set_sender(::google::protobuf::uint64 value) { + set_has_sender(); + sender_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.sender) +} + +// optional uint64 receiver = 2; +inline bool EosTxActionAck_EosActionTransfer::has_receiver() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EosTxActionAck_EosActionTransfer::set_has_receiver() { + _has_bits_[0] |= 0x00000008u; +} +inline void EosTxActionAck_EosActionTransfer::clear_has_receiver() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EosTxActionAck_EosActionTransfer::clear_receiver() { + receiver_ = GOOGLE_ULONGLONG(0); + clear_has_receiver(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionTransfer::receiver() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.receiver) + return receiver_; +} +inline void EosTxActionAck_EosActionTransfer::set_receiver(::google::protobuf::uint64 value) { + set_has_receiver(); + receiver_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.receiver) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; +inline bool EosTxActionAck_EosActionTransfer::has_quantity() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionTransfer::set_has_quantity() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionTransfer::clear_has_quantity() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionTransfer::clear_quantity() { + if (quantity_ != NULL) quantity_->Clear(); + clear_has_quantity(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionTransfer::_internal_quantity() const { + return *quantity_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionTransfer::quantity() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* p = quantity_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.quantity) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosAsset_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionTransfer::release_quantity() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.quantity) + clear_has_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* temp = quantity_; + quantity_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionTransfer::mutable_quantity() { + set_has_quantity(); + if (quantity_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAsset>(GetArenaNoVirtual()); + quantity_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.quantity) + return quantity_; +} +inline void EosTxActionAck_EosActionTransfer::set_allocated_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* quantity) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete quantity_; + } + if (quantity) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + quantity = ::google::protobuf::internal::GetOwnedMessage( + message_arena, quantity, submessage_arena); + } + set_has_quantity(); + } else { + clear_has_quantity(); + } + quantity_ = quantity; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.quantity) +} + +// optional string memo = 4; +inline bool EosTxActionAck_EosActionTransfer::has_memo() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionTransfer::set_has_memo() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionTransfer::clear_has_memo() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionTransfer::clear_memo() { + memo_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_memo(); +} +inline const ::std::string& EosTxActionAck_EosActionTransfer::memo() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.memo) + return memo_.GetNoArena(); +} +inline void EosTxActionAck_EosActionTransfer::set_memo(const ::std::string& value) { + set_has_memo(); + memo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.memo) +} +#if LANG_CXX11 +inline void EosTxActionAck_EosActionTransfer::set_memo(::std::string&& value) { + set_has_memo(); + memo_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.memo) +} +#endif +inline void EosTxActionAck_EosActionTransfer::set_memo(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_memo(); + memo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.memo) +} +inline void EosTxActionAck_EosActionTransfer::set_memo(const char* value, size_t size) { + set_has_memo(); + memo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.memo) +} +inline ::std::string* EosTxActionAck_EosActionTransfer::mutable_memo() { + set_has_memo(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.memo) + return memo_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EosTxActionAck_EosActionTransfer::release_memo() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.memo) + if (!has_memo()) { + return NULL; + } + clear_has_memo(); + return memo_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EosTxActionAck_EosActionTransfer::set_allocated_memo(::std::string* memo) { + if (memo != NULL) { + set_has_memo(); + } else { + clear_has_memo(); + } + memo_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), memo); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer.memo) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionDelegate + +// optional uint64 sender = 1; +inline bool EosTxActionAck_EosActionDelegate::has_sender() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosTxActionAck_EosActionDelegate::set_has_sender() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosTxActionAck_EosActionDelegate::clear_has_sender() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosTxActionAck_EosActionDelegate::clear_sender() { + sender_ = GOOGLE_ULONGLONG(0); + clear_has_sender(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionDelegate::sender() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.sender) + return sender_; +} +inline void EosTxActionAck_EosActionDelegate::set_sender(::google::protobuf::uint64 value) { + set_has_sender(); + sender_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.sender) +} + +// optional uint64 receiver = 2; +inline bool EosTxActionAck_EosActionDelegate::has_receiver() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EosTxActionAck_EosActionDelegate::set_has_receiver() { + _has_bits_[0] |= 0x00000008u; +} +inline void EosTxActionAck_EosActionDelegate::clear_has_receiver() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EosTxActionAck_EosActionDelegate::clear_receiver() { + receiver_ = GOOGLE_ULONGLONG(0); + clear_has_receiver(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionDelegate::receiver() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.receiver) + return receiver_; +} +inline void EosTxActionAck_EosActionDelegate::set_receiver(::google::protobuf::uint64 value) { + set_has_receiver(); + receiver_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.receiver) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; +inline bool EosTxActionAck_EosActionDelegate::has_net_quantity() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionDelegate::set_has_net_quantity() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionDelegate::clear_has_net_quantity() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionDelegate::clear_net_quantity() { + if (net_quantity_ != NULL) net_quantity_->Clear(); + clear_has_net_quantity(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionDelegate::_internal_net_quantity() const { + return *net_quantity_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionDelegate::net_quantity() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* p = net_quantity_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.net_quantity) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosAsset_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionDelegate::release_net_quantity() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.net_quantity) + clear_has_net_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* temp = net_quantity_; + net_quantity_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionDelegate::mutable_net_quantity() { + set_has_net_quantity(); + if (net_quantity_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAsset>(GetArenaNoVirtual()); + net_quantity_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.net_quantity) + return net_quantity_; +} +inline void EosTxActionAck_EosActionDelegate::set_allocated_net_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* net_quantity) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete net_quantity_; + } + if (net_quantity) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + net_quantity = ::google::protobuf::internal::GetOwnedMessage( + message_arena, net_quantity, submessage_arena); + } + set_has_net_quantity(); + } else { + clear_has_net_quantity(); + } + net_quantity_ = net_quantity; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.net_quantity) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; +inline bool EosTxActionAck_EosActionDelegate::has_cpu_quantity() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionDelegate::set_has_cpu_quantity() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionDelegate::clear_has_cpu_quantity() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionDelegate::clear_cpu_quantity() { + if (cpu_quantity_ != NULL) cpu_quantity_->Clear(); + clear_has_cpu_quantity(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionDelegate::_internal_cpu_quantity() const { + return *cpu_quantity_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionDelegate::cpu_quantity() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* p = cpu_quantity_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.cpu_quantity) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosAsset_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionDelegate::release_cpu_quantity() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.cpu_quantity) + clear_has_cpu_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* temp = cpu_quantity_; + cpu_quantity_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionDelegate::mutable_cpu_quantity() { + set_has_cpu_quantity(); + if (cpu_quantity_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAsset>(GetArenaNoVirtual()); + cpu_quantity_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.cpu_quantity) + return cpu_quantity_; +} +inline void EosTxActionAck_EosActionDelegate::set_allocated_cpu_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* cpu_quantity) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete cpu_quantity_; + } + if (cpu_quantity) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + cpu_quantity = ::google::protobuf::internal::GetOwnedMessage( + message_arena, cpu_quantity, submessage_arena); + } + set_has_cpu_quantity(); + } else { + clear_has_cpu_quantity(); + } + cpu_quantity_ = cpu_quantity; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.cpu_quantity) +} + +// optional bool transfer = 5; +inline bool EosTxActionAck_EosActionDelegate::has_transfer() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void EosTxActionAck_EosActionDelegate::set_has_transfer() { + _has_bits_[0] |= 0x00000010u; +} +inline void EosTxActionAck_EosActionDelegate::clear_has_transfer() { + _has_bits_[0] &= ~0x00000010u; +} +inline void EosTxActionAck_EosActionDelegate::clear_transfer() { + transfer_ = false; + clear_has_transfer(); +} +inline bool EosTxActionAck_EosActionDelegate::transfer() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.transfer) + return transfer_; +} +inline void EosTxActionAck_EosActionDelegate::set_transfer(bool value) { + set_has_transfer(); + transfer_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate.transfer) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionUndelegate + +// optional uint64 sender = 1; +inline bool EosTxActionAck_EosActionUndelegate::has_sender() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosTxActionAck_EosActionUndelegate::set_has_sender() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosTxActionAck_EosActionUndelegate::clear_has_sender() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosTxActionAck_EosActionUndelegate::clear_sender() { + sender_ = GOOGLE_ULONGLONG(0); + clear_has_sender(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionUndelegate::sender() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.sender) + return sender_; +} +inline void EosTxActionAck_EosActionUndelegate::set_sender(::google::protobuf::uint64 value) { + set_has_sender(); + sender_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.sender) +} + +// optional uint64 receiver = 2; +inline bool EosTxActionAck_EosActionUndelegate::has_receiver() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EosTxActionAck_EosActionUndelegate::set_has_receiver() { + _has_bits_[0] |= 0x00000008u; +} +inline void EosTxActionAck_EosActionUndelegate::clear_has_receiver() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EosTxActionAck_EosActionUndelegate::clear_receiver() { + receiver_ = GOOGLE_ULONGLONG(0); + clear_has_receiver(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionUndelegate::receiver() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.receiver) + return receiver_; +} +inline void EosTxActionAck_EosActionUndelegate::set_receiver(::google::protobuf::uint64 value) { + set_has_receiver(); + receiver_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.receiver) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset net_quantity = 3; +inline bool EosTxActionAck_EosActionUndelegate::has_net_quantity() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionUndelegate::set_has_net_quantity() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionUndelegate::clear_has_net_quantity() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionUndelegate::clear_net_quantity() { + if (net_quantity_ != NULL) net_quantity_->Clear(); + clear_has_net_quantity(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionUndelegate::_internal_net_quantity() const { + return *net_quantity_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionUndelegate::net_quantity() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* p = net_quantity_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.net_quantity) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosAsset_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionUndelegate::release_net_quantity() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.net_quantity) + clear_has_net_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* temp = net_quantity_; + net_quantity_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionUndelegate::mutable_net_quantity() { + set_has_net_quantity(); + if (net_quantity_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAsset>(GetArenaNoVirtual()); + net_quantity_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.net_quantity) + return net_quantity_; +} +inline void EosTxActionAck_EosActionUndelegate::set_allocated_net_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* net_quantity) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete net_quantity_; + } + if (net_quantity) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + net_quantity = ::google::protobuf::internal::GetOwnedMessage( + message_arena, net_quantity, submessage_arena); + } + set_has_net_quantity(); + } else { + clear_has_net_quantity(); + } + net_quantity_ = net_quantity; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.net_quantity) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset cpu_quantity = 4; +inline bool EosTxActionAck_EosActionUndelegate::has_cpu_quantity() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionUndelegate::set_has_cpu_quantity() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionUndelegate::clear_has_cpu_quantity() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionUndelegate::clear_cpu_quantity() { + if (cpu_quantity_ != NULL) cpu_quantity_->Clear(); + clear_has_cpu_quantity(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionUndelegate::_internal_cpu_quantity() const { + return *cpu_quantity_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionUndelegate::cpu_quantity() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* p = cpu_quantity_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.cpu_quantity) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosAsset_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionUndelegate::release_cpu_quantity() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.cpu_quantity) + clear_has_cpu_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* temp = cpu_quantity_; + cpu_quantity_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionUndelegate::mutable_cpu_quantity() { + set_has_cpu_quantity(); + if (cpu_quantity_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAsset>(GetArenaNoVirtual()); + cpu_quantity_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.cpu_quantity) + return cpu_quantity_; +} +inline void EosTxActionAck_EosActionUndelegate::set_allocated_cpu_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* cpu_quantity) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete cpu_quantity_; + } + if (cpu_quantity) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + cpu_quantity = ::google::protobuf::internal::GetOwnedMessage( + message_arena, cpu_quantity, submessage_arena); + } + set_has_cpu_quantity(); + } else { + clear_has_cpu_quantity(); + } + cpu_quantity_ = cpu_quantity; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate.cpu_quantity) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionRefund + +// optional uint64 owner = 1; +inline bool EosTxActionAck_EosActionRefund::has_owner() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionRefund::set_has_owner() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionRefund::clear_has_owner() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionRefund::clear_owner() { + owner_ = GOOGLE_ULONGLONG(0); + clear_has_owner(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionRefund::owner() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund.owner) + return owner_; +} +inline void EosTxActionAck_EosActionRefund::set_owner(::google::protobuf::uint64 value) { + set_has_owner(); + owner_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionRefund.owner) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionBuyRam + +// optional uint64 payer = 1; +inline bool EosTxActionAck_EosActionBuyRam::has_payer() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionBuyRam::set_has_payer() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionBuyRam::clear_has_payer() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionBuyRam::clear_payer() { + payer_ = GOOGLE_ULONGLONG(0); + clear_has_payer(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionBuyRam::payer() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam.payer) + return payer_; +} +inline void EosTxActionAck_EosActionBuyRam::set_payer(::google::protobuf::uint64 value) { + set_has_payer(); + payer_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam.payer) +} + +// optional uint64 receiver = 2; +inline bool EosTxActionAck_EosActionBuyRam::has_receiver() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosTxActionAck_EosActionBuyRam::set_has_receiver() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosTxActionAck_EosActionBuyRam::clear_has_receiver() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosTxActionAck_EosActionBuyRam::clear_receiver() { + receiver_ = GOOGLE_ULONGLONG(0); + clear_has_receiver(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionBuyRam::receiver() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam.receiver) + return receiver_; +} +inline void EosTxActionAck_EosActionBuyRam::set_receiver(::google::protobuf::uint64 value) { + set_has_receiver(); + receiver_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam.receiver) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosAsset quantity = 3; +inline bool EosTxActionAck_EosActionBuyRam::has_quantity() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionBuyRam::set_has_quantity() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionBuyRam::clear_has_quantity() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionBuyRam::clear_quantity() { + if (quantity_ != NULL) quantity_->Clear(); + clear_has_quantity(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionBuyRam::_internal_quantity() const { + return *quantity_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset& EosTxActionAck_EosActionBuyRam::quantity() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* p = quantity_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam.quantity) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosAsset_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionBuyRam::release_quantity() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam.quantity) + clear_has_quantity(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* temp = quantity_; + quantity_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAsset* EosTxActionAck_EosActionBuyRam::mutable_quantity() { + set_has_quantity(); + if (quantity_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAsset>(GetArenaNoVirtual()); + quantity_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam.quantity) + return quantity_; +} +inline void EosTxActionAck_EosActionBuyRam::set_allocated_quantity(::hw::trezor::messages::eos::EosTxActionAck_EosAsset* quantity) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete quantity_; + } + if (quantity) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + quantity = ::google::protobuf::internal::GetOwnedMessage( + message_arena, quantity, submessage_arena); + } + set_has_quantity(); + } else { + clear_has_quantity(); + } + quantity_ = quantity; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam.quantity) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionBuyRamBytes + +// optional uint64 payer = 1; +inline bool EosTxActionAck_EosActionBuyRamBytes::has_payer() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionBuyRamBytes::set_has_payer() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionBuyRamBytes::clear_has_payer() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionBuyRamBytes::clear_payer() { + payer_ = GOOGLE_ULONGLONG(0); + clear_has_payer(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionBuyRamBytes::payer() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes.payer) + return payer_; +} +inline void EosTxActionAck_EosActionBuyRamBytes::set_payer(::google::protobuf::uint64 value) { + set_has_payer(); + payer_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes.payer) +} + +// optional uint64 receiver = 2; +inline bool EosTxActionAck_EosActionBuyRamBytes::has_receiver() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionBuyRamBytes::set_has_receiver() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionBuyRamBytes::clear_has_receiver() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionBuyRamBytes::clear_receiver() { + receiver_ = GOOGLE_ULONGLONG(0); + clear_has_receiver(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionBuyRamBytes::receiver() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes.receiver) + return receiver_; +} +inline void EosTxActionAck_EosActionBuyRamBytes::set_receiver(::google::protobuf::uint64 value) { + set_has_receiver(); + receiver_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes.receiver) +} + +// optional uint32 bytes = 3; +inline bool EosTxActionAck_EosActionBuyRamBytes::has_bytes() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosTxActionAck_EosActionBuyRamBytes::set_has_bytes() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosTxActionAck_EosActionBuyRamBytes::clear_has_bytes() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosTxActionAck_EosActionBuyRamBytes::clear_bytes() { + bytes_ = 0u; + clear_has_bytes(); +} +inline ::google::protobuf::uint32 EosTxActionAck_EosActionBuyRamBytes::bytes() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes.bytes) + return bytes_; +} +inline void EosTxActionAck_EosActionBuyRamBytes::set_bytes(::google::protobuf::uint32 value) { + set_has_bytes(); + bytes_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes.bytes) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionSellRam + +// optional uint64 account = 1; +inline bool EosTxActionAck_EosActionSellRam::has_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionSellRam::set_has_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionSellRam::clear_has_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionSellRam::clear_account() { + account_ = GOOGLE_ULONGLONG(0); + clear_has_account(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionSellRam::account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam.account) + return account_; +} +inline void EosTxActionAck_EosActionSellRam::set_account(::google::protobuf::uint64 value) { + set_has_account(); + account_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam.account) +} + +// optional uint64 bytes = 2; +inline bool EosTxActionAck_EosActionSellRam::has_bytes() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionSellRam::set_has_bytes() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionSellRam::clear_has_bytes() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionSellRam::clear_bytes() { + bytes_ = GOOGLE_ULONGLONG(0); + clear_has_bytes(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionSellRam::bytes() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam.bytes) + return bytes_; +} +inline void EosTxActionAck_EosActionSellRam::set_bytes(::google::protobuf::uint64 value) { + set_has_bytes(); + bytes_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam.bytes) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionVoteProducer + +// optional uint64 voter = 1; +inline bool EosTxActionAck_EosActionVoteProducer::has_voter() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionVoteProducer::set_has_voter() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionVoteProducer::clear_has_voter() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionVoteProducer::clear_voter() { + voter_ = GOOGLE_ULONGLONG(0); + clear_has_voter(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionVoteProducer::voter() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer.voter) + return voter_; +} +inline void EosTxActionAck_EosActionVoteProducer::set_voter(::google::protobuf::uint64 value) { + set_has_voter(); + voter_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer.voter) +} + +// optional uint64 proxy = 2; +inline bool EosTxActionAck_EosActionVoteProducer::has_proxy() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionVoteProducer::set_has_proxy() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionVoteProducer::clear_has_proxy() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionVoteProducer::clear_proxy() { + proxy_ = GOOGLE_ULONGLONG(0); + clear_has_proxy(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionVoteProducer::proxy() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer.proxy) + return proxy_; +} +inline void EosTxActionAck_EosActionVoteProducer::set_proxy(::google::protobuf::uint64 value) { + set_has_proxy(); + proxy_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer.proxy) +} + +// repeated uint64 producers = 3; +inline int EosTxActionAck_EosActionVoteProducer::producers_size() const { + return producers_.size(); +} +inline void EosTxActionAck_EosActionVoteProducer::clear_producers() { + producers_.Clear(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionVoteProducer::producers(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer.producers) + return producers_.Get(index); +} +inline void EosTxActionAck_EosActionVoteProducer::set_producers(int index, ::google::protobuf::uint64 value) { + producers_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer.producers) +} +inline void EosTxActionAck_EosActionVoteProducer::add_producers(::google::protobuf::uint64 value) { + producers_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer.producers) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& +EosTxActionAck_EosActionVoteProducer::producers() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer.producers) + return producers_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* +EosTxActionAck_EosActionVoteProducer::mutable_producers() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer.producers) + return &producers_; +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionUpdateAuth + +// optional uint64 account = 1; +inline bool EosTxActionAck_EosActionUpdateAuth::has_account() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionUpdateAuth::set_has_account() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionUpdateAuth::clear_has_account() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionUpdateAuth::clear_account() { + account_ = GOOGLE_ULONGLONG(0); + clear_has_account(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionUpdateAuth::account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth.account) + return account_; +} +inline void EosTxActionAck_EosActionUpdateAuth::set_account(::google::protobuf::uint64 value) { + set_has_account(); + account_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth.account) +} + +// optional uint64 permission = 2; +inline bool EosTxActionAck_EosActionUpdateAuth::has_permission() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosTxActionAck_EosActionUpdateAuth::set_has_permission() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosTxActionAck_EosActionUpdateAuth::clear_has_permission() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosTxActionAck_EosActionUpdateAuth::clear_permission() { + permission_ = GOOGLE_ULONGLONG(0); + clear_has_permission(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionUpdateAuth::permission() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth.permission) + return permission_; +} +inline void EosTxActionAck_EosActionUpdateAuth::set_permission(::google::protobuf::uint64 value) { + set_has_permission(); + permission_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth.permission) +} + +// optional uint64 parent = 3; +inline bool EosTxActionAck_EosActionUpdateAuth::has_parent() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EosTxActionAck_EosActionUpdateAuth::set_has_parent() { + _has_bits_[0] |= 0x00000008u; +} +inline void EosTxActionAck_EosActionUpdateAuth::clear_has_parent() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EosTxActionAck_EosActionUpdateAuth::clear_parent() { + parent_ = GOOGLE_ULONGLONG(0); + clear_has_parent(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionUpdateAuth::parent() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth.parent) + return parent_; +} +inline void EosTxActionAck_EosActionUpdateAuth::set_parent(::google::protobuf::uint64 value) { + set_has_parent(); + parent_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth.parent) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization auth = 4; +inline bool EosTxActionAck_EosActionUpdateAuth::has_auth() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionUpdateAuth::set_has_auth() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionUpdateAuth::clear_has_auth() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionUpdateAuth::clear_auth() { + if (auth_ != NULL) auth_->Clear(); + clear_has_auth(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& EosTxActionAck_EosActionUpdateAuth::_internal_auth() const { + return *auth_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& EosTxActionAck_EosActionUpdateAuth::auth() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* p = auth_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth.auth) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorization_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* EosTxActionAck_EosActionUpdateAuth::release_auth() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth.auth) + clear_has_auth(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* temp = auth_; + auth_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* EosTxActionAck_EosActionUpdateAuth::mutable_auth() { + set_has_auth(); + if (auth_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization>(GetArenaNoVirtual()); + auth_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth.auth) + return auth_; +} +inline void EosTxActionAck_EosActionUpdateAuth::set_allocated_auth(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* auth) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete auth_; + } + if (auth) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + auth = ::google::protobuf::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); + } + set_has_auth(); + } else { + clear_has_auth(); + } + auth_ = auth; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth.auth) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionDeleteAuth + +// optional uint64 account = 1; +inline bool EosTxActionAck_EosActionDeleteAuth::has_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionDeleteAuth::set_has_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionDeleteAuth::clear_has_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionDeleteAuth::clear_account() { + account_ = GOOGLE_ULONGLONG(0); + clear_has_account(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionDeleteAuth::account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth.account) + return account_; +} +inline void EosTxActionAck_EosActionDeleteAuth::set_account(::google::protobuf::uint64 value) { + set_has_account(); + account_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth.account) +} + +// optional uint64 permission = 2; +inline bool EosTxActionAck_EosActionDeleteAuth::has_permission() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionDeleteAuth::set_has_permission() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionDeleteAuth::clear_has_permission() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionDeleteAuth::clear_permission() { + permission_ = GOOGLE_ULONGLONG(0); + clear_has_permission(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionDeleteAuth::permission() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth.permission) + return permission_; +} +inline void EosTxActionAck_EosActionDeleteAuth::set_permission(::google::protobuf::uint64 value) { + set_has_permission(); + permission_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth.permission) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionLinkAuth + +// optional uint64 account = 1; +inline bool EosTxActionAck_EosActionLinkAuth::has_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionLinkAuth::set_has_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionLinkAuth::clear_has_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionLinkAuth::clear_account() { + account_ = GOOGLE_ULONGLONG(0); + clear_has_account(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionLinkAuth::account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth.account) + return account_; +} +inline void EosTxActionAck_EosActionLinkAuth::set_account(::google::protobuf::uint64 value) { + set_has_account(); + account_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth.account) +} + +// optional uint64 code = 2; +inline bool EosTxActionAck_EosActionLinkAuth::has_code() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionLinkAuth::set_has_code() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionLinkAuth::clear_has_code() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionLinkAuth::clear_code() { + code_ = GOOGLE_ULONGLONG(0); + clear_has_code(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionLinkAuth::code() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth.code) + return code_; +} +inline void EosTxActionAck_EosActionLinkAuth::set_code(::google::protobuf::uint64 value) { + set_has_code(); + code_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth.code) +} + +// optional uint64 type = 3; +inline bool EosTxActionAck_EosActionLinkAuth::has_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosTxActionAck_EosActionLinkAuth::set_has_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosTxActionAck_EosActionLinkAuth::clear_has_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosTxActionAck_EosActionLinkAuth::clear_type() { + type_ = GOOGLE_ULONGLONG(0); + clear_has_type(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionLinkAuth::type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth.type) + return type_; +} +inline void EosTxActionAck_EosActionLinkAuth::set_type(::google::protobuf::uint64 value) { + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth.type) +} + +// optional uint64 requirement = 4; +inline bool EosTxActionAck_EosActionLinkAuth::has_requirement() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EosTxActionAck_EosActionLinkAuth::set_has_requirement() { + _has_bits_[0] |= 0x00000008u; +} +inline void EosTxActionAck_EosActionLinkAuth::clear_has_requirement() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EosTxActionAck_EosActionLinkAuth::clear_requirement() { + requirement_ = GOOGLE_ULONGLONG(0); + clear_has_requirement(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionLinkAuth::requirement() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth.requirement) + return requirement_; +} +inline void EosTxActionAck_EosActionLinkAuth::set_requirement(::google::protobuf::uint64 value) { + set_has_requirement(); + requirement_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth.requirement) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionUnlinkAuth + +// optional uint64 account = 1; +inline bool EosTxActionAck_EosActionUnlinkAuth::has_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionUnlinkAuth::set_has_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionUnlinkAuth::clear_has_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionUnlinkAuth::clear_account() { + account_ = GOOGLE_ULONGLONG(0); + clear_has_account(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionUnlinkAuth::account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth.account) + return account_; +} +inline void EosTxActionAck_EosActionUnlinkAuth::set_account(::google::protobuf::uint64 value) { + set_has_account(); + account_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth.account) +} + +// optional uint64 code = 2; +inline bool EosTxActionAck_EosActionUnlinkAuth::has_code() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionUnlinkAuth::set_has_code() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionUnlinkAuth::clear_has_code() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionUnlinkAuth::clear_code() { + code_ = GOOGLE_ULONGLONG(0); + clear_has_code(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionUnlinkAuth::code() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth.code) + return code_; +} +inline void EosTxActionAck_EosActionUnlinkAuth::set_code(::google::protobuf::uint64 value) { + set_has_code(); + code_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth.code) +} + +// optional uint64 type = 3; +inline bool EosTxActionAck_EosActionUnlinkAuth::has_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosTxActionAck_EosActionUnlinkAuth::set_has_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosTxActionAck_EosActionUnlinkAuth::clear_has_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosTxActionAck_EosActionUnlinkAuth::clear_type() { + type_ = GOOGLE_ULONGLONG(0); + clear_has_type(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionUnlinkAuth::type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth.type) + return type_; +} +inline void EosTxActionAck_EosActionUnlinkAuth::set_type(::google::protobuf::uint64 value) { + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth.type) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionNewAccount + +// optional uint64 creator = 1; +inline bool EosTxActionAck_EosActionNewAccount::has_creator() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosTxActionAck_EosActionNewAccount::set_has_creator() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosTxActionAck_EosActionNewAccount::clear_has_creator() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosTxActionAck_EosActionNewAccount::clear_creator() { + creator_ = GOOGLE_ULONGLONG(0); + clear_has_creator(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionNewAccount::creator() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.creator) + return creator_; +} +inline void EosTxActionAck_EosActionNewAccount::set_creator(::google::protobuf::uint64 value) { + set_has_creator(); + creator_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.creator) +} + +// optional uint64 name = 2; +inline bool EosTxActionAck_EosActionNewAccount::has_name() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EosTxActionAck_EosActionNewAccount::set_has_name() { + _has_bits_[0] |= 0x00000008u; +} +inline void EosTxActionAck_EosActionNewAccount::clear_has_name() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EosTxActionAck_EosActionNewAccount::clear_name() { + name_ = GOOGLE_ULONGLONG(0); + clear_has_name(); +} +inline ::google::protobuf::uint64 EosTxActionAck_EosActionNewAccount::name() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.name) + return name_; +} +inline void EosTxActionAck_EosActionNewAccount::set_name(::google::protobuf::uint64 value) { + set_has_name(); + name_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.name) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization owner = 3; +inline bool EosTxActionAck_EosActionNewAccount::has_owner() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionNewAccount::set_has_owner() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionNewAccount::clear_has_owner() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionNewAccount::clear_owner() { + if (owner_ != NULL) owner_->Clear(); + clear_has_owner(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& EosTxActionAck_EosActionNewAccount::_internal_owner() const { + return *owner_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& EosTxActionAck_EosActionNewAccount::owner() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* p = owner_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.owner) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorization_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* EosTxActionAck_EosActionNewAccount::release_owner() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.owner) + clear_has_owner(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* temp = owner_; + owner_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* EosTxActionAck_EosActionNewAccount::mutable_owner() { + set_has_owner(); + if (owner_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization>(GetArenaNoVirtual()); + owner_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.owner) + return owner_; +} +inline void EosTxActionAck_EosActionNewAccount::set_allocated_owner(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* owner) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete owner_; + } + if (owner) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + owner = ::google::protobuf::internal::GetOwnedMessage( + message_arena, owner, submessage_arena); + } + set_has_owner(); + } else { + clear_has_owner(); + } + owner_ = owner; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.owner) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosAuthorization active = 4; +inline bool EosTxActionAck_EosActionNewAccount::has_active() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionNewAccount::set_has_active() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionNewAccount::clear_has_active() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionNewAccount::clear_active() { + if (active_ != NULL) active_->Clear(); + clear_has_active(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& EosTxActionAck_EosActionNewAccount::_internal_active() const { + return *active_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization& EosTxActionAck_EosActionNewAccount::active() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* p = active_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.active) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosAuthorization_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* EosTxActionAck_EosActionNewAccount::release_active() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.active) + clear_has_active(); + ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* temp = active_; + active_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* EosTxActionAck_EosActionNewAccount::mutable_active() { + set_has_active(); + if (active_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization>(GetArenaNoVirtual()); + active_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.active) + return active_; +} +inline void EosTxActionAck_EosActionNewAccount::set_allocated_active(::hw::trezor::messages::eos::EosTxActionAck_EosAuthorization* active) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete active_; + } + if (active) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + active = ::google::protobuf::internal::GetOwnedMessage( + message_arena, active, submessage_arena); + } + set_has_active(); + } else { + clear_has_active(); + } + active_ = active; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount.active) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck_EosActionUnknown + +// optional uint32 data_size = 1; +inline bool EosTxActionAck_EosActionUnknown::has_data_size() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck_EosActionUnknown::set_has_data_size() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck_EosActionUnknown::clear_has_data_size() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck_EosActionUnknown::clear_data_size() { + data_size_ = 0u; + clear_has_data_size(); +} +inline ::google::protobuf::uint32 EosTxActionAck_EosActionUnknown::data_size() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown.data_size) + return data_size_; +} +inline void EosTxActionAck_EosActionUnknown::set_data_size(::google::protobuf::uint32 value) { + set_has_data_size(); + data_size_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown.data_size) +} + +// optional bytes data_chunk = 2; +inline bool EosTxActionAck_EosActionUnknown::has_data_chunk() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck_EosActionUnknown::set_has_data_chunk() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck_EosActionUnknown::clear_has_data_chunk() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck_EosActionUnknown::clear_data_chunk() { + data_chunk_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data_chunk(); +} +inline const ::std::string& EosTxActionAck_EosActionUnknown::data_chunk() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown.data_chunk) + return data_chunk_.GetNoArena(); +} +inline void EosTxActionAck_EosActionUnknown::set_data_chunk(const ::std::string& value) { + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown.data_chunk) +} +#if LANG_CXX11 +inline void EosTxActionAck_EosActionUnknown::set_data_chunk(::std::string&& value) { + set_has_data_chunk(); + data_chunk_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown.data_chunk) +} +#endif +inline void EosTxActionAck_EosActionUnknown::set_data_chunk(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown.data_chunk) +} +inline void EosTxActionAck_EosActionUnknown::set_data_chunk(const void* value, size_t size) { + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown.data_chunk) +} +inline ::std::string* EosTxActionAck_EosActionUnknown::mutable_data_chunk() { + set_has_data_chunk(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown.data_chunk) + return data_chunk_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EosTxActionAck_EosActionUnknown::release_data_chunk() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown.data_chunk) + if (!has_data_chunk()) { + return NULL; + } + clear_has_data_chunk(); + return data_chunk_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EosTxActionAck_EosActionUnknown::set_allocated_data_chunk(::std::string* data_chunk) { + if (data_chunk != NULL) { + set_has_data_chunk(); + } else { + clear_has_data_chunk(); + } + data_chunk_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_chunk); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown.data_chunk) +} + +// ------------------------------------------------------------------- + +// EosTxActionAck + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionCommon common = 1; +inline bool EosTxActionAck::has_common() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosTxActionAck::set_has_common() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosTxActionAck::clear_has_common() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosTxActionAck::clear_common() { + if (common_ != NULL) common_->Clear(); + clear_has_common(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon& EosTxActionAck::_internal_common() const { + return *common_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon& EosTxActionAck::common() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon* p = common_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.common) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionCommon_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon* EosTxActionAck::release_common() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.common) + clear_has_common(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon* temp = common_; + common_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon* EosTxActionAck::mutable_common() { + set_has_common(); + if (common_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon>(GetArenaNoVirtual()); + common_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.common) + return common_; +} +inline void EosTxActionAck::set_allocated_common(::hw::trezor::messages::eos::EosTxActionAck_EosActionCommon* common) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete common_; + } + if (common) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + common = ::google::protobuf::internal::GetOwnedMessage( + message_arena, common, submessage_arena); + } + set_has_common(); + } else { + clear_has_common(); + } + common_ = common; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.common) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionTransfer transfer = 2; +inline bool EosTxActionAck::has_transfer() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosTxActionAck::set_has_transfer() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosTxActionAck::clear_has_transfer() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosTxActionAck::clear_transfer() { + if (transfer_ != NULL) transfer_->Clear(); + clear_has_transfer(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer& EosTxActionAck::_internal_transfer() const { + return *transfer_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer& EosTxActionAck::transfer() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer* p = transfer_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.transfer) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionTransfer_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer* EosTxActionAck::release_transfer() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.transfer) + clear_has_transfer(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer* temp = transfer_; + transfer_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer* EosTxActionAck::mutable_transfer() { + set_has_transfer(); + if (transfer_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer>(GetArenaNoVirtual()); + transfer_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.transfer) + return transfer_; +} +inline void EosTxActionAck::set_allocated_transfer(::hw::trezor::messages::eos::EosTxActionAck_EosActionTransfer* transfer) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transfer_; + } + if (transfer) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transfer = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transfer, submessage_arena); + } + set_has_transfer(); + } else { + clear_has_transfer(); + } + transfer_ = transfer; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.transfer) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDelegate delegate = 3; +inline bool EosTxActionAck::has_delegate() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosTxActionAck::set_has_delegate() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosTxActionAck::clear_has_delegate() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosTxActionAck::clear_delegate() { + if (delegate_ != NULL) delegate_->Clear(); + clear_has_delegate(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate& EosTxActionAck::_internal_delegate() const { + return *delegate_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate& EosTxActionAck::delegate() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate* p = delegate_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.delegate) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionDelegate_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate* EosTxActionAck::release_delegate() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.delegate) + clear_has_delegate(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate* temp = delegate_; + delegate_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate* EosTxActionAck::mutable_delegate() { + set_has_delegate(); + if (delegate_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate>(GetArenaNoVirtual()); + delegate_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.delegate) + return delegate_; +} +inline void EosTxActionAck::set_allocated_delegate(::hw::trezor::messages::eos::EosTxActionAck_EosActionDelegate* delegate) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete delegate_; + } + if (delegate) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + delegate = ::google::protobuf::internal::GetOwnedMessage( + message_arena, delegate, submessage_arena); + } + set_has_delegate(); + } else { + clear_has_delegate(); + } + delegate_ = delegate; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.delegate) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUndelegate undelegate = 4; +inline bool EosTxActionAck::has_undelegate() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EosTxActionAck::set_has_undelegate() { + _has_bits_[0] |= 0x00000008u; +} +inline void EosTxActionAck::clear_has_undelegate() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EosTxActionAck::clear_undelegate() { + if (undelegate_ != NULL) undelegate_->Clear(); + clear_has_undelegate(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate& EosTxActionAck::_internal_undelegate() const { + return *undelegate_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate& EosTxActionAck::undelegate() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate* p = undelegate_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.undelegate) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionUndelegate_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate* EosTxActionAck::release_undelegate() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.undelegate) + clear_has_undelegate(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate* temp = undelegate_; + undelegate_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate* EosTxActionAck::mutable_undelegate() { + set_has_undelegate(); + if (undelegate_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate>(GetArenaNoVirtual()); + undelegate_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.undelegate) + return undelegate_; +} +inline void EosTxActionAck::set_allocated_undelegate(::hw::trezor::messages::eos::EosTxActionAck_EosActionUndelegate* undelegate) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete undelegate_; + } + if (undelegate) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + undelegate = ::google::protobuf::internal::GetOwnedMessage( + message_arena, undelegate, submessage_arena); + } + set_has_undelegate(); + } else { + clear_has_undelegate(); + } + undelegate_ = undelegate; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.undelegate) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionRefund refund = 5; +inline bool EosTxActionAck::has_refund() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void EosTxActionAck::set_has_refund() { + _has_bits_[0] |= 0x00000010u; +} +inline void EosTxActionAck::clear_has_refund() { + _has_bits_[0] &= ~0x00000010u; +} +inline void EosTxActionAck::clear_refund() { + if (refund_ != NULL) refund_->Clear(); + clear_has_refund(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund& EosTxActionAck::_internal_refund() const { + return *refund_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund& EosTxActionAck::refund() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund* p = refund_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.refund) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionRefund_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund* EosTxActionAck::release_refund() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.refund) + clear_has_refund(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund* temp = refund_; + refund_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund* EosTxActionAck::mutable_refund() { + set_has_refund(); + if (refund_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund>(GetArenaNoVirtual()); + refund_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.refund) + return refund_; +} +inline void EosTxActionAck::set_allocated_refund(::hw::trezor::messages::eos::EosTxActionAck_EosActionRefund* refund) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete refund_; + } + if (refund) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + refund = ::google::protobuf::internal::GetOwnedMessage( + message_arena, refund, submessage_arena); + } + set_has_refund(); + } else { + clear_has_refund(); + } + refund_ = refund; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.refund) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRam buy_ram = 6; +inline bool EosTxActionAck::has_buy_ram() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void EosTxActionAck::set_has_buy_ram() { + _has_bits_[0] |= 0x00000020u; +} +inline void EosTxActionAck::clear_has_buy_ram() { + _has_bits_[0] &= ~0x00000020u; +} +inline void EosTxActionAck::clear_buy_ram() { + if (buy_ram_ != NULL) buy_ram_->Clear(); + clear_has_buy_ram(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam& EosTxActionAck::_internal_buy_ram() const { + return *buy_ram_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam& EosTxActionAck::buy_ram() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam* p = buy_ram_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.buy_ram) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionBuyRam_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam* EosTxActionAck::release_buy_ram() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.buy_ram) + clear_has_buy_ram(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam* temp = buy_ram_; + buy_ram_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam* EosTxActionAck::mutable_buy_ram() { + set_has_buy_ram(); + if (buy_ram_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam>(GetArenaNoVirtual()); + buy_ram_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.buy_ram) + return buy_ram_; +} +inline void EosTxActionAck::set_allocated_buy_ram(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRam* buy_ram) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete buy_ram_; + } + if (buy_ram) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + buy_ram = ::google::protobuf::internal::GetOwnedMessage( + message_arena, buy_ram, submessage_arena); + } + set_has_buy_ram(); + } else { + clear_has_buy_ram(); + } + buy_ram_ = buy_ram; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.buy_ram) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionBuyRamBytes buy_ram_bytes = 7; +inline bool EosTxActionAck::has_buy_ram_bytes() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void EosTxActionAck::set_has_buy_ram_bytes() { + _has_bits_[0] |= 0x00000040u; +} +inline void EosTxActionAck::clear_has_buy_ram_bytes() { + _has_bits_[0] &= ~0x00000040u; +} +inline void EosTxActionAck::clear_buy_ram_bytes() { + if (buy_ram_bytes_ != NULL) buy_ram_bytes_->Clear(); + clear_has_buy_ram_bytes(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes& EosTxActionAck::_internal_buy_ram_bytes() const { + return *buy_ram_bytes_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes& EosTxActionAck::buy_ram_bytes() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes* p = buy_ram_bytes_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.buy_ram_bytes) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionBuyRamBytes_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes* EosTxActionAck::release_buy_ram_bytes() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.buy_ram_bytes) + clear_has_buy_ram_bytes(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes* temp = buy_ram_bytes_; + buy_ram_bytes_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes* EosTxActionAck::mutable_buy_ram_bytes() { + set_has_buy_ram_bytes(); + if (buy_ram_bytes_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes>(GetArenaNoVirtual()); + buy_ram_bytes_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.buy_ram_bytes) + return buy_ram_bytes_; +} +inline void EosTxActionAck::set_allocated_buy_ram_bytes(::hw::trezor::messages::eos::EosTxActionAck_EosActionBuyRamBytes* buy_ram_bytes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete buy_ram_bytes_; + } + if (buy_ram_bytes) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + buy_ram_bytes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, buy_ram_bytes, submessage_arena); + } + set_has_buy_ram_bytes(); + } else { + clear_has_buy_ram_bytes(); + } + buy_ram_bytes_ = buy_ram_bytes; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.buy_ram_bytes) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionSellRam sell_ram = 8; +inline bool EosTxActionAck::has_sell_ram() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void EosTxActionAck::set_has_sell_ram() { + _has_bits_[0] |= 0x00000080u; +} +inline void EosTxActionAck::clear_has_sell_ram() { + _has_bits_[0] &= ~0x00000080u; +} +inline void EosTxActionAck::clear_sell_ram() { + if (sell_ram_ != NULL) sell_ram_->Clear(); + clear_has_sell_ram(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam& EosTxActionAck::_internal_sell_ram() const { + return *sell_ram_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam& EosTxActionAck::sell_ram() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam* p = sell_ram_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.sell_ram) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionSellRam_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam* EosTxActionAck::release_sell_ram() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.sell_ram) + clear_has_sell_ram(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam* temp = sell_ram_; + sell_ram_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam* EosTxActionAck::mutable_sell_ram() { + set_has_sell_ram(); + if (sell_ram_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam>(GetArenaNoVirtual()); + sell_ram_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.sell_ram) + return sell_ram_; +} +inline void EosTxActionAck::set_allocated_sell_ram(::hw::trezor::messages::eos::EosTxActionAck_EosActionSellRam* sell_ram) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete sell_ram_; + } + if (sell_ram) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + sell_ram = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sell_ram, submessage_arena); + } + set_has_sell_ram(); + } else { + clear_has_sell_ram(); + } + sell_ram_ = sell_ram; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.sell_ram) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionVoteProducer vote_producer = 9; +inline bool EosTxActionAck::has_vote_producer() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void EosTxActionAck::set_has_vote_producer() { + _has_bits_[0] |= 0x00000100u; +} +inline void EosTxActionAck::clear_has_vote_producer() { + _has_bits_[0] &= ~0x00000100u; +} +inline void EosTxActionAck::clear_vote_producer() { + if (vote_producer_ != NULL) vote_producer_->Clear(); + clear_has_vote_producer(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer& EosTxActionAck::_internal_vote_producer() const { + return *vote_producer_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer& EosTxActionAck::vote_producer() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer* p = vote_producer_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.vote_producer) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionVoteProducer_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer* EosTxActionAck::release_vote_producer() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.vote_producer) + clear_has_vote_producer(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer* temp = vote_producer_; + vote_producer_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer* EosTxActionAck::mutable_vote_producer() { + set_has_vote_producer(); + if (vote_producer_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer>(GetArenaNoVirtual()); + vote_producer_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.vote_producer) + return vote_producer_; +} +inline void EosTxActionAck::set_allocated_vote_producer(::hw::trezor::messages::eos::EosTxActionAck_EosActionVoteProducer* vote_producer) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete vote_producer_; + } + if (vote_producer) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + vote_producer = ::google::protobuf::internal::GetOwnedMessage( + message_arena, vote_producer, submessage_arena); + } + set_has_vote_producer(); + } else { + clear_has_vote_producer(); + } + vote_producer_ = vote_producer; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.vote_producer) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUpdateAuth update_auth = 10; +inline bool EosTxActionAck::has_update_auth() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void EosTxActionAck::set_has_update_auth() { + _has_bits_[0] |= 0x00000200u; +} +inline void EosTxActionAck::clear_has_update_auth() { + _has_bits_[0] &= ~0x00000200u; +} +inline void EosTxActionAck::clear_update_auth() { + if (update_auth_ != NULL) update_auth_->Clear(); + clear_has_update_auth(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth& EosTxActionAck::_internal_update_auth() const { + return *update_auth_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth& EosTxActionAck::update_auth() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth* p = update_auth_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.update_auth) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionUpdateAuth_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth* EosTxActionAck::release_update_auth() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.update_auth) + clear_has_update_auth(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth* temp = update_auth_; + update_auth_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth* EosTxActionAck::mutable_update_auth() { + set_has_update_auth(); + if (update_auth_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth>(GetArenaNoVirtual()); + update_auth_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.update_auth) + return update_auth_; +} +inline void EosTxActionAck::set_allocated_update_auth(::hw::trezor::messages::eos::EosTxActionAck_EosActionUpdateAuth* update_auth) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete update_auth_; + } + if (update_auth) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + update_auth = ::google::protobuf::internal::GetOwnedMessage( + message_arena, update_auth, submessage_arena); + } + set_has_update_auth(); + } else { + clear_has_update_auth(); + } + update_auth_ = update_auth; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.update_auth) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionDeleteAuth delete_auth = 11; +inline bool EosTxActionAck::has_delete_auth() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void EosTxActionAck::set_has_delete_auth() { + _has_bits_[0] |= 0x00000400u; +} +inline void EosTxActionAck::clear_has_delete_auth() { + _has_bits_[0] &= ~0x00000400u; +} +inline void EosTxActionAck::clear_delete_auth() { + if (delete_auth_ != NULL) delete_auth_->Clear(); + clear_has_delete_auth(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth& EosTxActionAck::_internal_delete_auth() const { + return *delete_auth_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth& EosTxActionAck::delete_auth() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth* p = delete_auth_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.delete_auth) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionDeleteAuth_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth* EosTxActionAck::release_delete_auth() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.delete_auth) + clear_has_delete_auth(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth* temp = delete_auth_; + delete_auth_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth* EosTxActionAck::mutable_delete_auth() { + set_has_delete_auth(); + if (delete_auth_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth>(GetArenaNoVirtual()); + delete_auth_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.delete_auth) + return delete_auth_; +} +inline void EosTxActionAck::set_allocated_delete_auth(::hw::trezor::messages::eos::EosTxActionAck_EosActionDeleteAuth* delete_auth) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete delete_auth_; + } + if (delete_auth) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + delete_auth = ::google::protobuf::internal::GetOwnedMessage( + message_arena, delete_auth, submessage_arena); + } + set_has_delete_auth(); + } else { + clear_has_delete_auth(); + } + delete_auth_ = delete_auth; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.delete_auth) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionLinkAuth link_auth = 12; +inline bool EosTxActionAck::has_link_auth() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void EosTxActionAck::set_has_link_auth() { + _has_bits_[0] |= 0x00000800u; +} +inline void EosTxActionAck::clear_has_link_auth() { + _has_bits_[0] &= ~0x00000800u; +} +inline void EosTxActionAck::clear_link_auth() { + if (link_auth_ != NULL) link_auth_->Clear(); + clear_has_link_auth(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth& EosTxActionAck::_internal_link_auth() const { + return *link_auth_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth& EosTxActionAck::link_auth() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth* p = link_auth_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.link_auth) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionLinkAuth_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth* EosTxActionAck::release_link_auth() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.link_auth) + clear_has_link_auth(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth* temp = link_auth_; + link_auth_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth* EosTxActionAck::mutable_link_auth() { + set_has_link_auth(); + if (link_auth_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth>(GetArenaNoVirtual()); + link_auth_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.link_auth) + return link_auth_; +} +inline void EosTxActionAck::set_allocated_link_auth(::hw::trezor::messages::eos::EosTxActionAck_EosActionLinkAuth* link_auth) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete link_auth_; + } + if (link_auth) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + link_auth = ::google::protobuf::internal::GetOwnedMessage( + message_arena, link_auth, submessage_arena); + } + set_has_link_auth(); + } else { + clear_has_link_auth(); + } + link_auth_ = link_auth; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.link_auth) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnlinkAuth unlink_auth = 13; +inline bool EosTxActionAck::has_unlink_auth() const { + return (_has_bits_[0] & 0x00001000u) != 0; +} +inline void EosTxActionAck::set_has_unlink_auth() { + _has_bits_[0] |= 0x00001000u; +} +inline void EosTxActionAck::clear_has_unlink_auth() { + _has_bits_[0] &= ~0x00001000u; +} +inline void EosTxActionAck::clear_unlink_auth() { + if (unlink_auth_ != NULL) unlink_auth_->Clear(); + clear_has_unlink_auth(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth& EosTxActionAck::_internal_unlink_auth() const { + return *unlink_auth_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth& EosTxActionAck::unlink_auth() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth* p = unlink_auth_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.unlink_auth) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionUnlinkAuth_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth* EosTxActionAck::release_unlink_auth() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.unlink_auth) + clear_has_unlink_auth(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth* temp = unlink_auth_; + unlink_auth_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth* EosTxActionAck::mutable_unlink_auth() { + set_has_unlink_auth(); + if (unlink_auth_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth>(GetArenaNoVirtual()); + unlink_auth_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.unlink_auth) + return unlink_auth_; +} +inline void EosTxActionAck::set_allocated_unlink_auth(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnlinkAuth* unlink_auth) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete unlink_auth_; + } + if (unlink_auth) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + unlink_auth = ::google::protobuf::internal::GetOwnedMessage( + message_arena, unlink_auth, submessage_arena); + } + set_has_unlink_auth(); + } else { + clear_has_unlink_auth(); + } + unlink_auth_ = unlink_auth; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.unlink_auth) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionNewAccount new_account = 14; +inline bool EosTxActionAck::has_new_account() const { + return (_has_bits_[0] & 0x00002000u) != 0; +} +inline void EosTxActionAck::set_has_new_account() { + _has_bits_[0] |= 0x00002000u; +} +inline void EosTxActionAck::clear_has_new_account() { + _has_bits_[0] &= ~0x00002000u; +} +inline void EosTxActionAck::clear_new_account() { + if (new_account_ != NULL) new_account_->Clear(); + clear_has_new_account(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount& EosTxActionAck::_internal_new_account() const { + return *new_account_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount& EosTxActionAck::new_account() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount* p = new_account_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.new_account) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionNewAccount_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount* EosTxActionAck::release_new_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.new_account) + clear_has_new_account(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount* temp = new_account_; + new_account_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount* EosTxActionAck::mutable_new_account() { + set_has_new_account(); + if (new_account_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount>(GetArenaNoVirtual()); + new_account_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.new_account) + return new_account_; +} +inline void EosTxActionAck::set_allocated_new_account(::hw::trezor::messages::eos::EosTxActionAck_EosActionNewAccount* new_account) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete new_account_; + } + if (new_account) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + new_account = ::google::protobuf::internal::GetOwnedMessage( + message_arena, new_account, submessage_arena); + } + set_has_new_account(); + } else { + clear_has_new_account(); + } + new_account_ = new_account; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.new_account) +} + +// optional .hw.trezor.messages.eos.EosTxActionAck.EosActionUnknown unknown = 15; +inline bool EosTxActionAck::has_unknown() const { + return (_has_bits_[0] & 0x00004000u) != 0; +} +inline void EosTxActionAck::set_has_unknown() { + _has_bits_[0] |= 0x00004000u; +} +inline void EosTxActionAck::clear_has_unknown() { + _has_bits_[0] &= ~0x00004000u; +} +inline void EosTxActionAck::clear_unknown() { + if (unknown_ != NULL) unknown_->Clear(); + clear_has_unknown(); +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown& EosTxActionAck::_internal_unknown() const { + return *unknown_; +} +inline const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown& EosTxActionAck::unknown() const { + const ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown* p = unknown_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosTxActionAck.unknown) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::eos::_EosTxActionAck_EosActionUnknown_default_instance_); +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown* EosTxActionAck::release_unknown() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosTxActionAck.unknown) + clear_has_unknown(); + ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown* temp = unknown_; + unknown_ = NULL; + return temp; +} +inline ::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown* EosTxActionAck::mutable_unknown() { + set_has_unknown(); + if (unknown_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown>(GetArenaNoVirtual()); + unknown_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosTxActionAck.unknown) + return unknown_; +} +inline void EosTxActionAck::set_allocated_unknown(::hw::trezor::messages::eos::EosTxActionAck_EosActionUnknown* unknown) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete unknown_; + } + if (unknown) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + unknown = ::google::protobuf::internal::GetOwnedMessage( + message_arena, unknown, submessage_arena); + } + set_has_unknown(); + } else { + clear_has_unknown(); + } + unknown_ = unknown; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosTxActionAck.unknown) +} + +// ------------------------------------------------------------------- + +// EosSignedTx + +// optional uint32 signature_v = 1; +inline bool EosSignedTx::has_signature_v() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EosSignedTx::set_has_signature_v() { + _has_bits_[0] |= 0x00000004u; +} +inline void EosSignedTx::clear_has_signature_v() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EosSignedTx::clear_signature_v() { + signature_v_ = 0u; + clear_has_signature_v(); +} +inline ::google::protobuf::uint32 EosSignedTx::signature_v() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignedTx.signature_v) + return signature_v_; +} +inline void EosSignedTx::set_signature_v(::google::protobuf::uint32 value) { + set_has_signature_v(); + signature_v_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignedTx.signature_v) +} + +// optional bytes signature_r = 2; +inline bool EosSignedTx::has_signature_r() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EosSignedTx::set_has_signature_r() { + _has_bits_[0] |= 0x00000001u; +} +inline void EosSignedTx::clear_has_signature_r() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EosSignedTx::clear_signature_r() { + signature_r_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature_r(); +} +inline const ::std::string& EosSignedTx::signature_r() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignedTx.signature_r) + return signature_r_.GetNoArena(); +} +inline void EosSignedTx::set_signature_r(const ::std::string& value) { + set_has_signature_r(); + signature_r_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignedTx.signature_r) +} +#if LANG_CXX11 +inline void EosSignedTx::set_signature_r(::std::string&& value) { + set_has_signature_r(); + signature_r_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.eos.EosSignedTx.signature_r) +} +#endif +inline void EosSignedTx::set_signature_r(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature_r(); + signature_r_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.eos.EosSignedTx.signature_r) +} +inline void EosSignedTx::set_signature_r(const void* value, size_t size) { + set_has_signature_r(); + signature_r_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.eos.EosSignedTx.signature_r) +} +inline ::std::string* EosSignedTx::mutable_signature_r() { + set_has_signature_r(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosSignedTx.signature_r) + return signature_r_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EosSignedTx::release_signature_r() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosSignedTx.signature_r) + if (!has_signature_r()) { + return NULL; + } + clear_has_signature_r(); + return signature_r_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EosSignedTx::set_allocated_signature_r(::std::string* signature_r) { + if (signature_r != NULL) { + set_has_signature_r(); + } else { + clear_has_signature_r(); + } + signature_r_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature_r); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosSignedTx.signature_r) +} + +// optional bytes signature_s = 3; +inline bool EosSignedTx::has_signature_s() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EosSignedTx::set_has_signature_s() { + _has_bits_[0] |= 0x00000002u; +} +inline void EosSignedTx::clear_has_signature_s() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EosSignedTx::clear_signature_s() { + signature_s_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature_s(); +} +inline const ::std::string& EosSignedTx::signature_s() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.eos.EosSignedTx.signature_s) + return signature_s_.GetNoArena(); +} +inline void EosSignedTx::set_signature_s(const ::std::string& value) { + set_has_signature_s(); + signature_s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.eos.EosSignedTx.signature_s) +} +#if LANG_CXX11 +inline void EosSignedTx::set_signature_s(::std::string&& value) { + set_has_signature_s(); + signature_s_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.eos.EosSignedTx.signature_s) +} +#endif +inline void EosSignedTx::set_signature_s(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature_s(); + signature_s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.eos.EosSignedTx.signature_s) +} +inline void EosSignedTx::set_signature_s(const void* value, size_t size) { + set_has_signature_s(); + signature_s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.eos.EosSignedTx.signature_s) +} +inline ::std::string* EosSignedTx::mutable_signature_s() { + set_has_signature_s(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.eos.EosSignedTx.signature_s) + return signature_s_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EosSignedTx::release_signature_s() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.eos.EosSignedTx.signature_s) + if (!has_signature_s()) { + return NULL; + } + clear_has_signature_s(); + return signature_s_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EosSignedTx::set_allocated_signature_s(::std::string* signature_s) { + if (signature_s != NULL) { + set_has_signature_s(); + } else { + clear_has_signature_s(); + } + signature_s_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature_s); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.eos.EosSignedTx.signature_s) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace eos +} // namespace messages +} // namespace trezor +} // namespace hw + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2deos_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-ethereum.pb.cc b/src/Core/hardware/trezor/protob/messages-ethereum.pb.cc new file mode 100644 index 00000000..dee0dfed --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-ethereum.pb.cc @@ -0,0 +1,3802 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-ethereum.proto + +#include "messages-ethereum.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dcommon_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HDNodeType; +} // namespace protobuf_messages_2dcommon_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace ethereum { +class EthereumGetPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EthereumGetPublicKey_default_instance_; +class EthereumPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EthereumPublicKey_default_instance_; +class EthereumGetAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EthereumGetAddress_default_instance_; +class EthereumAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EthereumAddress_default_instance_; +class EthereumSignTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EthereumSignTx_default_instance_; +class EthereumTxRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EthereumTxRequest_default_instance_; +class EthereumTxAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EthereumTxAck_default_instance_; +class EthereumSignMessageDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EthereumSignMessage_default_instance_; +class EthereumMessageSignatureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EthereumMessageSignature_default_instance_; +class EthereumVerifyMessageDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EthereumVerifyMessage_default_instance_; +} // namespace ethereum +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dethereum_2eproto { +static void InitDefaultsEthereumGetPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ethereum::_EthereumGetPublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::ethereum::EthereumGetPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ethereum::EthereumGetPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EthereumGetPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEthereumGetPublicKey}, {}}; + +static void InitDefaultsEthereumPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ethereum::_EthereumPublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::ethereum::EthereumPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ethereum::EthereumPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_EthereumPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEthereumPublicKey}, { + &protobuf_messages_2dcommon_2eproto::scc_info_HDNodeType.base,}}; + +static void InitDefaultsEthereumGetAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ethereum::_EthereumGetAddress_default_instance_; + new (ptr) ::hw::trezor::messages::ethereum::EthereumGetAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ethereum::EthereumGetAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EthereumGetAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEthereumGetAddress}, {}}; + +static void InitDefaultsEthereumAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ethereum::_EthereumAddress_default_instance_; + new (ptr) ::hw::trezor::messages::ethereum::EthereumAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ethereum::EthereumAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EthereumAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEthereumAddress}, {}}; + +static void InitDefaultsEthereumSignTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ethereum::_EthereumSignTx_default_instance_; + new (ptr) ::hw::trezor::messages::ethereum::EthereumSignTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ethereum::EthereumSignTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EthereumSignTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEthereumSignTx}, {}}; + +static void InitDefaultsEthereumTxRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ethereum::_EthereumTxRequest_default_instance_; + new (ptr) ::hw::trezor::messages::ethereum::EthereumTxRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ethereum::EthereumTxRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EthereumTxRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEthereumTxRequest}, {}}; + +static void InitDefaultsEthereumTxAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ethereum::_EthereumTxAck_default_instance_; + new (ptr) ::hw::trezor::messages::ethereum::EthereumTxAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ethereum::EthereumTxAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EthereumTxAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEthereumTxAck}, {}}; + +static void InitDefaultsEthereumSignMessage() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ethereum::_EthereumSignMessage_default_instance_; + new (ptr) ::hw::trezor::messages::ethereum::EthereumSignMessage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ethereum::EthereumSignMessage::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EthereumSignMessage = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEthereumSignMessage}, {}}; + +static void InitDefaultsEthereumMessageSignature() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ethereum::_EthereumMessageSignature_default_instance_; + new (ptr) ::hw::trezor::messages::ethereum::EthereumMessageSignature(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ethereum::EthereumMessageSignature::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EthereumMessageSignature = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEthereumMessageSignature}, {}}; + +static void InitDefaultsEthereumVerifyMessage() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ethereum::_EthereumVerifyMessage_default_instance_; + new (ptr) ::hw::trezor::messages::ethereum::EthereumVerifyMessage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ethereum::EthereumVerifyMessage::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EthereumVerifyMessage = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEthereumVerifyMessage}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_EthereumGetPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_EthereumPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_EthereumGetAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_EthereumAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_EthereumSignTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_EthereumTxRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_EthereumTxAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_EthereumSignMessage.base); + ::google::protobuf::internal::InitSCC(&scc_info_EthereumMessageSignature.base); + ::google::protobuf::internal::InitSCC(&scc_info_EthereumVerifyMessage.base); +} + +::google::protobuf::Metadata file_level_metadata[10]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumGetPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumGetPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumGetPublicKey, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumGetPublicKey, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumPublicKey, node_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumPublicKey, xpub_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumGetAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumGetAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumGetAddress, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumGetAddress, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumAddress, address_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, nonce_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, gas_price_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, gas_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, to_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, data_initial_chunk_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, data_length_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, chain_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignTx, tx_type_), + ~0u, + 0, + 1, + 2, + 5, + 3, + 4, + 6, + 7, + 8, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumTxRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumTxRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumTxRequest, data_length_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumTxRequest, signature_v_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumTxRequest, signature_r_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumTxRequest, signature_s_), + 2, + 3, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumTxAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumTxAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumTxAck, data_chunk_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignMessage, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignMessage, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumSignMessage, message_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumMessageSignature, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumMessageSignature, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumMessageSignature, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumMessageSignature, address_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumVerifyMessage, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumVerifyMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumVerifyMessage, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumVerifyMessage, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ethereum::EthereumVerifyMessage, address_), + 0, + 1, + 2, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::hw::trezor::messages::ethereum::EthereumGetPublicKey)}, + { 9, 16, sizeof(::hw::trezor::messages::ethereum::EthereumPublicKey)}, + { 18, 25, sizeof(::hw::trezor::messages::ethereum::EthereumGetAddress)}, + { 27, 33, sizeof(::hw::trezor::messages::ethereum::EthereumAddress)}, + { 34, 49, sizeof(::hw::trezor::messages::ethereum::EthereumSignTx)}, + { 59, 68, sizeof(::hw::trezor::messages::ethereum::EthereumTxRequest)}, + { 72, 78, sizeof(::hw::trezor::messages::ethereum::EthereumTxAck)}, + { 79, 86, sizeof(::hw::trezor::messages::ethereum::EthereumSignMessage)}, + { 88, 95, sizeof(::hw::trezor::messages::ethereum::EthereumMessageSignature)}, + { 97, 105, sizeof(::hw::trezor::messages::ethereum::EthereumVerifyMessage)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::ethereum::_EthereumGetPublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ethereum::_EthereumPublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ethereum::_EthereumGetAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ethereum::_EthereumAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ethereum::_EthereumSignTx_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ethereum::_EthereumTxRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ethereum::_EthereumTxAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ethereum::_EthereumSignMessage_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ethereum::_EthereumMessageSignature_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ethereum::_EthereumVerifyMessage_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-ethereum.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 10); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\027messages-ethereum.proto\022\033hw.trezor.mes" + "sages.ethereum\032\025messages-common.proto\"\?\n" + "\024EthereumGetPublicKey\022\021\n\taddress_n\030\001 \003(\r" + "\022\024\n\014show_display\030\002 \001(\010\"V\n\021EthereumPublic" + "Key\0223\n\004node\030\001 \001(\0132%.hw.trezor.messages.c" + "ommon.HDNodeType\022\014\n\004xpub\030\002 \001(\t\"=\n\022Ethere" + "umGetAddress\022\021\n\taddress_n\030\001 \003(\r\022\024\n\014show_" + "display\030\002 \001(\010\"\"\n\017EthereumAddress\022\017\n\007addr" + "ess\030\002 \001(\t\"\307\001\n\016EthereumSignTx\022\021\n\taddress_" + "n\030\001 \003(\r\022\r\n\005nonce\030\002 \001(\014\022\021\n\tgas_price\030\003 \001(" + "\014\022\021\n\tgas_limit\030\004 \001(\014\022\n\n\002to\030\013 \001(\t\022\r\n\005valu" + "e\030\006 \001(\014\022\032\n\022data_initial_chunk\030\007 \001(\014\022\023\n\013d" + "ata_length\030\010 \001(\r\022\020\n\010chain_id\030\t \001(\r\022\017\n\007tx" + "_type\030\n \001(\r\"g\n\021EthereumTxRequest\022\023\n\013data" + "_length\030\001 \001(\r\022\023\n\013signature_v\030\002 \001(\r\022\023\n\013si" + "gnature_r\030\003 \001(\014\022\023\n\013signature_s\030\004 \001(\014\"#\n\r" + "EthereumTxAck\022\022\n\ndata_chunk\030\001 \001(\014\"9\n\023Eth" + "ereumSignMessage\022\021\n\taddress_n\030\001 \003(\r\022\017\n\007m" + "essage\030\002 \001(\014\">\n\030EthereumMessageSignature" + "\022\021\n\tsignature\030\002 \001(\014\022\017\n\007address\030\003 \001(\t\"L\n\025" + "EthereumVerifyMessage\022\021\n\tsignature\030\002 \001(\014" + "\022\017\n\007message\030\003 \001(\014\022\017\n\007address\030\004 \001(\tB<\n#co" + "m.satoshilabs.trezor.lib.protobufB\025Trezo" + "rMessageEthereum" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 936); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-ethereum.proto", &protobuf_RegisterTypes); + ::protobuf_messages_2dcommon_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dethereum_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace ethereum { + +// =================================================================== + +void EthereumGetPublicKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EthereumGetPublicKey::kAddressNFieldNumber; +const int EthereumGetPublicKey::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EthereumGetPublicKey::EthereumGetPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dethereum_2eproto::scc_info_EthereumGetPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ethereum.EthereumGetPublicKey) +} +EthereumGetPublicKey::EthereumGetPublicKey(const EthereumGetPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ethereum.EthereumGetPublicKey) +} + +void EthereumGetPublicKey::SharedCtor() { + show_display_ = false; +} + +EthereumGetPublicKey::~EthereumGetPublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ethereum.EthereumGetPublicKey) + SharedDtor(); +} + +void EthereumGetPublicKey::SharedDtor() { +} + +void EthereumGetPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EthereumGetPublicKey::descriptor() { + ::protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EthereumGetPublicKey& EthereumGetPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dethereum_2eproto::scc_info_EthereumGetPublicKey.base); + return *internal_default_instance(); +} + + +void EthereumGetPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ethereum.EthereumGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EthereumGetPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ethereum.EthereumGetPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ethereum.EthereumGetPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ethereum.EthereumGetPublicKey) + return false; +#undef DO_ +} + +void EthereumGetPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ethereum.EthereumGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ethereum.EthereumGetPublicKey) +} + +::google::protobuf::uint8* EthereumGetPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ethereum.EthereumGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ethereum.EthereumGetPublicKey) + return target; +} + +size_t EthereumGetPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ethereum.EthereumGetPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EthereumGetPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ethereum.EthereumGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const EthereumGetPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ethereum.EthereumGetPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ethereum.EthereumGetPublicKey) + MergeFrom(*source); + } +} + +void EthereumGetPublicKey::MergeFrom(const EthereumGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ethereum.EthereumGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void EthereumGetPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ethereum.EthereumGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EthereumGetPublicKey::CopyFrom(const EthereumGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ethereum.EthereumGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EthereumGetPublicKey::IsInitialized() const { + return true; +} + +void EthereumGetPublicKey::Swap(EthereumGetPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void EthereumGetPublicKey::InternalSwap(EthereumGetPublicKey* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EthereumGetPublicKey::GetMetadata() const { + protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EthereumPublicKey::InitAsDefaultInstance() { + ::hw::trezor::messages::ethereum::_EthereumPublicKey_default_instance_._instance.get_mutable()->node_ = const_cast< ::hw::trezor::messages::common::HDNodeType*>( + ::hw::trezor::messages::common::HDNodeType::internal_default_instance()); +} +void EthereumPublicKey::clear_node() { + if (node_ != NULL) node_->Clear(); + clear_has_node(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EthereumPublicKey::kNodeFieldNumber; +const int EthereumPublicKey::kXpubFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EthereumPublicKey::EthereumPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dethereum_2eproto::scc_info_EthereumPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ethereum.EthereumPublicKey) +} +EthereumPublicKey::EthereumPublicKey(const EthereumPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + xpub_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_xpub()) { + xpub_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.xpub_); + } + if (from.has_node()) { + node_ = new ::hw::trezor::messages::common::HDNodeType(*from.node_); + } else { + node_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ethereum.EthereumPublicKey) +} + +void EthereumPublicKey::SharedCtor() { + xpub_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + node_ = NULL; +} + +EthereumPublicKey::~EthereumPublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ethereum.EthereumPublicKey) + SharedDtor(); +} + +void EthereumPublicKey::SharedDtor() { + xpub_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete node_; +} + +void EthereumPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EthereumPublicKey::descriptor() { + ::protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EthereumPublicKey& EthereumPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dethereum_2eproto::scc_info_EthereumPublicKey.base); + return *internal_default_instance(); +} + + +void EthereumPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ethereum.EthereumPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + xpub_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(node_ != NULL); + node_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EthereumPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ethereum.EthereumPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.common.HDNodeType node = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node())); + } else { + goto handle_unusual; + } + break; + } + + // optional string xpub = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_xpub())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->xpub().data(), static_cast(this->xpub().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.ethereum.EthereumPublicKey.xpub"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ethereum.EthereumPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ethereum.EthereumPublicKey) + return false; +#undef DO_ +} + +void EthereumPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ethereum.EthereumPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.common.HDNodeType node = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_node(), output); + } + + // optional string xpub = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->xpub().data(), static_cast(this->xpub().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ethereum.EthereumPublicKey.xpub"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->xpub(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ethereum.EthereumPublicKey) +} + +::google::protobuf::uint8* EthereumPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ethereum.EthereumPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.common.HDNodeType node = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_node(), deterministic, target); + } + + // optional string xpub = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->xpub().data(), static_cast(this->xpub().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ethereum.EthereumPublicKey.xpub"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->xpub(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ethereum.EthereumPublicKey) + return target; +} + +size_t EthereumPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ethereum.EthereumPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional string xpub = 2; + if (has_xpub()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->xpub()); + } + + // optional .hw.trezor.messages.common.HDNodeType node = 1; + if (has_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *node_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EthereumPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ethereum.EthereumPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const EthereumPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ethereum.EthereumPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ethereum.EthereumPublicKey) + MergeFrom(*source); + } +} + +void EthereumPublicKey::MergeFrom(const EthereumPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ethereum.EthereumPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_xpub(); + xpub_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.xpub_); + } + if (cached_has_bits & 0x00000002u) { + mutable_node()->::hw::trezor::messages::common::HDNodeType::MergeFrom(from.node()); + } + } +} + +void EthereumPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ethereum.EthereumPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EthereumPublicKey::CopyFrom(const EthereumPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ethereum.EthereumPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EthereumPublicKey::IsInitialized() const { + if (has_node()) { + if (!this->node_->IsInitialized()) return false; + } + return true; +} + +void EthereumPublicKey::Swap(EthereumPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void EthereumPublicKey::InternalSwap(EthereumPublicKey* other) { + using std::swap; + xpub_.Swap(&other->xpub_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(node_, other->node_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EthereumPublicKey::GetMetadata() const { + protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EthereumGetAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EthereumGetAddress::kAddressNFieldNumber; +const int EthereumGetAddress::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EthereumGetAddress::EthereumGetAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dethereum_2eproto::scc_info_EthereumGetAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ethereum.EthereumGetAddress) +} +EthereumGetAddress::EthereumGetAddress(const EthereumGetAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ethereum.EthereumGetAddress) +} + +void EthereumGetAddress::SharedCtor() { + show_display_ = false; +} + +EthereumGetAddress::~EthereumGetAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ethereum.EthereumGetAddress) + SharedDtor(); +} + +void EthereumGetAddress::SharedDtor() { +} + +void EthereumGetAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EthereumGetAddress::descriptor() { + ::protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EthereumGetAddress& EthereumGetAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dethereum_2eproto::scc_info_EthereumGetAddress.base); + return *internal_default_instance(); +} + + +void EthereumGetAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ethereum.EthereumGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EthereumGetAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ethereum.EthereumGetAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ethereum.EthereumGetAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ethereum.EthereumGetAddress) + return false; +#undef DO_ +} + +void EthereumGetAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ethereum.EthereumGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ethereum.EthereumGetAddress) +} + +::google::protobuf::uint8* EthereumGetAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ethereum.EthereumGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ethereum.EthereumGetAddress) + return target; +} + +size_t EthereumGetAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ethereum.EthereumGetAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EthereumGetAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ethereum.EthereumGetAddress) + GOOGLE_DCHECK_NE(&from, this); + const EthereumGetAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ethereum.EthereumGetAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ethereum.EthereumGetAddress) + MergeFrom(*source); + } +} + +void EthereumGetAddress::MergeFrom(const EthereumGetAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ethereum.EthereumGetAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void EthereumGetAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ethereum.EthereumGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EthereumGetAddress::CopyFrom(const EthereumGetAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ethereum.EthereumGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EthereumGetAddress::IsInitialized() const { + return true; +} + +void EthereumGetAddress::Swap(EthereumGetAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void EthereumGetAddress::InternalSwap(EthereumGetAddress* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EthereumGetAddress::GetMetadata() const { + protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EthereumAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EthereumAddress::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EthereumAddress::EthereumAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dethereum_2eproto::scc_info_EthereumAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ethereum.EthereumAddress) +} +EthereumAddress::EthereumAddress(const EthereumAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ethereum.EthereumAddress) +} + +void EthereumAddress::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +EthereumAddress::~EthereumAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ethereum.EthereumAddress) + SharedDtor(); +} + +void EthereumAddress::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EthereumAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EthereumAddress::descriptor() { + ::protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EthereumAddress& EthereumAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dethereum_2eproto::scc_info_EthereumAddress.base); + return *internal_default_instance(); +} + + +void EthereumAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ethereum.EthereumAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EthereumAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ethereum.EthereumAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.ethereum.EthereumAddress.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ethereum.EthereumAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ethereum.EthereumAddress) + return false; +#undef DO_ +} + +void EthereumAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ethereum.EthereumAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ethereum.EthereumAddress.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ethereum.EthereumAddress) +} + +::google::protobuf::uint8* EthereumAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ethereum.EthereumAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ethereum.EthereumAddress.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ethereum.EthereumAddress) + return target; +} + +size_t EthereumAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ethereum.EthereumAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string address = 2; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EthereumAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ethereum.EthereumAddress) + GOOGLE_DCHECK_NE(&from, this); + const EthereumAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ethereum.EthereumAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ethereum.EthereumAddress) + MergeFrom(*source); + } +} + +void EthereumAddress::MergeFrom(const EthereumAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ethereum.EthereumAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_address()) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } +} + +void EthereumAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ethereum.EthereumAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EthereumAddress::CopyFrom(const EthereumAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ethereum.EthereumAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EthereumAddress::IsInitialized() const { + return true; +} + +void EthereumAddress::Swap(EthereumAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void EthereumAddress::InternalSwap(EthereumAddress* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EthereumAddress::GetMetadata() const { + protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EthereumSignTx::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EthereumSignTx::kAddressNFieldNumber; +const int EthereumSignTx::kNonceFieldNumber; +const int EthereumSignTx::kGasPriceFieldNumber; +const int EthereumSignTx::kGasLimitFieldNumber; +const int EthereumSignTx::kToFieldNumber; +const int EthereumSignTx::kValueFieldNumber; +const int EthereumSignTx::kDataInitialChunkFieldNumber; +const int EthereumSignTx::kDataLengthFieldNumber; +const int EthereumSignTx::kChainIdFieldNumber; +const int EthereumSignTx::kTxTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EthereumSignTx::EthereumSignTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dethereum_2eproto::scc_info_EthereumSignTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ethereum.EthereumSignTx) +} +EthereumSignTx::EthereumSignTx(const EthereumSignTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + nonce_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_nonce()) { + nonce_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.nonce_); + } + gas_price_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_gas_price()) { + gas_price_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gas_price_); + } + gas_limit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_gas_limit()) { + gas_limit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gas_limit_); + } + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_value()) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + data_initial_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data_initial_chunk()) { + data_initial_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_initial_chunk_); + } + to_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_to()) { + to_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_); + } + ::memcpy(&data_length_, &from.data_length_, + static_cast(reinterpret_cast(&tx_type_) - + reinterpret_cast(&data_length_)) + sizeof(tx_type_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ethereum.EthereumSignTx) +} + +void EthereumSignTx::SharedCtor() { + nonce_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + gas_price_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + gas_limit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_initial_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + to_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&data_length_, 0, static_cast( + reinterpret_cast(&tx_type_) - + reinterpret_cast(&data_length_)) + sizeof(tx_type_)); +} + +EthereumSignTx::~EthereumSignTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ethereum.EthereumSignTx) + SharedDtor(); +} + +void EthereumSignTx::SharedDtor() { + nonce_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + gas_price_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + gas_limit_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_initial_chunk_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + to_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EthereumSignTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EthereumSignTx::descriptor() { + ::protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EthereumSignTx& EthereumSignTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dethereum_2eproto::scc_info_EthereumSignTx.base); + return *internal_default_instance(); +} + + +void EthereumSignTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ethereum.EthereumSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + nonce_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + gas_price_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + gas_limit_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + value_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + data_initial_chunk_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000020u) { + to_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 192u) { + ::memset(&data_length_, 0, static_cast( + reinterpret_cast(&chain_id_) - + reinterpret_cast(&data_length_)) + sizeof(chain_id_)); + } + tx_type_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EthereumSignTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ethereum.EthereumSignTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes nonce = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_nonce())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes gas_price = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_gas_price())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes gas_limit = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_gas_limit())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes value = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes data_initial_chunk = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data_initial_chunk())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 data_length = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_data_length(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &data_length_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 chain_id = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_chain_id(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &chain_id_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 tx_type = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_tx_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &tx_type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string to = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_to())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->to().data(), static_cast(this->to().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.ethereum.EthereumSignTx.to"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ethereum.EthereumSignTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ethereum.EthereumSignTx) + return false; +#undef DO_ +} + +void EthereumSignTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ethereum.EthereumSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bytes nonce = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->nonce(), output); + } + + // optional bytes gas_price = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->gas_price(), output); + } + + // optional bytes gas_limit = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->gas_limit(), output); + } + + // optional bytes value = 6; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->value(), output); + } + + // optional bytes data_initial_chunk = 7; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 7, this->data_initial_chunk(), output); + } + + // optional uint32 data_length = 8; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->data_length(), output); + } + + // optional uint32 chain_id = 9; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->chain_id(), output); + } + + // optional uint32 tx_type = 10; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->tx_type(), output); + } + + // optional string to = 11; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->to().data(), static_cast(this->to().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ethereum.EthereumSignTx.to"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 11, this->to(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ethereum.EthereumSignTx) +} + +::google::protobuf::uint8* EthereumSignTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ethereum.EthereumSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bytes nonce = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->nonce(), target); + } + + // optional bytes gas_price = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->gas_price(), target); + } + + // optional bytes gas_limit = 4; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->gas_limit(), target); + } + + // optional bytes value = 6; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->value(), target); + } + + // optional bytes data_initial_chunk = 7; + if (cached_has_bits & 0x00000010u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 7, this->data_initial_chunk(), target); + } + + // optional uint32 data_length = 8; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->data_length(), target); + } + + // optional uint32 chain_id = 9; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->chain_id(), target); + } + + // optional uint32 tx_type = 10; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->tx_type(), target); + } + + // optional string to = 11; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->to().data(), static_cast(this->to().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ethereum.EthereumSignTx.to"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 11, this->to(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ethereum.EthereumSignTx) + return target; +} + +size_t EthereumSignTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ethereum.EthereumSignTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 255u) { + // optional bytes nonce = 2; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->nonce()); + } + + // optional bytes gas_price = 3; + if (has_gas_price()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->gas_price()); + } + + // optional bytes gas_limit = 4; + if (has_gas_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->gas_limit()); + } + + // optional bytes value = 6; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + // optional bytes data_initial_chunk = 7; + if (has_data_initial_chunk()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data_initial_chunk()); + } + + // optional string to = 11; + if (has_to()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->to()); + } + + // optional uint32 data_length = 8; + if (has_data_length()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->data_length()); + } + + // optional uint32 chain_id = 9; + if (has_chain_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->chain_id()); + } + + } + // optional uint32 tx_type = 10; + if (has_tx_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->tx_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EthereumSignTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ethereum.EthereumSignTx) + GOOGLE_DCHECK_NE(&from, this); + const EthereumSignTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ethereum.EthereumSignTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ethereum.EthereumSignTx) + MergeFrom(*source); + } +} + +void EthereumSignTx::MergeFrom(const EthereumSignTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ethereum.EthereumSignTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_nonce(); + nonce_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.nonce_); + } + if (cached_has_bits & 0x00000002u) { + set_has_gas_price(); + gas_price_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gas_price_); + } + if (cached_has_bits & 0x00000004u) { + set_has_gas_limit(); + gas_limit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gas_limit_); + } + if (cached_has_bits & 0x00000008u) { + set_has_value(); + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + if (cached_has_bits & 0x00000010u) { + set_has_data_initial_chunk(); + data_initial_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_initial_chunk_); + } + if (cached_has_bits & 0x00000020u) { + set_has_to(); + to_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_); + } + if (cached_has_bits & 0x00000040u) { + data_length_ = from.data_length_; + } + if (cached_has_bits & 0x00000080u) { + chain_id_ = from.chain_id_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x00000100u) { + set_tx_type(from.tx_type()); + } +} + +void EthereumSignTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ethereum.EthereumSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EthereumSignTx::CopyFrom(const EthereumSignTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ethereum.EthereumSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EthereumSignTx::IsInitialized() const { + return true; +} + +void EthereumSignTx::Swap(EthereumSignTx* other) { + if (other == this) return; + InternalSwap(other); +} +void EthereumSignTx::InternalSwap(EthereumSignTx* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + nonce_.Swap(&other->nonce_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + gas_price_.Swap(&other->gas_price_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + gas_limit_.Swap(&other->gas_limit_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + data_initial_chunk_.Swap(&other->data_initial_chunk_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + to_.Swap(&other->to_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(data_length_, other->data_length_); + swap(chain_id_, other->chain_id_); + swap(tx_type_, other->tx_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EthereumSignTx::GetMetadata() const { + protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EthereumTxRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EthereumTxRequest::kDataLengthFieldNumber; +const int EthereumTxRequest::kSignatureVFieldNumber; +const int EthereumTxRequest::kSignatureRFieldNumber; +const int EthereumTxRequest::kSignatureSFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EthereumTxRequest::EthereumTxRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dethereum_2eproto::scc_info_EthereumTxRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ethereum.EthereumTxRequest) +} +EthereumTxRequest::EthereumTxRequest(const EthereumTxRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_r_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature_r()) { + signature_r_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_r_); + } + signature_s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature_s()) { + signature_s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_s_); + } + ::memcpy(&data_length_, &from.data_length_, + static_cast(reinterpret_cast(&signature_v_) - + reinterpret_cast(&data_length_)) + sizeof(signature_v_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ethereum.EthereumTxRequest) +} + +void EthereumTxRequest::SharedCtor() { + signature_r_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&data_length_, 0, static_cast( + reinterpret_cast(&signature_v_) - + reinterpret_cast(&data_length_)) + sizeof(signature_v_)); +} + +EthereumTxRequest::~EthereumTxRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ethereum.EthereumTxRequest) + SharedDtor(); +} + +void EthereumTxRequest::SharedDtor() { + signature_r_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_s_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EthereumTxRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EthereumTxRequest::descriptor() { + ::protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EthereumTxRequest& EthereumTxRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dethereum_2eproto::scc_info_EthereumTxRequest.base); + return *internal_default_instance(); +} + + +void EthereumTxRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ethereum.EthereumTxRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + signature_r_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + signature_s_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 12u) { + ::memset(&data_length_, 0, static_cast( + reinterpret_cast(&signature_v_) - + reinterpret_cast(&data_length_)) + sizeof(signature_v_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EthereumTxRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ethereum.EthereumTxRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 data_length = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_data_length(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &data_length_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 signature_v = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_signature_v(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &signature_v_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature_r = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature_r())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature_s = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature_s())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ethereum.EthereumTxRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ethereum.EthereumTxRequest) + return false; +#undef DO_ +} + +void EthereumTxRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ethereum.EthereumTxRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 data_length = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->data_length(), output); + } + + // optional uint32 signature_v = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->signature_v(), output); + } + + // optional bytes signature_r = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->signature_r(), output); + } + + // optional bytes signature_s = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->signature_s(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ethereum.EthereumTxRequest) +} + +::google::protobuf::uint8* EthereumTxRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ethereum.EthereumTxRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 data_length = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->data_length(), target); + } + + // optional uint32 signature_v = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->signature_v(), target); + } + + // optional bytes signature_r = 3; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->signature_r(), target); + } + + // optional bytes signature_s = 4; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->signature_s(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ethereum.EthereumTxRequest) + return target; +} + +size_t EthereumTxRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ethereum.EthereumTxRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional bytes signature_r = 3; + if (has_signature_r()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature_r()); + } + + // optional bytes signature_s = 4; + if (has_signature_s()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature_s()); + } + + // optional uint32 data_length = 1; + if (has_data_length()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->data_length()); + } + + // optional uint32 signature_v = 2; + if (has_signature_v()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->signature_v()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EthereumTxRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ethereum.EthereumTxRequest) + GOOGLE_DCHECK_NE(&from, this); + const EthereumTxRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ethereum.EthereumTxRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ethereum.EthereumTxRequest) + MergeFrom(*source); + } +} + +void EthereumTxRequest::MergeFrom(const EthereumTxRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ethereum.EthereumTxRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature_r(); + signature_r_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_r_); + } + if (cached_has_bits & 0x00000002u) { + set_has_signature_s(); + signature_s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_s_); + } + if (cached_has_bits & 0x00000004u) { + data_length_ = from.data_length_; + } + if (cached_has_bits & 0x00000008u) { + signature_v_ = from.signature_v_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EthereumTxRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ethereum.EthereumTxRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EthereumTxRequest::CopyFrom(const EthereumTxRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ethereum.EthereumTxRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EthereumTxRequest::IsInitialized() const { + return true; +} + +void EthereumTxRequest::Swap(EthereumTxRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void EthereumTxRequest::InternalSwap(EthereumTxRequest* other) { + using std::swap; + signature_r_.Swap(&other->signature_r_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + signature_s_.Swap(&other->signature_s_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(data_length_, other->data_length_); + swap(signature_v_, other->signature_v_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EthereumTxRequest::GetMetadata() const { + protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EthereumTxAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EthereumTxAck::kDataChunkFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EthereumTxAck::EthereumTxAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dethereum_2eproto::scc_info_EthereumTxAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ethereum.EthereumTxAck) +} +EthereumTxAck::EthereumTxAck(const EthereumTxAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data_chunk()) { + data_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_chunk_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ethereum.EthereumTxAck) +} + +void EthereumTxAck::SharedCtor() { + data_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +EthereumTxAck::~EthereumTxAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ethereum.EthereumTxAck) + SharedDtor(); +} + +void EthereumTxAck::SharedDtor() { + data_chunk_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EthereumTxAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EthereumTxAck::descriptor() { + ::protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EthereumTxAck& EthereumTxAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dethereum_2eproto::scc_info_EthereumTxAck.base); + return *internal_default_instance(); +} + + +void EthereumTxAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ethereum.EthereumTxAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + data_chunk_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EthereumTxAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ethereum.EthereumTxAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes data_chunk = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data_chunk())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ethereum.EthereumTxAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ethereum.EthereumTxAck) + return false; +#undef DO_ +} + +void EthereumTxAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ethereum.EthereumTxAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes data_chunk = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->data_chunk(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ethereum.EthereumTxAck) +} + +::google::protobuf::uint8* EthereumTxAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ethereum.EthereumTxAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes data_chunk = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->data_chunk(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ethereum.EthereumTxAck) + return target; +} + +size_t EthereumTxAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ethereum.EthereumTxAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes data_chunk = 1; + if (has_data_chunk()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data_chunk()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EthereumTxAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ethereum.EthereumTxAck) + GOOGLE_DCHECK_NE(&from, this); + const EthereumTxAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ethereum.EthereumTxAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ethereum.EthereumTxAck) + MergeFrom(*source); + } +} + +void EthereumTxAck::MergeFrom(const EthereumTxAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ethereum.EthereumTxAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_data_chunk()) { + set_has_data_chunk(); + data_chunk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_chunk_); + } +} + +void EthereumTxAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ethereum.EthereumTxAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EthereumTxAck::CopyFrom(const EthereumTxAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ethereum.EthereumTxAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EthereumTxAck::IsInitialized() const { + return true; +} + +void EthereumTxAck::Swap(EthereumTxAck* other) { + if (other == this) return; + InternalSwap(other); +} +void EthereumTxAck::InternalSwap(EthereumTxAck* other) { + using std::swap; + data_chunk_.Swap(&other->data_chunk_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EthereumTxAck::GetMetadata() const { + protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EthereumSignMessage::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EthereumSignMessage::kAddressNFieldNumber; +const int EthereumSignMessage::kMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EthereumSignMessage::EthereumSignMessage() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dethereum_2eproto::scc_info_EthereumSignMessage.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ethereum.EthereumSignMessage) +} +EthereumSignMessage::EthereumSignMessage(const EthereumSignMessage& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_message()) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ethereum.EthereumSignMessage) +} + +void EthereumSignMessage::SharedCtor() { + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +EthereumSignMessage::~EthereumSignMessage() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ethereum.EthereumSignMessage) + SharedDtor(); +} + +void EthereumSignMessage::SharedDtor() { + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EthereumSignMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EthereumSignMessage::descriptor() { + ::protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EthereumSignMessage& EthereumSignMessage::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dethereum_2eproto::scc_info_EthereumSignMessage.base); + return *internal_default_instance(); +} + + +void EthereumSignMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ethereum.EthereumSignMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + message_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EthereumSignMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ethereum.EthereumSignMessage) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_message())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ethereum.EthereumSignMessage) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ethereum.EthereumSignMessage) + return false; +#undef DO_ +} + +void EthereumSignMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ethereum.EthereumSignMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bytes message = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->message(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ethereum.EthereumSignMessage) +} + +::google::protobuf::uint8* EthereumSignMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ethereum.EthereumSignMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bytes message = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->message(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ethereum.EthereumSignMessage) + return target; +} + +size_t EthereumSignMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ethereum.EthereumSignMessage) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bytes message = 2; + if (has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->message()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EthereumSignMessage::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ethereum.EthereumSignMessage) + GOOGLE_DCHECK_NE(&from, this); + const EthereumSignMessage* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ethereum.EthereumSignMessage) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ethereum.EthereumSignMessage) + MergeFrom(*source); + } +} + +void EthereumSignMessage::MergeFrom(const EthereumSignMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ethereum.EthereumSignMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_message()) { + set_has_message(); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } +} + +void EthereumSignMessage::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ethereum.EthereumSignMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EthereumSignMessage::CopyFrom(const EthereumSignMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ethereum.EthereumSignMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EthereumSignMessage::IsInitialized() const { + return true; +} + +void EthereumSignMessage::Swap(EthereumSignMessage* other) { + if (other == this) return; + InternalSwap(other); +} +void EthereumSignMessage::InternalSwap(EthereumSignMessage* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EthereumSignMessage::GetMetadata() const { + protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EthereumMessageSignature::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EthereumMessageSignature::kSignatureFieldNumber; +const int EthereumMessageSignature::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EthereumMessageSignature::EthereumMessageSignature() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dethereum_2eproto::scc_info_EthereumMessageSignature.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ethereum.EthereumMessageSignature) +} +EthereumMessageSignature::EthereumMessageSignature(const EthereumMessageSignature& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ethereum.EthereumMessageSignature) +} + +void EthereumMessageSignature::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +EthereumMessageSignature::~EthereumMessageSignature() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ethereum.EthereumMessageSignature) + SharedDtor(); +} + +void EthereumMessageSignature::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EthereumMessageSignature::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EthereumMessageSignature::descriptor() { + ::protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EthereumMessageSignature& EthereumMessageSignature::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dethereum_2eproto::scc_info_EthereumMessageSignature.base); + return *internal_default_instance(); +} + + +void EthereumMessageSignature::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ethereum.EthereumMessageSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EthereumMessageSignature::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ethereum.EthereumMessageSignature) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes signature = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional string address = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.ethereum.EthereumMessageSignature.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ethereum.EthereumMessageSignature) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ethereum.EthereumMessageSignature) + return false; +#undef DO_ +} + +void EthereumMessageSignature::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ethereum.EthereumMessageSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->signature(), output); + } + + // optional string address = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ethereum.EthereumMessageSignature.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ethereum.EthereumMessageSignature) +} + +::google::protobuf::uint8* EthereumMessageSignature::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ethereum.EthereumMessageSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->signature(), target); + } + + // optional string address = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ethereum.EthereumMessageSignature.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ethereum.EthereumMessageSignature) + return target; +} + +size_t EthereumMessageSignature::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ethereum.EthereumMessageSignature) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes signature = 2; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional string address = 3; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EthereumMessageSignature::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ethereum.EthereumMessageSignature) + GOOGLE_DCHECK_NE(&from, this); + const EthereumMessageSignature* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ethereum.EthereumMessageSignature) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ethereum.EthereumMessageSignature) + MergeFrom(*source); + } +} + +void EthereumMessageSignature::MergeFrom(const EthereumMessageSignature& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ethereum.EthereumMessageSignature) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000002u) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + } +} + +void EthereumMessageSignature::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ethereum.EthereumMessageSignature) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EthereumMessageSignature::CopyFrom(const EthereumMessageSignature& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ethereum.EthereumMessageSignature) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EthereumMessageSignature::IsInitialized() const { + return true; +} + +void EthereumMessageSignature::Swap(EthereumMessageSignature* other) { + if (other == this) return; + InternalSwap(other); +} +void EthereumMessageSignature::InternalSwap(EthereumMessageSignature* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EthereumMessageSignature::GetMetadata() const { + protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EthereumVerifyMessage::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EthereumVerifyMessage::kSignatureFieldNumber; +const int EthereumVerifyMessage::kMessageFieldNumber; +const int EthereumVerifyMessage::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EthereumVerifyMessage::EthereumVerifyMessage() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dethereum_2eproto::scc_info_EthereumVerifyMessage.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ethereum.EthereumVerifyMessage) +} +EthereumVerifyMessage::EthereumVerifyMessage(const EthereumVerifyMessage& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_message()) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ethereum.EthereumVerifyMessage) +} + +void EthereumVerifyMessage::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +EthereumVerifyMessage::~EthereumVerifyMessage() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ethereum.EthereumVerifyMessage) + SharedDtor(); +} + +void EthereumVerifyMessage::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EthereumVerifyMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EthereumVerifyMessage::descriptor() { + ::protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EthereumVerifyMessage& EthereumVerifyMessage::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dethereum_2eproto::scc_info_EthereumVerifyMessage.base); + return *internal_default_instance(); +} + + +void EthereumVerifyMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ethereum.EthereumVerifyMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + message_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EthereumVerifyMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ethereum.EthereumVerifyMessage) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes signature = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes message = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_message())); + } else { + goto handle_unusual; + } + break; + } + + // optional string address = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.ethereum.EthereumVerifyMessage.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ethereum.EthereumVerifyMessage) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ethereum.EthereumVerifyMessage) + return false; +#undef DO_ +} + +void EthereumVerifyMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ethereum.EthereumVerifyMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->signature(), output); + } + + // optional bytes message = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->message(), output); + } + + // optional string address = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ethereum.EthereumVerifyMessage.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ethereum.EthereumVerifyMessage) +} + +::google::protobuf::uint8* EthereumVerifyMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ethereum.EthereumVerifyMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->signature(), target); + } + + // optional bytes message = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->message(), target); + } + + // optional string address = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ethereum.EthereumVerifyMessage.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ethereum.EthereumVerifyMessage) + return target; +} + +size_t EthereumVerifyMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ethereum.EthereumVerifyMessage) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes signature = 2; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional bytes message = 3; + if (has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->message()); + } + + // optional string address = 4; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EthereumVerifyMessage::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ethereum.EthereumVerifyMessage) + GOOGLE_DCHECK_NE(&from, this); + const EthereumVerifyMessage* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ethereum.EthereumVerifyMessage) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ethereum.EthereumVerifyMessage) + MergeFrom(*source); + } +} + +void EthereumVerifyMessage::MergeFrom(const EthereumVerifyMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ethereum.EthereumVerifyMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000002u) { + set_has_message(); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (cached_has_bits & 0x00000004u) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + } +} + +void EthereumVerifyMessage::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ethereum.EthereumVerifyMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EthereumVerifyMessage::CopyFrom(const EthereumVerifyMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ethereum.EthereumVerifyMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EthereumVerifyMessage::IsInitialized() const { + return true; +} + +void EthereumVerifyMessage::Swap(EthereumVerifyMessage* other) { + if (other == this) return; + InternalSwap(other); +} +void EthereumVerifyMessage::InternalSwap(EthereumVerifyMessage* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EthereumVerifyMessage::GetMetadata() const { + protobuf_messages_2dethereum_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dethereum_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace ethereum +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ethereum::EthereumGetPublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::ethereum::EthereumGetPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ethereum::EthereumGetPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ethereum::EthereumPublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::ethereum::EthereumPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ethereum::EthereumPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ethereum::EthereumGetAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::ethereum::EthereumGetAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ethereum::EthereumGetAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ethereum::EthereumAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::ethereum::EthereumAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ethereum::EthereumAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ethereum::EthereumSignTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::ethereum::EthereumSignTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ethereum::EthereumSignTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ethereum::EthereumTxRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::ethereum::EthereumTxRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ethereum::EthereumTxRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ethereum::EthereumTxAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::ethereum::EthereumTxAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ethereum::EthereumTxAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ethereum::EthereumSignMessage* Arena::CreateMaybeMessage< ::hw::trezor::messages::ethereum::EthereumSignMessage >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ethereum::EthereumSignMessage >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ethereum::EthereumMessageSignature* Arena::CreateMaybeMessage< ::hw::trezor::messages::ethereum::EthereumMessageSignature >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ethereum::EthereumMessageSignature >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ethereum::EthereumVerifyMessage* Arena::CreateMaybeMessage< ::hw::trezor::messages::ethereum::EthereumVerifyMessage >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ethereum::EthereumVerifyMessage >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-ethereum.pb.h b/src/Core/hardware/trezor/protob/messages-ethereum.pb.h new file mode 100644 index 00000000..e40e973c --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-ethereum.pb.h @@ -0,0 +1,3131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-ethereum.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dethereum_2eproto +#define PROTOBUF_INCLUDED_messages_2dethereum_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "messages-common.pb.h" +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dethereum_2eproto + +namespace protobuf_messages_2dethereum_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[10]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dethereum_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace ethereum { +class EthereumAddress; +class EthereumAddressDefaultTypeInternal; +extern EthereumAddressDefaultTypeInternal _EthereumAddress_default_instance_; +class EthereumGetAddress; +class EthereumGetAddressDefaultTypeInternal; +extern EthereumGetAddressDefaultTypeInternal _EthereumGetAddress_default_instance_; +class EthereumGetPublicKey; +class EthereumGetPublicKeyDefaultTypeInternal; +extern EthereumGetPublicKeyDefaultTypeInternal _EthereumGetPublicKey_default_instance_; +class EthereumMessageSignature; +class EthereumMessageSignatureDefaultTypeInternal; +extern EthereumMessageSignatureDefaultTypeInternal _EthereumMessageSignature_default_instance_; +class EthereumPublicKey; +class EthereumPublicKeyDefaultTypeInternal; +extern EthereumPublicKeyDefaultTypeInternal _EthereumPublicKey_default_instance_; +class EthereumSignMessage; +class EthereumSignMessageDefaultTypeInternal; +extern EthereumSignMessageDefaultTypeInternal _EthereumSignMessage_default_instance_; +class EthereumSignTx; +class EthereumSignTxDefaultTypeInternal; +extern EthereumSignTxDefaultTypeInternal _EthereumSignTx_default_instance_; +class EthereumTxAck; +class EthereumTxAckDefaultTypeInternal; +extern EthereumTxAckDefaultTypeInternal _EthereumTxAck_default_instance_; +class EthereumTxRequest; +class EthereumTxRequestDefaultTypeInternal; +extern EthereumTxRequestDefaultTypeInternal _EthereumTxRequest_default_instance_; +class EthereumVerifyMessage; +class EthereumVerifyMessageDefaultTypeInternal; +extern EthereumVerifyMessageDefaultTypeInternal _EthereumVerifyMessage_default_instance_; +} // namespace ethereum +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::ethereum::EthereumAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::ethereum::EthereumAddress>(Arena*); +template<> ::hw::trezor::messages::ethereum::EthereumGetAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::ethereum::EthereumGetAddress>(Arena*); +template<> ::hw::trezor::messages::ethereum::EthereumGetPublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::ethereum::EthereumGetPublicKey>(Arena*); +template<> ::hw::trezor::messages::ethereum::EthereumMessageSignature* Arena::CreateMaybeMessage<::hw::trezor::messages::ethereum::EthereumMessageSignature>(Arena*); +template<> ::hw::trezor::messages::ethereum::EthereumPublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::ethereum::EthereumPublicKey>(Arena*); +template<> ::hw::trezor::messages::ethereum::EthereumSignMessage* Arena::CreateMaybeMessage<::hw::trezor::messages::ethereum::EthereumSignMessage>(Arena*); +template<> ::hw::trezor::messages::ethereum::EthereumSignTx* Arena::CreateMaybeMessage<::hw::trezor::messages::ethereum::EthereumSignTx>(Arena*); +template<> ::hw::trezor::messages::ethereum::EthereumTxAck* Arena::CreateMaybeMessage<::hw::trezor::messages::ethereum::EthereumTxAck>(Arena*); +template<> ::hw::trezor::messages::ethereum::EthereumTxRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::ethereum::EthereumTxRequest>(Arena*); +template<> ::hw::trezor::messages::ethereum::EthereumVerifyMessage* Arena::CreateMaybeMessage<::hw::trezor::messages::ethereum::EthereumVerifyMessage>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace ethereum { + +// =================================================================== + +class EthereumGetPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ethereum.EthereumGetPublicKey) */ { + public: + EthereumGetPublicKey(); + virtual ~EthereumGetPublicKey(); + + EthereumGetPublicKey(const EthereumGetPublicKey& from); + + inline EthereumGetPublicKey& operator=(const EthereumGetPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EthereumGetPublicKey(EthereumGetPublicKey&& from) noexcept + : EthereumGetPublicKey() { + *this = ::std::move(from); + } + + inline EthereumGetPublicKey& operator=(EthereumGetPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EthereumGetPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EthereumGetPublicKey* internal_default_instance() { + return reinterpret_cast( + &_EthereumGetPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(EthereumGetPublicKey* other); + friend void swap(EthereumGetPublicKey& a, EthereumGetPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EthereumGetPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + EthereumGetPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EthereumGetPublicKey& from); + void MergeFrom(const EthereumGetPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EthereumGetPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ethereum.EthereumGetPublicKey) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dethereum_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EthereumPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ethereum.EthereumPublicKey) */ { + public: + EthereumPublicKey(); + virtual ~EthereumPublicKey(); + + EthereumPublicKey(const EthereumPublicKey& from); + + inline EthereumPublicKey& operator=(const EthereumPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EthereumPublicKey(EthereumPublicKey&& from) noexcept + : EthereumPublicKey() { + *this = ::std::move(from); + } + + inline EthereumPublicKey& operator=(EthereumPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EthereumPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EthereumPublicKey* internal_default_instance() { + return reinterpret_cast( + &_EthereumPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(EthereumPublicKey* other); + friend void swap(EthereumPublicKey& a, EthereumPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EthereumPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + EthereumPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EthereumPublicKey& from); + void MergeFrom(const EthereumPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EthereumPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string xpub = 2; + bool has_xpub() const; + void clear_xpub(); + static const int kXpubFieldNumber = 2; + const ::std::string& xpub() const; + void set_xpub(const ::std::string& value); + #if LANG_CXX11 + void set_xpub(::std::string&& value); + #endif + void set_xpub(const char* value); + void set_xpub(const char* value, size_t size); + ::std::string* mutable_xpub(); + ::std::string* release_xpub(); + void set_allocated_xpub(::std::string* xpub); + + // optional .hw.trezor.messages.common.HDNodeType node = 1; + bool has_node() const; + void clear_node(); + static const int kNodeFieldNumber = 1; + private: + const ::hw::trezor::messages::common::HDNodeType& _internal_node() const; + public: + const ::hw::trezor::messages::common::HDNodeType& node() const; + ::hw::trezor::messages::common::HDNodeType* release_node(); + ::hw::trezor::messages::common::HDNodeType* mutable_node(); + void set_allocated_node(::hw::trezor::messages::common::HDNodeType* node); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ethereum.EthereumPublicKey) + private: + void set_has_node(); + void clear_has_node(); + void set_has_xpub(); + void clear_has_xpub(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr xpub_; + ::hw::trezor::messages::common::HDNodeType* node_; + friend struct ::protobuf_messages_2dethereum_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EthereumGetAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ethereum.EthereumGetAddress) */ { + public: + EthereumGetAddress(); + virtual ~EthereumGetAddress(); + + EthereumGetAddress(const EthereumGetAddress& from); + + inline EthereumGetAddress& operator=(const EthereumGetAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EthereumGetAddress(EthereumGetAddress&& from) noexcept + : EthereumGetAddress() { + *this = ::std::move(from); + } + + inline EthereumGetAddress& operator=(EthereumGetAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EthereumGetAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EthereumGetAddress* internal_default_instance() { + return reinterpret_cast( + &_EthereumGetAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(EthereumGetAddress* other); + friend void swap(EthereumGetAddress& a, EthereumGetAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EthereumGetAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + EthereumGetAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EthereumGetAddress& from); + void MergeFrom(const EthereumGetAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EthereumGetAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ethereum.EthereumGetAddress) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dethereum_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EthereumAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ethereum.EthereumAddress) */ { + public: + EthereumAddress(); + virtual ~EthereumAddress(); + + EthereumAddress(const EthereumAddress& from); + + inline EthereumAddress& operator=(const EthereumAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EthereumAddress(EthereumAddress&& from) noexcept + : EthereumAddress() { + *this = ::std::move(from); + } + + inline EthereumAddress& operator=(EthereumAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EthereumAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EthereumAddress* internal_default_instance() { + return reinterpret_cast( + &_EthereumAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(EthereumAddress* other); + friend void swap(EthereumAddress& a, EthereumAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EthereumAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + EthereumAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EthereumAddress& from); + void MergeFrom(const EthereumAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EthereumAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string address = 2; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 2; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ethereum.EthereumAddress) + private: + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dethereum_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EthereumSignTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ethereum.EthereumSignTx) */ { + public: + EthereumSignTx(); + virtual ~EthereumSignTx(); + + EthereumSignTx(const EthereumSignTx& from); + + inline EthereumSignTx& operator=(const EthereumSignTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EthereumSignTx(EthereumSignTx&& from) noexcept + : EthereumSignTx() { + *this = ::std::move(from); + } + + inline EthereumSignTx& operator=(EthereumSignTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EthereumSignTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EthereumSignTx* internal_default_instance() { + return reinterpret_cast( + &_EthereumSignTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(EthereumSignTx* other); + friend void swap(EthereumSignTx& a, EthereumSignTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EthereumSignTx* New() const final { + return CreateMaybeMessage(NULL); + } + + EthereumSignTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EthereumSignTx& from); + void MergeFrom(const EthereumSignTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EthereumSignTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes nonce = 2; + bool has_nonce() const; + void clear_nonce(); + static const int kNonceFieldNumber = 2; + const ::std::string& nonce() const; + void set_nonce(const ::std::string& value); + #if LANG_CXX11 + void set_nonce(::std::string&& value); + #endif + void set_nonce(const char* value); + void set_nonce(const void* value, size_t size); + ::std::string* mutable_nonce(); + ::std::string* release_nonce(); + void set_allocated_nonce(::std::string* nonce); + + // optional bytes gas_price = 3; + bool has_gas_price() const; + void clear_gas_price(); + static const int kGasPriceFieldNumber = 3; + const ::std::string& gas_price() const; + void set_gas_price(const ::std::string& value); + #if LANG_CXX11 + void set_gas_price(::std::string&& value); + #endif + void set_gas_price(const char* value); + void set_gas_price(const void* value, size_t size); + ::std::string* mutable_gas_price(); + ::std::string* release_gas_price(); + void set_allocated_gas_price(::std::string* gas_price); + + // optional bytes gas_limit = 4; + bool has_gas_limit() const; + void clear_gas_limit(); + static const int kGasLimitFieldNumber = 4; + const ::std::string& gas_limit() const; + void set_gas_limit(const ::std::string& value); + #if LANG_CXX11 + void set_gas_limit(::std::string&& value); + #endif + void set_gas_limit(const char* value); + void set_gas_limit(const void* value, size_t size); + ::std::string* mutable_gas_limit(); + ::std::string* release_gas_limit(); + void set_allocated_gas_limit(::std::string* gas_limit); + + // optional bytes value = 6; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 6; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const void* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // optional bytes data_initial_chunk = 7; + bool has_data_initial_chunk() const; + void clear_data_initial_chunk(); + static const int kDataInitialChunkFieldNumber = 7; + const ::std::string& data_initial_chunk() const; + void set_data_initial_chunk(const ::std::string& value); + #if LANG_CXX11 + void set_data_initial_chunk(::std::string&& value); + #endif + void set_data_initial_chunk(const char* value); + void set_data_initial_chunk(const void* value, size_t size); + ::std::string* mutable_data_initial_chunk(); + ::std::string* release_data_initial_chunk(); + void set_allocated_data_initial_chunk(::std::string* data_initial_chunk); + + // optional string to = 11; + bool has_to() const; + void clear_to(); + static const int kToFieldNumber = 11; + const ::std::string& to() const; + void set_to(const ::std::string& value); + #if LANG_CXX11 + void set_to(::std::string&& value); + #endif + void set_to(const char* value); + void set_to(const char* value, size_t size); + ::std::string* mutable_to(); + ::std::string* release_to(); + void set_allocated_to(::std::string* to); + + // optional uint32 data_length = 8; + bool has_data_length() const; + void clear_data_length(); + static const int kDataLengthFieldNumber = 8; + ::google::protobuf::uint32 data_length() const; + void set_data_length(::google::protobuf::uint32 value); + + // optional uint32 chain_id = 9; + bool has_chain_id() const; + void clear_chain_id(); + static const int kChainIdFieldNumber = 9; + ::google::protobuf::uint32 chain_id() const; + void set_chain_id(::google::protobuf::uint32 value); + + // optional uint32 tx_type = 10; + bool has_tx_type() const; + void clear_tx_type(); + static const int kTxTypeFieldNumber = 10; + ::google::protobuf::uint32 tx_type() const; + void set_tx_type(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ethereum.EthereumSignTx) + private: + void set_has_nonce(); + void clear_has_nonce(); + void set_has_gas_price(); + void clear_has_gas_price(); + void set_has_gas_limit(); + void clear_has_gas_limit(); + void set_has_to(); + void clear_has_to(); + void set_has_value(); + void clear_has_value(); + void set_has_data_initial_chunk(); + void clear_has_data_initial_chunk(); + void set_has_data_length(); + void clear_has_data_length(); + void set_has_chain_id(); + void clear_has_chain_id(); + void set_has_tx_type(); + void clear_has_tx_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr nonce_; + ::google::protobuf::internal::ArenaStringPtr gas_price_; + ::google::protobuf::internal::ArenaStringPtr gas_limit_; + ::google::protobuf::internal::ArenaStringPtr value_; + ::google::protobuf::internal::ArenaStringPtr data_initial_chunk_; + ::google::protobuf::internal::ArenaStringPtr to_; + ::google::protobuf::uint32 data_length_; + ::google::protobuf::uint32 chain_id_; + ::google::protobuf::uint32 tx_type_; + friend struct ::protobuf_messages_2dethereum_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EthereumTxRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ethereum.EthereumTxRequest) */ { + public: + EthereumTxRequest(); + virtual ~EthereumTxRequest(); + + EthereumTxRequest(const EthereumTxRequest& from); + + inline EthereumTxRequest& operator=(const EthereumTxRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EthereumTxRequest(EthereumTxRequest&& from) noexcept + : EthereumTxRequest() { + *this = ::std::move(from); + } + + inline EthereumTxRequest& operator=(EthereumTxRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EthereumTxRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EthereumTxRequest* internal_default_instance() { + return reinterpret_cast( + &_EthereumTxRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(EthereumTxRequest* other); + friend void swap(EthereumTxRequest& a, EthereumTxRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EthereumTxRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + EthereumTxRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EthereumTxRequest& from); + void MergeFrom(const EthereumTxRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EthereumTxRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature_r = 3; + bool has_signature_r() const; + void clear_signature_r(); + static const int kSignatureRFieldNumber = 3; + const ::std::string& signature_r() const; + void set_signature_r(const ::std::string& value); + #if LANG_CXX11 + void set_signature_r(::std::string&& value); + #endif + void set_signature_r(const char* value); + void set_signature_r(const void* value, size_t size); + ::std::string* mutable_signature_r(); + ::std::string* release_signature_r(); + void set_allocated_signature_r(::std::string* signature_r); + + // optional bytes signature_s = 4; + bool has_signature_s() const; + void clear_signature_s(); + static const int kSignatureSFieldNumber = 4; + const ::std::string& signature_s() const; + void set_signature_s(const ::std::string& value); + #if LANG_CXX11 + void set_signature_s(::std::string&& value); + #endif + void set_signature_s(const char* value); + void set_signature_s(const void* value, size_t size); + ::std::string* mutable_signature_s(); + ::std::string* release_signature_s(); + void set_allocated_signature_s(::std::string* signature_s); + + // optional uint32 data_length = 1; + bool has_data_length() const; + void clear_data_length(); + static const int kDataLengthFieldNumber = 1; + ::google::protobuf::uint32 data_length() const; + void set_data_length(::google::protobuf::uint32 value); + + // optional uint32 signature_v = 2; + bool has_signature_v() const; + void clear_signature_v(); + static const int kSignatureVFieldNumber = 2; + ::google::protobuf::uint32 signature_v() const; + void set_signature_v(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ethereum.EthereumTxRequest) + private: + void set_has_data_length(); + void clear_has_data_length(); + void set_has_signature_v(); + void clear_has_signature_v(); + void set_has_signature_r(); + void clear_has_signature_r(); + void set_has_signature_s(); + void clear_has_signature_s(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_r_; + ::google::protobuf::internal::ArenaStringPtr signature_s_; + ::google::protobuf::uint32 data_length_; + ::google::protobuf::uint32 signature_v_; + friend struct ::protobuf_messages_2dethereum_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EthereumTxAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ethereum.EthereumTxAck) */ { + public: + EthereumTxAck(); + virtual ~EthereumTxAck(); + + EthereumTxAck(const EthereumTxAck& from); + + inline EthereumTxAck& operator=(const EthereumTxAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EthereumTxAck(EthereumTxAck&& from) noexcept + : EthereumTxAck() { + *this = ::std::move(from); + } + + inline EthereumTxAck& operator=(EthereumTxAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EthereumTxAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EthereumTxAck* internal_default_instance() { + return reinterpret_cast( + &_EthereumTxAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(EthereumTxAck* other); + friend void swap(EthereumTxAck& a, EthereumTxAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EthereumTxAck* New() const final { + return CreateMaybeMessage(NULL); + } + + EthereumTxAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EthereumTxAck& from); + void MergeFrom(const EthereumTxAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EthereumTxAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes data_chunk = 1; + bool has_data_chunk() const; + void clear_data_chunk(); + static const int kDataChunkFieldNumber = 1; + const ::std::string& data_chunk() const; + void set_data_chunk(const ::std::string& value); + #if LANG_CXX11 + void set_data_chunk(::std::string&& value); + #endif + void set_data_chunk(const char* value); + void set_data_chunk(const void* value, size_t size); + ::std::string* mutable_data_chunk(); + ::std::string* release_data_chunk(); + void set_allocated_data_chunk(::std::string* data_chunk); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ethereum.EthereumTxAck) + private: + void set_has_data_chunk(); + void clear_has_data_chunk(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr data_chunk_; + friend struct ::protobuf_messages_2dethereum_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EthereumSignMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ethereum.EthereumSignMessage) */ { + public: + EthereumSignMessage(); + virtual ~EthereumSignMessage(); + + EthereumSignMessage(const EthereumSignMessage& from); + + inline EthereumSignMessage& operator=(const EthereumSignMessage& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EthereumSignMessage(EthereumSignMessage&& from) noexcept + : EthereumSignMessage() { + *this = ::std::move(from); + } + + inline EthereumSignMessage& operator=(EthereumSignMessage&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EthereumSignMessage& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EthereumSignMessage* internal_default_instance() { + return reinterpret_cast( + &_EthereumSignMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(EthereumSignMessage* other); + friend void swap(EthereumSignMessage& a, EthereumSignMessage& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EthereumSignMessage* New() const final { + return CreateMaybeMessage(NULL); + } + + EthereumSignMessage* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EthereumSignMessage& from); + void MergeFrom(const EthereumSignMessage& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EthereumSignMessage* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes message = 2; + bool has_message() const; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const void* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ethereum.EthereumSignMessage) + private: + void set_has_message(); + void clear_has_message(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr message_; + friend struct ::protobuf_messages_2dethereum_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EthereumMessageSignature : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ethereum.EthereumMessageSignature) */ { + public: + EthereumMessageSignature(); + virtual ~EthereumMessageSignature(); + + EthereumMessageSignature(const EthereumMessageSignature& from); + + inline EthereumMessageSignature& operator=(const EthereumMessageSignature& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EthereumMessageSignature(EthereumMessageSignature&& from) noexcept + : EthereumMessageSignature() { + *this = ::std::move(from); + } + + inline EthereumMessageSignature& operator=(EthereumMessageSignature&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EthereumMessageSignature& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EthereumMessageSignature* internal_default_instance() { + return reinterpret_cast( + &_EthereumMessageSignature_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(EthereumMessageSignature* other); + friend void swap(EthereumMessageSignature& a, EthereumMessageSignature& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EthereumMessageSignature* New() const final { + return CreateMaybeMessage(NULL); + } + + EthereumMessageSignature* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EthereumMessageSignature& from); + void MergeFrom(const EthereumMessageSignature& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EthereumMessageSignature* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 2; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 2; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional string address = 3; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 3; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ethereum.EthereumMessageSignature) + private: + void set_has_signature(); + void clear_has_signature(); + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dethereum_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EthereumVerifyMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ethereum.EthereumVerifyMessage) */ { + public: + EthereumVerifyMessage(); + virtual ~EthereumVerifyMessage(); + + EthereumVerifyMessage(const EthereumVerifyMessage& from); + + inline EthereumVerifyMessage& operator=(const EthereumVerifyMessage& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EthereumVerifyMessage(EthereumVerifyMessage&& from) noexcept + : EthereumVerifyMessage() { + *this = ::std::move(from); + } + + inline EthereumVerifyMessage& operator=(EthereumVerifyMessage&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EthereumVerifyMessage& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EthereumVerifyMessage* internal_default_instance() { + return reinterpret_cast( + &_EthereumVerifyMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(EthereumVerifyMessage* other); + friend void swap(EthereumVerifyMessage& a, EthereumVerifyMessage& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EthereumVerifyMessage* New() const final { + return CreateMaybeMessage(NULL); + } + + EthereumVerifyMessage* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EthereumVerifyMessage& from); + void MergeFrom(const EthereumVerifyMessage& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EthereumVerifyMessage* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 2; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 2; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional bytes message = 3; + bool has_message() const; + void clear_message(); + static const int kMessageFieldNumber = 3; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const void* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // optional string address = 4; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 4; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ethereum.EthereumVerifyMessage) + private: + void set_has_signature(); + void clear_has_signature(); + void set_has_message(); + void clear_has_message(); + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr message_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dethereum_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// EthereumGetPublicKey + +// repeated uint32 address_n = 1; +inline int EthereumGetPublicKey::address_n_size() const { + return address_n_.size(); +} +inline void EthereumGetPublicKey::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 EthereumGetPublicKey::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumGetPublicKey.address_n) + return address_n_.Get(index); +} +inline void EthereumGetPublicKey::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumGetPublicKey.address_n) +} +inline void EthereumGetPublicKey::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.ethereum.EthereumGetPublicKey.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +EthereumGetPublicKey::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.ethereum.EthereumGetPublicKey.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +EthereumGetPublicKey::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.ethereum.EthereumGetPublicKey.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool EthereumGetPublicKey::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EthereumGetPublicKey::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void EthereumGetPublicKey::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EthereumGetPublicKey::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool EthereumGetPublicKey::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumGetPublicKey.show_display) + return show_display_; +} +inline void EthereumGetPublicKey::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumGetPublicKey.show_display) +} + +// ------------------------------------------------------------------- + +// EthereumPublicKey + +// optional .hw.trezor.messages.common.HDNodeType node = 1; +inline bool EthereumPublicKey::has_node() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EthereumPublicKey::set_has_node() { + _has_bits_[0] |= 0x00000002u; +} +inline void EthereumPublicKey::clear_has_node() { + _has_bits_[0] &= ~0x00000002u; +} +inline const ::hw::trezor::messages::common::HDNodeType& EthereumPublicKey::_internal_node() const { + return *node_; +} +inline const ::hw::trezor::messages::common::HDNodeType& EthereumPublicKey::node() const { + const ::hw::trezor::messages::common::HDNodeType* p = node_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumPublicKey.node) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::common::_HDNodeType_default_instance_); +} +inline ::hw::trezor::messages::common::HDNodeType* EthereumPublicKey::release_node() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumPublicKey.node) + clear_has_node(); + ::hw::trezor::messages::common::HDNodeType* temp = node_; + node_ = NULL; + return temp; +} +inline ::hw::trezor::messages::common::HDNodeType* EthereumPublicKey::mutable_node() { + set_has_node(); + if (node_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::common::HDNodeType>(GetArenaNoVirtual()); + node_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumPublicKey.node) + return node_; +} +inline void EthereumPublicKey::set_allocated_node(::hw::trezor::messages::common::HDNodeType* node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(node_); + } + if (node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node, submessage_arena); + } + set_has_node(); + } else { + clear_has_node(); + } + node_ = node; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumPublicKey.node) +} + +// optional string xpub = 2; +inline bool EthereumPublicKey::has_xpub() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EthereumPublicKey::set_has_xpub() { + _has_bits_[0] |= 0x00000001u; +} +inline void EthereumPublicKey::clear_has_xpub() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EthereumPublicKey::clear_xpub() { + xpub_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_xpub(); +} +inline const ::std::string& EthereumPublicKey::xpub() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumPublicKey.xpub) + return xpub_.GetNoArena(); +} +inline void EthereumPublicKey::set_xpub(const ::std::string& value) { + set_has_xpub(); + xpub_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumPublicKey.xpub) +} +#if LANG_CXX11 +inline void EthereumPublicKey::set_xpub(::std::string&& value) { + set_has_xpub(); + xpub_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumPublicKey.xpub) +} +#endif +inline void EthereumPublicKey::set_xpub(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_xpub(); + xpub_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumPublicKey.xpub) +} +inline void EthereumPublicKey::set_xpub(const char* value, size_t size) { + set_has_xpub(); + xpub_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumPublicKey.xpub) +} +inline ::std::string* EthereumPublicKey::mutable_xpub() { + set_has_xpub(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumPublicKey.xpub) + return xpub_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumPublicKey::release_xpub() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumPublicKey.xpub) + if (!has_xpub()) { + return NULL; + } + clear_has_xpub(); + return xpub_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumPublicKey::set_allocated_xpub(::std::string* xpub) { + if (xpub != NULL) { + set_has_xpub(); + } else { + clear_has_xpub(); + } + xpub_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xpub); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumPublicKey.xpub) +} + +// ------------------------------------------------------------------- + +// EthereumGetAddress + +// repeated uint32 address_n = 1; +inline int EthereumGetAddress::address_n_size() const { + return address_n_.size(); +} +inline void EthereumGetAddress::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 EthereumGetAddress::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumGetAddress.address_n) + return address_n_.Get(index); +} +inline void EthereumGetAddress::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumGetAddress.address_n) +} +inline void EthereumGetAddress::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.ethereum.EthereumGetAddress.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +EthereumGetAddress::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.ethereum.EthereumGetAddress.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +EthereumGetAddress::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.ethereum.EthereumGetAddress.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool EthereumGetAddress::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EthereumGetAddress::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void EthereumGetAddress::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EthereumGetAddress::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool EthereumGetAddress::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumGetAddress.show_display) + return show_display_; +} +inline void EthereumGetAddress::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumGetAddress.show_display) +} + +// ------------------------------------------------------------------- + +// EthereumAddress + +// optional string address = 2; +inline bool EthereumAddress::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EthereumAddress::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void EthereumAddress::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EthereumAddress::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& EthereumAddress::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumAddress.address) + return address_.GetNoArena(); +} +inline void EthereumAddress::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumAddress.address) +} +#if LANG_CXX11 +inline void EthereumAddress::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumAddress.address) +} +#endif +inline void EthereumAddress::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumAddress.address) +} +inline void EthereumAddress::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumAddress.address) +} +inline ::std::string* EthereumAddress::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumAddress.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumAddress::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumAddress.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumAddress::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumAddress.address) +} + +// ------------------------------------------------------------------- + +// EthereumSignTx + +// repeated uint32 address_n = 1; +inline int EthereumSignTx::address_n_size() const { + return address_n_.size(); +} +inline void EthereumSignTx::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 EthereumSignTx::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignTx.address_n) + return address_n_.Get(index); +} +inline void EthereumSignTx::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignTx.address_n) +} +inline void EthereumSignTx::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.ethereum.EthereumSignTx.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +EthereumSignTx::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.ethereum.EthereumSignTx.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +EthereumSignTx::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.ethereum.EthereumSignTx.address_n) + return &address_n_; +} + +// optional bytes nonce = 2; +inline bool EthereumSignTx::has_nonce() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EthereumSignTx::set_has_nonce() { + _has_bits_[0] |= 0x00000001u; +} +inline void EthereumSignTx::clear_has_nonce() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EthereumSignTx::clear_nonce() { + nonce_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_nonce(); +} +inline const ::std::string& EthereumSignTx::nonce() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignTx.nonce) + return nonce_.GetNoArena(); +} +inline void EthereumSignTx::set_nonce(const ::std::string& value) { + set_has_nonce(); + nonce_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignTx.nonce) +} +#if LANG_CXX11 +inline void EthereumSignTx::set_nonce(::std::string&& value) { + set_has_nonce(); + nonce_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumSignTx.nonce) +} +#endif +inline void EthereumSignTx::set_nonce(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_nonce(); + nonce_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumSignTx.nonce) +} +inline void EthereumSignTx::set_nonce(const void* value, size_t size) { + set_has_nonce(); + nonce_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumSignTx.nonce) +} +inline ::std::string* EthereumSignTx::mutable_nonce() { + set_has_nonce(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumSignTx.nonce) + return nonce_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumSignTx::release_nonce() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumSignTx.nonce) + if (!has_nonce()) { + return NULL; + } + clear_has_nonce(); + return nonce_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumSignTx::set_allocated_nonce(::std::string* nonce) { + if (nonce != NULL) { + set_has_nonce(); + } else { + clear_has_nonce(); + } + nonce_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), nonce); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumSignTx.nonce) +} + +// optional bytes gas_price = 3; +inline bool EthereumSignTx::has_gas_price() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EthereumSignTx::set_has_gas_price() { + _has_bits_[0] |= 0x00000002u; +} +inline void EthereumSignTx::clear_has_gas_price() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EthereumSignTx::clear_gas_price() { + gas_price_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_gas_price(); +} +inline const ::std::string& EthereumSignTx::gas_price() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignTx.gas_price) + return gas_price_.GetNoArena(); +} +inline void EthereumSignTx::set_gas_price(const ::std::string& value) { + set_has_gas_price(); + gas_price_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignTx.gas_price) +} +#if LANG_CXX11 +inline void EthereumSignTx::set_gas_price(::std::string&& value) { + set_has_gas_price(); + gas_price_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumSignTx.gas_price) +} +#endif +inline void EthereumSignTx::set_gas_price(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_gas_price(); + gas_price_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumSignTx.gas_price) +} +inline void EthereumSignTx::set_gas_price(const void* value, size_t size) { + set_has_gas_price(); + gas_price_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumSignTx.gas_price) +} +inline ::std::string* EthereumSignTx::mutable_gas_price() { + set_has_gas_price(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumSignTx.gas_price) + return gas_price_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumSignTx::release_gas_price() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumSignTx.gas_price) + if (!has_gas_price()) { + return NULL; + } + clear_has_gas_price(); + return gas_price_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumSignTx::set_allocated_gas_price(::std::string* gas_price) { + if (gas_price != NULL) { + set_has_gas_price(); + } else { + clear_has_gas_price(); + } + gas_price_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gas_price); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumSignTx.gas_price) +} + +// optional bytes gas_limit = 4; +inline bool EthereumSignTx::has_gas_limit() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EthereumSignTx::set_has_gas_limit() { + _has_bits_[0] |= 0x00000004u; +} +inline void EthereumSignTx::clear_has_gas_limit() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EthereumSignTx::clear_gas_limit() { + gas_limit_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_gas_limit(); +} +inline const ::std::string& EthereumSignTx::gas_limit() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignTx.gas_limit) + return gas_limit_.GetNoArena(); +} +inline void EthereumSignTx::set_gas_limit(const ::std::string& value) { + set_has_gas_limit(); + gas_limit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignTx.gas_limit) +} +#if LANG_CXX11 +inline void EthereumSignTx::set_gas_limit(::std::string&& value) { + set_has_gas_limit(); + gas_limit_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumSignTx.gas_limit) +} +#endif +inline void EthereumSignTx::set_gas_limit(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_gas_limit(); + gas_limit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumSignTx.gas_limit) +} +inline void EthereumSignTx::set_gas_limit(const void* value, size_t size) { + set_has_gas_limit(); + gas_limit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumSignTx.gas_limit) +} +inline ::std::string* EthereumSignTx::mutable_gas_limit() { + set_has_gas_limit(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumSignTx.gas_limit) + return gas_limit_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumSignTx::release_gas_limit() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumSignTx.gas_limit) + if (!has_gas_limit()) { + return NULL; + } + clear_has_gas_limit(); + return gas_limit_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumSignTx::set_allocated_gas_limit(::std::string* gas_limit) { + if (gas_limit != NULL) { + set_has_gas_limit(); + } else { + clear_has_gas_limit(); + } + gas_limit_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gas_limit); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumSignTx.gas_limit) +} + +// optional string to = 11; +inline bool EthereumSignTx::has_to() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void EthereumSignTx::set_has_to() { + _has_bits_[0] |= 0x00000020u; +} +inline void EthereumSignTx::clear_has_to() { + _has_bits_[0] &= ~0x00000020u; +} +inline void EthereumSignTx::clear_to() { + to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_to(); +} +inline const ::std::string& EthereumSignTx::to() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignTx.to) + return to_.GetNoArena(); +} +inline void EthereumSignTx::set_to(const ::std::string& value) { + set_has_to(); + to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignTx.to) +} +#if LANG_CXX11 +inline void EthereumSignTx::set_to(::std::string&& value) { + set_has_to(); + to_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumSignTx.to) +} +#endif +inline void EthereumSignTx::set_to(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_to(); + to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumSignTx.to) +} +inline void EthereumSignTx::set_to(const char* value, size_t size) { + set_has_to(); + to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumSignTx.to) +} +inline ::std::string* EthereumSignTx::mutable_to() { + set_has_to(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumSignTx.to) + return to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumSignTx::release_to() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumSignTx.to) + if (!has_to()) { + return NULL; + } + clear_has_to(); + return to_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumSignTx::set_allocated_to(::std::string* to) { + if (to != NULL) { + set_has_to(); + } else { + clear_has_to(); + } + to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), to); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumSignTx.to) +} + +// optional bytes value = 6; +inline bool EthereumSignTx::has_value() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EthereumSignTx::set_has_value() { + _has_bits_[0] |= 0x00000008u; +} +inline void EthereumSignTx::clear_has_value() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EthereumSignTx::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_value(); +} +inline const ::std::string& EthereumSignTx::value() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignTx.value) + return value_.GetNoArena(); +} +inline void EthereumSignTx::set_value(const ::std::string& value) { + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignTx.value) +} +#if LANG_CXX11 +inline void EthereumSignTx::set_value(::std::string&& value) { + set_has_value(); + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumSignTx.value) +} +#endif +inline void EthereumSignTx::set_value(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumSignTx.value) +} +inline void EthereumSignTx::set_value(const void* value, size_t size) { + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumSignTx.value) +} +inline ::std::string* EthereumSignTx::mutable_value() { + set_has_value(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumSignTx.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumSignTx::release_value() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumSignTx.value) + if (!has_value()) { + return NULL; + } + clear_has_value(); + return value_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumSignTx::set_allocated_value(::std::string* value) { + if (value != NULL) { + set_has_value(); + } else { + clear_has_value(); + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumSignTx.value) +} + +// optional bytes data_initial_chunk = 7; +inline bool EthereumSignTx::has_data_initial_chunk() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void EthereumSignTx::set_has_data_initial_chunk() { + _has_bits_[0] |= 0x00000010u; +} +inline void EthereumSignTx::clear_has_data_initial_chunk() { + _has_bits_[0] &= ~0x00000010u; +} +inline void EthereumSignTx::clear_data_initial_chunk() { + data_initial_chunk_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data_initial_chunk(); +} +inline const ::std::string& EthereumSignTx::data_initial_chunk() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignTx.data_initial_chunk) + return data_initial_chunk_.GetNoArena(); +} +inline void EthereumSignTx::set_data_initial_chunk(const ::std::string& value) { + set_has_data_initial_chunk(); + data_initial_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignTx.data_initial_chunk) +} +#if LANG_CXX11 +inline void EthereumSignTx::set_data_initial_chunk(::std::string&& value) { + set_has_data_initial_chunk(); + data_initial_chunk_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumSignTx.data_initial_chunk) +} +#endif +inline void EthereumSignTx::set_data_initial_chunk(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data_initial_chunk(); + data_initial_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumSignTx.data_initial_chunk) +} +inline void EthereumSignTx::set_data_initial_chunk(const void* value, size_t size) { + set_has_data_initial_chunk(); + data_initial_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumSignTx.data_initial_chunk) +} +inline ::std::string* EthereumSignTx::mutable_data_initial_chunk() { + set_has_data_initial_chunk(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumSignTx.data_initial_chunk) + return data_initial_chunk_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumSignTx::release_data_initial_chunk() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumSignTx.data_initial_chunk) + if (!has_data_initial_chunk()) { + return NULL; + } + clear_has_data_initial_chunk(); + return data_initial_chunk_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumSignTx::set_allocated_data_initial_chunk(::std::string* data_initial_chunk) { + if (data_initial_chunk != NULL) { + set_has_data_initial_chunk(); + } else { + clear_has_data_initial_chunk(); + } + data_initial_chunk_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_initial_chunk); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumSignTx.data_initial_chunk) +} + +// optional uint32 data_length = 8; +inline bool EthereumSignTx::has_data_length() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void EthereumSignTx::set_has_data_length() { + _has_bits_[0] |= 0x00000040u; +} +inline void EthereumSignTx::clear_has_data_length() { + _has_bits_[0] &= ~0x00000040u; +} +inline void EthereumSignTx::clear_data_length() { + data_length_ = 0u; + clear_has_data_length(); +} +inline ::google::protobuf::uint32 EthereumSignTx::data_length() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignTx.data_length) + return data_length_; +} +inline void EthereumSignTx::set_data_length(::google::protobuf::uint32 value) { + set_has_data_length(); + data_length_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignTx.data_length) +} + +// optional uint32 chain_id = 9; +inline bool EthereumSignTx::has_chain_id() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void EthereumSignTx::set_has_chain_id() { + _has_bits_[0] |= 0x00000080u; +} +inline void EthereumSignTx::clear_has_chain_id() { + _has_bits_[0] &= ~0x00000080u; +} +inline void EthereumSignTx::clear_chain_id() { + chain_id_ = 0u; + clear_has_chain_id(); +} +inline ::google::protobuf::uint32 EthereumSignTx::chain_id() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignTx.chain_id) + return chain_id_; +} +inline void EthereumSignTx::set_chain_id(::google::protobuf::uint32 value) { + set_has_chain_id(); + chain_id_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignTx.chain_id) +} + +// optional uint32 tx_type = 10; +inline bool EthereumSignTx::has_tx_type() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void EthereumSignTx::set_has_tx_type() { + _has_bits_[0] |= 0x00000100u; +} +inline void EthereumSignTx::clear_has_tx_type() { + _has_bits_[0] &= ~0x00000100u; +} +inline void EthereumSignTx::clear_tx_type() { + tx_type_ = 0u; + clear_has_tx_type(); +} +inline ::google::protobuf::uint32 EthereumSignTx::tx_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignTx.tx_type) + return tx_type_; +} +inline void EthereumSignTx::set_tx_type(::google::protobuf::uint32 value) { + set_has_tx_type(); + tx_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignTx.tx_type) +} + +// ------------------------------------------------------------------- + +// EthereumTxRequest + +// optional uint32 data_length = 1; +inline bool EthereumTxRequest::has_data_length() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EthereumTxRequest::set_has_data_length() { + _has_bits_[0] |= 0x00000004u; +} +inline void EthereumTxRequest::clear_has_data_length() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EthereumTxRequest::clear_data_length() { + data_length_ = 0u; + clear_has_data_length(); +} +inline ::google::protobuf::uint32 EthereumTxRequest::data_length() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumTxRequest.data_length) + return data_length_; +} +inline void EthereumTxRequest::set_data_length(::google::protobuf::uint32 value) { + set_has_data_length(); + data_length_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumTxRequest.data_length) +} + +// optional uint32 signature_v = 2; +inline bool EthereumTxRequest::has_signature_v() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EthereumTxRequest::set_has_signature_v() { + _has_bits_[0] |= 0x00000008u; +} +inline void EthereumTxRequest::clear_has_signature_v() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EthereumTxRequest::clear_signature_v() { + signature_v_ = 0u; + clear_has_signature_v(); +} +inline ::google::protobuf::uint32 EthereumTxRequest::signature_v() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumTxRequest.signature_v) + return signature_v_; +} +inline void EthereumTxRequest::set_signature_v(::google::protobuf::uint32 value) { + set_has_signature_v(); + signature_v_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumTxRequest.signature_v) +} + +// optional bytes signature_r = 3; +inline bool EthereumTxRequest::has_signature_r() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EthereumTxRequest::set_has_signature_r() { + _has_bits_[0] |= 0x00000001u; +} +inline void EthereumTxRequest::clear_has_signature_r() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EthereumTxRequest::clear_signature_r() { + signature_r_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature_r(); +} +inline const ::std::string& EthereumTxRequest::signature_r() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumTxRequest.signature_r) + return signature_r_.GetNoArena(); +} +inline void EthereumTxRequest::set_signature_r(const ::std::string& value) { + set_has_signature_r(); + signature_r_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumTxRequest.signature_r) +} +#if LANG_CXX11 +inline void EthereumTxRequest::set_signature_r(::std::string&& value) { + set_has_signature_r(); + signature_r_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumTxRequest.signature_r) +} +#endif +inline void EthereumTxRequest::set_signature_r(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature_r(); + signature_r_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumTxRequest.signature_r) +} +inline void EthereumTxRequest::set_signature_r(const void* value, size_t size) { + set_has_signature_r(); + signature_r_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumTxRequest.signature_r) +} +inline ::std::string* EthereumTxRequest::mutable_signature_r() { + set_has_signature_r(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumTxRequest.signature_r) + return signature_r_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumTxRequest::release_signature_r() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumTxRequest.signature_r) + if (!has_signature_r()) { + return NULL; + } + clear_has_signature_r(); + return signature_r_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumTxRequest::set_allocated_signature_r(::std::string* signature_r) { + if (signature_r != NULL) { + set_has_signature_r(); + } else { + clear_has_signature_r(); + } + signature_r_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature_r); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumTxRequest.signature_r) +} + +// optional bytes signature_s = 4; +inline bool EthereumTxRequest::has_signature_s() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EthereumTxRequest::set_has_signature_s() { + _has_bits_[0] |= 0x00000002u; +} +inline void EthereumTxRequest::clear_has_signature_s() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EthereumTxRequest::clear_signature_s() { + signature_s_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature_s(); +} +inline const ::std::string& EthereumTxRequest::signature_s() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumTxRequest.signature_s) + return signature_s_.GetNoArena(); +} +inline void EthereumTxRequest::set_signature_s(const ::std::string& value) { + set_has_signature_s(); + signature_s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumTxRequest.signature_s) +} +#if LANG_CXX11 +inline void EthereumTxRequest::set_signature_s(::std::string&& value) { + set_has_signature_s(); + signature_s_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumTxRequest.signature_s) +} +#endif +inline void EthereumTxRequest::set_signature_s(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature_s(); + signature_s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumTxRequest.signature_s) +} +inline void EthereumTxRequest::set_signature_s(const void* value, size_t size) { + set_has_signature_s(); + signature_s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumTxRequest.signature_s) +} +inline ::std::string* EthereumTxRequest::mutable_signature_s() { + set_has_signature_s(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumTxRequest.signature_s) + return signature_s_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumTxRequest::release_signature_s() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumTxRequest.signature_s) + if (!has_signature_s()) { + return NULL; + } + clear_has_signature_s(); + return signature_s_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumTxRequest::set_allocated_signature_s(::std::string* signature_s) { + if (signature_s != NULL) { + set_has_signature_s(); + } else { + clear_has_signature_s(); + } + signature_s_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature_s); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumTxRequest.signature_s) +} + +// ------------------------------------------------------------------- + +// EthereumTxAck + +// optional bytes data_chunk = 1; +inline bool EthereumTxAck::has_data_chunk() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EthereumTxAck::set_has_data_chunk() { + _has_bits_[0] |= 0x00000001u; +} +inline void EthereumTxAck::clear_has_data_chunk() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EthereumTxAck::clear_data_chunk() { + data_chunk_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data_chunk(); +} +inline const ::std::string& EthereumTxAck::data_chunk() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumTxAck.data_chunk) + return data_chunk_.GetNoArena(); +} +inline void EthereumTxAck::set_data_chunk(const ::std::string& value) { + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumTxAck.data_chunk) +} +#if LANG_CXX11 +inline void EthereumTxAck::set_data_chunk(::std::string&& value) { + set_has_data_chunk(); + data_chunk_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumTxAck.data_chunk) +} +#endif +inline void EthereumTxAck::set_data_chunk(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumTxAck.data_chunk) +} +inline void EthereumTxAck::set_data_chunk(const void* value, size_t size) { + set_has_data_chunk(); + data_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumTxAck.data_chunk) +} +inline ::std::string* EthereumTxAck::mutable_data_chunk() { + set_has_data_chunk(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumTxAck.data_chunk) + return data_chunk_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumTxAck::release_data_chunk() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumTxAck.data_chunk) + if (!has_data_chunk()) { + return NULL; + } + clear_has_data_chunk(); + return data_chunk_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumTxAck::set_allocated_data_chunk(::std::string* data_chunk) { + if (data_chunk != NULL) { + set_has_data_chunk(); + } else { + clear_has_data_chunk(); + } + data_chunk_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_chunk); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumTxAck.data_chunk) +} + +// ------------------------------------------------------------------- + +// EthereumSignMessage + +// repeated uint32 address_n = 1; +inline int EthereumSignMessage::address_n_size() const { + return address_n_.size(); +} +inline void EthereumSignMessage::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 EthereumSignMessage::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignMessage.address_n) + return address_n_.Get(index); +} +inline void EthereumSignMessage::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignMessage.address_n) +} +inline void EthereumSignMessage::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.ethereum.EthereumSignMessage.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +EthereumSignMessage::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.ethereum.EthereumSignMessage.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +EthereumSignMessage::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.ethereum.EthereumSignMessage.address_n) + return &address_n_; +} + +// optional bytes message = 2; +inline bool EthereumSignMessage::has_message() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EthereumSignMessage::set_has_message() { + _has_bits_[0] |= 0x00000001u; +} +inline void EthereumSignMessage::clear_has_message() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EthereumSignMessage::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_message(); +} +inline const ::std::string& EthereumSignMessage::message() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumSignMessage.message) + return message_.GetNoArena(); +} +inline void EthereumSignMessage::set_message(const ::std::string& value) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumSignMessage.message) +} +#if LANG_CXX11 +inline void EthereumSignMessage::set_message(::std::string&& value) { + set_has_message(); + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumSignMessage.message) +} +#endif +inline void EthereumSignMessage::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumSignMessage.message) +} +inline void EthereumSignMessage::set_message(const void* value, size_t size) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumSignMessage.message) +} +inline ::std::string* EthereumSignMessage::mutable_message() { + set_has_message(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumSignMessage.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumSignMessage::release_message() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumSignMessage.message) + if (!has_message()) { + return NULL; + } + clear_has_message(); + return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumSignMessage::set_allocated_message(::std::string* message) { + if (message != NULL) { + set_has_message(); + } else { + clear_has_message(); + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumSignMessage.message) +} + +// ------------------------------------------------------------------- + +// EthereumMessageSignature + +// optional bytes signature = 2; +inline bool EthereumMessageSignature::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EthereumMessageSignature::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void EthereumMessageSignature::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EthereumMessageSignature::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& EthereumMessageSignature::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumMessageSignature.signature) + return signature_.GetNoArena(); +} +inline void EthereumMessageSignature::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumMessageSignature.signature) +} +#if LANG_CXX11 +inline void EthereumMessageSignature::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumMessageSignature.signature) +} +#endif +inline void EthereumMessageSignature::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumMessageSignature.signature) +} +inline void EthereumMessageSignature::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumMessageSignature.signature) +} +inline ::std::string* EthereumMessageSignature::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumMessageSignature.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumMessageSignature::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumMessageSignature.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumMessageSignature::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumMessageSignature.signature) +} + +// optional string address = 3; +inline bool EthereumMessageSignature::has_address() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EthereumMessageSignature::set_has_address() { + _has_bits_[0] |= 0x00000002u; +} +inline void EthereumMessageSignature::clear_has_address() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EthereumMessageSignature::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& EthereumMessageSignature::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumMessageSignature.address) + return address_.GetNoArena(); +} +inline void EthereumMessageSignature::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumMessageSignature.address) +} +#if LANG_CXX11 +inline void EthereumMessageSignature::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumMessageSignature.address) +} +#endif +inline void EthereumMessageSignature::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumMessageSignature.address) +} +inline void EthereumMessageSignature::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumMessageSignature.address) +} +inline ::std::string* EthereumMessageSignature::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumMessageSignature.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumMessageSignature::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumMessageSignature.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumMessageSignature::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumMessageSignature.address) +} + +// ------------------------------------------------------------------- + +// EthereumVerifyMessage + +// optional bytes signature = 2; +inline bool EthereumVerifyMessage::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EthereumVerifyMessage::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void EthereumVerifyMessage::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EthereumVerifyMessage::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& EthereumVerifyMessage::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumVerifyMessage.signature) + return signature_.GetNoArena(); +} +inline void EthereumVerifyMessage::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumVerifyMessage.signature) +} +#if LANG_CXX11 +inline void EthereumVerifyMessage::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumVerifyMessage.signature) +} +#endif +inline void EthereumVerifyMessage::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumVerifyMessage.signature) +} +inline void EthereumVerifyMessage::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumVerifyMessage.signature) +} +inline ::std::string* EthereumVerifyMessage::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumVerifyMessage.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumVerifyMessage::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumVerifyMessage.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumVerifyMessage::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumVerifyMessage.signature) +} + +// optional bytes message = 3; +inline bool EthereumVerifyMessage::has_message() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EthereumVerifyMessage::set_has_message() { + _has_bits_[0] |= 0x00000002u; +} +inline void EthereumVerifyMessage::clear_has_message() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EthereumVerifyMessage::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_message(); +} +inline const ::std::string& EthereumVerifyMessage::message() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumVerifyMessage.message) + return message_.GetNoArena(); +} +inline void EthereumVerifyMessage::set_message(const ::std::string& value) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumVerifyMessage.message) +} +#if LANG_CXX11 +inline void EthereumVerifyMessage::set_message(::std::string&& value) { + set_has_message(); + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumVerifyMessage.message) +} +#endif +inline void EthereumVerifyMessage::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumVerifyMessage.message) +} +inline void EthereumVerifyMessage::set_message(const void* value, size_t size) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumVerifyMessage.message) +} +inline ::std::string* EthereumVerifyMessage::mutable_message() { + set_has_message(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumVerifyMessage.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumVerifyMessage::release_message() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumVerifyMessage.message) + if (!has_message()) { + return NULL; + } + clear_has_message(); + return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumVerifyMessage::set_allocated_message(::std::string* message) { + if (message != NULL) { + set_has_message(); + } else { + clear_has_message(); + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumVerifyMessage.message) +} + +// optional string address = 4; +inline bool EthereumVerifyMessage::has_address() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EthereumVerifyMessage::set_has_address() { + _has_bits_[0] |= 0x00000004u; +} +inline void EthereumVerifyMessage::clear_has_address() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EthereumVerifyMessage::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& EthereumVerifyMessage::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ethereum.EthereumVerifyMessage.address) + return address_.GetNoArena(); +} +inline void EthereumVerifyMessage::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ethereum.EthereumVerifyMessage.address) +} +#if LANG_CXX11 +inline void EthereumVerifyMessage::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ethereum.EthereumVerifyMessage.address) +} +#endif +inline void EthereumVerifyMessage::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ethereum.EthereumVerifyMessage.address) +} +inline void EthereumVerifyMessage::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ethereum.EthereumVerifyMessage.address) +} +inline ::std::string* EthereumVerifyMessage::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ethereum.EthereumVerifyMessage.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EthereumVerifyMessage::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ethereum.EthereumVerifyMessage.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EthereumVerifyMessage::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ethereum.EthereumVerifyMessage.address) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace ethereum +} // namespace messages +} // namespace trezor +} // namespace hw + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dethereum_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-lisk.pb.cc b/src/Core/hardware/trezor/protob/messages-lisk.pb.cc new file mode 100644 index 00000000..2f66d043 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-lisk.pb.cc @@ -0,0 +1,5029 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-lisk.proto + +#include "messages-lisk.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dlisk_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dlisk_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dlisk_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dlisk_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dlisk_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_LiskSignTx_LiskTransactionCommon; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dlisk_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset; +} // namespace protobuf_messages_2dlisk_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace lisk { +class LiskGetAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskGetAddress_default_instance_; +class LiskAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskAddress_default_instance_; +class LiskGetPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskGetPublicKey_default_instance_; +class LiskPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskPublicKey_default_instance_; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType_default_instance_; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType_default_instance_; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType_default_instance_; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAssetDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_default_instance_; +class LiskSignTx_LiskTransactionCommonDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskSignTx_LiskTransactionCommon_default_instance_; +class LiskSignTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskSignTx_default_instance_; +class LiskSignedTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskSignedTx_default_instance_; +class LiskSignMessageDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskSignMessage_default_instance_; +class LiskMessageSignatureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskMessageSignature_default_instance_; +class LiskVerifyMessageDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiskVerifyMessage_default_instance_; +} // namespace lisk +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dlisk_2eproto { +static void InitDefaultsLiskGetAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskGetAddress_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskGetAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskGetAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LiskGetAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiskGetAddress}, {}}; + +static void InitDefaultsLiskAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskAddress_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LiskAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiskAddress}, {}}; + +static void InitDefaultsLiskGetPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskGetPublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskGetPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskGetPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LiskGetPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiskGetPublicKey}, {}}; + +static void InitDefaultsLiskPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskPublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LiskPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiskPublicKey}, {}}; + +static void InitDefaultsLiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType}, {}}; + +static void InitDefaultsLiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType}, {}}; + +static void InitDefaultsLiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType}, {}}; + +static void InitDefaultsLiskSignTx_LiskTransactionCommon_LiskTransactionAsset() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsLiskSignTx_LiskTransactionCommon_LiskTransactionAsset}, { + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType.base, + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType.base, + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType.base,}}; + +static void InitDefaultsLiskSignTx_LiskTransactionCommon() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_LiskSignTx_LiskTransactionCommon = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLiskSignTx_LiskTransactionCommon}, { + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset.base,}}; + +static void InitDefaultsLiskSignTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskSignTx_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskSignTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskSignTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_LiskSignTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLiskSignTx}, { + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon.base,}}; + +static void InitDefaultsLiskSignedTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskSignedTx_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskSignedTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskSignedTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LiskSignedTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiskSignedTx}, {}}; + +static void InitDefaultsLiskSignMessage() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskSignMessage_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskSignMessage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskSignMessage::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LiskSignMessage = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiskSignMessage}, {}}; + +static void InitDefaultsLiskMessageSignature() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskMessageSignature_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskMessageSignature(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskMessageSignature::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LiskMessageSignature = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiskMessageSignature}, {}}; + +static void InitDefaultsLiskVerifyMessage() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::lisk::_LiskVerifyMessage_default_instance_; + new (ptr) ::hw::trezor::messages::lisk::LiskVerifyMessage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::lisk::LiskVerifyMessage::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LiskVerifyMessage = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiskVerifyMessage}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_LiskGetAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskGetPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskSignTx_LiskTransactionCommon.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskSignTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskSignedTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskSignMessage.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskMessageSignature.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiskVerifyMessage.base); +} + +::google::protobuf::Metadata file_level_metadata[14]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskGetAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskGetAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskGetAddress, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskGetAddress, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskAddress, address_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskGetPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskGetPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskGetPublicKey, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskGetPublicKey, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskPublicKey, public_key_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType, public_key_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType, username_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType, min_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType, life_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType, keys_group_), + 0, + 1, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset, delegate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset, votes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset, multisignature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset, data_), + 1, + 2, + ~0u, + 3, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon, fee_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon, recipient_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon, sender_public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon, requester_public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon, timestamp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon, asset_), + 7, + 5, + 6, + 0, + 1, + 2, + 3, + 8, + 4, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignTx, transaction_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignedTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignedTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignedTx, signature_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignMessage, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignMessage, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskSignMessage, message_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskMessageSignature, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskMessageSignature, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskMessageSignature, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskMessageSignature, signature_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskVerifyMessage, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskVerifyMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskVerifyMessage, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskVerifyMessage, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::lisk::LiskVerifyMessage, message_), + 0, + 1, + 2, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::hw::trezor::messages::lisk::LiskGetAddress)}, + { 9, 15, sizeof(::hw::trezor::messages::lisk::LiskAddress)}, + { 16, 23, sizeof(::hw::trezor::messages::lisk::LiskGetPublicKey)}, + { 25, 31, sizeof(::hw::trezor::messages::lisk::LiskPublicKey)}, + { 32, 38, sizeof(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType)}, + { 39, 45, sizeof(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType)}, + { 46, 54, sizeof(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType)}, + { 57, 67, sizeof(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset)}, + { 72, 86, sizeof(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon)}, + { 95, 102, sizeof(::hw::trezor::messages::lisk::LiskSignTx)}, + { 104, 110, sizeof(::hw::trezor::messages::lisk::LiskSignedTx)}, + { 111, 118, sizeof(::hw::trezor::messages::lisk::LiskSignMessage)}, + { 120, 127, sizeof(::hw::trezor::messages::lisk::LiskMessageSignature)}, + { 129, 137, sizeof(::hw::trezor::messages::lisk::LiskVerifyMessage)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskGetAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskGetPublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskPublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskSignTx_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskSignedTx_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskSignMessage_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskMessageSignature_default_instance_), + reinterpret_cast(&::hw::trezor::messages::lisk::_LiskVerifyMessage_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-lisk.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 14); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\023messages-lisk.proto\022\027hw.trezor.message" + "s.lisk\"9\n\016LiskGetAddress\022\021\n\taddress_n\030\001 " + "\003(\r\022\024\n\014show_display\030\002 \001(\010\"\036\n\013LiskAddress" + "\022\017\n\007address\030\001 \001(\t\";\n\020LiskGetPublicKey\022\021\n" + "\taddress_n\030\001 \003(\r\022\024\n\014show_display\030\002 \001(\010\"#" + "\n\rLiskPublicKey\022\022\n\npublic_key\030\001 \001(\014\"\335\t\n\n" + "LiskSignTx\022\021\n\taddress_n\030\001 \003(\r\022N\n\013transac" + "tion\030\002 \001(\01329.hw.trezor.messages.lisk.Lis" + "kSignTx.LiskTransactionCommon\032\353\010\n\025LiskTr" + "ansactionCommon\022[\n\004type\030\001 \001(\0162M.hw.trezo" + "r.messages.lisk.LiskSignTx.LiskTransacti" + "onCommon.LiskTransactionType\022\021\n\006amount\030\002" + " \001(\004:\0010\022\013\n\003fee\030\003 \001(\004\022\024\n\014recipient_id\030\004 \001" + "(\t\022\031\n\021sender_public_key\030\005 \001(\014\022\034\n\024request" + "er_public_key\030\006 \001(\014\022\021\n\tsignature\030\007 \001(\014\022\021" + "\n\ttimestamp\030\010 \001(\r\022]\n\005asset\030\t \001(\0132N.hw.tr" + "ezor.messages.lisk.LiskSignTx.LiskTransa" + "ctionCommon.LiskTransactionAsset\032\267\004\n\024Lis" + "kTransactionAsset\022s\n\tsignature\030\001 \001(\0132`.h" + "w.trezor.messages.lisk.LiskSignTx.LiskTr" + "ansactionCommon.LiskTransactionAsset.Lis" + "kSignatureType\022q\n\010delegate\030\002 \001(\0132_.hw.tr" + "ezor.messages.lisk.LiskSignTx.LiskTransa" + "ctionCommon.LiskTransactionAsset.LiskDel" + "egateType\022\r\n\005votes\030\003 \003(\t\022}\n\016multisignatu" + "re\030\004 \001(\0132e.hw.trezor.messages.lisk.LiskS" + "ignTx.LiskTransactionCommon.LiskTransact" + "ionAsset.LiskMultisignatureType\022\014\n\004data\030" + "\005 \001(\t\032\'\n\021LiskSignatureType\022\022\n\npublic_key" + "\030\001 \001(\014\032$\n\020LiskDelegateType\022\020\n\010username\030\001" + " \001(\t\032L\n\026LiskMultisignatureType\022\013\n\003min\030\001 " + "\001(\r\022\021\n\tlife_time\030\002 \001(\r\022\022\n\nkeys_group\030\003 \003" + "(\t\"\306\001\n\023LiskTransactionType\022\014\n\010Transfer\020\000" + "\022\034\n\030RegisterSecondPassphrase\020\001\022\024\n\020Regist" + "erDelegate\020\002\022\r\n\tCastVotes\020\003\022!\n\035RegisterM" + "ultisignatureAccount\020\004\022\016\n\nCreateDapp\020\005\022\024" + "\n\020TransferIntoDapp\020\006\022\025\n\021TransferOutOfDap" + "p\020\007\"!\n\014LiskSignedTx\022\021\n\tsignature\030\001 \001(\014\"5" + "\n\017LiskSignMessage\022\021\n\taddress_n\030\001 \003(\r\022\017\n\007" + "message\030\002 \001(\014\"=\n\024LiskMessageSignature\022\022\n" + "\npublic_key\030\001 \001(\014\022\021\n\tsignature\030\002 \001(\014\"K\n\021" + "LiskVerifyMessage\022\022\n\npublic_key\030\001 \001(\014\022\021\n" + "\tsignature\030\002 \001(\014\022\017\n\007message\030\003 \001(\014B8\n#com" + ".satoshilabs.trezor.lib.protobufB\021Trezor" + "MessageLisk" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1771); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-lisk.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dlisk_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace lisk { +const ::google::protobuf::EnumDescriptor* LiskSignTx_LiskTransactionCommon_LiskTransactionType_descriptor() { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dlisk_2eproto::file_level_enum_descriptors[0]; +} +bool LiskSignTx_LiskTransactionCommon_LiskTransactionType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon::Transfer; +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon::RegisterSecondPassphrase; +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon::RegisterDelegate; +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon::CastVotes; +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon::RegisterMultisignatureAccount; +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon::CreateDapp; +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon::TransferIntoDapp; +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon::TransferOutOfDapp; +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon::LiskTransactionType_MIN; +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon::LiskTransactionType_MAX; +const int LiskSignTx_LiskTransactionCommon::LiskTransactionType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void LiskGetAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskGetAddress::kAddressNFieldNumber; +const int LiskGetAddress::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskGetAddress::LiskGetAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskGetAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskGetAddress) +} +LiskGetAddress::LiskGetAddress(const LiskGetAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskGetAddress) +} + +void LiskGetAddress::SharedCtor() { + show_display_ = false; +} + +LiskGetAddress::~LiskGetAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskGetAddress) + SharedDtor(); +} + +void LiskGetAddress::SharedDtor() { +} + +void LiskGetAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskGetAddress::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskGetAddress& LiskGetAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskGetAddress.base); + return *internal_default_instance(); +} + + +void LiskGetAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskGetAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskGetAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskGetAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskGetAddress) + return false; +#undef DO_ +} + +void LiskGetAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskGetAddress) +} + +::google::protobuf::uint8* LiskGetAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskGetAddress) + return target; +} + +size_t LiskGetAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskGetAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskGetAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskGetAddress) + GOOGLE_DCHECK_NE(&from, this); + const LiskGetAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskGetAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskGetAddress) + MergeFrom(*source); + } +} + +void LiskGetAddress::MergeFrom(const LiskGetAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskGetAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void LiskGetAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskGetAddress::CopyFrom(const LiskGetAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskGetAddress::IsInitialized() const { + return true; +} + +void LiskGetAddress::Swap(LiskGetAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskGetAddress::InternalSwap(LiskGetAddress* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskGetAddress::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskAddress::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskAddress::LiskAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskAddress) +} +LiskAddress::LiskAddress(const LiskAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskAddress) +} + +void LiskAddress::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +LiskAddress::~LiskAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskAddress) + SharedDtor(); +} + +void LiskAddress::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void LiskAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskAddress::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskAddress& LiskAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskAddress.base); + return *internal_default_instance(); +} + + +void LiskAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.lisk.LiskAddress.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskAddress) + return false; +#undef DO_ +} + +void LiskAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskAddress.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskAddress) +} + +::google::protobuf::uint8* LiskAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskAddress.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskAddress) + return target; +} + +size_t LiskAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskAddress) + GOOGLE_DCHECK_NE(&from, this); + const LiskAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskAddress) + MergeFrom(*source); + } +} + +void LiskAddress::MergeFrom(const LiskAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_address()) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } +} + +void LiskAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskAddress::CopyFrom(const LiskAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskAddress::IsInitialized() const { + return true; +} + +void LiskAddress::Swap(LiskAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskAddress::InternalSwap(LiskAddress* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskAddress::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskGetPublicKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskGetPublicKey::kAddressNFieldNumber; +const int LiskGetPublicKey::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskGetPublicKey::LiskGetPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskGetPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskGetPublicKey) +} +LiskGetPublicKey::LiskGetPublicKey(const LiskGetPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskGetPublicKey) +} + +void LiskGetPublicKey::SharedCtor() { + show_display_ = false; +} + +LiskGetPublicKey::~LiskGetPublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskGetPublicKey) + SharedDtor(); +} + +void LiskGetPublicKey::SharedDtor() { +} + +void LiskGetPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskGetPublicKey::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskGetPublicKey& LiskGetPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskGetPublicKey.base); + return *internal_default_instance(); +} + + +void LiskGetPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskGetPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskGetPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskGetPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskGetPublicKey) + return false; +#undef DO_ +} + +void LiskGetPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskGetPublicKey) +} + +::google::protobuf::uint8* LiskGetPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskGetPublicKey) + return target; +} + +size_t LiskGetPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskGetPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskGetPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const LiskGetPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskGetPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskGetPublicKey) + MergeFrom(*source); + } +} + +void LiskGetPublicKey::MergeFrom(const LiskGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void LiskGetPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskGetPublicKey::CopyFrom(const LiskGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskGetPublicKey::IsInitialized() const { + return true; +} + +void LiskGetPublicKey::Swap(LiskGetPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskGetPublicKey::InternalSwap(LiskGetPublicKey* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskGetPublicKey::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskPublicKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskPublicKey::kPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskPublicKey::LiskPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskPublicKey) +} +LiskPublicKey::LiskPublicKey(const LiskPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskPublicKey) +} + +void LiskPublicKey::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +LiskPublicKey::~LiskPublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskPublicKey) + SharedDtor(); +} + +void LiskPublicKey::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void LiskPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskPublicKey::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskPublicKey& LiskPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskPublicKey.base); + return *internal_default_instance(); +} + + +void LiskPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskPublicKey) + return false; +#undef DO_ +} + +void LiskPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskPublicKey) +} + +::google::protobuf::uint8* LiskPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskPublicKey) + return target; +} + +size_t LiskPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes public_key = 1; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const LiskPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskPublicKey) + MergeFrom(*source); + } +} + +void LiskPublicKey::MergeFrom(const LiskPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_public_key()) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } +} + +void LiskPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskPublicKey::CopyFrom(const LiskPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskPublicKey::IsInitialized() const { + return true; +} + +void LiskPublicKey::Swap(LiskPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskPublicKey::InternalSwap(LiskPublicKey* other) { + using std::swap; + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskPublicKey::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::kPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) +} +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::~LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + SharedDtor(); +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType.base); + return *internal_default_instance(); +} + + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + return false; +#undef DO_ +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) +} + +::google::protobuf::uint8* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + return target; +} + +size_t LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes public_key = 1; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + GOOGLE_DCHECK_NE(&from, this); + const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + MergeFrom(*source); + } +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::MergeFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_public_key()) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::CopyFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::IsInitialized() const { + return true; +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::Swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::InternalSwap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* other) { + using std::swap; + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::kUsernameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) +} +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_username()) { + username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.username_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::SharedCtor() { + username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::~LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + SharedDtor(); +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::SharedDtor() { + username_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType.base); + return *internal_default_instance(); +} + + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + username_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string username = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_username())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->username().data(), static_cast(this->username().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType.username"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + return false; +#undef DO_ +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string username = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->username().data(), static_cast(this->username().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType.username"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->username(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) +} + +::google::protobuf::uint8* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string username = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->username().data(), static_cast(this->username().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType.username"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->username(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + return target; +} + +size_t LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string username = 1; + if (has_username()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->username()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + GOOGLE_DCHECK_NE(&from, this); + const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + MergeFrom(*source); + } +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::MergeFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_username()) { + set_has_username(); + username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.username_); + } +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::CopyFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::IsInitialized() const { + return true; +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::Swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::InternalSwap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* other) { + using std::swap; + username_.Swap(&other->username_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::kMinFieldNumber; +const int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::kLifeTimeFieldNumber; +const int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::kKeysGroupFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) +} +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + keys_group_(from.keys_group_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&min_, &from.min_, + static_cast(reinterpret_cast(&life_time_) - + reinterpret_cast(&min_)) + sizeof(life_time_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::SharedCtor() { + ::memset(&min_, 0, static_cast( + reinterpret_cast(&life_time_) - + reinterpret_cast(&min_)) + sizeof(life_time_)); +} + +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::~LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + SharedDtor(); +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::SharedDtor() { +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType.base); + return *internal_default_instance(); +} + + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + keys_group_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&min_, 0, static_cast( + reinterpret_cast(&life_time_) - + reinterpret_cast(&min_)) + sizeof(life_time_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 min = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_min(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &min_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 life_time = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_life_time(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &life_time_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated string keys_group = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_keys_group())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->keys_group(this->keys_group_size() - 1).data(), + static_cast(this->keys_group(this->keys_group_size() - 1).length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + return false; +#undef DO_ +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 min = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->min(), output); + } + + // optional uint32 life_time = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->life_time(), output); + } + + // repeated string keys_group = 3; + for (int i = 0, n = this->keys_group_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->keys_group(i).data(), static_cast(this->keys_group(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->keys_group(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) +} + +::google::protobuf::uint8* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 min = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->min(), target); + } + + // optional uint32 life_time = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->life_time(), target); + } + + // repeated string keys_group = 3; + for (int i = 0, n = this->keys_group_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->keys_group(i).data(), static_cast(this->keys_group(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->keys_group(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + return target; +} + +size_t LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated string keys_group = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->keys_group_size()); + for (int i = 0, n = this->keys_group_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->keys_group(i)); + } + + if (_has_bits_[0 / 32] & 3u) { + // optional uint32 min = 1; + if (has_min()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->min()); + } + + // optional uint32 life_time = 2; + if (has_life_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->life_time()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + GOOGLE_DCHECK_NE(&from, this); + const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + MergeFrom(*source); + } +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::MergeFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + keys_group_.MergeFrom(from.keys_group_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + min_ = from.min_; + } + if (cached_has_bits & 0x00000002u) { + life_time_ = from.life_time_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::CopyFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::IsInitialized() const { + return true; +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::Swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::InternalSwap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* other) { + using std::swap; + keys_group_.InternalSwap(CastToBase(&other->keys_group_)); + swap(min_, other->min_); + swap(life_time_, other->life_time_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::InitAsDefaultInstance() { + ::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_default_instance_._instance.get_mutable()->signature_ = const_cast< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType*>( + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::internal_default_instance()); + ::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_default_instance_._instance.get_mutable()->delegate_ = const_cast< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType*>( + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::internal_default_instance()); + ::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_default_instance_._instance.get_mutable()->multisignature_ = const_cast< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType*>( + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::kSignatureFieldNumber; +const int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::kDelegateFieldNumber; +const int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::kVotesFieldNumber; +const int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::kMultisignatureFieldNumber; +const int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::kDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) +} +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + votes_(from.votes_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data()) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + if (from.has_signature()) { + signature_ = new ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType(*from.signature_); + } else { + signature_ = NULL; + } + if (from.has_delegate()) { + delegate_ = new ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType(*from.delegate_); + } else { + delegate_ = NULL; + } + if (from.has_multisignature()) { + multisignature_ = new ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType(*from.multisignature_); + } else { + multisignature_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::SharedCtor() { + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&signature_, 0, static_cast( + reinterpret_cast(&multisignature_) - + reinterpret_cast(&signature_)) + sizeof(multisignature_)); +} + +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::~LiskSignTx_LiskTransactionCommon_LiskTransactionAsset() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + SharedDtor(); +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::SharedDtor() { + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete signature_; + if (this != internal_default_instance()) delete delegate_; + if (this != internal_default_instance()) delete multisignature_; +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset.base); + return *internal_default_instance(); +} + + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + votes_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + data_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(signature_ != NULL); + signature_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(delegate_ != NULL); + delegate_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(multisignature_ != NULL); + multisignature_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType signature = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType delegate = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_delegate())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string votes = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_votes())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->votes(this->votes_size() - 1).data(), + static_cast(this->votes(this->votes_size() - 1).length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType multisignature = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_multisignature())); + } else { + goto handle_unusual; + } + break; + } + + // optional string data = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_data())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->data().data(), static_cast(this->data().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.data"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + return false; +#undef DO_ +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType signature = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_signature(), output); + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType delegate = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_delegate(), output); + } + + // repeated string votes = 3; + for (int i = 0, n = this->votes_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->votes(i).data(), static_cast(this->votes(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->votes(i), output); + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType multisignature = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_multisignature(), output); + } + + // optional string data = 5; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->data().data(), static_cast(this->data().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.data"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->data(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) +} + +::google::protobuf::uint8* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType signature = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_signature(), deterministic, target); + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType delegate = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_delegate(), deterministic, target); + } + + // repeated string votes = 3; + for (int i = 0, n = this->votes_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->votes(i).data(), static_cast(this->votes(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->votes(i), target); + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType multisignature = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_multisignature(), deterministic, target); + } + + // optional string data = 5; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->data().data(), static_cast(this->data().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.data"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->data(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + return target; +} + +size_t LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated string votes = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->votes_size()); + for (int i = 0, n = this->votes_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->votes(i)); + } + + if (_has_bits_[0 / 32] & 15u) { + // optional string data = 5; + if (has_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->data()); + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *signature_); + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType delegate = 2; + if (has_delegate()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *delegate_); + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType multisignature = 4; + if (has_multisignature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *multisignature_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + GOOGLE_DCHECK_NE(&from, this); + const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + MergeFrom(*source); + } +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::MergeFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + votes_.MergeFrom(from.votes_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_data(); + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + if (cached_has_bits & 0x00000002u) { + mutable_signature()->::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::MergeFrom(from.signature()); + } + if (cached_has_bits & 0x00000004u) { + mutable_delegate()->::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::MergeFrom(from.delegate()); + } + if (cached_has_bits & 0x00000008u) { + mutable_multisignature()->::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::MergeFrom(from.multisignature()); + } + } +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::CopyFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::IsInitialized() const { + return true; +} + +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::Swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::InternalSwap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* other) { + using std::swap; + votes_.InternalSwap(CastToBase(&other->votes_)); + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(signature_, other->signature_); + swap(delegate_, other->delegate_); + swap(multisignature_, other->multisignature_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskSignTx_LiskTransactionCommon::InitAsDefaultInstance() { + ::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_default_instance_._instance.get_mutable()->asset_ = const_cast< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset*>( + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskSignTx_LiskTransactionCommon::kTypeFieldNumber; +const int LiskSignTx_LiskTransactionCommon::kAmountFieldNumber; +const int LiskSignTx_LiskTransactionCommon::kFeeFieldNumber; +const int LiskSignTx_LiskTransactionCommon::kRecipientIdFieldNumber; +const int LiskSignTx_LiskTransactionCommon::kSenderPublicKeyFieldNumber; +const int LiskSignTx_LiskTransactionCommon::kRequesterPublicKeyFieldNumber; +const int LiskSignTx_LiskTransactionCommon::kSignatureFieldNumber; +const int LiskSignTx_LiskTransactionCommon::kTimestampFieldNumber; +const int LiskSignTx_LiskTransactionCommon::kAssetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskSignTx_LiskTransactionCommon::LiskSignTx_LiskTransactionCommon() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) +} +LiskSignTx_LiskTransactionCommon::LiskSignTx_LiskTransactionCommon(const LiskSignTx_LiskTransactionCommon& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + recipient_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_recipient_id()) { + recipient_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.recipient_id_); + } + sender_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_sender_public_key()) { + sender_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_public_key_); + } + requester_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_requester_public_key()) { + requester_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.requester_public_key_); + } + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (from.has_asset()) { + asset_ = new ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset(*from.asset_); + } else { + asset_ = NULL; + } + ::memcpy(&amount_, &from.amount_, + static_cast(reinterpret_cast(×tamp_) - + reinterpret_cast(&amount_)) + sizeof(timestamp_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) +} + +void LiskSignTx_LiskTransactionCommon::SharedCtor() { + recipient_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sender_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + requester_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&asset_, 0, static_cast( + reinterpret_cast(×tamp_) - + reinterpret_cast(&asset_)) + sizeof(timestamp_)); +} + +LiskSignTx_LiskTransactionCommon::~LiskSignTx_LiskTransactionCommon() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + SharedDtor(); +} + +void LiskSignTx_LiskTransactionCommon::SharedDtor() { + recipient_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sender_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + requester_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete asset_; +} + +void LiskSignTx_LiskTransactionCommon::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskSignTx_LiskTransactionCommon::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskSignTx_LiskTransactionCommon& LiskSignTx_LiskTransactionCommon::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx_LiskTransactionCommon.base); + return *internal_default_instance(); +} + + +void LiskSignTx_LiskTransactionCommon::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + recipient_id_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + sender_public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + requester_public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(asset_ != NULL); + asset_->Clear(); + } + } + if (cached_has_bits & 224u) { + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&amount_)) + sizeof(type_)); + } + timestamp_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskSignTx_LiskTransactionCommon::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionType type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionType_IsValid(value)) { + set_type(static_cast< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 amount = 2 [default = 0]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 fee = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string recipient_id = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_recipient_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->recipient_id().data(), static_cast(this->recipient_id().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.recipient_id"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes sender_public_key = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_sender_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes requester_public_key = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_requester_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 timestamp = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_timestamp(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, ×tamp_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset asset = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_asset())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + return false; +#undef DO_ +} + +void LiskSignTx_LiskTransactionCommon::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionType type = 1; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // optional uint64 amount = 2 [default = 0]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->amount(), output); + } + + // optional uint64 fee = 3; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->fee(), output); + } + + // optional string recipient_id = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->recipient_id().data(), static_cast(this->recipient_id().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.recipient_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->recipient_id(), output); + } + + // optional bytes sender_public_key = 5; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->sender_public_key(), output); + } + + // optional bytes requester_public_key = 6; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->requester_public_key(), output); + } + + // optional bytes signature = 7; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 7, this->signature(), output); + } + + // optional uint32 timestamp = 8; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->timestamp(), output); + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset asset = 9; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, this->_internal_asset(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) +} + +::google::protobuf::uint8* LiskSignTx_LiskTransactionCommon::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionType type = 1; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // optional uint64 amount = 2 [default = 0]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->amount(), target); + } + + // optional uint64 fee = 3; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->fee(), target); + } + + // optional string recipient_id = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->recipient_id().data(), static_cast(this->recipient_id().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.recipient_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->recipient_id(), target); + } + + // optional bytes sender_public_key = 5; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->sender_public_key(), target); + } + + // optional bytes requester_public_key = 6; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->requester_public_key(), target); + } + + // optional bytes signature = 7; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 7, this->signature(), target); + } + + // optional uint32 timestamp = 8; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->timestamp(), target); + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset asset = 9; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, this->_internal_asset(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + return target; +} + +size_t LiskSignTx_LiskTransactionCommon::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional string recipient_id = 4; + if (has_recipient_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->recipient_id()); + } + + // optional bytes sender_public_key = 5; + if (has_sender_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->sender_public_key()); + } + + // optional bytes requester_public_key = 6; + if (has_requester_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->requester_public_key()); + } + + // optional bytes signature = 7; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset asset = 9; + if (has_asset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *asset_); + } + + // optional uint64 amount = 2 [default = 0]; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + // optional uint64 fee = 3; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->fee()); + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionType type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + } + // optional uint32 timestamp = 8; + if (has_timestamp()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->timestamp()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskSignTx_LiskTransactionCommon::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + GOOGLE_DCHECK_NE(&from, this); + const LiskSignTx_LiskTransactionCommon* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + MergeFrom(*source); + } +} + +void LiskSignTx_LiskTransactionCommon::MergeFrom(const LiskSignTx_LiskTransactionCommon& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_recipient_id(); + recipient_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.recipient_id_); + } + if (cached_has_bits & 0x00000002u) { + set_has_sender_public_key(); + sender_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_public_key_); + } + if (cached_has_bits & 0x00000004u) { + set_has_requester_public_key(); + requester_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.requester_public_key_); + } + if (cached_has_bits & 0x00000008u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000010u) { + mutable_asset()->::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::MergeFrom(from.asset()); + } + if (cached_has_bits & 0x00000020u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000040u) { + fee_ = from.fee_; + } + if (cached_has_bits & 0x00000080u) { + type_ = from.type_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x00000100u) { + set_timestamp(from.timestamp()); + } +} + +void LiskSignTx_LiskTransactionCommon::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskSignTx_LiskTransactionCommon::CopyFrom(const LiskSignTx_LiskTransactionCommon& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskSignTx_LiskTransactionCommon::IsInitialized() const { + return true; +} + +void LiskSignTx_LiskTransactionCommon::Swap(LiskSignTx_LiskTransactionCommon* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskSignTx_LiskTransactionCommon::InternalSwap(LiskSignTx_LiskTransactionCommon* other) { + using std::swap; + recipient_id_.Swap(&other->recipient_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + sender_public_key_.Swap(&other->sender_public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + requester_public_key_.Swap(&other->requester_public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(asset_, other->asset_); + swap(amount_, other->amount_); + swap(fee_, other->fee_); + swap(type_, other->type_); + swap(timestamp_, other->timestamp_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskSignTx_LiskTransactionCommon::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskSignTx::InitAsDefaultInstance() { + ::hw::trezor::messages::lisk::_LiskSignTx_default_instance_._instance.get_mutable()->transaction_ = const_cast< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon*>( + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskSignTx::kAddressNFieldNumber; +const int LiskSignTx::kTransactionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskSignTx::LiskSignTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskSignTx) +} +LiskSignTx::LiskSignTx(const LiskSignTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_transaction()) { + transaction_ = new ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon(*from.transaction_); + } else { + transaction_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskSignTx) +} + +void LiskSignTx::SharedCtor() { + transaction_ = NULL; +} + +LiskSignTx::~LiskSignTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskSignTx) + SharedDtor(); +} + +void LiskSignTx::SharedDtor() { + if (this != internal_default_instance()) delete transaction_; +} + +void LiskSignTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskSignTx::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskSignTx& LiskSignTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskSignTx.base); + return *internal_default_instance(); +} + + +void LiskSignTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(transaction_ != NULL); + transaction_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskSignTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskSignTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon transaction = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transaction())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskSignTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskSignTx) + return false; +#undef DO_ +} + +void LiskSignTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon transaction = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_transaction(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskSignTx) +} + +::google::protobuf::uint8* LiskSignTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon transaction = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_transaction(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskSignTx) + return target; +} + +size_t LiskSignTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskSignTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon transaction = 2; + if (has_transaction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transaction_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskSignTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskSignTx) + GOOGLE_DCHECK_NE(&from, this); + const LiskSignTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskSignTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskSignTx) + MergeFrom(*source); + } +} + +void LiskSignTx::MergeFrom(const LiskSignTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskSignTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_transaction()) { + mutable_transaction()->::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon::MergeFrom(from.transaction()); + } +} + +void LiskSignTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskSignTx::CopyFrom(const LiskSignTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskSignTx::IsInitialized() const { + return true; +} + +void LiskSignTx::Swap(LiskSignTx* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskSignTx::InternalSwap(LiskSignTx* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(transaction_, other->transaction_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskSignTx::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskSignedTx::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskSignedTx::kSignatureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskSignedTx::LiskSignedTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignedTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskSignedTx) +} +LiskSignedTx::LiskSignedTx(const LiskSignedTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskSignedTx) +} + +void LiskSignedTx::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +LiskSignedTx::~LiskSignedTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskSignedTx) + SharedDtor(); +} + +void LiskSignedTx::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void LiskSignedTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskSignedTx::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskSignedTx& LiskSignedTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskSignedTx.base); + return *internal_default_instance(); +} + + +void LiskSignedTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskSignedTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskSignedTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes signature = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskSignedTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskSignedTx) + return false; +#undef DO_ +} + +void LiskSignedTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->signature(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskSignedTx) +} + +::google::protobuf::uint8* LiskSignedTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->signature(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskSignedTx) + return target; +} + +size_t LiskSignedTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskSignedTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskSignedTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskSignedTx) + GOOGLE_DCHECK_NE(&from, this); + const LiskSignedTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskSignedTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskSignedTx) + MergeFrom(*source); + } +} + +void LiskSignedTx::MergeFrom(const LiskSignedTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskSignedTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_signature()) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } +} + +void LiskSignedTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskSignedTx::CopyFrom(const LiskSignedTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskSignedTx::IsInitialized() const { + return true; +} + +void LiskSignedTx::Swap(LiskSignedTx* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskSignedTx::InternalSwap(LiskSignedTx* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskSignedTx::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskSignMessage::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskSignMessage::kAddressNFieldNumber; +const int LiskSignMessage::kMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskSignMessage::LiskSignMessage() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskSignMessage.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskSignMessage) +} +LiskSignMessage::LiskSignMessage(const LiskSignMessage& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_message()) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskSignMessage) +} + +void LiskSignMessage::SharedCtor() { + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +LiskSignMessage::~LiskSignMessage() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskSignMessage) + SharedDtor(); +} + +void LiskSignMessage::SharedDtor() { + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void LiskSignMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskSignMessage::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskSignMessage& LiskSignMessage::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskSignMessage.base); + return *internal_default_instance(); +} + + +void LiskSignMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskSignMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + message_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskSignMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskSignMessage) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_message())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskSignMessage) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskSignMessage) + return false; +#undef DO_ +} + +void LiskSignMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskSignMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bytes message = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->message(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskSignMessage) +} + +::google::protobuf::uint8* LiskSignMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskSignMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bytes message = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->message(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskSignMessage) + return target; +} + +size_t LiskSignMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskSignMessage) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bytes message = 2; + if (has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->message()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskSignMessage::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskSignMessage) + GOOGLE_DCHECK_NE(&from, this); + const LiskSignMessage* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskSignMessage) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskSignMessage) + MergeFrom(*source); + } +} + +void LiskSignMessage::MergeFrom(const LiskSignMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskSignMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_message()) { + set_has_message(); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } +} + +void LiskSignMessage::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskSignMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskSignMessage::CopyFrom(const LiskSignMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskSignMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskSignMessage::IsInitialized() const { + return true; +} + +void LiskSignMessage::Swap(LiskSignMessage* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskSignMessage::InternalSwap(LiskSignMessage* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskSignMessage::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskMessageSignature::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskMessageSignature::kPublicKeyFieldNumber; +const int LiskMessageSignature::kSignatureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskMessageSignature::LiskMessageSignature() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskMessageSignature.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskMessageSignature) +} +LiskMessageSignature::LiskMessageSignature(const LiskMessageSignature& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskMessageSignature) +} + +void LiskMessageSignature::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +LiskMessageSignature::~LiskMessageSignature() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskMessageSignature) + SharedDtor(); +} + +void LiskMessageSignature::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void LiskMessageSignature::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskMessageSignature::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskMessageSignature& LiskMessageSignature::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskMessageSignature.base); + return *internal_default_instance(); +} + + +void LiskMessageSignature::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskMessageSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskMessageSignature::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskMessageSignature) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskMessageSignature) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskMessageSignature) + return false; +#undef DO_ +} + +void LiskMessageSignature::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskMessageSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->public_key(), output); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->signature(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskMessageSignature) +} + +::google::protobuf::uint8* LiskMessageSignature::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskMessageSignature) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->public_key(), target); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->signature(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskMessageSignature) + return target; +} + +size_t LiskMessageSignature::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskMessageSignature) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes public_key = 1; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + // optional bytes signature = 2; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskMessageSignature::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskMessageSignature) + GOOGLE_DCHECK_NE(&from, this); + const LiskMessageSignature* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskMessageSignature) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskMessageSignature) + MergeFrom(*source); + } +} + +void LiskMessageSignature::MergeFrom(const LiskMessageSignature& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskMessageSignature) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + } +} + +void LiskMessageSignature::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskMessageSignature) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskMessageSignature::CopyFrom(const LiskMessageSignature& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskMessageSignature) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskMessageSignature::IsInitialized() const { + return true; +} + +void LiskMessageSignature::Swap(LiskMessageSignature* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskMessageSignature::InternalSwap(LiskMessageSignature* other) { + using std::swap; + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskMessageSignature::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiskVerifyMessage::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiskVerifyMessage::kPublicKeyFieldNumber; +const int LiskVerifyMessage::kSignatureFieldNumber; +const int LiskVerifyMessage::kMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiskVerifyMessage::LiskVerifyMessage() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dlisk_2eproto::scc_info_LiskVerifyMessage.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.lisk.LiskVerifyMessage) +} +LiskVerifyMessage::LiskVerifyMessage(const LiskVerifyMessage& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_message()) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.lisk.LiskVerifyMessage) +} + +void LiskVerifyMessage::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +LiskVerifyMessage::~LiskVerifyMessage() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.lisk.LiskVerifyMessage) + SharedDtor(); +} + +void LiskVerifyMessage::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void LiskVerifyMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LiskVerifyMessage::descriptor() { + ::protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiskVerifyMessage& LiskVerifyMessage::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dlisk_2eproto::scc_info_LiskVerifyMessage.base); + return *internal_default_instance(); +} + + +void LiskVerifyMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.lisk.LiskVerifyMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + message_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiskVerifyMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.lisk.LiskVerifyMessage) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes message = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_message())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.lisk.LiskVerifyMessage) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.lisk.LiskVerifyMessage) + return false; +#undef DO_ +} + +void LiskVerifyMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.lisk.LiskVerifyMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->public_key(), output); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->signature(), output); + } + + // optional bytes message = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->message(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.lisk.LiskVerifyMessage) +} + +::google::protobuf::uint8* LiskVerifyMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.lisk.LiskVerifyMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->public_key(), target); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->signature(), target); + } + + // optional bytes message = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->message(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.lisk.LiskVerifyMessage) + return target; +} + +size_t LiskVerifyMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.lisk.LiskVerifyMessage) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes public_key = 1; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + // optional bytes signature = 2; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional bytes message = 3; + if (has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->message()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiskVerifyMessage::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.lisk.LiskVerifyMessage) + GOOGLE_DCHECK_NE(&from, this); + const LiskVerifyMessage* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.lisk.LiskVerifyMessage) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.lisk.LiskVerifyMessage) + MergeFrom(*source); + } +} + +void LiskVerifyMessage::MergeFrom(const LiskVerifyMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.lisk.LiskVerifyMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000004u) { + set_has_message(); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + } +} + +void LiskVerifyMessage::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.lisk.LiskVerifyMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiskVerifyMessage::CopyFrom(const LiskVerifyMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.lisk.LiskVerifyMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiskVerifyMessage::IsInitialized() const { + return true; +} + +void LiskVerifyMessage::Swap(LiskVerifyMessage* other) { + if (other == this) return; + InternalSwap(other); +} +void LiskVerifyMessage::InternalSwap(LiskVerifyMessage* other) { + using std::swap; + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LiskVerifyMessage::GetMetadata() const { + protobuf_messages_2dlisk_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dlisk_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace lisk +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskGetAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskGetAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskGetAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskGetPublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskGetPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskGetPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskPublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskSignTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskSignTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskSignTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskSignedTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskSignedTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskSignedTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskSignMessage* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskSignMessage >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskSignMessage >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskMessageSignature* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskMessageSignature >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskMessageSignature >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::lisk::LiskVerifyMessage* Arena::CreateMaybeMessage< ::hw::trezor::messages::lisk::LiskVerifyMessage >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::lisk::LiskVerifyMessage >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-lisk.pb.h b/src/Core/hardware/trezor/protob/messages-lisk.pb.h new file mode 100644 index 00000000..c3e9e18b --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-lisk.pb.h @@ -0,0 +1,4101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-lisk.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dlisk_2eproto +#define PROTOBUF_INCLUDED_messages_2dlisk_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dlisk_2eproto + +namespace protobuf_messages_2dlisk_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[14]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dlisk_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace lisk { +class LiskAddress; +class LiskAddressDefaultTypeInternal; +extern LiskAddressDefaultTypeInternal _LiskAddress_default_instance_; +class LiskGetAddress; +class LiskGetAddressDefaultTypeInternal; +extern LiskGetAddressDefaultTypeInternal _LiskGetAddress_default_instance_; +class LiskGetPublicKey; +class LiskGetPublicKeyDefaultTypeInternal; +extern LiskGetPublicKeyDefaultTypeInternal _LiskGetPublicKey_default_instance_; +class LiskMessageSignature; +class LiskMessageSignatureDefaultTypeInternal; +extern LiskMessageSignatureDefaultTypeInternal _LiskMessageSignature_default_instance_; +class LiskPublicKey; +class LiskPublicKeyDefaultTypeInternal; +extern LiskPublicKeyDefaultTypeInternal _LiskPublicKey_default_instance_; +class LiskSignMessage; +class LiskSignMessageDefaultTypeInternal; +extern LiskSignMessageDefaultTypeInternal _LiskSignMessage_default_instance_; +class LiskSignTx; +class LiskSignTxDefaultTypeInternal; +extern LiskSignTxDefaultTypeInternal _LiskSignTx_default_instance_; +class LiskSignTx_LiskTransactionCommon; +class LiskSignTx_LiskTransactionCommonDefaultTypeInternal; +extern LiskSignTx_LiskTransactionCommonDefaultTypeInternal _LiskSignTx_LiskTransactionCommon_default_instance_; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAssetDefaultTypeInternal; +extern LiskSignTx_LiskTransactionCommon_LiskTransactionAssetDefaultTypeInternal _LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_default_instance_; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateTypeDefaultTypeInternal; +extern LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateTypeDefaultTypeInternal _LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType_default_instance_; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureTypeDefaultTypeInternal; +extern LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureTypeDefaultTypeInternal _LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType_default_instance_; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType; +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureTypeDefaultTypeInternal; +extern LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureTypeDefaultTypeInternal _LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType_default_instance_; +class LiskSignedTx; +class LiskSignedTxDefaultTypeInternal; +extern LiskSignedTxDefaultTypeInternal _LiskSignedTx_default_instance_; +class LiskVerifyMessage; +class LiskVerifyMessageDefaultTypeInternal; +extern LiskVerifyMessageDefaultTypeInternal _LiskVerifyMessage_default_instance_; +} // namespace lisk +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::lisk::LiskAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskAddress>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskGetAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskGetAddress>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskGetPublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskGetPublicKey>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskMessageSignature* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskMessageSignature>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskPublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskPublicKey>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskSignMessage* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignMessage>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskSignTx* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignTx>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskSignedTx* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignedTx>(Arena*); +template<> ::hw::trezor::messages::lisk::LiskVerifyMessage* Arena::CreateMaybeMessage<::hw::trezor::messages::lisk::LiskVerifyMessage>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace lisk { + +enum LiskSignTx_LiskTransactionCommon_LiskTransactionType { + LiskSignTx_LiskTransactionCommon_LiskTransactionType_Transfer = 0, + LiskSignTx_LiskTransactionCommon_LiskTransactionType_RegisterSecondPassphrase = 1, + LiskSignTx_LiskTransactionCommon_LiskTransactionType_RegisterDelegate = 2, + LiskSignTx_LiskTransactionCommon_LiskTransactionType_CastVotes = 3, + LiskSignTx_LiskTransactionCommon_LiskTransactionType_RegisterMultisignatureAccount = 4, + LiskSignTx_LiskTransactionCommon_LiskTransactionType_CreateDapp = 5, + LiskSignTx_LiskTransactionCommon_LiskTransactionType_TransferIntoDapp = 6, + LiskSignTx_LiskTransactionCommon_LiskTransactionType_TransferOutOfDapp = 7 +}; +bool LiskSignTx_LiskTransactionCommon_LiskTransactionType_IsValid(int value); +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon_LiskTransactionType_LiskTransactionType_MIN = LiskSignTx_LiskTransactionCommon_LiskTransactionType_Transfer; +const LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon_LiskTransactionType_LiskTransactionType_MAX = LiskSignTx_LiskTransactionCommon_LiskTransactionType_TransferOutOfDapp; +const int LiskSignTx_LiskTransactionCommon_LiskTransactionType_LiskTransactionType_ARRAYSIZE = LiskSignTx_LiskTransactionCommon_LiskTransactionType_LiskTransactionType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* LiskSignTx_LiskTransactionCommon_LiskTransactionType_descriptor(); +inline const ::std::string& LiskSignTx_LiskTransactionCommon_LiskTransactionType_Name(LiskSignTx_LiskTransactionCommon_LiskTransactionType value) { + return ::google::protobuf::internal::NameOfEnum( + LiskSignTx_LiskTransactionCommon_LiskTransactionType_descriptor(), value); +} +inline bool LiskSignTx_LiskTransactionCommon_LiskTransactionType_Parse( + const ::std::string& name, LiskSignTx_LiskTransactionCommon_LiskTransactionType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + LiskSignTx_LiskTransactionCommon_LiskTransactionType_descriptor(), name, value); +} +// =================================================================== + +class LiskGetAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskGetAddress) */ { + public: + LiskGetAddress(); + virtual ~LiskGetAddress(); + + LiskGetAddress(const LiskGetAddress& from); + + inline LiskGetAddress& operator=(const LiskGetAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskGetAddress(LiskGetAddress&& from) noexcept + : LiskGetAddress() { + *this = ::std::move(from); + } + + inline LiskGetAddress& operator=(LiskGetAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskGetAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskGetAddress* internal_default_instance() { + return reinterpret_cast( + &_LiskGetAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(LiskGetAddress* other); + friend void swap(LiskGetAddress& a, LiskGetAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskGetAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskGetAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskGetAddress& from); + void MergeFrom(const LiskGetAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskGetAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskGetAddress) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskAddress) */ { + public: + LiskAddress(); + virtual ~LiskAddress(); + + LiskAddress(const LiskAddress& from); + + inline LiskAddress& operator=(const LiskAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskAddress(LiskAddress&& from) noexcept + : LiskAddress() { + *this = ::std::move(from); + } + + inline LiskAddress& operator=(LiskAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskAddress* internal_default_instance() { + return reinterpret_cast( + &_LiskAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(LiskAddress* other); + friend void swap(LiskAddress& a, LiskAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskAddress& from); + void MergeFrom(const LiskAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskAddress) + private: + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskGetPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskGetPublicKey) */ { + public: + LiskGetPublicKey(); + virtual ~LiskGetPublicKey(); + + LiskGetPublicKey(const LiskGetPublicKey& from); + + inline LiskGetPublicKey& operator=(const LiskGetPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskGetPublicKey(LiskGetPublicKey&& from) noexcept + : LiskGetPublicKey() { + *this = ::std::move(from); + } + + inline LiskGetPublicKey& operator=(LiskGetPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskGetPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskGetPublicKey* internal_default_instance() { + return reinterpret_cast( + &_LiskGetPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(LiskGetPublicKey* other); + friend void swap(LiskGetPublicKey& a, LiskGetPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskGetPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskGetPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskGetPublicKey& from); + void MergeFrom(const LiskGetPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskGetPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskGetPublicKey) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskPublicKey) */ { + public: + LiskPublicKey(); + virtual ~LiskPublicKey(); + + LiskPublicKey(const LiskPublicKey& from); + + inline LiskPublicKey& operator=(const LiskPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskPublicKey(LiskPublicKey&& from) noexcept + : LiskPublicKey() { + *this = ::std::move(from); + } + + inline LiskPublicKey& operator=(LiskPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskPublicKey* internal_default_instance() { + return reinterpret_cast( + &_LiskPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(LiskPublicKey* other); + friend void swap(LiskPublicKey& a, LiskPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskPublicKey& from); + void MergeFrom(const LiskPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes public_key = 1; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskPublicKey) + private: + void set_has_public_key(); + void clear_has_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) */ { + public: + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType(); + virtual ~LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType(); + + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& from); + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& operator=(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType&& from) noexcept + : LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType() { + *this = ::std::move(from); + } + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& operator=(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* internal_default_instance() { + return reinterpret_cast( + &_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* other); + friend void swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& a, LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& from); + void MergeFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes public_key = 1; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType) + private: + void set_has_public_key(); + void clear_has_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) */ { + public: + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType(); + virtual ~LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType(); + + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& from); + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& operator=(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType&& from) noexcept + : LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType() { + *this = ::std::move(from); + } + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& operator=(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* internal_default_instance() { + return reinterpret_cast( + &_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* other); + friend void swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& a, LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& from); + void MergeFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string username = 1; + bool has_username() const; + void clear_username(); + static const int kUsernameFieldNumber = 1; + const ::std::string& username() const; + void set_username(const ::std::string& value); + #if LANG_CXX11 + void set_username(::std::string&& value); + #endif + void set_username(const char* value); + void set_username(const char* value, size_t size); + ::std::string* mutable_username(); + ::std::string* release_username(); + void set_allocated_username(::std::string* username); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType) + private: + void set_has_username(); + void clear_has_username(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr username_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) */ { + public: + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType(); + virtual ~LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType(); + + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& from); + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& operator=(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType&& from) noexcept + : LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType() { + *this = ::std::move(from); + } + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& operator=(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* internal_default_instance() { + return reinterpret_cast( + &_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* other); + friend void swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& a, LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& from); + void MergeFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string keys_group = 3; + int keys_group_size() const; + void clear_keys_group(); + static const int kKeysGroupFieldNumber = 3; + const ::std::string& keys_group(int index) const; + ::std::string* mutable_keys_group(int index); + void set_keys_group(int index, const ::std::string& value); + #if LANG_CXX11 + void set_keys_group(int index, ::std::string&& value); + #endif + void set_keys_group(int index, const char* value); + void set_keys_group(int index, const char* value, size_t size); + ::std::string* add_keys_group(); + void add_keys_group(const ::std::string& value); + #if LANG_CXX11 + void add_keys_group(::std::string&& value); + #endif + void add_keys_group(const char* value); + void add_keys_group(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& keys_group() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_keys_group(); + + // optional uint32 min = 1; + bool has_min() const; + void clear_min(); + static const int kMinFieldNumber = 1; + ::google::protobuf::uint32 min() const; + void set_min(::google::protobuf::uint32 value); + + // optional uint32 life_time = 2; + bool has_life_time() const; + void clear_life_time(); + static const int kLifeTimeFieldNumber = 2; + ::google::protobuf::uint32 life_time() const; + void set_life_time(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType) + private: + void set_has_min(); + void clear_has_min(); + void set_has_life_time(); + void clear_has_life_time(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::std::string> keys_group_; + ::google::protobuf::uint32 min_; + ::google::protobuf::uint32 life_time_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskSignTx_LiskTransactionCommon_LiskTransactionAsset : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) */ { + public: + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset(); + virtual ~LiskSignTx_LiskTransactionCommon_LiskTransactionAsset(); + + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& from); + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& operator=(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset&& from) noexcept + : LiskSignTx_LiskTransactionCommon_LiskTransactionAsset() { + *this = ::std::move(from); + } + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& operator=(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* internal_default_instance() { + return reinterpret_cast( + &_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* other); + friend void swap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& a, LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& from); + void MergeFrom(const LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType LiskSignatureType; + typedef LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType LiskDelegateType; + typedef LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType LiskMultisignatureType; + + // accessors ------------------------------------------------------- + + // repeated string votes = 3; + int votes_size() const; + void clear_votes(); + static const int kVotesFieldNumber = 3; + const ::std::string& votes(int index) const; + ::std::string* mutable_votes(int index); + void set_votes(int index, const ::std::string& value); + #if LANG_CXX11 + void set_votes(int index, ::std::string&& value); + #endif + void set_votes(int index, const char* value); + void set_votes(int index, const char* value, size_t size); + ::std::string* add_votes(); + void add_votes(const ::std::string& value); + #if LANG_CXX11 + void add_votes(::std::string&& value); + #endif + void add_votes(const char* value); + void add_votes(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& votes() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_votes(); + + // optional string data = 5; + bool has_data() const; + void clear_data(); + static const int kDataFieldNumber = 5; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const char* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + private: + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& _internal_signature() const; + public: + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& signature() const; + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* release_signature(); + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* mutable_signature(); + void set_allocated_signature(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* signature); + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType delegate = 2; + bool has_delegate() const; + void clear_delegate(); + static const int kDelegateFieldNumber = 2; + private: + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& _internal_delegate() const; + public: + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& delegate() const; + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* release_delegate(); + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* mutable_delegate(); + void set_allocated_delegate(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* delegate); + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType multisignature = 4; + bool has_multisignature() const; + void clear_multisignature(); + static const int kMultisignatureFieldNumber = 4; + private: + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& _internal_multisignature() const; + public: + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& multisignature() const; + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* release_multisignature(); + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* mutable_multisignature(); + void set_allocated_multisignature(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* multisignature); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset) + private: + void set_has_signature(); + void clear_has_signature(); + void set_has_delegate(); + void clear_has_delegate(); + void set_has_multisignature(); + void clear_has_multisignature(); + void set_has_data(); + void clear_has_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::std::string> votes_; + ::google::protobuf::internal::ArenaStringPtr data_; + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* signature_; + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* delegate_; + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* multisignature_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskSignTx_LiskTransactionCommon : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) */ { + public: + LiskSignTx_LiskTransactionCommon(); + virtual ~LiskSignTx_LiskTransactionCommon(); + + LiskSignTx_LiskTransactionCommon(const LiskSignTx_LiskTransactionCommon& from); + + inline LiskSignTx_LiskTransactionCommon& operator=(const LiskSignTx_LiskTransactionCommon& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskSignTx_LiskTransactionCommon(LiskSignTx_LiskTransactionCommon&& from) noexcept + : LiskSignTx_LiskTransactionCommon() { + *this = ::std::move(from); + } + + inline LiskSignTx_LiskTransactionCommon& operator=(LiskSignTx_LiskTransactionCommon&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskSignTx_LiskTransactionCommon& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskSignTx_LiskTransactionCommon* internal_default_instance() { + return reinterpret_cast( + &_LiskSignTx_LiskTransactionCommon_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(LiskSignTx_LiskTransactionCommon* other); + friend void swap(LiskSignTx_LiskTransactionCommon& a, LiskSignTx_LiskTransactionCommon& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskSignTx_LiskTransactionCommon* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskSignTx_LiskTransactionCommon* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskSignTx_LiskTransactionCommon& from); + void MergeFrom(const LiskSignTx_LiskTransactionCommon& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskSignTx_LiskTransactionCommon* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef LiskSignTx_LiskTransactionCommon_LiskTransactionAsset LiskTransactionAsset; + + typedef LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskTransactionType; + static const LiskTransactionType Transfer = + LiskSignTx_LiskTransactionCommon_LiskTransactionType_Transfer; + static const LiskTransactionType RegisterSecondPassphrase = + LiskSignTx_LiskTransactionCommon_LiskTransactionType_RegisterSecondPassphrase; + static const LiskTransactionType RegisterDelegate = + LiskSignTx_LiskTransactionCommon_LiskTransactionType_RegisterDelegate; + static const LiskTransactionType CastVotes = + LiskSignTx_LiskTransactionCommon_LiskTransactionType_CastVotes; + static const LiskTransactionType RegisterMultisignatureAccount = + LiskSignTx_LiskTransactionCommon_LiskTransactionType_RegisterMultisignatureAccount; + static const LiskTransactionType CreateDapp = + LiskSignTx_LiskTransactionCommon_LiskTransactionType_CreateDapp; + static const LiskTransactionType TransferIntoDapp = + LiskSignTx_LiskTransactionCommon_LiskTransactionType_TransferIntoDapp; + static const LiskTransactionType TransferOutOfDapp = + LiskSignTx_LiskTransactionCommon_LiskTransactionType_TransferOutOfDapp; + static inline bool LiskTransactionType_IsValid(int value) { + return LiskSignTx_LiskTransactionCommon_LiskTransactionType_IsValid(value); + } + static const LiskTransactionType LiskTransactionType_MIN = + LiskSignTx_LiskTransactionCommon_LiskTransactionType_LiskTransactionType_MIN; + static const LiskTransactionType LiskTransactionType_MAX = + LiskSignTx_LiskTransactionCommon_LiskTransactionType_LiskTransactionType_MAX; + static const int LiskTransactionType_ARRAYSIZE = + LiskSignTx_LiskTransactionCommon_LiskTransactionType_LiskTransactionType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + LiskTransactionType_descriptor() { + return LiskSignTx_LiskTransactionCommon_LiskTransactionType_descriptor(); + } + static inline const ::std::string& LiskTransactionType_Name(LiskTransactionType value) { + return LiskSignTx_LiskTransactionCommon_LiskTransactionType_Name(value); + } + static inline bool LiskTransactionType_Parse(const ::std::string& name, + LiskTransactionType* value) { + return LiskSignTx_LiskTransactionCommon_LiskTransactionType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional string recipient_id = 4; + bool has_recipient_id() const; + void clear_recipient_id(); + static const int kRecipientIdFieldNumber = 4; + const ::std::string& recipient_id() const; + void set_recipient_id(const ::std::string& value); + #if LANG_CXX11 + void set_recipient_id(::std::string&& value); + #endif + void set_recipient_id(const char* value); + void set_recipient_id(const char* value, size_t size); + ::std::string* mutable_recipient_id(); + ::std::string* release_recipient_id(); + void set_allocated_recipient_id(::std::string* recipient_id); + + // optional bytes sender_public_key = 5; + bool has_sender_public_key() const; + void clear_sender_public_key(); + static const int kSenderPublicKeyFieldNumber = 5; + const ::std::string& sender_public_key() const; + void set_sender_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_sender_public_key(::std::string&& value); + #endif + void set_sender_public_key(const char* value); + void set_sender_public_key(const void* value, size_t size); + ::std::string* mutable_sender_public_key(); + ::std::string* release_sender_public_key(); + void set_allocated_sender_public_key(::std::string* sender_public_key); + + // optional bytes requester_public_key = 6; + bool has_requester_public_key() const; + void clear_requester_public_key(); + static const int kRequesterPublicKeyFieldNumber = 6; + const ::std::string& requester_public_key() const; + void set_requester_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_requester_public_key(::std::string&& value); + #endif + void set_requester_public_key(const char* value); + void set_requester_public_key(const void* value, size_t size); + ::std::string* mutable_requester_public_key(); + ::std::string* release_requester_public_key(); + void set_allocated_requester_public_key(::std::string* requester_public_key); + + // optional bytes signature = 7; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 7; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset asset = 9; + bool has_asset() const; + void clear_asset(); + static const int kAssetFieldNumber = 9; + private: + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& _internal_asset() const; + public: + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& asset() const; + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* release_asset(); + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* mutable_asset(); + void set_allocated_asset(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* asset); + + // optional uint64 amount = 2 [default = 0]; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 2; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // optional uint64 fee = 3; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 3; + ::google::protobuf::uint64 fee() const; + void set_fee(::google::protobuf::uint64 value); + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionType type = 1; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 1; + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionType type() const; + void set_type(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionType value); + + // optional uint32 timestamp = 8; + bool has_timestamp() const; + void clear_timestamp(); + static const int kTimestampFieldNumber = 8; + ::google::protobuf::uint32 timestamp() const; + void set_timestamp(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon) + private: + void set_has_type(); + void clear_has_type(); + void set_has_amount(); + void clear_has_amount(); + void set_has_fee(); + void clear_has_fee(); + void set_has_recipient_id(); + void clear_has_recipient_id(); + void set_has_sender_public_key(); + void clear_has_sender_public_key(); + void set_has_requester_public_key(); + void clear_has_requester_public_key(); + void set_has_signature(); + void clear_has_signature(); + void set_has_timestamp(); + void clear_has_timestamp(); + void set_has_asset(); + void clear_has_asset(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr recipient_id_; + ::google::protobuf::internal::ArenaStringPtr sender_public_key_; + ::google::protobuf::internal::ArenaStringPtr requester_public_key_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* asset_; + ::google::protobuf::uint64 amount_; + ::google::protobuf::uint64 fee_; + int type_; + ::google::protobuf::uint32 timestamp_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskSignTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskSignTx) */ { + public: + LiskSignTx(); + virtual ~LiskSignTx(); + + LiskSignTx(const LiskSignTx& from); + + inline LiskSignTx& operator=(const LiskSignTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskSignTx(LiskSignTx&& from) noexcept + : LiskSignTx() { + *this = ::std::move(from); + } + + inline LiskSignTx& operator=(LiskSignTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskSignTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskSignTx* internal_default_instance() { + return reinterpret_cast( + &_LiskSignTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(LiskSignTx* other); + friend void swap(LiskSignTx& a, LiskSignTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskSignTx* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskSignTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskSignTx& from); + void MergeFrom(const LiskSignTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskSignTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef LiskSignTx_LiskTransactionCommon LiskTransactionCommon; + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon transaction = 2; + bool has_transaction() const; + void clear_transaction(); + static const int kTransactionFieldNumber = 2; + private: + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon& _internal_transaction() const; + public: + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon& transaction() const; + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon* release_transaction(); + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon* mutable_transaction(); + void set_allocated_transaction(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon* transaction); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskSignTx) + private: + void set_has_transaction(); + void clear_has_transaction(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon* transaction_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskSignedTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskSignedTx) */ { + public: + LiskSignedTx(); + virtual ~LiskSignedTx(); + + LiskSignedTx(const LiskSignedTx& from); + + inline LiskSignedTx& operator=(const LiskSignedTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskSignedTx(LiskSignedTx&& from) noexcept + : LiskSignedTx() { + *this = ::std::move(from); + } + + inline LiskSignedTx& operator=(LiskSignedTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskSignedTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskSignedTx* internal_default_instance() { + return reinterpret_cast( + &_LiskSignedTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(LiskSignedTx* other); + friend void swap(LiskSignedTx& a, LiskSignedTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskSignedTx* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskSignedTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskSignedTx& from); + void MergeFrom(const LiskSignedTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskSignedTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskSignedTx) + private: + void set_has_signature(); + void clear_has_signature(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskSignMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskSignMessage) */ { + public: + LiskSignMessage(); + virtual ~LiskSignMessage(); + + LiskSignMessage(const LiskSignMessage& from); + + inline LiskSignMessage& operator=(const LiskSignMessage& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskSignMessage(LiskSignMessage&& from) noexcept + : LiskSignMessage() { + *this = ::std::move(from); + } + + inline LiskSignMessage& operator=(LiskSignMessage&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskSignMessage& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskSignMessage* internal_default_instance() { + return reinterpret_cast( + &_LiskSignMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(LiskSignMessage* other); + friend void swap(LiskSignMessage& a, LiskSignMessage& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskSignMessage* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskSignMessage* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskSignMessage& from); + void MergeFrom(const LiskSignMessage& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskSignMessage* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes message = 2; + bool has_message() const; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const void* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskSignMessage) + private: + void set_has_message(); + void clear_has_message(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr message_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskMessageSignature : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskMessageSignature) */ { + public: + LiskMessageSignature(); + virtual ~LiskMessageSignature(); + + LiskMessageSignature(const LiskMessageSignature& from); + + inline LiskMessageSignature& operator=(const LiskMessageSignature& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskMessageSignature(LiskMessageSignature&& from) noexcept + : LiskMessageSignature() { + *this = ::std::move(from); + } + + inline LiskMessageSignature& operator=(LiskMessageSignature&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskMessageSignature& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskMessageSignature* internal_default_instance() { + return reinterpret_cast( + &_LiskMessageSignature_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(LiskMessageSignature* other); + friend void swap(LiskMessageSignature& a, LiskMessageSignature& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskMessageSignature* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskMessageSignature* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskMessageSignature& from); + void MergeFrom(const LiskMessageSignature& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskMessageSignature* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes public_key = 1; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // optional bytes signature = 2; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 2; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskMessageSignature) + private: + void set_has_public_key(); + void clear_has_public_key(); + void set_has_signature(); + void clear_has_signature(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr signature_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LiskVerifyMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.lisk.LiskVerifyMessage) */ { + public: + LiskVerifyMessage(); + virtual ~LiskVerifyMessage(); + + LiskVerifyMessage(const LiskVerifyMessage& from); + + inline LiskVerifyMessage& operator=(const LiskVerifyMessage& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiskVerifyMessage(LiskVerifyMessage&& from) noexcept + : LiskVerifyMessage() { + *this = ::std::move(from); + } + + inline LiskVerifyMessage& operator=(LiskVerifyMessage&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiskVerifyMessage& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiskVerifyMessage* internal_default_instance() { + return reinterpret_cast( + &_LiskVerifyMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(LiskVerifyMessage* other); + friend void swap(LiskVerifyMessage& a, LiskVerifyMessage& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiskVerifyMessage* New() const final { + return CreateMaybeMessage(NULL); + } + + LiskVerifyMessage* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiskVerifyMessage& from); + void MergeFrom(const LiskVerifyMessage& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiskVerifyMessage* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes public_key = 1; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // optional bytes signature = 2; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 2; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional bytes message = 3; + bool has_message() const; + void clear_message(); + static const int kMessageFieldNumber = 3; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const void* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.lisk.LiskVerifyMessage) + private: + void set_has_public_key(); + void clear_has_public_key(); + void set_has_signature(); + void clear_has_signature(); + void set_has_message(); + void clear_has_message(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr message_; + friend struct ::protobuf_messages_2dlisk_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// LiskGetAddress + +// repeated uint32 address_n = 1; +inline int LiskGetAddress::address_n_size() const { + return address_n_.size(); +} +inline void LiskGetAddress::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 LiskGetAddress::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskGetAddress.address_n) + return address_n_.Get(index); +} +inline void LiskGetAddress::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskGetAddress.address_n) +} +inline void LiskGetAddress::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.lisk.LiskGetAddress.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +LiskGetAddress::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.lisk.LiskGetAddress.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +LiskGetAddress::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.lisk.LiskGetAddress.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool LiskGetAddress::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskGetAddress::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskGetAddress::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskGetAddress::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool LiskGetAddress::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskGetAddress.show_display) + return show_display_; +} +inline void LiskGetAddress::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskGetAddress.show_display) +} + +// ------------------------------------------------------------------- + +// LiskAddress + +// optional string address = 1; +inline bool LiskAddress::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskAddress::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskAddress::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskAddress::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& LiskAddress::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskAddress.address) + return address_.GetNoArena(); +} +inline void LiskAddress::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskAddress.address) +} +#if LANG_CXX11 +inline void LiskAddress::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskAddress.address) +} +#endif +inline void LiskAddress::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskAddress.address) +} +inline void LiskAddress::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskAddress.address) +} +inline ::std::string* LiskAddress::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskAddress.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskAddress::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskAddress.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskAddress::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskAddress.address) +} + +// ------------------------------------------------------------------- + +// LiskGetPublicKey + +// repeated uint32 address_n = 1; +inline int LiskGetPublicKey::address_n_size() const { + return address_n_.size(); +} +inline void LiskGetPublicKey::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 LiskGetPublicKey::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskGetPublicKey.address_n) + return address_n_.Get(index); +} +inline void LiskGetPublicKey::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskGetPublicKey.address_n) +} +inline void LiskGetPublicKey::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.lisk.LiskGetPublicKey.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +LiskGetPublicKey::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.lisk.LiskGetPublicKey.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +LiskGetPublicKey::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.lisk.LiskGetPublicKey.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool LiskGetPublicKey::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskGetPublicKey::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskGetPublicKey::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskGetPublicKey::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool LiskGetPublicKey::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskGetPublicKey.show_display) + return show_display_; +} +inline void LiskGetPublicKey::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskGetPublicKey.show_display) +} + +// ------------------------------------------------------------------- + +// LiskPublicKey + +// optional bytes public_key = 1; +inline bool LiskPublicKey::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskPublicKey::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskPublicKey::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskPublicKey::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& LiskPublicKey::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskPublicKey.public_key) + return public_key_.GetNoArena(); +} +inline void LiskPublicKey::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskPublicKey.public_key) +} +#if LANG_CXX11 +inline void LiskPublicKey::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskPublicKey.public_key) +} +#endif +inline void LiskPublicKey::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskPublicKey.public_key) +} +inline void LiskPublicKey::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskPublicKey.public_key) +} +inline ::std::string* LiskPublicKey::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskPublicKey.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskPublicKey::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskPublicKey.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskPublicKey::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskPublicKey.public_key) +} + +// ------------------------------------------------------------------- + +// LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType + +// optional bytes public_key = 1; +inline bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType.public_key) + return public_key_.GetNoArena(); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType.public_key) +} +#if LANG_CXX11 +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType.public_key) +} +#endif +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType.public_key) +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType.public_key) +} +inline ::std::string* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType.public_key) +} + +// ------------------------------------------------------------------- + +// LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType + +// optional string username = 1; +inline bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::has_username() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::set_has_username() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::clear_has_username() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::clear_username() { + username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_username(); +} +inline const ::std::string& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::username() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType.username) + return username_.GetNoArena(); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::set_username(const ::std::string& value) { + set_has_username(); + username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType.username) +} +#if LANG_CXX11 +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::set_username(::std::string&& value) { + set_has_username(); + username_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType.username) +} +#endif +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::set_username(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_username(); + username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType.username) +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::set_username(const char* value, size_t size) { + set_has_username(); + username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType.username) +} +inline ::std::string* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::mutable_username() { + set_has_username(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType.username) + return username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::release_username() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType.username) + if (!has_username()) { + return NULL; + } + clear_has_username(); + return username_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType::set_allocated_username(::std::string* username) { + if (username != NULL) { + set_has_username(); + } else { + clear_has_username(); + } + username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), username); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType.username) +} + +// ------------------------------------------------------------------- + +// LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType + +// optional uint32 min = 1; +inline bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::has_min() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::set_has_min() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::clear_has_min() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::clear_min() { + min_ = 0u; + clear_has_min(); +} +inline ::google::protobuf::uint32 LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::min() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.min) + return min_; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::set_min(::google::protobuf::uint32 value) { + set_has_min(); + min_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.min) +} + +// optional uint32 life_time = 2; +inline bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::has_life_time() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::set_has_life_time() { + _has_bits_[0] |= 0x00000002u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::clear_has_life_time() { + _has_bits_[0] &= ~0x00000002u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::clear_life_time() { + life_time_ = 0u; + clear_has_life_time(); +} +inline ::google::protobuf::uint32 LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::life_time() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.life_time) + return life_time_; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::set_life_time(::google::protobuf::uint32 value) { + set_has_life_time(); + life_time_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.life_time) +} + +// repeated string keys_group = 3; +inline int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::keys_group_size() const { + return keys_group_.size(); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::clear_keys_group() { + keys_group_.Clear(); +} +inline const ::std::string& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::keys_group(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) + return keys_group_.Get(index); +} +inline ::std::string* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::mutable_keys_group(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) + return keys_group_.Mutable(index); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::set_keys_group(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) + keys_group_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::set_keys_group(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) + keys_group_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::set_keys_group(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + keys_group_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::set_keys_group(int index, const char* value, size_t size) { + keys_group_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) +} +inline ::std::string* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::add_keys_group() { + // @@protoc_insertion_point(field_add_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) + return keys_group_.Add(); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::add_keys_group(const ::std::string& value) { + keys_group_.Add()->assign(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) +} +#if LANG_CXX11 +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::add_keys_group(::std::string&& value) { + keys_group_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) +} +#endif +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::add_keys_group(const char* value) { + GOOGLE_DCHECK(value != NULL); + keys_group_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::add_keys_group(const char* value, size_t size) { + keys_group_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::keys_group() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) + return keys_group_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType::mutable_keys_group() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType.keys_group) + return &keys_group_; +} + +// ------------------------------------------------------------------- + +// LiskSignTx_LiskTransactionCommon_LiskTransactionAsset + +// optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskSignatureType signature = 1; +inline bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::has_signature() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_has_signature() { + _has_bits_[0] |= 0x00000002u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::clear_has_signature() { + _has_bits_[0] &= ~0x00000002u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::clear_signature() { + if (signature_ != NULL) signature_->Clear(); + clear_has_signature(); +} +inline const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::_internal_signature() const { + return *signature_; +} +inline const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::signature() const { + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* p = signature_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.signature) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType_default_instance_); +} +inline ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.signature) + clear_has_signature(); + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* temp = signature_; + signature_ = NULL; + return temp; +} +inline ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::mutable_signature() { + set_has_signature(); + if (signature_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType>(GetArenaNoVirtual()); + signature_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.signature) + return signature_; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_allocated_signature(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskSignatureType* signature) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete signature_; + } + if (signature) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + signature = ::google::protobuf::internal::GetOwnedMessage( + message_arena, signature, submessage_arena); + } + set_has_signature(); + } else { + clear_has_signature(); + } + signature_ = signature; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.signature) +} + +// optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskDelegateType delegate = 2; +inline bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::has_delegate() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_has_delegate() { + _has_bits_[0] |= 0x00000004u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::clear_has_delegate() { + _has_bits_[0] &= ~0x00000004u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::clear_delegate() { + if (delegate_ != NULL) delegate_->Clear(); + clear_has_delegate(); +} +inline const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::_internal_delegate() const { + return *delegate_; +} +inline const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::delegate() const { + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* p = delegate_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.delegate) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType_default_instance_); +} +inline ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::release_delegate() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.delegate) + clear_has_delegate(); + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* temp = delegate_; + delegate_ = NULL; + return temp; +} +inline ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::mutable_delegate() { + set_has_delegate(); + if (delegate_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType>(GetArenaNoVirtual()); + delegate_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.delegate) + return delegate_; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_allocated_delegate(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskDelegateType* delegate) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete delegate_; + } + if (delegate) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + delegate = ::google::protobuf::internal::GetOwnedMessage( + message_arena, delegate, submessage_arena); + } + set_has_delegate(); + } else { + clear_has_delegate(); + } + delegate_ = delegate; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.delegate) +} + +// repeated string votes = 3; +inline int LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::votes_size() const { + return votes_.size(); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::clear_votes() { + votes_.Clear(); +} +inline const ::std::string& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::votes(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) + return votes_.Get(index); +} +inline ::std::string* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::mutable_votes(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) + return votes_.Mutable(index); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_votes(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) + votes_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_votes(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) + votes_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_votes(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + votes_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_votes(int index, const char* value, size_t size) { + votes_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) +} +inline ::std::string* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::add_votes() { + // @@protoc_insertion_point(field_add_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) + return votes_.Add(); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::add_votes(const ::std::string& value) { + votes_.Add()->assign(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) +} +#if LANG_CXX11 +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::add_votes(::std::string&& value) { + votes_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) +} +#endif +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::add_votes(const char* value) { + GOOGLE_DCHECK(value != NULL); + votes_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::add_votes(const char* value, size_t size) { + votes_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::votes() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) + return votes_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::mutable_votes() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.votes) + return &votes_; +} + +// optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.LiskMultisignatureType multisignature = 4; +inline bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::has_multisignature() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_has_multisignature() { + _has_bits_[0] |= 0x00000008u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::clear_has_multisignature() { + _has_bits_[0] &= ~0x00000008u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::clear_multisignature() { + if (multisignature_ != NULL) multisignature_->Clear(); + clear_has_multisignature(); +} +inline const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::_internal_multisignature() const { + return *multisignature_; +} +inline const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::multisignature() const { + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* p = multisignature_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.multisignature) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType_default_instance_); +} +inline ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::release_multisignature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.multisignature) + clear_has_multisignature(); + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* temp = multisignature_; + multisignature_ = NULL; + return temp; +} +inline ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::mutable_multisignature() { + set_has_multisignature(); + if (multisignature_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType>(GetArenaNoVirtual()); + multisignature_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.multisignature) + return multisignature_; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_allocated_multisignature(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_LiskMultisignatureType* multisignature) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete multisignature_; + } + if (multisignature) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + multisignature = ::google::protobuf::internal::GetOwnedMessage( + message_arena, multisignature, submessage_arena); + } + set_has_multisignature(); + } else { + clear_has_multisignature(); + } + multisignature_ = multisignature; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.multisignature) +} + +// optional string data = 5; +inline bool LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::has_data() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_has_data() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::clear_has_data() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data(); +} +inline const ::std::string& LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::data() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.data) + return data_.GetNoArena(); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_data(const ::std::string& value) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.data) +} +#if LANG_CXX11 +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_data(::std::string&& value) { + set_has_data(); + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.data) +} +#endif +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.data) +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_data(const char* value, size_t size) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.data) +} +inline ::std::string* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::mutable_data() { + set_has_data(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::release_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.data) + if (!has_data()) { + return NULL; + } + clear_has_data(); + return data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskSignTx_LiskTransactionCommon_LiskTransactionAsset::set_allocated_data(::std::string* data) { + if (data != NULL) { + set_has_data(); + } else { + clear_has_data(); + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset.data) +} + +// ------------------------------------------------------------------- + +// LiskSignTx_LiskTransactionCommon + +// optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionType type = 1; +inline bool LiskSignTx_LiskTransactionCommon::has_type() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon::set_has_type() { + _has_bits_[0] |= 0x00000080u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_has_type() { + _has_bits_[0] &= ~0x00000080u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_type() { + type_ = 0; + clear_has_type(); +} +inline ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionType LiskSignTx_LiskTransactionCommon::type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.type) + return static_cast< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionType >(type_); +} +inline void LiskSignTx_LiskTransactionCommon::set_type(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionType value) { + assert(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionType_IsValid(value)); + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.type) +} + +// optional uint64 amount = 2 [default = 0]; +inline bool LiskSignTx_LiskTransactionCommon::has_amount() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon::set_has_amount() { + _has_bits_[0] |= 0x00000020u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_has_amount() { + _has_bits_[0] &= ~0x00000020u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 LiskSignTx_LiskTransactionCommon::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.amount) + return amount_; +} +inline void LiskSignTx_LiskTransactionCommon::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.amount) +} + +// optional uint64 fee = 3; +inline bool LiskSignTx_LiskTransactionCommon::has_fee() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon::set_has_fee() { + _has_bits_[0] |= 0x00000040u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_has_fee() { + _has_bits_[0] &= ~0x00000040u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_fee() { + fee_ = GOOGLE_ULONGLONG(0); + clear_has_fee(); +} +inline ::google::protobuf::uint64 LiskSignTx_LiskTransactionCommon::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.fee) + return fee_; +} +inline void LiskSignTx_LiskTransactionCommon::set_fee(::google::protobuf::uint64 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.fee) +} + +// optional string recipient_id = 4; +inline bool LiskSignTx_LiskTransactionCommon::has_recipient_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon::set_has_recipient_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_has_recipient_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_recipient_id() { + recipient_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_recipient_id(); +} +inline const ::std::string& LiskSignTx_LiskTransactionCommon::recipient_id() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.recipient_id) + return recipient_id_.GetNoArena(); +} +inline void LiskSignTx_LiskTransactionCommon::set_recipient_id(const ::std::string& value) { + set_has_recipient_id(); + recipient_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.recipient_id) +} +#if LANG_CXX11 +inline void LiskSignTx_LiskTransactionCommon::set_recipient_id(::std::string&& value) { + set_has_recipient_id(); + recipient_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.recipient_id) +} +#endif +inline void LiskSignTx_LiskTransactionCommon::set_recipient_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_recipient_id(); + recipient_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.recipient_id) +} +inline void LiskSignTx_LiskTransactionCommon::set_recipient_id(const char* value, size_t size) { + set_has_recipient_id(); + recipient_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.recipient_id) +} +inline ::std::string* LiskSignTx_LiskTransactionCommon::mutable_recipient_id() { + set_has_recipient_id(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.recipient_id) + return recipient_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskSignTx_LiskTransactionCommon::release_recipient_id() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.recipient_id) + if (!has_recipient_id()) { + return NULL; + } + clear_has_recipient_id(); + return recipient_id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskSignTx_LiskTransactionCommon::set_allocated_recipient_id(::std::string* recipient_id) { + if (recipient_id != NULL) { + set_has_recipient_id(); + } else { + clear_has_recipient_id(); + } + recipient_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), recipient_id); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.recipient_id) +} + +// optional bytes sender_public_key = 5; +inline bool LiskSignTx_LiskTransactionCommon::has_sender_public_key() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon::set_has_sender_public_key() { + _has_bits_[0] |= 0x00000002u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_has_sender_public_key() { + _has_bits_[0] &= ~0x00000002u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_sender_public_key() { + sender_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_sender_public_key(); +} +inline const ::std::string& LiskSignTx_LiskTransactionCommon::sender_public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.sender_public_key) + return sender_public_key_.GetNoArena(); +} +inline void LiskSignTx_LiskTransactionCommon::set_sender_public_key(const ::std::string& value) { + set_has_sender_public_key(); + sender_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.sender_public_key) +} +#if LANG_CXX11 +inline void LiskSignTx_LiskTransactionCommon::set_sender_public_key(::std::string&& value) { + set_has_sender_public_key(); + sender_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.sender_public_key) +} +#endif +inline void LiskSignTx_LiskTransactionCommon::set_sender_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_sender_public_key(); + sender_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.sender_public_key) +} +inline void LiskSignTx_LiskTransactionCommon::set_sender_public_key(const void* value, size_t size) { + set_has_sender_public_key(); + sender_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.sender_public_key) +} +inline ::std::string* LiskSignTx_LiskTransactionCommon::mutable_sender_public_key() { + set_has_sender_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.sender_public_key) + return sender_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskSignTx_LiskTransactionCommon::release_sender_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.sender_public_key) + if (!has_sender_public_key()) { + return NULL; + } + clear_has_sender_public_key(); + return sender_public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskSignTx_LiskTransactionCommon::set_allocated_sender_public_key(::std::string* sender_public_key) { + if (sender_public_key != NULL) { + set_has_sender_public_key(); + } else { + clear_has_sender_public_key(); + } + sender_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sender_public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.sender_public_key) +} + +// optional bytes requester_public_key = 6; +inline bool LiskSignTx_LiskTransactionCommon::has_requester_public_key() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon::set_has_requester_public_key() { + _has_bits_[0] |= 0x00000004u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_has_requester_public_key() { + _has_bits_[0] &= ~0x00000004u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_requester_public_key() { + requester_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_requester_public_key(); +} +inline const ::std::string& LiskSignTx_LiskTransactionCommon::requester_public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.requester_public_key) + return requester_public_key_.GetNoArena(); +} +inline void LiskSignTx_LiskTransactionCommon::set_requester_public_key(const ::std::string& value) { + set_has_requester_public_key(); + requester_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.requester_public_key) +} +#if LANG_CXX11 +inline void LiskSignTx_LiskTransactionCommon::set_requester_public_key(::std::string&& value) { + set_has_requester_public_key(); + requester_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.requester_public_key) +} +#endif +inline void LiskSignTx_LiskTransactionCommon::set_requester_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_requester_public_key(); + requester_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.requester_public_key) +} +inline void LiskSignTx_LiskTransactionCommon::set_requester_public_key(const void* value, size_t size) { + set_has_requester_public_key(); + requester_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.requester_public_key) +} +inline ::std::string* LiskSignTx_LiskTransactionCommon::mutable_requester_public_key() { + set_has_requester_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.requester_public_key) + return requester_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskSignTx_LiskTransactionCommon::release_requester_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.requester_public_key) + if (!has_requester_public_key()) { + return NULL; + } + clear_has_requester_public_key(); + return requester_public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskSignTx_LiskTransactionCommon::set_allocated_requester_public_key(::std::string* requester_public_key) { + if (requester_public_key != NULL) { + set_has_requester_public_key(); + } else { + clear_has_requester_public_key(); + } + requester_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), requester_public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.requester_public_key) +} + +// optional bytes signature = 7; +inline bool LiskSignTx_LiskTransactionCommon::has_signature() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon::set_has_signature() { + _has_bits_[0] |= 0x00000008u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_has_signature() { + _has_bits_[0] &= ~0x00000008u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& LiskSignTx_LiskTransactionCommon::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.signature) + return signature_.GetNoArena(); +} +inline void LiskSignTx_LiskTransactionCommon::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.signature) +} +#if LANG_CXX11 +inline void LiskSignTx_LiskTransactionCommon::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.signature) +} +#endif +inline void LiskSignTx_LiskTransactionCommon::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.signature) +} +inline void LiskSignTx_LiskTransactionCommon::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.signature) +} +inline ::std::string* LiskSignTx_LiskTransactionCommon::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskSignTx_LiskTransactionCommon::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskSignTx_LiskTransactionCommon::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.signature) +} + +// optional uint32 timestamp = 8; +inline bool LiskSignTx_LiskTransactionCommon::has_timestamp() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon::set_has_timestamp() { + _has_bits_[0] |= 0x00000100u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_has_timestamp() { + _has_bits_[0] &= ~0x00000100u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_timestamp() { + timestamp_ = 0u; + clear_has_timestamp(); +} +inline ::google::protobuf::uint32 LiskSignTx_LiskTransactionCommon::timestamp() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.timestamp) + return timestamp_; +} +inline void LiskSignTx_LiskTransactionCommon::set_timestamp(::google::protobuf::uint32 value) { + set_has_timestamp(); + timestamp_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.timestamp) +} + +// optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.LiskTransactionAsset asset = 9; +inline bool LiskSignTx_LiskTransactionCommon::has_asset() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void LiskSignTx_LiskTransactionCommon::set_has_asset() { + _has_bits_[0] |= 0x00000010u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_has_asset() { + _has_bits_[0] &= ~0x00000010u; +} +inline void LiskSignTx_LiskTransactionCommon::clear_asset() { + if (asset_ != NULL) asset_->Clear(); + clear_has_asset(); +} +inline const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& LiskSignTx_LiskTransactionCommon::_internal_asset() const { + return *asset_; +} +inline const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset& LiskSignTx_LiskTransactionCommon::asset() const { + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* p = asset_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.asset) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_LiskTransactionAsset_default_instance_); +} +inline ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* LiskSignTx_LiskTransactionCommon::release_asset() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.asset) + clear_has_asset(); + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* temp = asset_; + asset_ = NULL; + return temp; +} +inline ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* LiskSignTx_LiskTransactionCommon::mutable_asset() { + set_has_asset(); + if (asset_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset>(GetArenaNoVirtual()); + asset_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.asset) + return asset_; +} +inline void LiskSignTx_LiskTransactionCommon::set_allocated_asset(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionAsset* asset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete asset_; + } + if (asset) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + asset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, asset, submessage_arena); + } + set_has_asset(); + } else { + clear_has_asset(); + } + asset_ = asset; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon.asset) +} + +// ------------------------------------------------------------------- + +// LiskSignTx + +// repeated uint32 address_n = 1; +inline int LiskSignTx::address_n_size() const { + return address_n_.size(); +} +inline void LiskSignTx::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 LiskSignTx::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.address_n) + return address_n_.Get(index); +} +inline void LiskSignTx::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignTx.address_n) +} +inline void LiskSignTx::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.lisk.LiskSignTx.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +LiskSignTx::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.lisk.LiskSignTx.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +LiskSignTx::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.lisk.LiskSignTx.address_n) + return &address_n_; +} + +// optional .hw.trezor.messages.lisk.LiskSignTx.LiskTransactionCommon transaction = 2; +inline bool LiskSignTx::has_transaction() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskSignTx::set_has_transaction() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskSignTx::clear_has_transaction() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskSignTx::clear_transaction() { + if (transaction_ != NULL) transaction_->Clear(); + clear_has_transaction(); +} +inline const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon& LiskSignTx::_internal_transaction() const { + return *transaction_; +} +inline const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon& LiskSignTx::transaction() const { + const ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon* p = transaction_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignTx.transaction) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::lisk::_LiskSignTx_LiskTransactionCommon_default_instance_); +} +inline ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon* LiskSignTx::release_transaction() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignTx.transaction) + clear_has_transaction(); + ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon* temp = transaction_; + transaction_ = NULL; + return temp; +} +inline ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon* LiskSignTx::mutable_transaction() { + set_has_transaction(); + if (transaction_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon>(GetArenaNoVirtual()); + transaction_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignTx.transaction) + return transaction_; +} +inline void LiskSignTx::set_allocated_transaction(::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon* transaction) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transaction_; + } + if (transaction) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transaction = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transaction, submessage_arena); + } + set_has_transaction(); + } else { + clear_has_transaction(); + } + transaction_ = transaction; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignTx.transaction) +} + +// ------------------------------------------------------------------- + +// LiskSignedTx + +// optional bytes signature = 1; +inline bool LiskSignedTx::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskSignedTx::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskSignedTx::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskSignedTx::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& LiskSignedTx::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignedTx.signature) + return signature_.GetNoArena(); +} +inline void LiskSignedTx::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignedTx.signature) +} +#if LANG_CXX11 +inline void LiskSignedTx::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskSignedTx.signature) +} +#endif +inline void LiskSignedTx::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskSignedTx.signature) +} +inline void LiskSignedTx::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskSignedTx.signature) +} +inline ::std::string* LiskSignedTx::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignedTx.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskSignedTx::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignedTx.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskSignedTx::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignedTx.signature) +} + +// ------------------------------------------------------------------- + +// LiskSignMessage + +// repeated uint32 address_n = 1; +inline int LiskSignMessage::address_n_size() const { + return address_n_.size(); +} +inline void LiskSignMessage::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 LiskSignMessage::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignMessage.address_n) + return address_n_.Get(index); +} +inline void LiskSignMessage::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignMessage.address_n) +} +inline void LiskSignMessage::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.lisk.LiskSignMessage.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +LiskSignMessage::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.lisk.LiskSignMessage.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +LiskSignMessage::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.lisk.LiskSignMessage.address_n) + return &address_n_; +} + +// optional bytes message = 2; +inline bool LiskSignMessage::has_message() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskSignMessage::set_has_message() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskSignMessage::clear_has_message() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskSignMessage::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_message(); +} +inline const ::std::string& LiskSignMessage::message() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskSignMessage.message) + return message_.GetNoArena(); +} +inline void LiskSignMessage::set_message(const ::std::string& value) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskSignMessage.message) +} +#if LANG_CXX11 +inline void LiskSignMessage::set_message(::std::string&& value) { + set_has_message(); + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskSignMessage.message) +} +#endif +inline void LiskSignMessage::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskSignMessage.message) +} +inline void LiskSignMessage::set_message(const void* value, size_t size) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskSignMessage.message) +} +inline ::std::string* LiskSignMessage::mutable_message() { + set_has_message(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskSignMessage.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskSignMessage::release_message() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskSignMessage.message) + if (!has_message()) { + return NULL; + } + clear_has_message(); + return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskSignMessage::set_allocated_message(::std::string* message) { + if (message != NULL) { + set_has_message(); + } else { + clear_has_message(); + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskSignMessage.message) +} + +// ------------------------------------------------------------------- + +// LiskMessageSignature + +// optional bytes public_key = 1; +inline bool LiskMessageSignature::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskMessageSignature::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskMessageSignature::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskMessageSignature::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& LiskMessageSignature::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskMessageSignature.public_key) + return public_key_.GetNoArena(); +} +inline void LiskMessageSignature::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskMessageSignature.public_key) +} +#if LANG_CXX11 +inline void LiskMessageSignature::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskMessageSignature.public_key) +} +#endif +inline void LiskMessageSignature::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskMessageSignature.public_key) +} +inline void LiskMessageSignature::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskMessageSignature.public_key) +} +inline ::std::string* LiskMessageSignature::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskMessageSignature.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskMessageSignature::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskMessageSignature.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskMessageSignature::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskMessageSignature.public_key) +} + +// optional bytes signature = 2; +inline bool LiskMessageSignature::has_signature() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void LiskMessageSignature::set_has_signature() { + _has_bits_[0] |= 0x00000002u; +} +inline void LiskMessageSignature::clear_has_signature() { + _has_bits_[0] &= ~0x00000002u; +} +inline void LiskMessageSignature::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& LiskMessageSignature::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskMessageSignature.signature) + return signature_.GetNoArena(); +} +inline void LiskMessageSignature::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskMessageSignature.signature) +} +#if LANG_CXX11 +inline void LiskMessageSignature::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskMessageSignature.signature) +} +#endif +inline void LiskMessageSignature::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskMessageSignature.signature) +} +inline void LiskMessageSignature::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskMessageSignature.signature) +} +inline ::std::string* LiskMessageSignature::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskMessageSignature.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskMessageSignature::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskMessageSignature.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskMessageSignature::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskMessageSignature.signature) +} + +// ------------------------------------------------------------------- + +// LiskVerifyMessage + +// optional bytes public_key = 1; +inline bool LiskVerifyMessage::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiskVerifyMessage::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiskVerifyMessage::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiskVerifyMessage::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& LiskVerifyMessage::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskVerifyMessage.public_key) + return public_key_.GetNoArena(); +} +inline void LiskVerifyMessage::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskVerifyMessage.public_key) +} +#if LANG_CXX11 +inline void LiskVerifyMessage::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskVerifyMessage.public_key) +} +#endif +inline void LiskVerifyMessage::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskVerifyMessage.public_key) +} +inline void LiskVerifyMessage::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskVerifyMessage.public_key) +} +inline ::std::string* LiskVerifyMessage::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskVerifyMessage.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskVerifyMessage::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskVerifyMessage.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskVerifyMessage::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskVerifyMessage.public_key) +} + +// optional bytes signature = 2; +inline bool LiskVerifyMessage::has_signature() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void LiskVerifyMessage::set_has_signature() { + _has_bits_[0] |= 0x00000002u; +} +inline void LiskVerifyMessage::clear_has_signature() { + _has_bits_[0] &= ~0x00000002u; +} +inline void LiskVerifyMessage::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& LiskVerifyMessage::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskVerifyMessage.signature) + return signature_.GetNoArena(); +} +inline void LiskVerifyMessage::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskVerifyMessage.signature) +} +#if LANG_CXX11 +inline void LiskVerifyMessage::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskVerifyMessage.signature) +} +#endif +inline void LiskVerifyMessage::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskVerifyMessage.signature) +} +inline void LiskVerifyMessage::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskVerifyMessage.signature) +} +inline ::std::string* LiskVerifyMessage::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskVerifyMessage.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskVerifyMessage::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskVerifyMessage.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskVerifyMessage::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskVerifyMessage.signature) +} + +// optional bytes message = 3; +inline bool LiskVerifyMessage::has_message() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void LiskVerifyMessage::set_has_message() { + _has_bits_[0] |= 0x00000004u; +} +inline void LiskVerifyMessage::clear_has_message() { + _has_bits_[0] &= ~0x00000004u; +} +inline void LiskVerifyMessage::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_message(); +} +inline const ::std::string& LiskVerifyMessage::message() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.lisk.LiskVerifyMessage.message) + return message_.GetNoArena(); +} +inline void LiskVerifyMessage::set_message(const ::std::string& value) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.lisk.LiskVerifyMessage.message) +} +#if LANG_CXX11 +inline void LiskVerifyMessage::set_message(::std::string&& value) { + set_has_message(); + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.lisk.LiskVerifyMessage.message) +} +#endif +inline void LiskVerifyMessage::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.lisk.LiskVerifyMessage.message) +} +inline void LiskVerifyMessage::set_message(const void* value, size_t size) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.lisk.LiskVerifyMessage.message) +} +inline ::std::string* LiskVerifyMessage::mutable_message() { + set_has_message(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.lisk.LiskVerifyMessage.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiskVerifyMessage::release_message() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.lisk.LiskVerifyMessage.message) + if (!has_message()) { + return NULL; + } + clear_has_message(); + return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LiskVerifyMessage::set_allocated_message(::std::string* message) { + if (message != NULL) { + set_has_message(); + } else { + clear_has_message(); + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.lisk.LiskVerifyMessage.message) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace lisk +} // namespace messages +} // namespace trezor +} // namespace hw + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionType>() { + return ::hw::trezor::messages::lisk::LiskSignTx_LiskTransactionCommon_LiskTransactionType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dlisk_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-management.pb.cc b/src/Core/hardware/trezor/protob/messages-management.pb.cc new file mode 100644 index 00000000..9e92d815 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-management.pb.cc @@ -0,0 +1,8251 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-management.proto + +#include "messages-management.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dcommon_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HDNodeType; +} // namespace protobuf_messages_2dcommon_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace management { +class InitializeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Initialize_default_instance_; +class GetFeaturesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetFeatures_default_instance_; +class FeaturesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Features_default_instance_; +class ClearSessionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ClearSession_default_instance_; +class ApplySettingsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ApplySettings_default_instance_; +class ApplyFlagsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ApplyFlags_default_instance_; +class ChangePinDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ChangePin_default_instance_; +class PingDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Ping_default_instance_; +class CancelDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Cancel_default_instance_; +class GetEntropyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetEntropy_default_instance_; +class EntropyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Entropy_default_instance_; +class WipeDeviceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WipeDevice_default_instance_; +class LoadDeviceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LoadDevice_default_instance_; +class ResetDeviceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ResetDevice_default_instance_; +class BackupDeviceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BackupDevice_default_instance_; +class EntropyRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EntropyRequest_default_instance_; +class EntropyAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EntropyAck_default_instance_; +class RecoveryDeviceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _RecoveryDevice_default_instance_; +class WordRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WordRequest_default_instance_; +class WordAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WordAck_default_instance_; +class SetU2FCounterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SetU2FCounter_default_instance_; +} // namespace management +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dmanagement_2eproto { +static void InitDefaultsInitialize() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_Initialize_default_instance_; + new (ptr) ::hw::trezor::messages::management::Initialize(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::Initialize::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Initialize = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInitialize}, {}}; + +static void InitDefaultsGetFeatures() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_GetFeatures_default_instance_; + new (ptr) ::hw::trezor::messages::management::GetFeatures(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::GetFeatures::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetFeatures = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetFeatures}, {}}; + +static void InitDefaultsFeatures() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_Features_default_instance_; + new (ptr) ::hw::trezor::messages::management::Features(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::Features::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Features = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFeatures}, {}}; + +static void InitDefaultsClearSession() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_ClearSession_default_instance_; + new (ptr) ::hw::trezor::messages::management::ClearSession(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::ClearSession::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ClearSession = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsClearSession}, {}}; + +static void InitDefaultsApplySettings() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_ApplySettings_default_instance_; + new (ptr) ::hw::trezor::messages::management::ApplySettings(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::ApplySettings::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ApplySettings = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsApplySettings}, {}}; + +static void InitDefaultsApplyFlags() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_ApplyFlags_default_instance_; + new (ptr) ::hw::trezor::messages::management::ApplyFlags(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::ApplyFlags::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ApplyFlags = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsApplyFlags}, {}}; + +static void InitDefaultsChangePin() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_ChangePin_default_instance_; + new (ptr) ::hw::trezor::messages::management::ChangePin(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::ChangePin::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ChangePin = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsChangePin}, {}}; + +static void InitDefaultsPing() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_Ping_default_instance_; + new (ptr) ::hw::trezor::messages::management::Ping(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::Ping::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Ping = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPing}, {}}; + +static void InitDefaultsCancel() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_Cancel_default_instance_; + new (ptr) ::hw::trezor::messages::management::Cancel(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::Cancel::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Cancel = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCancel}, {}}; + +static void InitDefaultsGetEntropy() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_GetEntropy_default_instance_; + new (ptr) ::hw::trezor::messages::management::GetEntropy(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::GetEntropy::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetEntropy = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetEntropy}, {}}; + +static void InitDefaultsEntropy() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_Entropy_default_instance_; + new (ptr) ::hw::trezor::messages::management::Entropy(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::Entropy::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Entropy = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEntropy}, {}}; + +static void InitDefaultsWipeDevice() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_WipeDevice_default_instance_; + new (ptr) ::hw::trezor::messages::management::WipeDevice(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::WipeDevice::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WipeDevice = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWipeDevice}, {}}; + +static void InitDefaultsLoadDevice() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.DefaultConstruct(); + *::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get_mutable() = ::std::string("english", 7); + ::google::protobuf::internal::OnShutdownDestroyString( + ::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get_mutable()); + { + void* ptr = &::hw::trezor::messages::management::_LoadDevice_default_instance_; + new (ptr) ::hw::trezor::messages::management::LoadDevice(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::LoadDevice::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_LoadDevice = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLoadDevice}, { + &protobuf_messages_2dcommon_2eproto::scc_info_HDNodeType.base,}}; + +static void InitDefaultsResetDevice() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.DefaultConstruct(); + *::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get_mutable() = ::std::string("english", 7); + ::google::protobuf::internal::OnShutdownDestroyString( + ::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get_mutable()); + { + void* ptr = &::hw::trezor::messages::management::_ResetDevice_default_instance_; + new (ptr) ::hw::trezor::messages::management::ResetDevice(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::ResetDevice::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ResetDevice = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResetDevice}, {}}; + +static void InitDefaultsBackupDevice() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_BackupDevice_default_instance_; + new (ptr) ::hw::trezor::messages::management::BackupDevice(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::BackupDevice::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BackupDevice = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBackupDevice}, {}}; + +static void InitDefaultsEntropyRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_EntropyRequest_default_instance_; + new (ptr) ::hw::trezor::messages::management::EntropyRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::EntropyRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EntropyRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEntropyRequest}, {}}; + +static void InitDefaultsEntropyAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_EntropyAck_default_instance_; + new (ptr) ::hw::trezor::messages::management::EntropyAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::EntropyAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EntropyAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEntropyAck}, {}}; + +static void InitDefaultsRecoveryDevice() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.DefaultConstruct(); + *::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get_mutable() = ::std::string("english", 7); + ::google::protobuf::internal::OnShutdownDestroyString( + ::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get_mutable()); + { + void* ptr = &::hw::trezor::messages::management::_RecoveryDevice_default_instance_; + new (ptr) ::hw::trezor::messages::management::RecoveryDevice(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::RecoveryDevice::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RecoveryDevice = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRecoveryDevice}, {}}; + +static void InitDefaultsWordRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_WordRequest_default_instance_; + new (ptr) ::hw::trezor::messages::management::WordRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::WordRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WordRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWordRequest}, {}}; + +static void InitDefaultsWordAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_WordAck_default_instance_; + new (ptr) ::hw::trezor::messages::management::WordAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::WordAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WordAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWordAck}, {}}; + +static void InitDefaultsSetU2FCounter() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::management::_SetU2FCounter_default_instance_; + new (ptr) ::hw::trezor::messages::management::SetU2FCounter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::management::SetU2FCounter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SetU2FCounter = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetU2FCounter}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_Initialize.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetFeatures.base); + ::google::protobuf::internal::InitSCC(&scc_info_Features.base); + ::google::protobuf::internal::InitSCC(&scc_info_ClearSession.base); + ::google::protobuf::internal::InitSCC(&scc_info_ApplySettings.base); + ::google::protobuf::internal::InitSCC(&scc_info_ApplyFlags.base); + ::google::protobuf::internal::InitSCC(&scc_info_ChangePin.base); + ::google::protobuf::internal::InitSCC(&scc_info_Ping.base); + ::google::protobuf::internal::InitSCC(&scc_info_Cancel.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetEntropy.base); + ::google::protobuf::internal::InitSCC(&scc_info_Entropy.base); + ::google::protobuf::internal::InitSCC(&scc_info_WipeDevice.base); + ::google::protobuf::internal::InitSCC(&scc_info_LoadDevice.base); + ::google::protobuf::internal::InitSCC(&scc_info_ResetDevice.base); + ::google::protobuf::internal::InitSCC(&scc_info_BackupDevice.base); + ::google::protobuf::internal::InitSCC(&scc_info_EntropyRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_EntropyAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_RecoveryDevice.base); + ::google::protobuf::internal::InitSCC(&scc_info_WordRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_WordAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_SetU2FCounter.base); +} + +::google::protobuf::Metadata file_level_metadata[21]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Initialize, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Initialize, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Initialize, state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Initialize, skip_passphrase_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::GetFeatures, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::GetFeatures, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, vendor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, major_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, minor_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, patch_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, bootloader_mode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, device_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, pin_protection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, passphrase_protection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, language_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, label_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, initialized_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, revision_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, bootloader_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, imported_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, pin_cached_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, passphrase_cached_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, firmware_present_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, needs_backup_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, flags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, model_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, fw_major_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, fw_minor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, fw_patch_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, fw_vendor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, fw_vendor_keys_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, unfinished_backup_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Features, no_backup_), + 0, + 9, + 10, + 11, + 12, + 1, + 13, + 14, + 2, + 3, + 15, + 4, + 5, + 16, + 17, + 18, + 19, + 24, + 20, + 6, + 21, + 22, + 23, + 7, + 8, + 25, + 26, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ClearSession, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ClearSession, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ApplySettings, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ApplySettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ApplySettings, language_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ApplySettings, label_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ApplySettings, use_passphrase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ApplySettings, homescreen_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ApplySettings, passphrase_source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ApplySettings, auto_lock_delay_ms_), + 0, + 1, + 3, + 2, + 4, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ApplyFlags, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ApplyFlags, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ApplyFlags, flags_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ChangePin, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ChangePin, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ChangePin, remove_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Ping, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Ping, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Ping, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Ping, button_protection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Ping, pin_protection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Ping, passphrase_protection_), + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Cancel, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Cancel, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::GetEntropy, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::GetEntropy, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::GetEntropy, size_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Entropy, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Entropy, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::Entropy, entropy_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::WipeDevice, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::WipeDevice, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::LoadDevice, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::LoadDevice, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::LoadDevice, mnemonic_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::LoadDevice, node_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::LoadDevice, pin_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::LoadDevice, passphrase_protection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::LoadDevice, language_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::LoadDevice, label_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::LoadDevice, skip_checksum_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::LoadDevice, u2f_counter_), + 0, + 4, + 1, + 5, + 2, + 3, + 6, + 7, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ResetDevice, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ResetDevice, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ResetDevice, display_random_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ResetDevice, strength_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ResetDevice, passphrase_protection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ResetDevice, pin_protection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ResetDevice, language_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ResetDevice, label_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ResetDevice, u2f_counter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ResetDevice, skip_backup_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::ResetDevice, no_backup_), + 2, + 8, + 3, + 4, + 0, + 1, + 6, + 5, + 7, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::BackupDevice, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::BackupDevice, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::EntropyRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::EntropyRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::EntropyAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::EntropyAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::EntropyAck, entropy_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::RecoveryDevice, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::RecoveryDevice, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::RecoveryDevice, word_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::RecoveryDevice, passphrase_protection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::RecoveryDevice, pin_protection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::RecoveryDevice, language_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::RecoveryDevice, label_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::RecoveryDevice, enforce_wordlist_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::RecoveryDevice, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::RecoveryDevice, u2f_counter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::RecoveryDevice, dry_run_), + 2, + 3, + 4, + 0, + 1, + 5, + 7, + 8, + 6, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::WordRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::WordRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::WordRequest, type_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::WordAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::WordAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::WordAck, word_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::SetU2FCounter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::SetU2FCounter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::management::SetU2FCounter, u2f_counter_), + 0, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::hw::trezor::messages::management::Initialize)}, + { 9, 14, sizeof(::hw::trezor::messages::management::GetFeatures)}, + { 14, 46, sizeof(::hw::trezor::messages::management::Features)}, + { 73, 78, sizeof(::hw::trezor::messages::management::ClearSession)}, + { 78, 89, sizeof(::hw::trezor::messages::management::ApplySettings)}, + { 95, 101, sizeof(::hw::trezor::messages::management::ApplyFlags)}, + { 102, 108, sizeof(::hw::trezor::messages::management::ChangePin)}, + { 109, 118, sizeof(::hw::trezor::messages::management::Ping)}, + { 122, 127, sizeof(::hw::trezor::messages::management::Cancel)}, + { 127, 133, sizeof(::hw::trezor::messages::management::GetEntropy)}, + { 134, 140, sizeof(::hw::trezor::messages::management::Entropy)}, + { 141, 146, sizeof(::hw::trezor::messages::management::WipeDevice)}, + { 146, 159, sizeof(::hw::trezor::messages::management::LoadDevice)}, + { 167, 181, sizeof(::hw::trezor::messages::management::ResetDevice)}, + { 190, 195, sizeof(::hw::trezor::messages::management::BackupDevice)}, + { 195, 200, sizeof(::hw::trezor::messages::management::EntropyRequest)}, + { 200, 206, sizeof(::hw::trezor::messages::management::EntropyAck)}, + { 207, 221, sizeof(::hw::trezor::messages::management::RecoveryDevice)}, + { 230, 236, sizeof(::hw::trezor::messages::management::WordRequest)}, + { 237, 243, sizeof(::hw::trezor::messages::management::WordAck)}, + { 244, 250, sizeof(::hw::trezor::messages::management::SetU2FCounter)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::management::_Initialize_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_GetFeatures_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_Features_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_ClearSession_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_ApplySettings_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_ApplyFlags_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_ChangePin_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_Ping_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_Cancel_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_GetEntropy_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_Entropy_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_WipeDevice_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_LoadDevice_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_ResetDevice_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_BackupDevice_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_EntropyRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_EntropyAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_RecoveryDevice_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_WordRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_WordAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::management::_SetU2FCounter_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-management.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 21); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\031messages-management.proto\022\035hw.trezor.m" + "essages.management\032\025messages-common.prot" + "o\"4\n\nInitialize\022\r\n\005state\030\001 \001(\014\022\027\n\017skip_p" + "assphrase\030\002 \001(\010\"\r\n\013GetFeatures\"\301\004\n\010Featu" + "res\022\016\n\006vendor\030\001 \001(\t\022\025\n\rmajor_version\030\002 \001" + "(\r\022\025\n\rminor_version\030\003 \001(\r\022\025\n\rpatch_versi" + "on\030\004 \001(\r\022\027\n\017bootloader_mode\030\005 \001(\010\022\021\n\tdev" + "ice_id\030\006 \001(\t\022\026\n\016pin_protection\030\007 \001(\010\022\035\n\025" + "passphrase_protection\030\010 \001(\010\022\020\n\010language\030" + "\t \001(\t\022\r\n\005label\030\n \001(\t\022\023\n\013initialized\030\014 \001(" + "\010\022\020\n\010revision\030\r \001(\014\022\027\n\017bootloader_hash\030\016" + " \001(\014\022\020\n\010imported\030\017 \001(\010\022\022\n\npin_cached\030\020 \001" + "(\010\022\031\n\021passphrase_cached\030\021 \001(\010\022\030\n\020firmwar" + "e_present\030\022 \001(\010\022\024\n\014needs_backup\030\023 \001(\010\022\r\n" + "\005flags\030\024 \001(\r\022\r\n\005model\030\025 \001(\t\022\020\n\010fw_major\030" + "\026 \001(\r\022\020\n\010fw_minor\030\027 \001(\r\022\020\n\010fw_patch\030\030 \001(" + "\r\022\021\n\tfw_vendor\030\031 \001(\t\022\026\n\016fw_vendor_keys\030\032" + " \001(\014\022\031\n\021unfinished_backup\030\033 \001(\010\022\021\n\tno_ba" + "ckup\030\034 \001(\010\"\016\n\014ClearSession\"\215\002\n\rApplySett" + "ings\022\020\n\010language\030\001 \001(\t\022\r\n\005label\030\002 \001(\t\022\026\n" + "\016use_passphrase\030\003 \001(\010\022\022\n\nhomescreen\030\004 \001(" + "\014\022\\\n\021passphrase_source\030\005 \001(\0162A.hw.trezor" + ".messages.management.ApplySettings.Passp" + "hraseSourceType\022\032\n\022auto_lock_delay_ms\030\006 " + "\001(\r\"5\n\024PassphraseSourceType\022\007\n\003ASK\020\000\022\n\n\006" + "DEVICE\020\001\022\010\n\004HOST\020\002\"\033\n\nApplyFlags\022\r\n\005flag" + "s\030\001 \001(\r\"\033\n\tChangePin\022\016\n\006remove\030\001 \001(\010\"i\n\004" + "Ping\022\017\n\007message\030\001 \001(\t\022\031\n\021button_protecti" + "on\030\002 \001(\010\022\026\n\016pin_protection\030\003 \001(\010\022\035\n\025pass" + "phrase_protection\030\004 \001(\010\"\010\n\006Cancel\"\032\n\nGet" + "Entropy\022\014\n\004size\030\001 \002(\r\"\032\n\007Entropy\022\017\n\007entr" + "opy\030\001 \002(\014\"\014\n\nWipeDevice\"\325\001\n\nLoadDevice\022\020" + "\n\010mnemonic\030\001 \001(\t\0223\n\004node\030\002 \001(\0132%.hw.trez" + "or.messages.common.HDNodeType\022\013\n\003pin\030\003 \001" + "(\t\022\035\n\025passphrase_protection\030\004 \001(\010\022\031\n\010lan" + "guage\030\005 \001(\t:\007english\022\r\n\005label\030\006 \001(\t\022\025\n\rs" + "kip_checksum\030\007 \001(\010\022\023\n\013u2f_counter\030\010 \001(\r\"" + "\332\001\n\013ResetDevice\022\026\n\016display_random\030\001 \001(\010\022" + "\025\n\010strength\030\002 \001(\r:\003256\022\035\n\025passphrase_pro" + "tection\030\003 \001(\010\022\026\n\016pin_protection\030\004 \001(\010\022\031\n" + "\010language\030\005 \001(\t:\007english\022\r\n\005label\030\006 \001(\t\022" + "\023\n\013u2f_counter\030\007 \001(\r\022\023\n\013skip_backup\030\010 \001(" + "\010\022\021\n\tno_backup\030\t \001(\010\"\016\n\014BackupDevice\"\020\n\016" + "EntropyRequest\"\035\n\nEntropyAck\022\017\n\007entropy\030" + "\001 \001(\014\"\361\002\n\016RecoveryDevice\022\022\n\nword_count\030\001" + " \001(\r\022\035\n\025passphrase_protection\030\002 \001(\010\022\026\n\016p" + "in_protection\030\003 \001(\010\022\031\n\010language\030\004 \001(\t:\007e" + "nglish\022\r\n\005label\030\005 \001(\t\022\030\n\020enforce_wordlis" + "t\030\006 \001(\010\022N\n\004type\030\010 \001(\0162@.hw.trezor.messag" + "es.management.RecoveryDevice.RecoveryDev" + "iceType\022\023\n\013u2f_counter\030\t \001(\r\022\017\n\007dry_run\030" + "\n \001(\010\"Z\n\022RecoveryDeviceType\022%\n!RecoveryD" + "eviceType_ScrambledWords\020\000\022\035\n\031RecoveryDe" + "viceType_Matrix\020\001\"\277\001\n\013WordRequest\022H\n\004typ" + "e\030\001 \001(\0162:.hw.trezor.messages.management." + "WordRequest.WordRequestType\"f\n\017WordReque" + "stType\022\031\n\025WordRequestType_Plain\020\000\022\033\n\027Wor" + "dRequestType_Matrix9\020\001\022\033\n\027WordRequestTyp" + "e_Matrix6\020\002\"\027\n\007WordAck\022\014\n\004word\030\001 \002(\t\"$\n\r" + "SetU2FCounter\022\023\n\013u2f_counter\030\001 \001(\rB>\n#co" + "m.satoshilabs.trezor.lib.protobufB\027Trezo" + "rMessageManagement" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 2458); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-management.proto", &protobuf_RegisterTypes); + ::protobuf_messages_2dcommon_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dmanagement_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace management { +const ::google::protobuf::EnumDescriptor* ApplySettings_PassphraseSourceType_descriptor() { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dmanagement_2eproto::file_level_enum_descriptors[0]; +} +bool ApplySettings_PassphraseSourceType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ApplySettings_PassphraseSourceType ApplySettings::ASK; +const ApplySettings_PassphraseSourceType ApplySettings::DEVICE; +const ApplySettings_PassphraseSourceType ApplySettings::HOST; +const ApplySettings_PassphraseSourceType ApplySettings::PassphraseSourceType_MIN; +const ApplySettings_PassphraseSourceType ApplySettings::PassphraseSourceType_MAX; +const int ApplySettings::PassphraseSourceType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* RecoveryDevice_RecoveryDeviceType_descriptor() { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dmanagement_2eproto::file_level_enum_descriptors[1]; +} +bool RecoveryDevice_RecoveryDeviceType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const RecoveryDevice_RecoveryDeviceType RecoveryDevice::RecoveryDeviceType_ScrambledWords; +const RecoveryDevice_RecoveryDeviceType RecoveryDevice::RecoveryDeviceType_Matrix; +const RecoveryDevice_RecoveryDeviceType RecoveryDevice::RecoveryDeviceType_MIN; +const RecoveryDevice_RecoveryDeviceType RecoveryDevice::RecoveryDeviceType_MAX; +const int RecoveryDevice::RecoveryDeviceType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* WordRequest_WordRequestType_descriptor() { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dmanagement_2eproto::file_level_enum_descriptors[2]; +} +bool WordRequest_WordRequestType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const WordRequest_WordRequestType WordRequest::WordRequestType_Plain; +const WordRequest_WordRequestType WordRequest::WordRequestType_Matrix9; +const WordRequest_WordRequestType WordRequest::WordRequestType_Matrix6; +const WordRequest_WordRequestType WordRequest::WordRequestType_MIN; +const WordRequest_WordRequestType WordRequest::WordRequestType_MAX; +const int WordRequest::WordRequestType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void Initialize::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Initialize::kStateFieldNumber; +const int Initialize::kSkipPassphraseFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Initialize::Initialize() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_Initialize.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.Initialize) +} +Initialize::Initialize(const Initialize& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_state()) { + state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_); + } + skip_passphrase_ = from.skip_passphrase_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.Initialize) +} + +void Initialize::SharedCtor() { + state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + skip_passphrase_ = false; +} + +Initialize::~Initialize() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.Initialize) + SharedDtor(); +} + +void Initialize::SharedDtor() { + state_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Initialize::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* Initialize::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Initialize& Initialize::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_Initialize.base); + return *internal_default_instance(); +} + + +void Initialize::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.Initialize) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + state_.ClearNonDefaultToEmptyNoArena(); + } + skip_passphrase_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool Initialize::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.Initialize) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes state = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_state())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool skip_passphrase = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_skip_passphrase(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &skip_passphrase_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.Initialize) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.Initialize) + return false; +#undef DO_ +} + +void Initialize::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.Initialize) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes state = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->state(), output); + } + + // optional bool skip_passphrase = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->skip_passphrase(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.Initialize) +} + +::google::protobuf::uint8* Initialize::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.Initialize) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes state = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->state(), target); + } + + // optional bool skip_passphrase = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->skip_passphrase(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.Initialize) + return target; +} + +size_t Initialize::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.Initialize) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes state = 1; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->state()); + } + + // optional bool skip_passphrase = 2; + if (has_skip_passphrase()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Initialize::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.Initialize) + GOOGLE_DCHECK_NE(&from, this); + const Initialize* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.Initialize) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.Initialize) + MergeFrom(*source); + } +} + +void Initialize::MergeFrom(const Initialize& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.Initialize) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_state(); + state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_); + } + if (cached_has_bits & 0x00000002u) { + skip_passphrase_ = from.skip_passphrase_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void Initialize::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.Initialize) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Initialize::CopyFrom(const Initialize& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.Initialize) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Initialize::IsInitialized() const { + return true; +} + +void Initialize::Swap(Initialize* other) { + if (other == this) return; + InternalSwap(other); +} +void Initialize::InternalSwap(Initialize* other) { + using std::swap; + state_.Swap(&other->state_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(skip_passphrase_, other->skip_passphrase_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata Initialize::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetFeatures::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetFeatures::GetFeatures() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_GetFeatures.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.GetFeatures) +} +GetFeatures::GetFeatures(const GetFeatures& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.GetFeatures) +} + +void GetFeatures::SharedCtor() { +} + +GetFeatures::~GetFeatures() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.GetFeatures) + SharedDtor(); +} + +void GetFeatures::SharedDtor() { +} + +void GetFeatures::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* GetFeatures::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const GetFeatures& GetFeatures::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_GetFeatures.base); + return *internal_default_instance(); +} + + +void GetFeatures::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.GetFeatures) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool GetFeatures::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.GetFeatures) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.GetFeatures) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.GetFeatures) + return false; +#undef DO_ +} + +void GetFeatures::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.GetFeatures) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.GetFeatures) +} + +::google::protobuf::uint8* GetFeatures::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.GetFeatures) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.GetFeatures) + return target; +} + +size_t GetFeatures::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.GetFeatures) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetFeatures::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.GetFeatures) + GOOGLE_DCHECK_NE(&from, this); + const GetFeatures* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.GetFeatures) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.GetFeatures) + MergeFrom(*source); + } +} + +void GetFeatures::MergeFrom(const GetFeatures& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.GetFeatures) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void GetFeatures::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.GetFeatures) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetFeatures::CopyFrom(const GetFeatures& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.GetFeatures) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetFeatures::IsInitialized() const { + return true; +} + +void GetFeatures::Swap(GetFeatures* other) { + if (other == this) return; + InternalSwap(other); +} +void GetFeatures::InternalSwap(GetFeatures* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata GetFeatures::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Features::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Features::kVendorFieldNumber; +const int Features::kMajorVersionFieldNumber; +const int Features::kMinorVersionFieldNumber; +const int Features::kPatchVersionFieldNumber; +const int Features::kBootloaderModeFieldNumber; +const int Features::kDeviceIdFieldNumber; +const int Features::kPinProtectionFieldNumber; +const int Features::kPassphraseProtectionFieldNumber; +const int Features::kLanguageFieldNumber; +const int Features::kLabelFieldNumber; +const int Features::kInitializedFieldNumber; +const int Features::kRevisionFieldNumber; +const int Features::kBootloaderHashFieldNumber; +const int Features::kImportedFieldNumber; +const int Features::kPinCachedFieldNumber; +const int Features::kPassphraseCachedFieldNumber; +const int Features::kFirmwarePresentFieldNumber; +const int Features::kNeedsBackupFieldNumber; +const int Features::kFlagsFieldNumber; +const int Features::kModelFieldNumber; +const int Features::kFwMajorFieldNumber; +const int Features::kFwMinorFieldNumber; +const int Features::kFwPatchFieldNumber; +const int Features::kFwVendorFieldNumber; +const int Features::kFwVendorKeysFieldNumber; +const int Features::kUnfinishedBackupFieldNumber; +const int Features::kNoBackupFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Features::Features() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_Features.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.Features) +} +Features::Features(const Features& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + vendor_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_vendor()) { + vendor_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vendor_); + } + device_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_device_id()) { + device_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device_id_); + } + language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_language()) { + language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.language_); + } + label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_label()) { + label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); + } + revision_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_revision()) { + revision_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.revision_); + } + bootloader_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_bootloader_hash()) { + bootloader_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bootloader_hash_); + } + model_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_model()) { + model_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.model_); + } + fw_vendor_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_fw_vendor()) { + fw_vendor_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fw_vendor_); + } + fw_vendor_keys_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_fw_vendor_keys()) { + fw_vendor_keys_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fw_vendor_keys_); + } + ::memcpy(&major_version_, &from.major_version_, + static_cast(reinterpret_cast(&no_backup_) - + reinterpret_cast(&major_version_)) + sizeof(no_backup_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.Features) +} + +void Features::SharedCtor() { + vendor_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + device_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + revision_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + bootloader_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + model_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + fw_vendor_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + fw_vendor_keys_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&major_version_, 0, static_cast( + reinterpret_cast(&no_backup_) - + reinterpret_cast(&major_version_)) + sizeof(no_backup_)); +} + +Features::~Features() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.Features) + SharedDtor(); +} + +void Features::SharedDtor() { + vendor_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + device_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + language_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + revision_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + bootloader_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + model_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + fw_vendor_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + fw_vendor_keys_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Features::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* Features::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Features& Features::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_Features.base); + return *internal_default_instance(); +} + + +void Features::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.Features) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + vendor_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + device_id_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + language_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + label_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + revision_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000020u) { + bootloader_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000040u) { + model_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000080u) { + fw_vendor_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 0x00000100u) { + fw_vendor_keys_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 65024u) { + ::memset(&major_version_, 0, static_cast( + reinterpret_cast(&initialized_) - + reinterpret_cast(&major_version_)) + sizeof(initialized_)); + } + if (cached_has_bits & 16711680u) { + ::memset(&imported_, 0, static_cast( + reinterpret_cast(&fw_patch_) - + reinterpret_cast(&imported_)) + sizeof(fw_patch_)); + } + if (cached_has_bits & 117440512u) { + ::memset(&needs_backup_, 0, static_cast( + reinterpret_cast(&no_backup_) - + reinterpret_cast(&needs_backup_)) + sizeof(no_backup_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool Features::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.Features) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string vendor = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_vendor())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->vendor().data(), static_cast(this->vendor().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.Features.vendor"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 major_version = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_major_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &major_version_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 minor_version = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_minor_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &minor_version_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 patch_version = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_patch_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &patch_version_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool bootloader_mode = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_bootloader_mode(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &bootloader_mode_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string device_id = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_device_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->device_id().data(), static_cast(this->device_id().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.Features.device_id"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool pin_protection = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_pin_protection(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &pin_protection_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool passphrase_protection = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_passphrase_protection(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &passphrase_protection_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string language = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_language())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.Features.language"); + } else { + goto handle_unusual; + } + break; + } + + // optional string label = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_label())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.Features.label"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool initialized = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { + set_has_initialized(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &initialized_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes revision = 13; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_revision())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes bootloader_hash = 14; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_bootloader_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool imported = 15; + case 15: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) { + set_has_imported(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &imported_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool pin_cached = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { + set_has_pin_cached(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &pin_cached_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool passphrase_cached = 17; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { + set_has_passphrase_cached(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &passphrase_cached_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool firmware_present = 18; + case 18: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) { + set_has_firmware_present(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &firmware_present_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool needs_backup = 19; + case 19: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) { + set_has_needs_backup(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &needs_backup_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 flags = 20; + case 20: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) { + set_has_flags(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &flags_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string model = 21; + case 21: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_model())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->model().data(), static_cast(this->model().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.Features.model"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 fw_major = 22; + case 22: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(176u /* 176 & 0xFF */)) { + set_has_fw_major(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &fw_major_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 fw_minor = 23; + case 23: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(184u /* 184 & 0xFF */)) { + set_has_fw_minor(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &fw_minor_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 fw_patch = 24; + case 24: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(192u /* 192 & 0xFF */)) { + set_has_fw_patch(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &fw_patch_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string fw_vendor = 25; + case 25: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(202u /* 202 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_fw_vendor())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->fw_vendor().data(), static_cast(this->fw_vendor().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.Features.fw_vendor"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes fw_vendor_keys = 26; + case 26: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(210u /* 210 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_fw_vendor_keys())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool unfinished_backup = 27; + case 27: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(216u /* 216 & 0xFF */)) { + set_has_unfinished_backup(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &unfinished_backup_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool no_backup = 28; + case 28: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(224u /* 224 & 0xFF */)) { + set_has_no_backup(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &no_backup_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.Features) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.Features) + return false; +#undef DO_ +} + +void Features::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.Features) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string vendor = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->vendor().data(), static_cast(this->vendor().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.vendor"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->vendor(), output); + } + + // optional uint32 major_version = 2; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->major_version(), output); + } + + // optional uint32 minor_version = 3; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->minor_version(), output); + } + + // optional uint32 patch_version = 4; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->patch_version(), output); + } + + // optional bool bootloader_mode = 5; + if (cached_has_bits & 0x00001000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->bootloader_mode(), output); + } + + // optional string device_id = 6; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->device_id().data(), static_cast(this->device_id().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.device_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->device_id(), output); + } + + // optional bool pin_protection = 7; + if (cached_has_bits & 0x00002000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->pin_protection(), output); + } + + // optional bool passphrase_protection = 8; + if (cached_has_bits & 0x00004000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->passphrase_protection(), output); + } + + // optional string language = 9; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.language"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 9, this->language(), output); + } + + // optional string label = 10; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.label"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 10, this->label(), output); + } + + // optional bool initialized = 12; + if (cached_has_bits & 0x00008000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->initialized(), output); + } + + // optional bytes revision = 13; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 13, this->revision(), output); + } + + // optional bytes bootloader_hash = 14; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 14, this->bootloader_hash(), output); + } + + // optional bool imported = 15; + if (cached_has_bits & 0x00010000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->imported(), output); + } + + // optional bool pin_cached = 16; + if (cached_has_bits & 0x00020000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->pin_cached(), output); + } + + // optional bool passphrase_cached = 17; + if (cached_has_bits & 0x00040000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->passphrase_cached(), output); + } + + // optional bool firmware_present = 18; + if (cached_has_bits & 0x00080000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->firmware_present(), output); + } + + // optional bool needs_backup = 19; + if (cached_has_bits & 0x01000000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->needs_backup(), output); + } + + // optional uint32 flags = 20; + if (cached_has_bits & 0x00100000u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(20, this->flags(), output); + } + + // optional string model = 21; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->model().data(), static_cast(this->model().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.model"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 21, this->model(), output); + } + + // optional uint32 fw_major = 22; + if (cached_has_bits & 0x00200000u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(22, this->fw_major(), output); + } + + // optional uint32 fw_minor = 23; + if (cached_has_bits & 0x00400000u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(23, this->fw_minor(), output); + } + + // optional uint32 fw_patch = 24; + if (cached_has_bits & 0x00800000u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(24, this->fw_patch(), output); + } + + // optional string fw_vendor = 25; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->fw_vendor().data(), static_cast(this->fw_vendor().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.fw_vendor"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 25, this->fw_vendor(), output); + } + + // optional bytes fw_vendor_keys = 26; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 26, this->fw_vendor_keys(), output); + } + + // optional bool unfinished_backup = 27; + if (cached_has_bits & 0x02000000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(27, this->unfinished_backup(), output); + } + + // optional bool no_backup = 28; + if (cached_has_bits & 0x04000000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(28, this->no_backup(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.Features) +} + +::google::protobuf::uint8* Features::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.Features) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string vendor = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->vendor().data(), static_cast(this->vendor().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.vendor"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->vendor(), target); + } + + // optional uint32 major_version = 2; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->major_version(), target); + } + + // optional uint32 minor_version = 3; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->minor_version(), target); + } + + // optional uint32 patch_version = 4; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->patch_version(), target); + } + + // optional bool bootloader_mode = 5; + if (cached_has_bits & 0x00001000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->bootloader_mode(), target); + } + + // optional string device_id = 6; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->device_id().data(), static_cast(this->device_id().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.device_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->device_id(), target); + } + + // optional bool pin_protection = 7; + if (cached_has_bits & 0x00002000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->pin_protection(), target); + } + + // optional bool passphrase_protection = 8; + if (cached_has_bits & 0x00004000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->passphrase_protection(), target); + } + + // optional string language = 9; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.language"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 9, this->language(), target); + } + + // optional string label = 10; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.label"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 10, this->label(), target); + } + + // optional bool initialized = 12; + if (cached_has_bits & 0x00008000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->initialized(), target); + } + + // optional bytes revision = 13; + if (cached_has_bits & 0x00000010u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 13, this->revision(), target); + } + + // optional bytes bootloader_hash = 14; + if (cached_has_bits & 0x00000020u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 14, this->bootloader_hash(), target); + } + + // optional bool imported = 15; + if (cached_has_bits & 0x00010000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->imported(), target); + } + + // optional bool pin_cached = 16; + if (cached_has_bits & 0x00020000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->pin_cached(), target); + } + + // optional bool passphrase_cached = 17; + if (cached_has_bits & 0x00040000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->passphrase_cached(), target); + } + + // optional bool firmware_present = 18; + if (cached_has_bits & 0x00080000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->firmware_present(), target); + } + + // optional bool needs_backup = 19; + if (cached_has_bits & 0x01000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->needs_backup(), target); + } + + // optional uint32 flags = 20; + if (cached_has_bits & 0x00100000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(20, this->flags(), target); + } + + // optional string model = 21; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->model().data(), static_cast(this->model().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.model"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 21, this->model(), target); + } + + // optional uint32 fw_major = 22; + if (cached_has_bits & 0x00200000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(22, this->fw_major(), target); + } + + // optional uint32 fw_minor = 23; + if (cached_has_bits & 0x00400000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(23, this->fw_minor(), target); + } + + // optional uint32 fw_patch = 24; + if (cached_has_bits & 0x00800000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(24, this->fw_patch(), target); + } + + // optional string fw_vendor = 25; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->fw_vendor().data(), static_cast(this->fw_vendor().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Features.fw_vendor"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 25, this->fw_vendor(), target); + } + + // optional bytes fw_vendor_keys = 26; + if (cached_has_bits & 0x00000100u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 26, this->fw_vendor_keys(), target); + } + + // optional bool unfinished_backup = 27; + if (cached_has_bits & 0x02000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->unfinished_backup(), target); + } + + // optional bool no_backup = 28; + if (cached_has_bits & 0x04000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(28, this->no_backup(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.Features) + return target; +} + +size_t Features::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.Features) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional string vendor = 1; + if (has_vendor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->vendor()); + } + + // optional string device_id = 6; + if (has_device_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->device_id()); + } + + // optional string language = 9; + if (has_language()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->language()); + } + + // optional string label = 10; + if (has_label()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->label()); + } + + // optional bytes revision = 13; + if (has_revision()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->revision()); + } + + // optional bytes bootloader_hash = 14; + if (has_bootloader_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->bootloader_hash()); + } + + // optional string model = 21; + if (has_model()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->model()); + } + + // optional string fw_vendor = 25; + if (has_fw_vendor()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->fw_vendor()); + } + + } + if (_has_bits_[8 / 32] & 65280u) { + // optional bytes fw_vendor_keys = 26; + if (has_fw_vendor_keys()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->fw_vendor_keys()); + } + + // optional uint32 major_version = 2; + if (has_major_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->major_version()); + } + + // optional uint32 minor_version = 3; + if (has_minor_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->minor_version()); + } + + // optional uint32 patch_version = 4; + if (has_patch_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->patch_version()); + } + + // optional bool bootloader_mode = 5; + if (has_bootloader_mode()) { + total_size += 1 + 1; + } + + // optional bool pin_protection = 7; + if (has_pin_protection()) { + total_size += 1 + 1; + } + + // optional bool passphrase_protection = 8; + if (has_passphrase_protection()) { + total_size += 1 + 1; + } + + // optional bool initialized = 12; + if (has_initialized()) { + total_size += 1 + 1; + } + + } + if (_has_bits_[16 / 32] & 16711680u) { + // optional bool imported = 15; + if (has_imported()) { + total_size += 1 + 1; + } + + // optional bool pin_cached = 16; + if (has_pin_cached()) { + total_size += 2 + 1; + } + + // optional bool passphrase_cached = 17; + if (has_passphrase_cached()) { + total_size += 2 + 1; + } + + // optional bool firmware_present = 18; + if (has_firmware_present()) { + total_size += 2 + 1; + } + + // optional uint32 flags = 20; + if (has_flags()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->flags()); + } + + // optional uint32 fw_major = 22; + if (has_fw_major()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->fw_major()); + } + + // optional uint32 fw_minor = 23; + if (has_fw_minor()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->fw_minor()); + } + + // optional uint32 fw_patch = 24; + if (has_fw_patch()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->fw_patch()); + } + + } + if (_has_bits_[24 / 32] & 117440512u) { + // optional bool needs_backup = 19; + if (has_needs_backup()) { + total_size += 2 + 1; + } + + // optional bool unfinished_backup = 27; + if (has_unfinished_backup()) { + total_size += 2 + 1; + } + + // optional bool no_backup = 28; + if (has_no_backup()) { + total_size += 2 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Features::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.Features) + GOOGLE_DCHECK_NE(&from, this); + const Features* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.Features) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.Features) + MergeFrom(*source); + } +} + +void Features::MergeFrom(const Features& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.Features) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_vendor(); + vendor_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vendor_); + } + if (cached_has_bits & 0x00000002u) { + set_has_device_id(); + device_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device_id_); + } + if (cached_has_bits & 0x00000004u) { + set_has_language(); + language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.language_); + } + if (cached_has_bits & 0x00000008u) { + set_has_label(); + label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); + } + if (cached_has_bits & 0x00000010u) { + set_has_revision(); + revision_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.revision_); + } + if (cached_has_bits & 0x00000020u) { + set_has_bootloader_hash(); + bootloader_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bootloader_hash_); + } + if (cached_has_bits & 0x00000040u) { + set_has_model(); + model_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.model_); + } + if (cached_has_bits & 0x00000080u) { + set_has_fw_vendor(); + fw_vendor_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fw_vendor_); + } + } + if (cached_has_bits & 65280u) { + if (cached_has_bits & 0x00000100u) { + set_has_fw_vendor_keys(); + fw_vendor_keys_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fw_vendor_keys_); + } + if (cached_has_bits & 0x00000200u) { + major_version_ = from.major_version_; + } + if (cached_has_bits & 0x00000400u) { + minor_version_ = from.minor_version_; + } + if (cached_has_bits & 0x00000800u) { + patch_version_ = from.patch_version_; + } + if (cached_has_bits & 0x00001000u) { + bootloader_mode_ = from.bootloader_mode_; + } + if (cached_has_bits & 0x00002000u) { + pin_protection_ = from.pin_protection_; + } + if (cached_has_bits & 0x00004000u) { + passphrase_protection_ = from.passphrase_protection_; + } + if (cached_has_bits & 0x00008000u) { + initialized_ = from.initialized_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 16711680u) { + if (cached_has_bits & 0x00010000u) { + imported_ = from.imported_; + } + if (cached_has_bits & 0x00020000u) { + pin_cached_ = from.pin_cached_; + } + if (cached_has_bits & 0x00040000u) { + passphrase_cached_ = from.passphrase_cached_; + } + if (cached_has_bits & 0x00080000u) { + firmware_present_ = from.firmware_present_; + } + if (cached_has_bits & 0x00100000u) { + flags_ = from.flags_; + } + if (cached_has_bits & 0x00200000u) { + fw_major_ = from.fw_major_; + } + if (cached_has_bits & 0x00400000u) { + fw_minor_ = from.fw_minor_; + } + if (cached_has_bits & 0x00800000u) { + fw_patch_ = from.fw_patch_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 117440512u) { + if (cached_has_bits & 0x01000000u) { + needs_backup_ = from.needs_backup_; + } + if (cached_has_bits & 0x02000000u) { + unfinished_backup_ = from.unfinished_backup_; + } + if (cached_has_bits & 0x04000000u) { + no_backup_ = from.no_backup_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void Features::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.Features) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Features::CopyFrom(const Features& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.Features) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Features::IsInitialized() const { + return true; +} + +void Features::Swap(Features* other) { + if (other == this) return; + InternalSwap(other); +} +void Features::InternalSwap(Features* other) { + using std::swap; + vendor_.Swap(&other->vendor_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + device_id_.Swap(&other->device_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + language_.Swap(&other->language_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + label_.Swap(&other->label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + revision_.Swap(&other->revision_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + bootloader_hash_.Swap(&other->bootloader_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + model_.Swap(&other->model_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + fw_vendor_.Swap(&other->fw_vendor_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + fw_vendor_keys_.Swap(&other->fw_vendor_keys_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(major_version_, other->major_version_); + swap(minor_version_, other->minor_version_); + swap(patch_version_, other->patch_version_); + swap(bootloader_mode_, other->bootloader_mode_); + swap(pin_protection_, other->pin_protection_); + swap(passphrase_protection_, other->passphrase_protection_); + swap(initialized_, other->initialized_); + swap(imported_, other->imported_); + swap(pin_cached_, other->pin_cached_); + swap(passphrase_cached_, other->passphrase_cached_); + swap(firmware_present_, other->firmware_present_); + swap(flags_, other->flags_); + swap(fw_major_, other->fw_major_); + swap(fw_minor_, other->fw_minor_); + swap(fw_patch_, other->fw_patch_); + swap(needs_backup_, other->needs_backup_); + swap(unfinished_backup_, other->unfinished_backup_); + swap(no_backup_, other->no_backup_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata Features::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ClearSession::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ClearSession::ClearSession() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_ClearSession.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.ClearSession) +} +ClearSession::ClearSession(const ClearSession& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.ClearSession) +} + +void ClearSession::SharedCtor() { +} + +ClearSession::~ClearSession() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.ClearSession) + SharedDtor(); +} + +void ClearSession::SharedDtor() { +} + +void ClearSession::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* ClearSession::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ClearSession& ClearSession::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_ClearSession.base); + return *internal_default_instance(); +} + + +void ClearSession::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.ClearSession) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ClearSession::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.ClearSession) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.ClearSession) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.ClearSession) + return false; +#undef DO_ +} + +void ClearSession::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.ClearSession) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.ClearSession) +} + +::google::protobuf::uint8* ClearSession::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.ClearSession) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.ClearSession) + return target; +} + +size_t ClearSession::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.ClearSession) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ClearSession::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.ClearSession) + GOOGLE_DCHECK_NE(&from, this); + const ClearSession* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.ClearSession) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.ClearSession) + MergeFrom(*source); + } +} + +void ClearSession::MergeFrom(const ClearSession& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.ClearSession) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ClearSession::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.ClearSession) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ClearSession::CopyFrom(const ClearSession& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.ClearSession) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClearSession::IsInitialized() const { + return true; +} + +void ClearSession::Swap(ClearSession* other) { + if (other == this) return; + InternalSwap(other); +} +void ClearSession::InternalSwap(ClearSession* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ClearSession::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ApplySettings::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ApplySettings::kLanguageFieldNumber; +const int ApplySettings::kLabelFieldNumber; +const int ApplySettings::kUsePassphraseFieldNumber; +const int ApplySettings::kHomescreenFieldNumber; +const int ApplySettings::kPassphraseSourceFieldNumber; +const int ApplySettings::kAutoLockDelayMsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ApplySettings::ApplySettings() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_ApplySettings.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.ApplySettings) +} +ApplySettings::ApplySettings(const ApplySettings& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_language()) { + language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.language_); + } + label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_label()) { + label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); + } + homescreen_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_homescreen()) { + homescreen_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.homescreen_); + } + ::memcpy(&use_passphrase_, &from.use_passphrase_, + static_cast(reinterpret_cast(&auto_lock_delay_ms_) - + reinterpret_cast(&use_passphrase_)) + sizeof(auto_lock_delay_ms_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.ApplySettings) +} + +void ApplySettings::SharedCtor() { + language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + homescreen_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&use_passphrase_, 0, static_cast( + reinterpret_cast(&auto_lock_delay_ms_) - + reinterpret_cast(&use_passphrase_)) + sizeof(auto_lock_delay_ms_)); +} + +ApplySettings::~ApplySettings() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.ApplySettings) + SharedDtor(); +} + +void ApplySettings::SharedDtor() { + language_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + homescreen_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ApplySettings::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* ApplySettings::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ApplySettings& ApplySettings::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_ApplySettings.base); + return *internal_default_instance(); +} + + +void ApplySettings::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.ApplySettings) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + language_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + label_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + homescreen_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 56u) { + ::memset(&use_passphrase_, 0, static_cast( + reinterpret_cast(&auto_lock_delay_ms_) - + reinterpret_cast(&use_passphrase_)) + sizeof(auto_lock_delay_ms_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ApplySettings::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.ApplySettings) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string language = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_language())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.ApplySettings.language"); + } else { + goto handle_unusual; + } + break; + } + + // optional string label = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_label())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.ApplySettings.label"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool use_passphrase = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_use_passphrase(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &use_passphrase_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes homescreen = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_homescreen())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.management.ApplySettings.PassphraseSourceType passphrase_source = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::management::ApplySettings_PassphraseSourceType_IsValid(value)) { + set_passphrase_source(static_cast< ::hw::trezor::messages::management::ApplySettings_PassphraseSourceType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 5, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 auto_lock_delay_ms = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_auto_lock_delay_ms(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &auto_lock_delay_ms_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.ApplySettings) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.ApplySettings) + return false; +#undef DO_ +} + +void ApplySettings::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.ApplySettings) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string language = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.ApplySettings.language"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->language(), output); + } + + // optional string label = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.ApplySettings.label"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->label(), output); + } + + // optional bool use_passphrase = 3; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->use_passphrase(), output); + } + + // optional bytes homescreen = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->homescreen(), output); + } + + // optional .hw.trezor.messages.management.ApplySettings.PassphraseSourceType passphrase_source = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->passphrase_source(), output); + } + + // optional uint32 auto_lock_delay_ms = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->auto_lock_delay_ms(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.ApplySettings) +} + +::google::protobuf::uint8* ApplySettings::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.ApplySettings) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string language = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.ApplySettings.language"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->language(), target); + } + + // optional string label = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.ApplySettings.label"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->label(), target); + } + + // optional bool use_passphrase = 3; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->use_passphrase(), target); + } + + // optional bytes homescreen = 4; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->homescreen(), target); + } + + // optional .hw.trezor.messages.management.ApplySettings.PassphraseSourceType passphrase_source = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->passphrase_source(), target); + } + + // optional uint32 auto_lock_delay_ms = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->auto_lock_delay_ms(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.ApplySettings) + return target; +} + +size_t ApplySettings::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.ApplySettings) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 63u) { + // optional string language = 1; + if (has_language()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->language()); + } + + // optional string label = 2; + if (has_label()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->label()); + } + + // optional bytes homescreen = 4; + if (has_homescreen()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->homescreen()); + } + + // optional bool use_passphrase = 3; + if (has_use_passphrase()) { + total_size += 1 + 1; + } + + // optional .hw.trezor.messages.management.ApplySettings.PassphraseSourceType passphrase_source = 5; + if (has_passphrase_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->passphrase_source()); + } + + // optional uint32 auto_lock_delay_ms = 6; + if (has_auto_lock_delay_ms()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->auto_lock_delay_ms()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ApplySettings::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.ApplySettings) + GOOGLE_DCHECK_NE(&from, this); + const ApplySettings* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.ApplySettings) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.ApplySettings) + MergeFrom(*source); + } +} + +void ApplySettings::MergeFrom(const ApplySettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.ApplySettings) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_language(); + language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.language_); + } + if (cached_has_bits & 0x00000002u) { + set_has_label(); + label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); + } + if (cached_has_bits & 0x00000004u) { + set_has_homescreen(); + homescreen_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.homescreen_); + } + if (cached_has_bits & 0x00000008u) { + use_passphrase_ = from.use_passphrase_; + } + if (cached_has_bits & 0x00000010u) { + passphrase_source_ = from.passphrase_source_; + } + if (cached_has_bits & 0x00000020u) { + auto_lock_delay_ms_ = from.auto_lock_delay_ms_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ApplySettings::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.ApplySettings) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ApplySettings::CopyFrom(const ApplySettings& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.ApplySettings) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ApplySettings::IsInitialized() const { + return true; +} + +void ApplySettings::Swap(ApplySettings* other) { + if (other == this) return; + InternalSwap(other); +} +void ApplySettings::InternalSwap(ApplySettings* other) { + using std::swap; + language_.Swap(&other->language_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + label_.Swap(&other->label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + homescreen_.Swap(&other->homescreen_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(use_passphrase_, other->use_passphrase_); + swap(passphrase_source_, other->passphrase_source_); + swap(auto_lock_delay_ms_, other->auto_lock_delay_ms_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ApplySettings::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ApplyFlags::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ApplyFlags::kFlagsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ApplyFlags::ApplyFlags() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_ApplyFlags.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.ApplyFlags) +} +ApplyFlags::ApplyFlags(const ApplyFlags& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + flags_ = from.flags_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.ApplyFlags) +} + +void ApplyFlags::SharedCtor() { + flags_ = 0u; +} + +ApplyFlags::~ApplyFlags() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.ApplyFlags) + SharedDtor(); +} + +void ApplyFlags::SharedDtor() { +} + +void ApplyFlags::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* ApplyFlags::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ApplyFlags& ApplyFlags::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_ApplyFlags.base); + return *internal_default_instance(); +} + + +void ApplyFlags::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.ApplyFlags) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + flags_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ApplyFlags::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.ApplyFlags) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 flags = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_flags(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &flags_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.ApplyFlags) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.ApplyFlags) + return false; +#undef DO_ +} + +void ApplyFlags::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.ApplyFlags) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 flags = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->flags(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.ApplyFlags) +} + +::google::protobuf::uint8* ApplyFlags::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.ApplyFlags) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 flags = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->flags(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.ApplyFlags) + return target; +} + +size_t ApplyFlags::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.ApplyFlags) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional uint32 flags = 1; + if (has_flags()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->flags()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ApplyFlags::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.ApplyFlags) + GOOGLE_DCHECK_NE(&from, this); + const ApplyFlags* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.ApplyFlags) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.ApplyFlags) + MergeFrom(*source); + } +} + +void ApplyFlags::MergeFrom(const ApplyFlags& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.ApplyFlags) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_flags()) { + set_flags(from.flags()); + } +} + +void ApplyFlags::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.ApplyFlags) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ApplyFlags::CopyFrom(const ApplyFlags& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.ApplyFlags) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ApplyFlags::IsInitialized() const { + return true; +} + +void ApplyFlags::Swap(ApplyFlags* other) { + if (other == this) return; + InternalSwap(other); +} +void ApplyFlags::InternalSwap(ApplyFlags* other) { + using std::swap; + swap(flags_, other->flags_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ApplyFlags::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ChangePin::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ChangePin::kRemoveFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ChangePin::ChangePin() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_ChangePin.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.ChangePin) +} +ChangePin::ChangePin(const ChangePin& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + remove_ = from.remove_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.ChangePin) +} + +void ChangePin::SharedCtor() { + remove_ = false; +} + +ChangePin::~ChangePin() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.ChangePin) + SharedDtor(); +} + +void ChangePin::SharedDtor() { +} + +void ChangePin::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* ChangePin::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ChangePin& ChangePin::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_ChangePin.base); + return *internal_default_instance(); +} + + +void ChangePin::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.ChangePin) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + remove_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ChangePin::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.ChangePin) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool remove = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_remove(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &remove_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.ChangePin) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.ChangePin) + return false; +#undef DO_ +} + +void ChangePin::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.ChangePin) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool remove = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->remove(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.ChangePin) +} + +::google::protobuf::uint8* ChangePin::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.ChangePin) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool remove = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->remove(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.ChangePin) + return target; +} + +size_t ChangePin::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.ChangePin) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bool remove = 1; + if (has_remove()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ChangePin::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.ChangePin) + GOOGLE_DCHECK_NE(&from, this); + const ChangePin* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.ChangePin) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.ChangePin) + MergeFrom(*source); + } +} + +void ChangePin::MergeFrom(const ChangePin& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.ChangePin) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_remove()) { + set_remove(from.remove()); + } +} + +void ChangePin::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.ChangePin) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ChangePin::CopyFrom(const ChangePin& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.ChangePin) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChangePin::IsInitialized() const { + return true; +} + +void ChangePin::Swap(ChangePin* other) { + if (other == this) return; + InternalSwap(other); +} +void ChangePin::InternalSwap(ChangePin* other) { + using std::swap; + swap(remove_, other->remove_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ChangePin::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Ping::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Ping::kMessageFieldNumber; +const int Ping::kButtonProtectionFieldNumber; +const int Ping::kPinProtectionFieldNumber; +const int Ping::kPassphraseProtectionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Ping::Ping() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_Ping.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.Ping) +} +Ping::Ping(const Ping& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_message()) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + ::memcpy(&button_protection_, &from.button_protection_, + static_cast(reinterpret_cast(&passphrase_protection_) - + reinterpret_cast(&button_protection_)) + sizeof(passphrase_protection_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.Ping) +} + +void Ping::SharedCtor() { + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&button_protection_, 0, static_cast( + reinterpret_cast(&passphrase_protection_) - + reinterpret_cast(&button_protection_)) + sizeof(passphrase_protection_)); +} + +Ping::~Ping() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.Ping) + SharedDtor(); +} + +void Ping::SharedDtor() { + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Ping::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* Ping::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Ping& Ping::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_Ping.base); + return *internal_default_instance(); +} + + +void Ping::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.Ping) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + message_.ClearNonDefaultToEmptyNoArena(); + } + ::memset(&button_protection_, 0, static_cast( + reinterpret_cast(&passphrase_protection_) - + reinterpret_cast(&button_protection_)) + sizeof(passphrase_protection_)); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool Ping::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.Ping) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string message = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.Ping.message"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool button_protection = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_button_protection(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &button_protection_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool pin_protection = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_pin_protection(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &pin_protection_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool passphrase_protection = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_passphrase_protection(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &passphrase_protection_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.Ping) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.Ping) + return false; +#undef DO_ +} + +void Ping::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.Ping) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string message = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Ping.message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->message(), output); + } + + // optional bool button_protection = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->button_protection(), output); + } + + // optional bool pin_protection = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->pin_protection(), output); + } + + // optional bool passphrase_protection = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->passphrase_protection(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.Ping) +} + +::google::protobuf::uint8* Ping::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.Ping) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string message = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.Ping.message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->message(), target); + } + + // optional bool button_protection = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->button_protection(), target); + } + + // optional bool pin_protection = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->pin_protection(), target); + } + + // optional bool passphrase_protection = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->passphrase_protection(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.Ping) + return target; +} + +size_t Ping::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.Ping) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional string message = 1; + if (has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + // optional bool button_protection = 2; + if (has_button_protection()) { + total_size += 1 + 1; + } + + // optional bool pin_protection = 3; + if (has_pin_protection()) { + total_size += 1 + 1; + } + + // optional bool passphrase_protection = 4; + if (has_passphrase_protection()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Ping::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.Ping) + GOOGLE_DCHECK_NE(&from, this); + const Ping* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.Ping) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.Ping) + MergeFrom(*source); + } +} + +void Ping::MergeFrom(const Ping& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.Ping) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_message(); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (cached_has_bits & 0x00000002u) { + button_protection_ = from.button_protection_; + } + if (cached_has_bits & 0x00000004u) { + pin_protection_ = from.pin_protection_; + } + if (cached_has_bits & 0x00000008u) { + passphrase_protection_ = from.passphrase_protection_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void Ping::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.Ping) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Ping::CopyFrom(const Ping& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.Ping) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Ping::IsInitialized() const { + return true; +} + +void Ping::Swap(Ping* other) { + if (other == this) return; + InternalSwap(other); +} +void Ping::InternalSwap(Ping* other) { + using std::swap; + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(button_protection_, other->button_protection_); + swap(pin_protection_, other->pin_protection_); + swap(passphrase_protection_, other->passphrase_protection_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata Ping::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Cancel::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Cancel::Cancel() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_Cancel.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.Cancel) +} +Cancel::Cancel(const Cancel& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.Cancel) +} + +void Cancel::SharedCtor() { +} + +Cancel::~Cancel() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.Cancel) + SharedDtor(); +} + +void Cancel::SharedDtor() { +} + +void Cancel::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* Cancel::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Cancel& Cancel::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_Cancel.base); + return *internal_default_instance(); +} + + +void Cancel::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.Cancel) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool Cancel::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.Cancel) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.Cancel) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.Cancel) + return false; +#undef DO_ +} + +void Cancel::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.Cancel) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.Cancel) +} + +::google::protobuf::uint8* Cancel::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.Cancel) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.Cancel) + return target; +} + +size_t Cancel::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.Cancel) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Cancel::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.Cancel) + GOOGLE_DCHECK_NE(&from, this); + const Cancel* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.Cancel) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.Cancel) + MergeFrom(*source); + } +} + +void Cancel::MergeFrom(const Cancel& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.Cancel) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void Cancel::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.Cancel) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Cancel::CopyFrom(const Cancel& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.Cancel) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Cancel::IsInitialized() const { + return true; +} + +void Cancel::Swap(Cancel* other) { + if (other == this) return; + InternalSwap(other); +} +void Cancel::InternalSwap(Cancel* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata Cancel::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetEntropy::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetEntropy::kSizeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetEntropy::GetEntropy() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_GetEntropy.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.GetEntropy) +} +GetEntropy::GetEntropy(const GetEntropy& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + size_ = from.size_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.GetEntropy) +} + +void GetEntropy::SharedCtor() { + size_ = 0u; +} + +GetEntropy::~GetEntropy() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.GetEntropy) + SharedDtor(); +} + +void GetEntropy::SharedDtor() { +} + +void GetEntropy::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* GetEntropy::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const GetEntropy& GetEntropy::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_GetEntropy.base); + return *internal_default_instance(); +} + + +void GetEntropy::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.GetEntropy) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + size_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool GetEntropy::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.GetEntropy) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 size = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &size_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.GetEntropy) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.GetEntropy) + return false; +#undef DO_ +} + +void GetEntropy::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.GetEntropy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 size = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->size(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.GetEntropy) +} + +::google::protobuf::uint8* GetEntropy::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.GetEntropy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 size = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->size(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.GetEntropy) + return target; +} + +size_t GetEntropy::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.GetEntropy) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // required uint32 size = 1; + if (has_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->size()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetEntropy::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.GetEntropy) + GOOGLE_DCHECK_NE(&from, this); + const GetEntropy* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.GetEntropy) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.GetEntropy) + MergeFrom(*source); + } +} + +void GetEntropy::MergeFrom(const GetEntropy& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.GetEntropy) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_size()) { + set_size(from.size()); + } +} + +void GetEntropy::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.GetEntropy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetEntropy::CopyFrom(const GetEntropy& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.GetEntropy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetEntropy::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + return true; +} + +void GetEntropy::Swap(GetEntropy* other) { + if (other == this) return; + InternalSwap(other); +} +void GetEntropy::InternalSwap(GetEntropy* other) { + using std::swap; + swap(size_, other->size_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata GetEntropy::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Entropy::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Entropy::kEntropyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Entropy::Entropy() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_Entropy.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.Entropy) +} +Entropy::Entropy(const Entropy& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + entropy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_entropy()) { + entropy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entropy_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.Entropy) +} + +void Entropy::SharedCtor() { + entropy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Entropy::~Entropy() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.Entropy) + SharedDtor(); +} + +void Entropy::SharedDtor() { + entropy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Entropy::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* Entropy::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Entropy& Entropy::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_Entropy.base); + return *internal_default_instance(); +} + + +void Entropy::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.Entropy) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + entropy_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool Entropy::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.Entropy) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes entropy = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_entropy())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.Entropy) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.Entropy) + return false; +#undef DO_ +} + +void Entropy::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.Entropy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required bytes entropy = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->entropy(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.Entropy) +} + +::google::protobuf::uint8* Entropy::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.Entropy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required bytes entropy = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->entropy(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.Entropy) + return target; +} + +size_t Entropy::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.Entropy) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // required bytes entropy = 1; + if (has_entropy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->entropy()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Entropy::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.Entropy) + GOOGLE_DCHECK_NE(&from, this); + const Entropy* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.Entropy) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.Entropy) + MergeFrom(*source); + } +} + +void Entropy::MergeFrom(const Entropy& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.Entropy) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_entropy()) { + set_has_entropy(); + entropy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entropy_); + } +} + +void Entropy::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.Entropy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Entropy::CopyFrom(const Entropy& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.Entropy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Entropy::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + return true; +} + +void Entropy::Swap(Entropy* other) { + if (other == this) return; + InternalSwap(other); +} +void Entropy::InternalSwap(Entropy* other) { + using std::swap; + entropy_.Swap(&other->entropy_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata Entropy::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WipeDevice::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WipeDevice::WipeDevice() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_WipeDevice.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.WipeDevice) +} +WipeDevice::WipeDevice(const WipeDevice& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.WipeDevice) +} + +void WipeDevice::SharedCtor() { +} + +WipeDevice::~WipeDevice() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.WipeDevice) + SharedDtor(); +} + +void WipeDevice::SharedDtor() { +} + +void WipeDevice::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* WipeDevice::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WipeDevice& WipeDevice::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_WipeDevice.base); + return *internal_default_instance(); +} + + +void WipeDevice::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.WipeDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool WipeDevice::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.WipeDevice) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.WipeDevice) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.WipeDevice) + return false; +#undef DO_ +} + +void WipeDevice::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.WipeDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.WipeDevice) +} + +::google::protobuf::uint8* WipeDevice::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.WipeDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.WipeDevice) + return target; +} + +size_t WipeDevice::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.WipeDevice) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WipeDevice::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.WipeDevice) + GOOGLE_DCHECK_NE(&from, this); + const WipeDevice* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.WipeDevice) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.WipeDevice) + MergeFrom(*source); + } +} + +void WipeDevice::MergeFrom(const WipeDevice& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.WipeDevice) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void WipeDevice::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.WipeDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WipeDevice::CopyFrom(const WipeDevice& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.WipeDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WipeDevice::IsInitialized() const { + return true; +} + +void WipeDevice::Swap(WipeDevice* other) { + if (other == this) return; + InternalSwap(other); +} +void WipeDevice::InternalSwap(WipeDevice* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata WipeDevice::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LoadDevice::InitAsDefaultInstance() { + ::hw::trezor::messages::management::_LoadDevice_default_instance_._instance.get_mutable()->node_ = const_cast< ::hw::trezor::messages::common::HDNodeType*>( + ::hw::trezor::messages::common::HDNodeType::internal_default_instance()); +} +void LoadDevice::clear_node() { + if (node_ != NULL) node_->Clear(); + clear_has_node(); +} +::google::protobuf::internal::ExplicitlyConstructed<::std::string> LoadDevice::_i_give_permission_to_break_this_code_default_language_; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LoadDevice::kMnemonicFieldNumber; +const int LoadDevice::kNodeFieldNumber; +const int LoadDevice::kPinFieldNumber; +const int LoadDevice::kPassphraseProtectionFieldNumber; +const int LoadDevice::kLanguageFieldNumber; +const int LoadDevice::kLabelFieldNumber; +const int LoadDevice::kSkipChecksumFieldNumber; +const int LoadDevice::kU2FCounterFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LoadDevice::LoadDevice() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_LoadDevice.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.LoadDevice) +} +LoadDevice::LoadDevice(const LoadDevice& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + mnemonic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_mnemonic()) { + mnemonic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mnemonic_); + } + pin_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pin()) { + pin_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pin_); + } + language_.UnsafeSetDefault(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get()); + if (from.has_language()) { + language_.AssignWithDefault(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get(), from.language_); + } + label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_label()) { + label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); + } + if (from.has_node()) { + node_ = new ::hw::trezor::messages::common::HDNodeType(*from.node_); + } else { + node_ = NULL; + } + ::memcpy(&passphrase_protection_, &from.passphrase_protection_, + static_cast(reinterpret_cast(&u2f_counter_) - + reinterpret_cast(&passphrase_protection_)) + sizeof(u2f_counter_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.LoadDevice) +} + +void LoadDevice::SharedCtor() { + mnemonic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pin_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + language_.UnsafeSetDefault(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get()); + label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&node_, 0, static_cast( + reinterpret_cast(&u2f_counter_) - + reinterpret_cast(&node_)) + sizeof(u2f_counter_)); +} + +LoadDevice::~LoadDevice() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.LoadDevice) + SharedDtor(); +} + +void LoadDevice::SharedDtor() { + mnemonic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pin_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + language_.DestroyNoArena(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get()); + label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete node_; +} + +void LoadDevice::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* LoadDevice::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LoadDevice& LoadDevice::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_LoadDevice.base); + return *internal_default_instance(); +} + + +void LoadDevice::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.LoadDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + mnemonic_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + pin_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + language_.UnsafeMutablePointer()->assign(*&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get()); + } + if (cached_has_bits & 0x00000008u) { + label_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(node_ != NULL); + node_->Clear(); + } + } + if (cached_has_bits & 224u) { + ::memset(&passphrase_protection_, 0, static_cast( + reinterpret_cast(&u2f_counter_) - + reinterpret_cast(&passphrase_protection_)) + sizeof(u2f_counter_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LoadDevice::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.LoadDevice) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string mnemonic = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mnemonic())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mnemonic().data(), static_cast(this->mnemonic().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.LoadDevice.mnemonic"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.common.HDNodeType node = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node())); + } else { + goto handle_unusual; + } + break; + } + + // optional string pin = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_pin())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->pin().data(), static_cast(this->pin().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.LoadDevice.pin"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool passphrase_protection = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_passphrase_protection(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &passphrase_protection_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string language = 5 [default = "english"]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_language())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.LoadDevice.language"); + } else { + goto handle_unusual; + } + break; + } + + // optional string label = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_label())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.LoadDevice.label"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool skip_checksum = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_skip_checksum(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &skip_checksum_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 u2f_counter = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_u2f_counter(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &u2f_counter_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.LoadDevice) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.LoadDevice) + return false; +#undef DO_ +} + +void LoadDevice::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.LoadDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string mnemonic = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mnemonic().data(), static_cast(this->mnemonic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.LoadDevice.mnemonic"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->mnemonic(), output); + } + + // optional .hw.trezor.messages.common.HDNodeType node = 2; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_node(), output); + } + + // optional string pin = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->pin().data(), static_cast(this->pin().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.LoadDevice.pin"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->pin(), output); + } + + // optional bool passphrase_protection = 4; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->passphrase_protection(), output); + } + + // optional string language = 5 [default = "english"]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.LoadDevice.language"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->language(), output); + } + + // optional string label = 6; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.LoadDevice.label"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->label(), output); + } + + // optional bool skip_checksum = 7; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->skip_checksum(), output); + } + + // optional uint32 u2f_counter = 8; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->u2f_counter(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.LoadDevice) +} + +::google::protobuf::uint8* LoadDevice::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.LoadDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string mnemonic = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mnemonic().data(), static_cast(this->mnemonic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.LoadDevice.mnemonic"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->mnemonic(), target); + } + + // optional .hw.trezor.messages.common.HDNodeType node = 2; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_node(), deterministic, target); + } + + // optional string pin = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->pin().data(), static_cast(this->pin().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.LoadDevice.pin"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->pin(), target); + } + + // optional bool passphrase_protection = 4; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->passphrase_protection(), target); + } + + // optional string language = 5 [default = "english"]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.LoadDevice.language"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->language(), target); + } + + // optional string label = 6; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.LoadDevice.label"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->label(), target); + } + + // optional bool skip_checksum = 7; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->skip_checksum(), target); + } + + // optional uint32 u2f_counter = 8; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->u2f_counter(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.LoadDevice) + return target; +} + +size_t LoadDevice::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.LoadDevice) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional string mnemonic = 1; + if (has_mnemonic()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mnemonic()); + } + + // optional string pin = 3; + if (has_pin()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->pin()); + } + + // optional string language = 5 [default = "english"]; + if (has_language()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->language()); + } + + // optional string label = 6; + if (has_label()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->label()); + } + + // optional .hw.trezor.messages.common.HDNodeType node = 2; + if (has_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *node_); + } + + // optional bool passphrase_protection = 4; + if (has_passphrase_protection()) { + total_size += 1 + 1; + } + + // optional bool skip_checksum = 7; + if (has_skip_checksum()) { + total_size += 1 + 1; + } + + // optional uint32 u2f_counter = 8; + if (has_u2f_counter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->u2f_counter()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LoadDevice::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.LoadDevice) + GOOGLE_DCHECK_NE(&from, this); + const LoadDevice* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.LoadDevice) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.LoadDevice) + MergeFrom(*source); + } +} + +void LoadDevice::MergeFrom(const LoadDevice& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.LoadDevice) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_mnemonic(); + mnemonic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mnemonic_); + } + if (cached_has_bits & 0x00000002u) { + set_has_pin(); + pin_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pin_); + } + if (cached_has_bits & 0x00000004u) { + set_has_language(); + language_.AssignWithDefault(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get(), from.language_); + } + if (cached_has_bits & 0x00000008u) { + set_has_label(); + label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); + } + if (cached_has_bits & 0x00000010u) { + mutable_node()->::hw::trezor::messages::common::HDNodeType::MergeFrom(from.node()); + } + if (cached_has_bits & 0x00000020u) { + passphrase_protection_ = from.passphrase_protection_; + } + if (cached_has_bits & 0x00000040u) { + skip_checksum_ = from.skip_checksum_; + } + if (cached_has_bits & 0x00000080u) { + u2f_counter_ = from.u2f_counter_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void LoadDevice::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.LoadDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LoadDevice::CopyFrom(const LoadDevice& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.LoadDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LoadDevice::IsInitialized() const { + if (has_node()) { + if (!this->node_->IsInitialized()) return false; + } + return true; +} + +void LoadDevice::Swap(LoadDevice* other) { + if (other == this) return; + InternalSwap(other); +} +void LoadDevice::InternalSwap(LoadDevice* other) { + using std::swap; + mnemonic_.Swap(&other->mnemonic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pin_.Swap(&other->pin_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + language_.Swap(&other->language_, &::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get(), + GetArenaNoVirtual()); + label_.Swap(&other->label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(node_, other->node_); + swap(passphrase_protection_, other->passphrase_protection_); + swap(skip_checksum_, other->skip_checksum_); + swap(u2f_counter_, other->u2f_counter_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LoadDevice::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ResetDevice::InitAsDefaultInstance() { +} +::google::protobuf::internal::ExplicitlyConstructed<::std::string> ResetDevice::_i_give_permission_to_break_this_code_default_language_; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ResetDevice::kDisplayRandomFieldNumber; +const int ResetDevice::kStrengthFieldNumber; +const int ResetDevice::kPassphraseProtectionFieldNumber; +const int ResetDevice::kPinProtectionFieldNumber; +const int ResetDevice::kLanguageFieldNumber; +const int ResetDevice::kLabelFieldNumber; +const int ResetDevice::kU2FCounterFieldNumber; +const int ResetDevice::kSkipBackupFieldNumber; +const int ResetDevice::kNoBackupFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ResetDevice::ResetDevice() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_ResetDevice.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.ResetDevice) +} +ResetDevice::ResetDevice(const ResetDevice& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + language_.UnsafeSetDefault(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get()); + if (from.has_language()) { + language_.AssignWithDefault(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get(), from.language_); + } + label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_label()) { + label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); + } + ::memcpy(&display_random_, &from.display_random_, + static_cast(reinterpret_cast(&strength_) - + reinterpret_cast(&display_random_)) + sizeof(strength_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.ResetDevice) +} + +void ResetDevice::SharedCtor() { + language_.UnsafeSetDefault(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get()); + label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&display_random_, 0, static_cast( + reinterpret_cast(&no_backup_) - + reinterpret_cast(&display_random_)) + sizeof(no_backup_)); + strength_ = 256u; +} + +ResetDevice::~ResetDevice() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.ResetDevice) + SharedDtor(); +} + +void ResetDevice::SharedDtor() { + language_.DestroyNoArena(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get()); + label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ResetDevice::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* ResetDevice::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ResetDevice& ResetDevice::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_ResetDevice.base); + return *internal_default_instance(); +} + + +void ResetDevice::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.ResetDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + language_.UnsafeMutablePointer()->assign(*&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get()); + } + if (cached_has_bits & 0x00000002u) { + label_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 252u) { + ::memset(&display_random_, 0, static_cast( + reinterpret_cast(&no_backup_) - + reinterpret_cast(&display_random_)) + sizeof(no_backup_)); + } + strength_ = 256u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ResetDevice::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.ResetDevice) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool display_random = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_display_random(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &display_random_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 strength = 2 [default = 256]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_strength(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &strength_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool passphrase_protection = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_passphrase_protection(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &passphrase_protection_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool pin_protection = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_pin_protection(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &pin_protection_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string language = 5 [default = "english"]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_language())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.ResetDevice.language"); + } else { + goto handle_unusual; + } + break; + } + + // optional string label = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_label())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.ResetDevice.label"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 u2f_counter = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_u2f_counter(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &u2f_counter_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool skip_backup = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_skip_backup(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &skip_backup_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool no_backup = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_no_backup(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &no_backup_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.ResetDevice) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.ResetDevice) + return false; +#undef DO_ +} + +void ResetDevice::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.ResetDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool display_random = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->display_random(), output); + } + + // optional uint32 strength = 2 [default = 256]; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->strength(), output); + } + + // optional bool passphrase_protection = 3; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->passphrase_protection(), output); + } + + // optional bool pin_protection = 4; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->pin_protection(), output); + } + + // optional string language = 5 [default = "english"]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.ResetDevice.language"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->language(), output); + } + + // optional string label = 6; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.ResetDevice.label"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->label(), output); + } + + // optional uint32 u2f_counter = 7; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->u2f_counter(), output); + } + + // optional bool skip_backup = 8; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->skip_backup(), output); + } + + // optional bool no_backup = 9; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->no_backup(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.ResetDevice) +} + +::google::protobuf::uint8* ResetDevice::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.ResetDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool display_random = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->display_random(), target); + } + + // optional uint32 strength = 2 [default = 256]; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->strength(), target); + } + + // optional bool passphrase_protection = 3; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->passphrase_protection(), target); + } + + // optional bool pin_protection = 4; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->pin_protection(), target); + } + + // optional string language = 5 [default = "english"]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.ResetDevice.language"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->language(), target); + } + + // optional string label = 6; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.ResetDevice.label"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->label(), target); + } + + // optional uint32 u2f_counter = 7; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->u2f_counter(), target); + } + + // optional bool skip_backup = 8; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->skip_backup(), target); + } + + // optional bool no_backup = 9; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->no_backup(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.ResetDevice) + return target; +} + +size_t ResetDevice::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.ResetDevice) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional string language = 5 [default = "english"]; + if (has_language()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->language()); + } + + // optional string label = 6; + if (has_label()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->label()); + } + + // optional bool display_random = 1; + if (has_display_random()) { + total_size += 1 + 1; + } + + // optional bool passphrase_protection = 3; + if (has_passphrase_protection()) { + total_size += 1 + 1; + } + + // optional bool pin_protection = 4; + if (has_pin_protection()) { + total_size += 1 + 1; + } + + // optional bool skip_backup = 8; + if (has_skip_backup()) { + total_size += 1 + 1; + } + + // optional uint32 u2f_counter = 7; + if (has_u2f_counter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->u2f_counter()); + } + + // optional bool no_backup = 9; + if (has_no_backup()) { + total_size += 1 + 1; + } + + } + // optional uint32 strength = 2 [default = 256]; + if (has_strength()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->strength()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ResetDevice::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.ResetDevice) + GOOGLE_DCHECK_NE(&from, this); + const ResetDevice* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.ResetDevice) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.ResetDevice) + MergeFrom(*source); + } +} + +void ResetDevice::MergeFrom(const ResetDevice& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.ResetDevice) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_language(); + language_.AssignWithDefault(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get(), from.language_); + } + if (cached_has_bits & 0x00000002u) { + set_has_label(); + label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); + } + if (cached_has_bits & 0x00000004u) { + display_random_ = from.display_random_; + } + if (cached_has_bits & 0x00000008u) { + passphrase_protection_ = from.passphrase_protection_; + } + if (cached_has_bits & 0x00000010u) { + pin_protection_ = from.pin_protection_; + } + if (cached_has_bits & 0x00000020u) { + skip_backup_ = from.skip_backup_; + } + if (cached_has_bits & 0x00000040u) { + u2f_counter_ = from.u2f_counter_; + } + if (cached_has_bits & 0x00000080u) { + no_backup_ = from.no_backup_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x00000100u) { + set_strength(from.strength()); + } +} + +void ResetDevice::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.ResetDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ResetDevice::CopyFrom(const ResetDevice& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.ResetDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResetDevice::IsInitialized() const { + return true; +} + +void ResetDevice::Swap(ResetDevice* other) { + if (other == this) return; + InternalSwap(other); +} +void ResetDevice::InternalSwap(ResetDevice* other) { + using std::swap; + language_.Swap(&other->language_, &::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get(), + GetArenaNoVirtual()); + label_.Swap(&other->label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(display_random_, other->display_random_); + swap(passphrase_protection_, other->passphrase_protection_); + swap(pin_protection_, other->pin_protection_); + swap(skip_backup_, other->skip_backup_); + swap(u2f_counter_, other->u2f_counter_); + swap(no_backup_, other->no_backup_); + swap(strength_, other->strength_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ResetDevice::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BackupDevice::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BackupDevice::BackupDevice() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_BackupDevice.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.BackupDevice) +} +BackupDevice::BackupDevice(const BackupDevice& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.BackupDevice) +} + +void BackupDevice::SharedCtor() { +} + +BackupDevice::~BackupDevice() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.BackupDevice) + SharedDtor(); +} + +void BackupDevice::SharedDtor() { +} + +void BackupDevice::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BackupDevice::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BackupDevice& BackupDevice::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_BackupDevice.base); + return *internal_default_instance(); +} + + +void BackupDevice::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.BackupDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BackupDevice::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.BackupDevice) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.BackupDevice) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.BackupDevice) + return false; +#undef DO_ +} + +void BackupDevice::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.BackupDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.BackupDevice) +} + +::google::protobuf::uint8* BackupDevice::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.BackupDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.BackupDevice) + return target; +} + +size_t BackupDevice::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.BackupDevice) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BackupDevice::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.BackupDevice) + GOOGLE_DCHECK_NE(&from, this); + const BackupDevice* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.BackupDevice) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.BackupDevice) + MergeFrom(*source); + } +} + +void BackupDevice::MergeFrom(const BackupDevice& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.BackupDevice) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void BackupDevice::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.BackupDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BackupDevice::CopyFrom(const BackupDevice& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.BackupDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BackupDevice::IsInitialized() const { + return true; +} + +void BackupDevice::Swap(BackupDevice* other) { + if (other == this) return; + InternalSwap(other); +} +void BackupDevice::InternalSwap(BackupDevice* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BackupDevice::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EntropyRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EntropyRequest::EntropyRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_EntropyRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.EntropyRequest) +} +EntropyRequest::EntropyRequest(const EntropyRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.EntropyRequest) +} + +void EntropyRequest::SharedCtor() { +} + +EntropyRequest::~EntropyRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.EntropyRequest) + SharedDtor(); +} + +void EntropyRequest::SharedDtor() { +} + +void EntropyRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EntropyRequest::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EntropyRequest& EntropyRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_EntropyRequest.base); + return *internal_default_instance(); +} + + +void EntropyRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.EntropyRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EntropyRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.EntropyRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.EntropyRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.EntropyRequest) + return false; +#undef DO_ +} + +void EntropyRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.EntropyRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.EntropyRequest) +} + +::google::protobuf::uint8* EntropyRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.EntropyRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.EntropyRequest) + return target; +} + +size_t EntropyRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.EntropyRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EntropyRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.EntropyRequest) + GOOGLE_DCHECK_NE(&from, this); + const EntropyRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.EntropyRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.EntropyRequest) + MergeFrom(*source); + } +} + +void EntropyRequest::MergeFrom(const EntropyRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.EntropyRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void EntropyRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.EntropyRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EntropyRequest::CopyFrom(const EntropyRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.EntropyRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EntropyRequest::IsInitialized() const { + return true; +} + +void EntropyRequest::Swap(EntropyRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void EntropyRequest::InternalSwap(EntropyRequest* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EntropyRequest::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EntropyAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EntropyAck::kEntropyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EntropyAck::EntropyAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_EntropyAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.EntropyAck) +} +EntropyAck::EntropyAck(const EntropyAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + entropy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_entropy()) { + entropy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entropy_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.EntropyAck) +} + +void EntropyAck::SharedCtor() { + entropy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +EntropyAck::~EntropyAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.EntropyAck) + SharedDtor(); +} + +void EntropyAck::SharedDtor() { + entropy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EntropyAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* EntropyAck::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EntropyAck& EntropyAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_EntropyAck.base); + return *internal_default_instance(); +} + + +void EntropyAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.EntropyAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + entropy_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EntropyAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.EntropyAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes entropy = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_entropy())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.EntropyAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.EntropyAck) + return false; +#undef DO_ +} + +void EntropyAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.EntropyAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes entropy = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->entropy(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.EntropyAck) +} + +::google::protobuf::uint8* EntropyAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.EntropyAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes entropy = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->entropy(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.EntropyAck) + return target; +} + +size_t EntropyAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.EntropyAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes entropy = 1; + if (has_entropy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->entropy()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EntropyAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.EntropyAck) + GOOGLE_DCHECK_NE(&from, this); + const EntropyAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.EntropyAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.EntropyAck) + MergeFrom(*source); + } +} + +void EntropyAck::MergeFrom(const EntropyAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.EntropyAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_entropy()) { + set_has_entropy(); + entropy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entropy_); + } +} + +void EntropyAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.EntropyAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EntropyAck::CopyFrom(const EntropyAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.EntropyAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EntropyAck::IsInitialized() const { + return true; +} + +void EntropyAck::Swap(EntropyAck* other) { + if (other == this) return; + InternalSwap(other); +} +void EntropyAck::InternalSwap(EntropyAck* other) { + using std::swap; + entropy_.Swap(&other->entropy_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata EntropyAck::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void RecoveryDevice::InitAsDefaultInstance() { +} +::google::protobuf::internal::ExplicitlyConstructed<::std::string> RecoveryDevice::_i_give_permission_to_break_this_code_default_language_; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RecoveryDevice::kWordCountFieldNumber; +const int RecoveryDevice::kPassphraseProtectionFieldNumber; +const int RecoveryDevice::kPinProtectionFieldNumber; +const int RecoveryDevice::kLanguageFieldNumber; +const int RecoveryDevice::kLabelFieldNumber; +const int RecoveryDevice::kEnforceWordlistFieldNumber; +const int RecoveryDevice::kTypeFieldNumber; +const int RecoveryDevice::kU2FCounterFieldNumber; +const int RecoveryDevice::kDryRunFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RecoveryDevice::RecoveryDevice() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_RecoveryDevice.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.RecoveryDevice) +} +RecoveryDevice::RecoveryDevice(const RecoveryDevice& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + language_.UnsafeSetDefault(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get()); + if (from.has_language()) { + language_.AssignWithDefault(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get(), from.language_); + } + label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_label()) { + label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); + } + ::memcpy(&word_count_, &from.word_count_, + static_cast(reinterpret_cast(&u2f_counter_) - + reinterpret_cast(&word_count_)) + sizeof(u2f_counter_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.RecoveryDevice) +} + +void RecoveryDevice::SharedCtor() { + language_.UnsafeSetDefault(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get()); + label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&word_count_, 0, static_cast( + reinterpret_cast(&u2f_counter_) - + reinterpret_cast(&word_count_)) + sizeof(u2f_counter_)); +} + +RecoveryDevice::~RecoveryDevice() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.RecoveryDevice) + SharedDtor(); +} + +void RecoveryDevice::SharedDtor() { + language_.DestroyNoArena(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get()); + label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void RecoveryDevice::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* RecoveryDevice::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const RecoveryDevice& RecoveryDevice::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_RecoveryDevice.base); + return *internal_default_instance(); +} + + +void RecoveryDevice::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.RecoveryDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + language_.UnsafeMutablePointer()->assign(*&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get()); + } + if (cached_has_bits & 0x00000002u) { + label_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 252u) { + ::memset(&word_count_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&word_count_)) + sizeof(type_)); + } + u2f_counter_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool RecoveryDevice::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.RecoveryDevice) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 word_count = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_word_count(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &word_count_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool passphrase_protection = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_passphrase_protection(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &passphrase_protection_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool pin_protection = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_pin_protection(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &pin_protection_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string language = 4 [default = "english"]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_language())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.RecoveryDevice.language"); + } else { + goto handle_unusual; + } + break; + } + + // optional string label = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_label())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.RecoveryDevice.label"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool enforce_wordlist = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_enforce_wordlist(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &enforce_wordlist_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceType type = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::management::RecoveryDevice_RecoveryDeviceType_IsValid(value)) { + set_type(static_cast< ::hw::trezor::messages::management::RecoveryDevice_RecoveryDeviceType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 8, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 u2f_counter = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_u2f_counter(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &u2f_counter_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool dry_run = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_dry_run(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &dry_run_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.RecoveryDevice) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.RecoveryDevice) + return false; +#undef DO_ +} + +void RecoveryDevice::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.RecoveryDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 word_count = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->word_count(), output); + } + + // optional bool passphrase_protection = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->passphrase_protection(), output); + } + + // optional bool pin_protection = 3; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->pin_protection(), output); + } + + // optional string language = 4 [default = "english"]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.RecoveryDevice.language"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->language(), output); + } + + // optional string label = 5; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.RecoveryDevice.label"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->label(), output); + } + + // optional bool enforce_wordlist = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->enforce_wordlist(), output); + } + + // optional .hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceType type = 8; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 8, this->type(), output); + } + + // optional uint32 u2f_counter = 9; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->u2f_counter(), output); + } + + // optional bool dry_run = 10; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->dry_run(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.RecoveryDevice) +} + +::google::protobuf::uint8* RecoveryDevice::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.RecoveryDevice) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 word_count = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->word_count(), target); + } + + // optional bool passphrase_protection = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->passphrase_protection(), target); + } + + // optional bool pin_protection = 3; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->pin_protection(), target); + } + + // optional string language = 4 [default = "english"]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->language().data(), static_cast(this->language().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.RecoveryDevice.language"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->language(), target); + } + + // optional string label = 5; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label().data(), static_cast(this->label().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.RecoveryDevice.label"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->label(), target); + } + + // optional bool enforce_wordlist = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->enforce_wordlist(), target); + } + + // optional .hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceType type = 8; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 8, this->type(), target); + } + + // optional uint32 u2f_counter = 9; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->u2f_counter(), target); + } + + // optional bool dry_run = 10; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->dry_run(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.RecoveryDevice) + return target; +} + +size_t RecoveryDevice::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.RecoveryDevice) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional string language = 4 [default = "english"]; + if (has_language()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->language()); + } + + // optional string label = 5; + if (has_label()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->label()); + } + + // optional uint32 word_count = 1; + if (has_word_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->word_count()); + } + + // optional bool passphrase_protection = 2; + if (has_passphrase_protection()) { + total_size += 1 + 1; + } + + // optional bool pin_protection = 3; + if (has_pin_protection()) { + total_size += 1 + 1; + } + + // optional bool enforce_wordlist = 6; + if (has_enforce_wordlist()) { + total_size += 1 + 1; + } + + // optional bool dry_run = 10; + if (has_dry_run()) { + total_size += 1 + 1; + } + + // optional .hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceType type = 8; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + } + // optional uint32 u2f_counter = 9; + if (has_u2f_counter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->u2f_counter()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RecoveryDevice::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.RecoveryDevice) + GOOGLE_DCHECK_NE(&from, this); + const RecoveryDevice* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.RecoveryDevice) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.RecoveryDevice) + MergeFrom(*source); + } +} + +void RecoveryDevice::MergeFrom(const RecoveryDevice& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.RecoveryDevice) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_language(); + language_.AssignWithDefault(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get(), from.language_); + } + if (cached_has_bits & 0x00000002u) { + set_has_label(); + label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); + } + if (cached_has_bits & 0x00000004u) { + word_count_ = from.word_count_; + } + if (cached_has_bits & 0x00000008u) { + passphrase_protection_ = from.passphrase_protection_; + } + if (cached_has_bits & 0x00000010u) { + pin_protection_ = from.pin_protection_; + } + if (cached_has_bits & 0x00000020u) { + enforce_wordlist_ = from.enforce_wordlist_; + } + if (cached_has_bits & 0x00000040u) { + dry_run_ = from.dry_run_; + } + if (cached_has_bits & 0x00000080u) { + type_ = from.type_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x00000100u) { + set_u2f_counter(from.u2f_counter()); + } +} + +void RecoveryDevice::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.RecoveryDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RecoveryDevice::CopyFrom(const RecoveryDevice& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.RecoveryDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RecoveryDevice::IsInitialized() const { + return true; +} + +void RecoveryDevice::Swap(RecoveryDevice* other) { + if (other == this) return; + InternalSwap(other); +} +void RecoveryDevice::InternalSwap(RecoveryDevice* other) { + using std::swap; + language_.Swap(&other->language_, &::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get(), + GetArenaNoVirtual()); + label_.Swap(&other->label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(word_count_, other->word_count_); + swap(passphrase_protection_, other->passphrase_protection_); + swap(pin_protection_, other->pin_protection_); + swap(enforce_wordlist_, other->enforce_wordlist_); + swap(dry_run_, other->dry_run_); + swap(type_, other->type_); + swap(u2f_counter_, other->u2f_counter_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata RecoveryDevice::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WordRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WordRequest::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WordRequest::WordRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_WordRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.WordRequest) +} +WordRequest::WordRequest(const WordRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.WordRequest) +} + +void WordRequest::SharedCtor() { + type_ = 0; +} + +WordRequest::~WordRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.WordRequest) + SharedDtor(); +} + +void WordRequest::SharedDtor() { +} + +void WordRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* WordRequest::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WordRequest& WordRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_WordRequest.base); + return *internal_default_instance(); +} + + +void WordRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.WordRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + type_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool WordRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.WordRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.management.WordRequest.WordRequestType type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::management::WordRequest_WordRequestType_IsValid(value)) { + set_type(static_cast< ::hw::trezor::messages::management::WordRequest_WordRequestType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.WordRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.WordRequest) + return false; +#undef DO_ +} + +void WordRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.WordRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.management.WordRequest.WordRequestType type = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.WordRequest) +} + +::google::protobuf::uint8* WordRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.WordRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.management.WordRequest.WordRequestType type = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.WordRequest) + return target; +} + +size_t WordRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.WordRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional .hw.trezor.messages.management.WordRequest.WordRequestType type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WordRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.WordRequest) + GOOGLE_DCHECK_NE(&from, this); + const WordRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.WordRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.WordRequest) + MergeFrom(*source); + } +} + +void WordRequest::MergeFrom(const WordRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.WordRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_type()) { + set_type(from.type()); + } +} + +void WordRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.WordRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WordRequest::CopyFrom(const WordRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.WordRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WordRequest::IsInitialized() const { + return true; +} + +void WordRequest::Swap(WordRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WordRequest::InternalSwap(WordRequest* other) { + using std::swap; + swap(type_, other->type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata WordRequest::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WordAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WordAck::kWordFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WordAck::WordAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_WordAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.WordAck) +} +WordAck::WordAck(const WordAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + word_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_word()) { + word_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.word_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.WordAck) +} + +void WordAck::SharedCtor() { + word_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +WordAck::~WordAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.WordAck) + SharedDtor(); +} + +void WordAck::SharedDtor() { + word_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void WordAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* WordAck::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WordAck& WordAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_WordAck.base); + return *internal_default_instance(); +} + + +void WordAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.WordAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + word_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool WordAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.WordAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string word = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_word())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->word().data(), static_cast(this->word().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.management.WordAck.word"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.WordAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.WordAck) + return false; +#undef DO_ +} + +void WordAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.WordAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string word = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->word().data(), static_cast(this->word().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.WordAck.word"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->word(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.WordAck) +} + +::google::protobuf::uint8* WordAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.WordAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string word = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->word().data(), static_cast(this->word().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.management.WordAck.word"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->word(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.WordAck) + return target; +} + +size_t WordAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.WordAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // required string word = 1; + if (has_word()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->word()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WordAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.WordAck) + GOOGLE_DCHECK_NE(&from, this); + const WordAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.WordAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.WordAck) + MergeFrom(*source); + } +} + +void WordAck::MergeFrom(const WordAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.WordAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_word()) { + set_has_word(); + word_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.word_); + } +} + +void WordAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.WordAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WordAck::CopyFrom(const WordAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.WordAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WordAck::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + return true; +} + +void WordAck::Swap(WordAck* other) { + if (other == this) return; + InternalSwap(other); +} +void WordAck::InternalSwap(WordAck* other) { + using std::swap; + word_.Swap(&other->word_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata WordAck::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SetU2FCounter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SetU2FCounter::kU2FCounterFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SetU2FCounter::SetU2FCounter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmanagement_2eproto::scc_info_SetU2FCounter.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.management.SetU2FCounter) +} +SetU2FCounter::SetU2FCounter(const SetU2FCounter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + u2f_counter_ = from.u2f_counter_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.management.SetU2FCounter) +} + +void SetU2FCounter::SharedCtor() { + u2f_counter_ = 0u; +} + +SetU2FCounter::~SetU2FCounter() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.management.SetU2FCounter) + SharedDtor(); +} + +void SetU2FCounter::SharedDtor() { +} + +void SetU2FCounter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* SetU2FCounter::descriptor() { + ::protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SetU2FCounter& SetU2FCounter::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmanagement_2eproto::scc_info_SetU2FCounter.base); + return *internal_default_instance(); +} + + +void SetU2FCounter::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.management.SetU2FCounter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + u2f_counter_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SetU2FCounter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.management.SetU2FCounter) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 u2f_counter = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_u2f_counter(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &u2f_counter_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.management.SetU2FCounter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.management.SetU2FCounter) + return false; +#undef DO_ +} + +void SetU2FCounter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.management.SetU2FCounter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 u2f_counter = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->u2f_counter(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.management.SetU2FCounter) +} + +::google::protobuf::uint8* SetU2FCounter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.management.SetU2FCounter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 u2f_counter = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->u2f_counter(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.management.SetU2FCounter) + return target; +} + +size_t SetU2FCounter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.management.SetU2FCounter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional uint32 u2f_counter = 1; + if (has_u2f_counter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->u2f_counter()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SetU2FCounter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.management.SetU2FCounter) + GOOGLE_DCHECK_NE(&from, this); + const SetU2FCounter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.management.SetU2FCounter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.management.SetU2FCounter) + MergeFrom(*source); + } +} + +void SetU2FCounter::MergeFrom(const SetU2FCounter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.management.SetU2FCounter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_u2f_counter()) { + set_u2f_counter(from.u2f_counter()); + } +} + +void SetU2FCounter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.management.SetU2FCounter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetU2FCounter::CopyFrom(const SetU2FCounter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.management.SetU2FCounter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetU2FCounter::IsInitialized() const { + return true; +} + +void SetU2FCounter::Swap(SetU2FCounter* other) { + if (other == this) return; + InternalSwap(other); +} +void SetU2FCounter::InternalSwap(SetU2FCounter* other) { + using std::swap; + swap(u2f_counter_, other->u2f_counter_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata SetU2FCounter::GetMetadata() const { + protobuf_messages_2dmanagement_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmanagement_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace management +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::Initialize* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::Initialize >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::Initialize >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::GetFeatures* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::GetFeatures >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::GetFeatures >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::Features* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::Features >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::Features >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::ClearSession* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::ClearSession >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::ClearSession >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::ApplySettings* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::ApplySettings >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::ApplySettings >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::ApplyFlags* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::ApplyFlags >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::ApplyFlags >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::ChangePin* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::ChangePin >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::ChangePin >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::Ping* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::Ping >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::Ping >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::Cancel* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::Cancel >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::Cancel >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::GetEntropy* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::GetEntropy >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::GetEntropy >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::Entropy* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::Entropy >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::Entropy >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::WipeDevice* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::WipeDevice >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::WipeDevice >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::LoadDevice* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::LoadDevice >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::LoadDevice >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::ResetDevice* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::ResetDevice >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::ResetDevice >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::BackupDevice* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::BackupDevice >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::BackupDevice >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::EntropyRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::EntropyRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::EntropyRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::EntropyAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::EntropyAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::EntropyAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::RecoveryDevice* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::RecoveryDevice >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::RecoveryDevice >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::WordRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::WordRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::WordRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::WordAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::WordAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::WordAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::management::SetU2FCounter* Arena::CreateMaybeMessage< ::hw::trezor::messages::management::SetU2FCounter >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::management::SetU2FCounter >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-management.pb.h b/src/Core/hardware/trezor/protob/messages-management.pb.h new file mode 100644 index 00000000..d7e89cf4 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-management.pb.h @@ -0,0 +1,6421 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-management.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dmanagement_2eproto +#define PROTOBUF_INCLUDED_messages_2dmanagement_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "messages-common.pb.h" +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmanagement_2eproto + +namespace protobuf_messages_2dmanagement_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[21]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dmanagement_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace management { +class ApplyFlags; +class ApplyFlagsDefaultTypeInternal; +extern ApplyFlagsDefaultTypeInternal _ApplyFlags_default_instance_; +class ApplySettings; +class ApplySettingsDefaultTypeInternal; +extern ApplySettingsDefaultTypeInternal _ApplySettings_default_instance_; +class BackupDevice; +class BackupDeviceDefaultTypeInternal; +extern BackupDeviceDefaultTypeInternal _BackupDevice_default_instance_; +class Cancel; +class CancelDefaultTypeInternal; +extern CancelDefaultTypeInternal _Cancel_default_instance_; +class ChangePin; +class ChangePinDefaultTypeInternal; +extern ChangePinDefaultTypeInternal _ChangePin_default_instance_; +class ClearSession; +class ClearSessionDefaultTypeInternal; +extern ClearSessionDefaultTypeInternal _ClearSession_default_instance_; +class Entropy; +class EntropyDefaultTypeInternal; +extern EntropyDefaultTypeInternal _Entropy_default_instance_; +class EntropyAck; +class EntropyAckDefaultTypeInternal; +extern EntropyAckDefaultTypeInternal _EntropyAck_default_instance_; +class EntropyRequest; +class EntropyRequestDefaultTypeInternal; +extern EntropyRequestDefaultTypeInternal _EntropyRequest_default_instance_; +class Features; +class FeaturesDefaultTypeInternal; +extern FeaturesDefaultTypeInternal _Features_default_instance_; +class GetEntropy; +class GetEntropyDefaultTypeInternal; +extern GetEntropyDefaultTypeInternal _GetEntropy_default_instance_; +class GetFeatures; +class GetFeaturesDefaultTypeInternal; +extern GetFeaturesDefaultTypeInternal _GetFeatures_default_instance_; +class Initialize; +class InitializeDefaultTypeInternal; +extern InitializeDefaultTypeInternal _Initialize_default_instance_; +class LoadDevice; +class LoadDeviceDefaultTypeInternal; +extern LoadDeviceDefaultTypeInternal _LoadDevice_default_instance_; +class Ping; +class PingDefaultTypeInternal; +extern PingDefaultTypeInternal _Ping_default_instance_; +class RecoveryDevice; +class RecoveryDeviceDefaultTypeInternal; +extern RecoveryDeviceDefaultTypeInternal _RecoveryDevice_default_instance_; +class ResetDevice; +class ResetDeviceDefaultTypeInternal; +extern ResetDeviceDefaultTypeInternal _ResetDevice_default_instance_; +class SetU2FCounter; +class SetU2FCounterDefaultTypeInternal; +extern SetU2FCounterDefaultTypeInternal _SetU2FCounter_default_instance_; +class WipeDevice; +class WipeDeviceDefaultTypeInternal; +extern WipeDeviceDefaultTypeInternal _WipeDevice_default_instance_; +class WordAck; +class WordAckDefaultTypeInternal; +extern WordAckDefaultTypeInternal _WordAck_default_instance_; +class WordRequest; +class WordRequestDefaultTypeInternal; +extern WordRequestDefaultTypeInternal _WordRequest_default_instance_; +} // namespace management +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::management::ApplyFlags* Arena::CreateMaybeMessage<::hw::trezor::messages::management::ApplyFlags>(Arena*); +template<> ::hw::trezor::messages::management::ApplySettings* Arena::CreateMaybeMessage<::hw::trezor::messages::management::ApplySettings>(Arena*); +template<> ::hw::trezor::messages::management::BackupDevice* Arena::CreateMaybeMessage<::hw::trezor::messages::management::BackupDevice>(Arena*); +template<> ::hw::trezor::messages::management::Cancel* Arena::CreateMaybeMessage<::hw::trezor::messages::management::Cancel>(Arena*); +template<> ::hw::trezor::messages::management::ChangePin* Arena::CreateMaybeMessage<::hw::trezor::messages::management::ChangePin>(Arena*); +template<> ::hw::trezor::messages::management::ClearSession* Arena::CreateMaybeMessage<::hw::trezor::messages::management::ClearSession>(Arena*); +template<> ::hw::trezor::messages::management::Entropy* Arena::CreateMaybeMessage<::hw::trezor::messages::management::Entropy>(Arena*); +template<> ::hw::trezor::messages::management::EntropyAck* Arena::CreateMaybeMessage<::hw::trezor::messages::management::EntropyAck>(Arena*); +template<> ::hw::trezor::messages::management::EntropyRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::management::EntropyRequest>(Arena*); +template<> ::hw::trezor::messages::management::Features* Arena::CreateMaybeMessage<::hw::trezor::messages::management::Features>(Arena*); +template<> ::hw::trezor::messages::management::GetEntropy* Arena::CreateMaybeMessage<::hw::trezor::messages::management::GetEntropy>(Arena*); +template<> ::hw::trezor::messages::management::GetFeatures* Arena::CreateMaybeMessage<::hw::trezor::messages::management::GetFeatures>(Arena*); +template<> ::hw::trezor::messages::management::Initialize* Arena::CreateMaybeMessage<::hw::trezor::messages::management::Initialize>(Arena*); +template<> ::hw::trezor::messages::management::LoadDevice* Arena::CreateMaybeMessage<::hw::trezor::messages::management::LoadDevice>(Arena*); +template<> ::hw::trezor::messages::management::Ping* Arena::CreateMaybeMessage<::hw::trezor::messages::management::Ping>(Arena*); +template<> ::hw::trezor::messages::management::RecoveryDevice* Arena::CreateMaybeMessage<::hw::trezor::messages::management::RecoveryDevice>(Arena*); +template<> ::hw::trezor::messages::management::ResetDevice* Arena::CreateMaybeMessage<::hw::trezor::messages::management::ResetDevice>(Arena*); +template<> ::hw::trezor::messages::management::SetU2FCounter* Arena::CreateMaybeMessage<::hw::trezor::messages::management::SetU2FCounter>(Arena*); +template<> ::hw::trezor::messages::management::WipeDevice* Arena::CreateMaybeMessage<::hw::trezor::messages::management::WipeDevice>(Arena*); +template<> ::hw::trezor::messages::management::WordAck* Arena::CreateMaybeMessage<::hw::trezor::messages::management::WordAck>(Arena*); +template<> ::hw::trezor::messages::management::WordRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::management::WordRequest>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace management { + +enum ApplySettings_PassphraseSourceType { + ApplySettings_PassphraseSourceType_ASK = 0, + ApplySettings_PassphraseSourceType_DEVICE = 1, + ApplySettings_PassphraseSourceType_HOST = 2 +}; +bool ApplySettings_PassphraseSourceType_IsValid(int value); +const ApplySettings_PassphraseSourceType ApplySettings_PassphraseSourceType_PassphraseSourceType_MIN = ApplySettings_PassphraseSourceType_ASK; +const ApplySettings_PassphraseSourceType ApplySettings_PassphraseSourceType_PassphraseSourceType_MAX = ApplySettings_PassphraseSourceType_HOST; +const int ApplySettings_PassphraseSourceType_PassphraseSourceType_ARRAYSIZE = ApplySettings_PassphraseSourceType_PassphraseSourceType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ApplySettings_PassphraseSourceType_descriptor(); +inline const ::std::string& ApplySettings_PassphraseSourceType_Name(ApplySettings_PassphraseSourceType value) { + return ::google::protobuf::internal::NameOfEnum( + ApplySettings_PassphraseSourceType_descriptor(), value); +} +inline bool ApplySettings_PassphraseSourceType_Parse( + const ::std::string& name, ApplySettings_PassphraseSourceType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ApplySettings_PassphraseSourceType_descriptor(), name, value); +} +enum RecoveryDevice_RecoveryDeviceType { + RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_ScrambledWords = 0, + RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_Matrix = 1 +}; +bool RecoveryDevice_RecoveryDeviceType_IsValid(int value); +const RecoveryDevice_RecoveryDeviceType RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_MIN = RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_ScrambledWords; +const RecoveryDevice_RecoveryDeviceType RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_MAX = RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_Matrix; +const int RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_ARRAYSIZE = RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* RecoveryDevice_RecoveryDeviceType_descriptor(); +inline const ::std::string& RecoveryDevice_RecoveryDeviceType_Name(RecoveryDevice_RecoveryDeviceType value) { + return ::google::protobuf::internal::NameOfEnum( + RecoveryDevice_RecoveryDeviceType_descriptor(), value); +} +inline bool RecoveryDevice_RecoveryDeviceType_Parse( + const ::std::string& name, RecoveryDevice_RecoveryDeviceType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + RecoveryDevice_RecoveryDeviceType_descriptor(), name, value); +} +enum WordRequest_WordRequestType { + WordRequest_WordRequestType_WordRequestType_Plain = 0, + WordRequest_WordRequestType_WordRequestType_Matrix9 = 1, + WordRequest_WordRequestType_WordRequestType_Matrix6 = 2 +}; +bool WordRequest_WordRequestType_IsValid(int value); +const WordRequest_WordRequestType WordRequest_WordRequestType_WordRequestType_MIN = WordRequest_WordRequestType_WordRequestType_Plain; +const WordRequest_WordRequestType WordRequest_WordRequestType_WordRequestType_MAX = WordRequest_WordRequestType_WordRequestType_Matrix6; +const int WordRequest_WordRequestType_WordRequestType_ARRAYSIZE = WordRequest_WordRequestType_WordRequestType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* WordRequest_WordRequestType_descriptor(); +inline const ::std::string& WordRequest_WordRequestType_Name(WordRequest_WordRequestType value) { + return ::google::protobuf::internal::NameOfEnum( + WordRequest_WordRequestType_descriptor(), value); +} +inline bool WordRequest_WordRequestType_Parse( + const ::std::string& name, WordRequest_WordRequestType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + WordRequest_WordRequestType_descriptor(), name, value); +} +// =================================================================== + +class Initialize : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.Initialize) */ { + public: + Initialize(); + virtual ~Initialize(); + + Initialize(const Initialize& from); + + inline Initialize& operator=(const Initialize& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Initialize(Initialize&& from) noexcept + : Initialize() { + *this = ::std::move(from); + } + + inline Initialize& operator=(Initialize&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Initialize& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Initialize* internal_default_instance() { + return reinterpret_cast( + &_Initialize_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Initialize* other); + friend void swap(Initialize& a, Initialize& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Initialize* New() const final { + return CreateMaybeMessage(NULL); + } + + Initialize* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Initialize& from); + void MergeFrom(const Initialize& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Initialize* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes state = 1; + bool has_state() const; + void clear_state(); + static const int kStateFieldNumber = 1; + const ::std::string& state() const; + void set_state(const ::std::string& value); + #if LANG_CXX11 + void set_state(::std::string&& value); + #endif + void set_state(const char* value); + void set_state(const void* value, size_t size); + ::std::string* mutable_state(); + ::std::string* release_state(); + void set_allocated_state(::std::string* state); + + // optional bool skip_passphrase = 2; + bool has_skip_passphrase() const; + void clear_skip_passphrase(); + static const int kSkipPassphraseFieldNumber = 2; + bool skip_passphrase() const; + void set_skip_passphrase(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.Initialize) + private: + void set_has_state(); + void clear_has_state(); + void set_has_skip_passphrase(); + void clear_has_skip_passphrase(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr state_; + bool skip_passphrase_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class GetFeatures : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.GetFeatures) */ { + public: + GetFeatures(); + virtual ~GetFeatures(); + + GetFeatures(const GetFeatures& from); + + inline GetFeatures& operator=(const GetFeatures& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetFeatures(GetFeatures&& from) noexcept + : GetFeatures() { + *this = ::std::move(from); + } + + inline GetFeatures& operator=(GetFeatures&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetFeatures& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetFeatures* internal_default_instance() { + return reinterpret_cast( + &_GetFeatures_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(GetFeatures* other); + friend void swap(GetFeatures& a, GetFeatures& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetFeatures* New() const final { + return CreateMaybeMessage(NULL); + } + + GetFeatures* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetFeatures& from); + void MergeFrom(const GetFeatures& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetFeatures* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.GetFeatures) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class Features : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.Features) */ { + public: + Features(); + virtual ~Features(); + + Features(const Features& from); + + inline Features& operator=(const Features& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Features(Features&& from) noexcept + : Features() { + *this = ::std::move(from); + } + + inline Features& operator=(Features&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Features& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Features* internal_default_instance() { + return reinterpret_cast( + &_Features_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(Features* other); + friend void swap(Features& a, Features& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Features* New() const final { + return CreateMaybeMessage(NULL); + } + + Features* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Features& from); + void MergeFrom(const Features& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Features* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string vendor = 1; + bool has_vendor() const; + void clear_vendor(); + static const int kVendorFieldNumber = 1; + const ::std::string& vendor() const; + void set_vendor(const ::std::string& value); + #if LANG_CXX11 + void set_vendor(::std::string&& value); + #endif + void set_vendor(const char* value); + void set_vendor(const char* value, size_t size); + ::std::string* mutable_vendor(); + ::std::string* release_vendor(); + void set_allocated_vendor(::std::string* vendor); + + // optional string device_id = 6; + bool has_device_id() const; + void clear_device_id(); + static const int kDeviceIdFieldNumber = 6; + const ::std::string& device_id() const; + void set_device_id(const ::std::string& value); + #if LANG_CXX11 + void set_device_id(::std::string&& value); + #endif + void set_device_id(const char* value); + void set_device_id(const char* value, size_t size); + ::std::string* mutable_device_id(); + ::std::string* release_device_id(); + void set_allocated_device_id(::std::string* device_id); + + // optional string language = 9; + bool has_language() const; + void clear_language(); + static const int kLanguageFieldNumber = 9; + const ::std::string& language() const; + void set_language(const ::std::string& value); + #if LANG_CXX11 + void set_language(::std::string&& value); + #endif + void set_language(const char* value); + void set_language(const char* value, size_t size); + ::std::string* mutable_language(); + ::std::string* release_language(); + void set_allocated_language(::std::string* language); + + // optional string label = 10; + bool has_label() const; + void clear_label(); + static const int kLabelFieldNumber = 10; + const ::std::string& label() const; + void set_label(const ::std::string& value); + #if LANG_CXX11 + void set_label(::std::string&& value); + #endif + void set_label(const char* value); + void set_label(const char* value, size_t size); + ::std::string* mutable_label(); + ::std::string* release_label(); + void set_allocated_label(::std::string* label); + + // optional bytes revision = 13; + bool has_revision() const; + void clear_revision(); + static const int kRevisionFieldNumber = 13; + const ::std::string& revision() const; + void set_revision(const ::std::string& value); + #if LANG_CXX11 + void set_revision(::std::string&& value); + #endif + void set_revision(const char* value); + void set_revision(const void* value, size_t size); + ::std::string* mutable_revision(); + ::std::string* release_revision(); + void set_allocated_revision(::std::string* revision); + + // optional bytes bootloader_hash = 14; + bool has_bootloader_hash() const; + void clear_bootloader_hash(); + static const int kBootloaderHashFieldNumber = 14; + const ::std::string& bootloader_hash() const; + void set_bootloader_hash(const ::std::string& value); + #if LANG_CXX11 + void set_bootloader_hash(::std::string&& value); + #endif + void set_bootloader_hash(const char* value); + void set_bootloader_hash(const void* value, size_t size); + ::std::string* mutable_bootloader_hash(); + ::std::string* release_bootloader_hash(); + void set_allocated_bootloader_hash(::std::string* bootloader_hash); + + // optional string model = 21; + bool has_model() const; + void clear_model(); + static const int kModelFieldNumber = 21; + const ::std::string& model() const; + void set_model(const ::std::string& value); + #if LANG_CXX11 + void set_model(::std::string&& value); + #endif + void set_model(const char* value); + void set_model(const char* value, size_t size); + ::std::string* mutable_model(); + ::std::string* release_model(); + void set_allocated_model(::std::string* model); + + // optional string fw_vendor = 25; + bool has_fw_vendor() const; + void clear_fw_vendor(); + static const int kFwVendorFieldNumber = 25; + const ::std::string& fw_vendor() const; + void set_fw_vendor(const ::std::string& value); + #if LANG_CXX11 + void set_fw_vendor(::std::string&& value); + #endif + void set_fw_vendor(const char* value); + void set_fw_vendor(const char* value, size_t size); + ::std::string* mutable_fw_vendor(); + ::std::string* release_fw_vendor(); + void set_allocated_fw_vendor(::std::string* fw_vendor); + + // optional bytes fw_vendor_keys = 26; + bool has_fw_vendor_keys() const; + void clear_fw_vendor_keys(); + static const int kFwVendorKeysFieldNumber = 26; + const ::std::string& fw_vendor_keys() const; + void set_fw_vendor_keys(const ::std::string& value); + #if LANG_CXX11 + void set_fw_vendor_keys(::std::string&& value); + #endif + void set_fw_vendor_keys(const char* value); + void set_fw_vendor_keys(const void* value, size_t size); + ::std::string* mutable_fw_vendor_keys(); + ::std::string* release_fw_vendor_keys(); + void set_allocated_fw_vendor_keys(::std::string* fw_vendor_keys); + + // optional uint32 major_version = 2; + bool has_major_version() const; + void clear_major_version(); + static const int kMajorVersionFieldNumber = 2; + ::google::protobuf::uint32 major_version() const; + void set_major_version(::google::protobuf::uint32 value); + + // optional uint32 minor_version = 3; + bool has_minor_version() const; + void clear_minor_version(); + static const int kMinorVersionFieldNumber = 3; + ::google::protobuf::uint32 minor_version() const; + void set_minor_version(::google::protobuf::uint32 value); + + // optional uint32 patch_version = 4; + bool has_patch_version() const; + void clear_patch_version(); + static const int kPatchVersionFieldNumber = 4; + ::google::protobuf::uint32 patch_version() const; + void set_patch_version(::google::protobuf::uint32 value); + + // optional bool bootloader_mode = 5; + bool has_bootloader_mode() const; + void clear_bootloader_mode(); + static const int kBootloaderModeFieldNumber = 5; + bool bootloader_mode() const; + void set_bootloader_mode(bool value); + + // optional bool pin_protection = 7; + bool has_pin_protection() const; + void clear_pin_protection(); + static const int kPinProtectionFieldNumber = 7; + bool pin_protection() const; + void set_pin_protection(bool value); + + // optional bool passphrase_protection = 8; + bool has_passphrase_protection() const; + void clear_passphrase_protection(); + static const int kPassphraseProtectionFieldNumber = 8; + bool passphrase_protection() const; + void set_passphrase_protection(bool value); + + // optional bool initialized = 12; + bool has_initialized() const; + void clear_initialized(); + static const int kInitializedFieldNumber = 12; + bool initialized() const; + void set_initialized(bool value); + + // optional bool imported = 15; + bool has_imported() const; + void clear_imported(); + static const int kImportedFieldNumber = 15; + bool imported() const; + void set_imported(bool value); + + // optional bool pin_cached = 16; + bool has_pin_cached() const; + void clear_pin_cached(); + static const int kPinCachedFieldNumber = 16; + bool pin_cached() const; + void set_pin_cached(bool value); + + // optional bool passphrase_cached = 17; + bool has_passphrase_cached() const; + void clear_passphrase_cached(); + static const int kPassphraseCachedFieldNumber = 17; + bool passphrase_cached() const; + void set_passphrase_cached(bool value); + + // optional bool firmware_present = 18; + bool has_firmware_present() const; + void clear_firmware_present(); + static const int kFirmwarePresentFieldNumber = 18; + bool firmware_present() const; + void set_firmware_present(bool value); + + // optional uint32 flags = 20; + bool has_flags() const; + void clear_flags(); + static const int kFlagsFieldNumber = 20; + ::google::protobuf::uint32 flags() const; + void set_flags(::google::protobuf::uint32 value); + + // optional uint32 fw_major = 22; + bool has_fw_major() const; + void clear_fw_major(); + static const int kFwMajorFieldNumber = 22; + ::google::protobuf::uint32 fw_major() const; + void set_fw_major(::google::protobuf::uint32 value); + + // optional uint32 fw_minor = 23; + bool has_fw_minor() const; + void clear_fw_minor(); + static const int kFwMinorFieldNumber = 23; + ::google::protobuf::uint32 fw_minor() const; + void set_fw_minor(::google::protobuf::uint32 value); + + // optional uint32 fw_patch = 24; + bool has_fw_patch() const; + void clear_fw_patch(); + static const int kFwPatchFieldNumber = 24; + ::google::protobuf::uint32 fw_patch() const; + void set_fw_patch(::google::protobuf::uint32 value); + + // optional bool needs_backup = 19; + bool has_needs_backup() const; + void clear_needs_backup(); + static const int kNeedsBackupFieldNumber = 19; + bool needs_backup() const; + void set_needs_backup(bool value); + + // optional bool unfinished_backup = 27; + bool has_unfinished_backup() const; + void clear_unfinished_backup(); + static const int kUnfinishedBackupFieldNumber = 27; + bool unfinished_backup() const; + void set_unfinished_backup(bool value); + + // optional bool no_backup = 28; + bool has_no_backup() const; + void clear_no_backup(); + static const int kNoBackupFieldNumber = 28; + bool no_backup() const; + void set_no_backup(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.Features) + private: + void set_has_vendor(); + void clear_has_vendor(); + void set_has_major_version(); + void clear_has_major_version(); + void set_has_minor_version(); + void clear_has_minor_version(); + void set_has_patch_version(); + void clear_has_patch_version(); + void set_has_bootloader_mode(); + void clear_has_bootloader_mode(); + void set_has_device_id(); + void clear_has_device_id(); + void set_has_pin_protection(); + void clear_has_pin_protection(); + void set_has_passphrase_protection(); + void clear_has_passphrase_protection(); + void set_has_language(); + void clear_has_language(); + void set_has_label(); + void clear_has_label(); + void set_has_initialized(); + void clear_has_initialized(); + void set_has_revision(); + void clear_has_revision(); + void set_has_bootloader_hash(); + void clear_has_bootloader_hash(); + void set_has_imported(); + void clear_has_imported(); + void set_has_pin_cached(); + void clear_has_pin_cached(); + void set_has_passphrase_cached(); + void clear_has_passphrase_cached(); + void set_has_firmware_present(); + void clear_has_firmware_present(); + void set_has_needs_backup(); + void clear_has_needs_backup(); + void set_has_flags(); + void clear_has_flags(); + void set_has_model(); + void clear_has_model(); + void set_has_fw_major(); + void clear_has_fw_major(); + void set_has_fw_minor(); + void clear_has_fw_minor(); + void set_has_fw_patch(); + void clear_has_fw_patch(); + void set_has_fw_vendor(); + void clear_has_fw_vendor(); + void set_has_fw_vendor_keys(); + void clear_has_fw_vendor_keys(); + void set_has_unfinished_backup(); + void clear_has_unfinished_backup(); + void set_has_no_backup(); + void clear_has_no_backup(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr vendor_; + ::google::protobuf::internal::ArenaStringPtr device_id_; + ::google::protobuf::internal::ArenaStringPtr language_; + ::google::protobuf::internal::ArenaStringPtr label_; + ::google::protobuf::internal::ArenaStringPtr revision_; + ::google::protobuf::internal::ArenaStringPtr bootloader_hash_; + ::google::protobuf::internal::ArenaStringPtr model_; + ::google::protobuf::internal::ArenaStringPtr fw_vendor_; + ::google::protobuf::internal::ArenaStringPtr fw_vendor_keys_; + ::google::protobuf::uint32 major_version_; + ::google::protobuf::uint32 minor_version_; + ::google::protobuf::uint32 patch_version_; + bool bootloader_mode_; + bool pin_protection_; + bool passphrase_protection_; + bool initialized_; + bool imported_; + bool pin_cached_; + bool passphrase_cached_; + bool firmware_present_; + ::google::protobuf::uint32 flags_; + ::google::protobuf::uint32 fw_major_; + ::google::protobuf::uint32 fw_minor_; + ::google::protobuf::uint32 fw_patch_; + bool needs_backup_; + bool unfinished_backup_; + bool no_backup_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class ClearSession : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.ClearSession) */ { + public: + ClearSession(); + virtual ~ClearSession(); + + ClearSession(const ClearSession& from); + + inline ClearSession& operator=(const ClearSession& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ClearSession(ClearSession&& from) noexcept + : ClearSession() { + *this = ::std::move(from); + } + + inline ClearSession& operator=(ClearSession&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ClearSession& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ClearSession* internal_default_instance() { + return reinterpret_cast( + &_ClearSession_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ClearSession* other); + friend void swap(ClearSession& a, ClearSession& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ClearSession* New() const final { + return CreateMaybeMessage(NULL); + } + + ClearSession* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ClearSession& from); + void MergeFrom(const ClearSession& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ClearSession* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.ClearSession) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class ApplySettings : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.ApplySettings) */ { + public: + ApplySettings(); + virtual ~ApplySettings(); + + ApplySettings(const ApplySettings& from); + + inline ApplySettings& operator=(const ApplySettings& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ApplySettings(ApplySettings&& from) noexcept + : ApplySettings() { + *this = ::std::move(from); + } + + inline ApplySettings& operator=(ApplySettings&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ApplySettings& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ApplySettings* internal_default_instance() { + return reinterpret_cast( + &_ApplySettings_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(ApplySettings* other); + friend void swap(ApplySettings& a, ApplySettings& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ApplySettings* New() const final { + return CreateMaybeMessage(NULL); + } + + ApplySettings* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ApplySettings& from); + void MergeFrom(const ApplySettings& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ApplySettings* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ApplySettings_PassphraseSourceType PassphraseSourceType; + static const PassphraseSourceType ASK = + ApplySettings_PassphraseSourceType_ASK; + static const PassphraseSourceType DEVICE = + ApplySettings_PassphraseSourceType_DEVICE; + static const PassphraseSourceType HOST = + ApplySettings_PassphraseSourceType_HOST; + static inline bool PassphraseSourceType_IsValid(int value) { + return ApplySettings_PassphraseSourceType_IsValid(value); + } + static const PassphraseSourceType PassphraseSourceType_MIN = + ApplySettings_PassphraseSourceType_PassphraseSourceType_MIN; + static const PassphraseSourceType PassphraseSourceType_MAX = + ApplySettings_PassphraseSourceType_PassphraseSourceType_MAX; + static const int PassphraseSourceType_ARRAYSIZE = + ApplySettings_PassphraseSourceType_PassphraseSourceType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + PassphraseSourceType_descriptor() { + return ApplySettings_PassphraseSourceType_descriptor(); + } + static inline const ::std::string& PassphraseSourceType_Name(PassphraseSourceType value) { + return ApplySettings_PassphraseSourceType_Name(value); + } + static inline bool PassphraseSourceType_Parse(const ::std::string& name, + PassphraseSourceType* value) { + return ApplySettings_PassphraseSourceType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional string language = 1; + bool has_language() const; + void clear_language(); + static const int kLanguageFieldNumber = 1; + const ::std::string& language() const; + void set_language(const ::std::string& value); + #if LANG_CXX11 + void set_language(::std::string&& value); + #endif + void set_language(const char* value); + void set_language(const char* value, size_t size); + ::std::string* mutable_language(); + ::std::string* release_language(); + void set_allocated_language(::std::string* language); + + // optional string label = 2; + bool has_label() const; + void clear_label(); + static const int kLabelFieldNumber = 2; + const ::std::string& label() const; + void set_label(const ::std::string& value); + #if LANG_CXX11 + void set_label(::std::string&& value); + #endif + void set_label(const char* value); + void set_label(const char* value, size_t size); + ::std::string* mutable_label(); + ::std::string* release_label(); + void set_allocated_label(::std::string* label); + + // optional bytes homescreen = 4; + bool has_homescreen() const; + void clear_homescreen(); + static const int kHomescreenFieldNumber = 4; + const ::std::string& homescreen() const; + void set_homescreen(const ::std::string& value); + #if LANG_CXX11 + void set_homescreen(::std::string&& value); + #endif + void set_homescreen(const char* value); + void set_homescreen(const void* value, size_t size); + ::std::string* mutable_homescreen(); + ::std::string* release_homescreen(); + void set_allocated_homescreen(::std::string* homescreen); + + // optional bool use_passphrase = 3; + bool has_use_passphrase() const; + void clear_use_passphrase(); + static const int kUsePassphraseFieldNumber = 3; + bool use_passphrase() const; + void set_use_passphrase(bool value); + + // optional .hw.trezor.messages.management.ApplySettings.PassphraseSourceType passphrase_source = 5; + bool has_passphrase_source() const; + void clear_passphrase_source(); + static const int kPassphraseSourceFieldNumber = 5; + ::hw::trezor::messages::management::ApplySettings_PassphraseSourceType passphrase_source() const; + void set_passphrase_source(::hw::trezor::messages::management::ApplySettings_PassphraseSourceType value); + + // optional uint32 auto_lock_delay_ms = 6; + bool has_auto_lock_delay_ms() const; + void clear_auto_lock_delay_ms(); + static const int kAutoLockDelayMsFieldNumber = 6; + ::google::protobuf::uint32 auto_lock_delay_ms() const; + void set_auto_lock_delay_ms(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.ApplySettings) + private: + void set_has_language(); + void clear_has_language(); + void set_has_label(); + void clear_has_label(); + void set_has_use_passphrase(); + void clear_has_use_passphrase(); + void set_has_homescreen(); + void clear_has_homescreen(); + void set_has_passphrase_source(); + void clear_has_passphrase_source(); + void set_has_auto_lock_delay_ms(); + void clear_has_auto_lock_delay_ms(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr language_; + ::google::protobuf::internal::ArenaStringPtr label_; + ::google::protobuf::internal::ArenaStringPtr homescreen_; + bool use_passphrase_; + int passphrase_source_; + ::google::protobuf::uint32 auto_lock_delay_ms_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class ApplyFlags : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.ApplyFlags) */ { + public: + ApplyFlags(); + virtual ~ApplyFlags(); + + ApplyFlags(const ApplyFlags& from); + + inline ApplyFlags& operator=(const ApplyFlags& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ApplyFlags(ApplyFlags&& from) noexcept + : ApplyFlags() { + *this = ::std::move(from); + } + + inline ApplyFlags& operator=(ApplyFlags&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ApplyFlags& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ApplyFlags* internal_default_instance() { + return reinterpret_cast( + &_ApplyFlags_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(ApplyFlags* other); + friend void swap(ApplyFlags& a, ApplyFlags& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ApplyFlags* New() const final { + return CreateMaybeMessage(NULL); + } + + ApplyFlags* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ApplyFlags& from); + void MergeFrom(const ApplyFlags& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ApplyFlags* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 flags = 1; + bool has_flags() const; + void clear_flags(); + static const int kFlagsFieldNumber = 1; + ::google::protobuf::uint32 flags() const; + void set_flags(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.ApplyFlags) + private: + void set_has_flags(); + void clear_has_flags(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 flags_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class ChangePin : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.ChangePin) */ { + public: + ChangePin(); + virtual ~ChangePin(); + + ChangePin(const ChangePin& from); + + inline ChangePin& operator=(const ChangePin& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ChangePin(ChangePin&& from) noexcept + : ChangePin() { + *this = ::std::move(from); + } + + inline ChangePin& operator=(ChangePin&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ChangePin& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ChangePin* internal_default_instance() { + return reinterpret_cast( + &_ChangePin_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(ChangePin* other); + friend void swap(ChangePin& a, ChangePin& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ChangePin* New() const final { + return CreateMaybeMessage(NULL); + } + + ChangePin* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ChangePin& from); + void MergeFrom(const ChangePin& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ChangePin* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool remove = 1; + bool has_remove() const; + void clear_remove(); + static const int kRemoveFieldNumber = 1; + bool remove() const; + void set_remove(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.ChangePin) + private: + void set_has_remove(); + void clear_has_remove(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + bool remove_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class Ping : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.Ping) */ { + public: + Ping(); + virtual ~Ping(); + + Ping(const Ping& from); + + inline Ping& operator=(const Ping& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Ping(Ping&& from) noexcept + : Ping() { + *this = ::std::move(from); + } + + inline Ping& operator=(Ping&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Ping& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Ping* internal_default_instance() { + return reinterpret_cast( + &_Ping_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(Ping* other); + friend void swap(Ping& a, Ping& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Ping* New() const final { + return CreateMaybeMessage(NULL); + } + + Ping* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Ping& from); + void MergeFrom(const Ping& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Ping* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string message = 1; + bool has_message() const; + void clear_message(); + static const int kMessageFieldNumber = 1; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const char* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // optional bool button_protection = 2; + bool has_button_protection() const; + void clear_button_protection(); + static const int kButtonProtectionFieldNumber = 2; + bool button_protection() const; + void set_button_protection(bool value); + + // optional bool pin_protection = 3; + bool has_pin_protection() const; + void clear_pin_protection(); + static const int kPinProtectionFieldNumber = 3; + bool pin_protection() const; + void set_pin_protection(bool value); + + // optional bool passphrase_protection = 4; + bool has_passphrase_protection() const; + void clear_passphrase_protection(); + static const int kPassphraseProtectionFieldNumber = 4; + bool passphrase_protection() const; + void set_passphrase_protection(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.Ping) + private: + void set_has_message(); + void clear_has_message(); + void set_has_button_protection(); + void clear_has_button_protection(); + void set_has_pin_protection(); + void clear_has_pin_protection(); + void set_has_passphrase_protection(); + void clear_has_passphrase_protection(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr message_; + bool button_protection_; + bool pin_protection_; + bool passphrase_protection_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class Cancel : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.Cancel) */ { + public: + Cancel(); + virtual ~Cancel(); + + Cancel(const Cancel& from); + + inline Cancel& operator=(const Cancel& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Cancel(Cancel&& from) noexcept + : Cancel() { + *this = ::std::move(from); + } + + inline Cancel& operator=(Cancel&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Cancel& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Cancel* internal_default_instance() { + return reinterpret_cast( + &_Cancel_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(Cancel* other); + friend void swap(Cancel& a, Cancel& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Cancel* New() const final { + return CreateMaybeMessage(NULL); + } + + Cancel* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Cancel& from); + void MergeFrom(const Cancel& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Cancel* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.Cancel) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class GetEntropy : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.GetEntropy) */ { + public: + GetEntropy(); + virtual ~GetEntropy(); + + GetEntropy(const GetEntropy& from); + + inline GetEntropy& operator=(const GetEntropy& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetEntropy(GetEntropy&& from) noexcept + : GetEntropy() { + *this = ::std::move(from); + } + + inline GetEntropy& operator=(GetEntropy&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetEntropy& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetEntropy* internal_default_instance() { + return reinterpret_cast( + &_GetEntropy_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(GetEntropy* other); + friend void swap(GetEntropy& a, GetEntropy& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetEntropy* New() const final { + return CreateMaybeMessage(NULL); + } + + GetEntropy* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetEntropy& from); + void MergeFrom(const GetEntropy& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetEntropy* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 size = 1; + bool has_size() const; + void clear_size(); + static const int kSizeFieldNumber = 1; + ::google::protobuf::uint32 size() const; + void set_size(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.GetEntropy) + private: + void set_has_size(); + void clear_has_size(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 size_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class Entropy : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.Entropy) */ { + public: + Entropy(); + virtual ~Entropy(); + + Entropy(const Entropy& from); + + inline Entropy& operator=(const Entropy& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Entropy(Entropy&& from) noexcept + : Entropy() { + *this = ::std::move(from); + } + + inline Entropy& operator=(Entropy&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Entropy& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Entropy* internal_default_instance() { + return reinterpret_cast( + &_Entropy_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(Entropy* other); + friend void swap(Entropy& a, Entropy& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Entropy* New() const final { + return CreateMaybeMessage(NULL); + } + + Entropy* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Entropy& from); + void MergeFrom(const Entropy& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Entropy* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes entropy = 1; + bool has_entropy() const; + void clear_entropy(); + static const int kEntropyFieldNumber = 1; + const ::std::string& entropy() const; + void set_entropy(const ::std::string& value); + #if LANG_CXX11 + void set_entropy(::std::string&& value); + #endif + void set_entropy(const char* value); + void set_entropy(const void* value, size_t size); + ::std::string* mutable_entropy(); + ::std::string* release_entropy(); + void set_allocated_entropy(::std::string* entropy); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.Entropy) + private: + void set_has_entropy(); + void clear_has_entropy(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr entropy_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class WipeDevice : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.WipeDevice) */ { + public: + WipeDevice(); + virtual ~WipeDevice(); + + WipeDevice(const WipeDevice& from); + + inline WipeDevice& operator=(const WipeDevice& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WipeDevice(WipeDevice&& from) noexcept + : WipeDevice() { + *this = ::std::move(from); + } + + inline WipeDevice& operator=(WipeDevice&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WipeDevice& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WipeDevice* internal_default_instance() { + return reinterpret_cast( + &_WipeDevice_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(WipeDevice* other); + friend void swap(WipeDevice& a, WipeDevice& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WipeDevice* New() const final { + return CreateMaybeMessage(NULL); + } + + WipeDevice* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WipeDevice& from); + void MergeFrom(const WipeDevice& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WipeDevice* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.WipeDevice) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class LoadDevice : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.LoadDevice) */ { + public: + LoadDevice(); + virtual ~LoadDevice(); + + LoadDevice(const LoadDevice& from); + + inline LoadDevice& operator=(const LoadDevice& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LoadDevice(LoadDevice&& from) noexcept + : LoadDevice() { + *this = ::std::move(from); + } + + inline LoadDevice& operator=(LoadDevice&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LoadDevice& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LoadDevice* internal_default_instance() { + return reinterpret_cast( + &_LoadDevice_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(LoadDevice* other); + friend void swap(LoadDevice& a, LoadDevice& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LoadDevice* New() const final { + return CreateMaybeMessage(NULL); + } + + LoadDevice* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LoadDevice& from); + void MergeFrom(const LoadDevice& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LoadDevice* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string mnemonic = 1; + bool has_mnemonic() const; + void clear_mnemonic(); + static const int kMnemonicFieldNumber = 1; + const ::std::string& mnemonic() const; + void set_mnemonic(const ::std::string& value); + #if LANG_CXX11 + void set_mnemonic(::std::string&& value); + #endif + void set_mnemonic(const char* value); + void set_mnemonic(const char* value, size_t size); + ::std::string* mutable_mnemonic(); + ::std::string* release_mnemonic(); + void set_allocated_mnemonic(::std::string* mnemonic); + + // optional string pin = 3; + bool has_pin() const; + void clear_pin(); + static const int kPinFieldNumber = 3; + const ::std::string& pin() const; + void set_pin(const ::std::string& value); + #if LANG_CXX11 + void set_pin(::std::string&& value); + #endif + void set_pin(const char* value); + void set_pin(const char* value, size_t size); + ::std::string* mutable_pin(); + ::std::string* release_pin(); + void set_allocated_pin(::std::string* pin); + + // optional string language = 5 [default = "english"]; + bool has_language() const; + void clear_language(); + static const int kLanguageFieldNumber = 5; + const ::std::string& language() const; + void set_language(const ::std::string& value); + #if LANG_CXX11 + void set_language(::std::string&& value); + #endif + void set_language(const char* value); + void set_language(const char* value, size_t size); + ::std::string* mutable_language(); + ::std::string* release_language(); + void set_allocated_language(::std::string* language); + + // optional string label = 6; + bool has_label() const; + void clear_label(); + static const int kLabelFieldNumber = 6; + const ::std::string& label() const; + void set_label(const ::std::string& value); + #if LANG_CXX11 + void set_label(::std::string&& value); + #endif + void set_label(const char* value); + void set_label(const char* value, size_t size); + ::std::string* mutable_label(); + ::std::string* release_label(); + void set_allocated_label(::std::string* label); + + // optional .hw.trezor.messages.common.HDNodeType node = 2; + bool has_node() const; + void clear_node(); + static const int kNodeFieldNumber = 2; + private: + const ::hw::trezor::messages::common::HDNodeType& _internal_node() const; + public: + const ::hw::trezor::messages::common::HDNodeType& node() const; + ::hw::trezor::messages::common::HDNodeType* release_node(); + ::hw::trezor::messages::common::HDNodeType* mutable_node(); + void set_allocated_node(::hw::trezor::messages::common::HDNodeType* node); + + // optional bool passphrase_protection = 4; + bool has_passphrase_protection() const; + void clear_passphrase_protection(); + static const int kPassphraseProtectionFieldNumber = 4; + bool passphrase_protection() const; + void set_passphrase_protection(bool value); + + // optional bool skip_checksum = 7; + bool has_skip_checksum() const; + void clear_skip_checksum(); + static const int kSkipChecksumFieldNumber = 7; + bool skip_checksum() const; + void set_skip_checksum(bool value); + + // optional uint32 u2f_counter = 8; + bool has_u2f_counter() const; + void clear_u2f_counter(); + static const int kU2FCounterFieldNumber = 8; + ::google::protobuf::uint32 u2f_counter() const; + void set_u2f_counter(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.LoadDevice) + private: + void set_has_mnemonic(); + void clear_has_mnemonic(); + void set_has_node(); + void clear_has_node(); + void set_has_pin(); + void clear_has_pin(); + void set_has_passphrase_protection(); + void clear_has_passphrase_protection(); + void set_has_language(); + void clear_has_language(); + void set_has_label(); + void clear_has_label(); + void set_has_skip_checksum(); + void clear_has_skip_checksum(); + void set_has_u2f_counter(); + void clear_has_u2f_counter(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr mnemonic_; + ::google::protobuf::internal::ArenaStringPtr pin_; + public: + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_language_; + private: + ::google::protobuf::internal::ArenaStringPtr language_; + ::google::protobuf::internal::ArenaStringPtr label_; + ::hw::trezor::messages::common::HDNodeType* node_; + bool passphrase_protection_; + bool skip_checksum_; + ::google::protobuf::uint32 u2f_counter_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class ResetDevice : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.ResetDevice) */ { + public: + ResetDevice(); + virtual ~ResetDevice(); + + ResetDevice(const ResetDevice& from); + + inline ResetDevice& operator=(const ResetDevice& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ResetDevice(ResetDevice&& from) noexcept + : ResetDevice() { + *this = ::std::move(from); + } + + inline ResetDevice& operator=(ResetDevice&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ResetDevice& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ResetDevice* internal_default_instance() { + return reinterpret_cast( + &_ResetDevice_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(ResetDevice* other); + friend void swap(ResetDevice& a, ResetDevice& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ResetDevice* New() const final { + return CreateMaybeMessage(NULL); + } + + ResetDevice* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ResetDevice& from); + void MergeFrom(const ResetDevice& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResetDevice* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string language = 5 [default = "english"]; + bool has_language() const; + void clear_language(); + static const int kLanguageFieldNumber = 5; + const ::std::string& language() const; + void set_language(const ::std::string& value); + #if LANG_CXX11 + void set_language(::std::string&& value); + #endif + void set_language(const char* value); + void set_language(const char* value, size_t size); + ::std::string* mutable_language(); + ::std::string* release_language(); + void set_allocated_language(::std::string* language); + + // optional string label = 6; + bool has_label() const; + void clear_label(); + static const int kLabelFieldNumber = 6; + const ::std::string& label() const; + void set_label(const ::std::string& value); + #if LANG_CXX11 + void set_label(::std::string&& value); + #endif + void set_label(const char* value); + void set_label(const char* value, size_t size); + ::std::string* mutable_label(); + ::std::string* release_label(); + void set_allocated_label(::std::string* label); + + // optional bool display_random = 1; + bool has_display_random() const; + void clear_display_random(); + static const int kDisplayRandomFieldNumber = 1; + bool display_random() const; + void set_display_random(bool value); + + // optional bool passphrase_protection = 3; + bool has_passphrase_protection() const; + void clear_passphrase_protection(); + static const int kPassphraseProtectionFieldNumber = 3; + bool passphrase_protection() const; + void set_passphrase_protection(bool value); + + // optional bool pin_protection = 4; + bool has_pin_protection() const; + void clear_pin_protection(); + static const int kPinProtectionFieldNumber = 4; + bool pin_protection() const; + void set_pin_protection(bool value); + + // optional bool skip_backup = 8; + bool has_skip_backup() const; + void clear_skip_backup(); + static const int kSkipBackupFieldNumber = 8; + bool skip_backup() const; + void set_skip_backup(bool value); + + // optional uint32 u2f_counter = 7; + bool has_u2f_counter() const; + void clear_u2f_counter(); + static const int kU2FCounterFieldNumber = 7; + ::google::protobuf::uint32 u2f_counter() const; + void set_u2f_counter(::google::protobuf::uint32 value); + + // optional bool no_backup = 9; + bool has_no_backup() const; + void clear_no_backup(); + static const int kNoBackupFieldNumber = 9; + bool no_backup() const; + void set_no_backup(bool value); + + // optional uint32 strength = 2 [default = 256]; + bool has_strength() const; + void clear_strength(); + static const int kStrengthFieldNumber = 2; + ::google::protobuf::uint32 strength() const; + void set_strength(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.ResetDevice) + private: + void set_has_display_random(); + void clear_has_display_random(); + void set_has_strength(); + void clear_has_strength(); + void set_has_passphrase_protection(); + void clear_has_passphrase_protection(); + void set_has_pin_protection(); + void clear_has_pin_protection(); + void set_has_language(); + void clear_has_language(); + void set_has_label(); + void clear_has_label(); + void set_has_u2f_counter(); + void clear_has_u2f_counter(); + void set_has_skip_backup(); + void clear_has_skip_backup(); + void set_has_no_backup(); + void clear_has_no_backup(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + public: + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_language_; + private: + ::google::protobuf::internal::ArenaStringPtr language_; + ::google::protobuf::internal::ArenaStringPtr label_; + bool display_random_; + bool passphrase_protection_; + bool pin_protection_; + bool skip_backup_; + ::google::protobuf::uint32 u2f_counter_; + bool no_backup_; + ::google::protobuf::uint32 strength_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BackupDevice : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.BackupDevice) */ { + public: + BackupDevice(); + virtual ~BackupDevice(); + + BackupDevice(const BackupDevice& from); + + inline BackupDevice& operator=(const BackupDevice& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BackupDevice(BackupDevice&& from) noexcept + : BackupDevice() { + *this = ::std::move(from); + } + + inline BackupDevice& operator=(BackupDevice&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BackupDevice& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BackupDevice* internal_default_instance() { + return reinterpret_cast( + &_BackupDevice_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(BackupDevice* other); + friend void swap(BackupDevice& a, BackupDevice& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BackupDevice* New() const final { + return CreateMaybeMessage(NULL); + } + + BackupDevice* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BackupDevice& from); + void MergeFrom(const BackupDevice& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BackupDevice* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.BackupDevice) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EntropyRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.EntropyRequest) */ { + public: + EntropyRequest(); + virtual ~EntropyRequest(); + + EntropyRequest(const EntropyRequest& from); + + inline EntropyRequest& operator=(const EntropyRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EntropyRequest(EntropyRequest&& from) noexcept + : EntropyRequest() { + *this = ::std::move(from); + } + + inline EntropyRequest& operator=(EntropyRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EntropyRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EntropyRequest* internal_default_instance() { + return reinterpret_cast( + &_EntropyRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(EntropyRequest* other); + friend void swap(EntropyRequest& a, EntropyRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EntropyRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + EntropyRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EntropyRequest& from); + void MergeFrom(const EntropyRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EntropyRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.EntropyRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class EntropyAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.EntropyAck) */ { + public: + EntropyAck(); + virtual ~EntropyAck(); + + EntropyAck(const EntropyAck& from); + + inline EntropyAck& operator=(const EntropyAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EntropyAck(EntropyAck&& from) noexcept + : EntropyAck() { + *this = ::std::move(from); + } + + inline EntropyAck& operator=(EntropyAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EntropyAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EntropyAck* internal_default_instance() { + return reinterpret_cast( + &_EntropyAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(EntropyAck* other); + friend void swap(EntropyAck& a, EntropyAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EntropyAck* New() const final { + return CreateMaybeMessage(NULL); + } + + EntropyAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EntropyAck& from); + void MergeFrom(const EntropyAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EntropyAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes entropy = 1; + bool has_entropy() const; + void clear_entropy(); + static const int kEntropyFieldNumber = 1; + const ::std::string& entropy() const; + void set_entropy(const ::std::string& value); + #if LANG_CXX11 + void set_entropy(::std::string&& value); + #endif + void set_entropy(const char* value); + void set_entropy(const void* value, size_t size); + ::std::string* mutable_entropy(); + ::std::string* release_entropy(); + void set_allocated_entropy(::std::string* entropy); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.EntropyAck) + private: + void set_has_entropy(); + void clear_has_entropy(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr entropy_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class RecoveryDevice : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.RecoveryDevice) */ { + public: + RecoveryDevice(); + virtual ~RecoveryDevice(); + + RecoveryDevice(const RecoveryDevice& from); + + inline RecoveryDevice& operator=(const RecoveryDevice& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RecoveryDevice(RecoveryDevice&& from) noexcept + : RecoveryDevice() { + *this = ::std::move(from); + } + + inline RecoveryDevice& operator=(RecoveryDevice&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RecoveryDevice& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RecoveryDevice* internal_default_instance() { + return reinterpret_cast( + &_RecoveryDevice_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(RecoveryDevice* other); + friend void swap(RecoveryDevice& a, RecoveryDevice& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RecoveryDevice* New() const final { + return CreateMaybeMessage(NULL); + } + + RecoveryDevice* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RecoveryDevice& from); + void MergeFrom(const RecoveryDevice& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RecoveryDevice* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef RecoveryDevice_RecoveryDeviceType RecoveryDeviceType; + static const RecoveryDeviceType RecoveryDeviceType_ScrambledWords = + RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_ScrambledWords; + static const RecoveryDeviceType RecoveryDeviceType_Matrix = + RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_Matrix; + static inline bool RecoveryDeviceType_IsValid(int value) { + return RecoveryDevice_RecoveryDeviceType_IsValid(value); + } + static const RecoveryDeviceType RecoveryDeviceType_MIN = + RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_MIN; + static const RecoveryDeviceType RecoveryDeviceType_MAX = + RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_MAX; + static const int RecoveryDeviceType_ARRAYSIZE = + RecoveryDevice_RecoveryDeviceType_RecoveryDeviceType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RecoveryDeviceType_descriptor() { + return RecoveryDevice_RecoveryDeviceType_descriptor(); + } + static inline const ::std::string& RecoveryDeviceType_Name(RecoveryDeviceType value) { + return RecoveryDevice_RecoveryDeviceType_Name(value); + } + static inline bool RecoveryDeviceType_Parse(const ::std::string& name, + RecoveryDeviceType* value) { + return RecoveryDevice_RecoveryDeviceType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional string language = 4 [default = "english"]; + bool has_language() const; + void clear_language(); + static const int kLanguageFieldNumber = 4; + const ::std::string& language() const; + void set_language(const ::std::string& value); + #if LANG_CXX11 + void set_language(::std::string&& value); + #endif + void set_language(const char* value); + void set_language(const char* value, size_t size); + ::std::string* mutable_language(); + ::std::string* release_language(); + void set_allocated_language(::std::string* language); + + // optional string label = 5; + bool has_label() const; + void clear_label(); + static const int kLabelFieldNumber = 5; + const ::std::string& label() const; + void set_label(const ::std::string& value); + #if LANG_CXX11 + void set_label(::std::string&& value); + #endif + void set_label(const char* value); + void set_label(const char* value, size_t size); + ::std::string* mutable_label(); + ::std::string* release_label(); + void set_allocated_label(::std::string* label); + + // optional uint32 word_count = 1; + bool has_word_count() const; + void clear_word_count(); + static const int kWordCountFieldNumber = 1; + ::google::protobuf::uint32 word_count() const; + void set_word_count(::google::protobuf::uint32 value); + + // optional bool passphrase_protection = 2; + bool has_passphrase_protection() const; + void clear_passphrase_protection(); + static const int kPassphraseProtectionFieldNumber = 2; + bool passphrase_protection() const; + void set_passphrase_protection(bool value); + + // optional bool pin_protection = 3; + bool has_pin_protection() const; + void clear_pin_protection(); + static const int kPinProtectionFieldNumber = 3; + bool pin_protection() const; + void set_pin_protection(bool value); + + // optional bool enforce_wordlist = 6; + bool has_enforce_wordlist() const; + void clear_enforce_wordlist(); + static const int kEnforceWordlistFieldNumber = 6; + bool enforce_wordlist() const; + void set_enforce_wordlist(bool value); + + // optional bool dry_run = 10; + bool has_dry_run() const; + void clear_dry_run(); + static const int kDryRunFieldNumber = 10; + bool dry_run() const; + void set_dry_run(bool value); + + // optional .hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceType type = 8; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 8; + ::hw::trezor::messages::management::RecoveryDevice_RecoveryDeviceType type() const; + void set_type(::hw::trezor::messages::management::RecoveryDevice_RecoveryDeviceType value); + + // optional uint32 u2f_counter = 9; + bool has_u2f_counter() const; + void clear_u2f_counter(); + static const int kU2FCounterFieldNumber = 9; + ::google::protobuf::uint32 u2f_counter() const; + void set_u2f_counter(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.RecoveryDevice) + private: + void set_has_word_count(); + void clear_has_word_count(); + void set_has_passphrase_protection(); + void clear_has_passphrase_protection(); + void set_has_pin_protection(); + void clear_has_pin_protection(); + void set_has_language(); + void clear_has_language(); + void set_has_label(); + void clear_has_label(); + void set_has_enforce_wordlist(); + void clear_has_enforce_wordlist(); + void set_has_type(); + void clear_has_type(); + void set_has_u2f_counter(); + void clear_has_u2f_counter(); + void set_has_dry_run(); + void clear_has_dry_run(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + public: + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_language_; + private: + ::google::protobuf::internal::ArenaStringPtr language_; + ::google::protobuf::internal::ArenaStringPtr label_; + ::google::protobuf::uint32 word_count_; + bool passphrase_protection_; + bool pin_protection_; + bool enforce_wordlist_; + bool dry_run_; + int type_; + ::google::protobuf::uint32 u2f_counter_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class WordRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.WordRequest) */ { + public: + WordRequest(); + virtual ~WordRequest(); + + WordRequest(const WordRequest& from); + + inline WordRequest& operator=(const WordRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WordRequest(WordRequest&& from) noexcept + : WordRequest() { + *this = ::std::move(from); + } + + inline WordRequest& operator=(WordRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WordRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WordRequest* internal_default_instance() { + return reinterpret_cast( + &_WordRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + void Swap(WordRequest* other); + friend void swap(WordRequest& a, WordRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WordRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + WordRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WordRequest& from); + void MergeFrom(const WordRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WordRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef WordRequest_WordRequestType WordRequestType; + static const WordRequestType WordRequestType_Plain = + WordRequest_WordRequestType_WordRequestType_Plain; + static const WordRequestType WordRequestType_Matrix9 = + WordRequest_WordRequestType_WordRequestType_Matrix9; + static const WordRequestType WordRequestType_Matrix6 = + WordRequest_WordRequestType_WordRequestType_Matrix6; + static inline bool WordRequestType_IsValid(int value) { + return WordRequest_WordRequestType_IsValid(value); + } + static const WordRequestType WordRequestType_MIN = + WordRequest_WordRequestType_WordRequestType_MIN; + static const WordRequestType WordRequestType_MAX = + WordRequest_WordRequestType_WordRequestType_MAX; + static const int WordRequestType_ARRAYSIZE = + WordRequest_WordRequestType_WordRequestType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + WordRequestType_descriptor() { + return WordRequest_WordRequestType_descriptor(); + } + static inline const ::std::string& WordRequestType_Name(WordRequestType value) { + return WordRequest_WordRequestType_Name(value); + } + static inline bool WordRequestType_Parse(const ::std::string& name, + WordRequestType* value) { + return WordRequest_WordRequestType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.management.WordRequest.WordRequestType type = 1; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 1; + ::hw::trezor::messages::management::WordRequest_WordRequestType type() const; + void set_type(::hw::trezor::messages::management::WordRequest_WordRequestType value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.WordRequest) + private: + void set_has_type(); + void clear_has_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + int type_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class WordAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.WordAck) */ { + public: + WordAck(); + virtual ~WordAck(); + + WordAck(const WordAck& from); + + inline WordAck& operator=(const WordAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WordAck(WordAck&& from) noexcept + : WordAck() { + *this = ::std::move(from); + } + + inline WordAck& operator=(WordAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WordAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WordAck* internal_default_instance() { + return reinterpret_cast( + &_WordAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + void Swap(WordAck* other); + friend void swap(WordAck& a, WordAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WordAck* New() const final { + return CreateMaybeMessage(NULL); + } + + WordAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WordAck& from); + void MergeFrom(const WordAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WordAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string word = 1; + bool has_word() const; + void clear_word(); + static const int kWordFieldNumber = 1; + const ::std::string& word() const; + void set_word(const ::std::string& value); + #if LANG_CXX11 + void set_word(::std::string&& value); + #endif + void set_word(const char* value); + void set_word(const char* value, size_t size); + ::std::string* mutable_word(); + ::std::string* release_word(); + void set_allocated_word(::std::string* word); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.WordAck) + private: + void set_has_word(); + void clear_has_word(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr word_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class SetU2FCounter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.management.SetU2FCounter) */ { + public: + SetU2FCounter(); + virtual ~SetU2FCounter(); + + SetU2FCounter(const SetU2FCounter& from); + + inline SetU2FCounter& operator=(const SetU2FCounter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SetU2FCounter(SetU2FCounter&& from) noexcept + : SetU2FCounter() { + *this = ::std::move(from); + } + + inline SetU2FCounter& operator=(SetU2FCounter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SetU2FCounter& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SetU2FCounter* internal_default_instance() { + return reinterpret_cast( + &_SetU2FCounter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + void Swap(SetU2FCounter* other); + friend void swap(SetU2FCounter& a, SetU2FCounter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SetU2FCounter* New() const final { + return CreateMaybeMessage(NULL); + } + + SetU2FCounter* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SetU2FCounter& from); + void MergeFrom(const SetU2FCounter& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SetU2FCounter* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 u2f_counter = 1; + bool has_u2f_counter() const; + void clear_u2f_counter(); + static const int kU2FCounterFieldNumber = 1; + ::google::protobuf::uint32 u2f_counter() const; + void set_u2f_counter(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.management.SetU2FCounter) + private: + void set_has_u2f_counter(); + void clear_has_u2f_counter(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 u2f_counter_; + friend struct ::protobuf_messages_2dmanagement_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Initialize + +// optional bytes state = 1; +inline bool Initialize::has_state() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Initialize::set_has_state() { + _has_bits_[0] |= 0x00000001u; +} +inline void Initialize::clear_has_state() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Initialize::clear_state() { + state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_state(); +} +inline const ::std::string& Initialize::state() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Initialize.state) + return state_.GetNoArena(); +} +inline void Initialize::set_state(const ::std::string& value) { + set_has_state(); + state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Initialize.state) +} +#if LANG_CXX11 +inline void Initialize::set_state(::std::string&& value) { + set_has_state(); + state_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Initialize.state) +} +#endif +inline void Initialize::set_state(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_state(); + state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Initialize.state) +} +inline void Initialize::set_state(const void* value, size_t size) { + set_has_state(); + state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Initialize.state) +} +inline ::std::string* Initialize::mutable_state() { + set_has_state(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Initialize.state) + return state_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Initialize::release_state() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Initialize.state) + if (!has_state()) { + return NULL; + } + clear_has_state(); + return state_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Initialize::set_allocated_state(::std::string* state) { + if (state != NULL) { + set_has_state(); + } else { + clear_has_state(); + } + state_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), state); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Initialize.state) +} + +// optional bool skip_passphrase = 2; +inline bool Initialize::has_skip_passphrase() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Initialize::set_has_skip_passphrase() { + _has_bits_[0] |= 0x00000002u; +} +inline void Initialize::clear_has_skip_passphrase() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Initialize::clear_skip_passphrase() { + skip_passphrase_ = false; + clear_has_skip_passphrase(); +} +inline bool Initialize::skip_passphrase() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Initialize.skip_passphrase) + return skip_passphrase_; +} +inline void Initialize::set_skip_passphrase(bool value) { + set_has_skip_passphrase(); + skip_passphrase_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Initialize.skip_passphrase) +} + +// ------------------------------------------------------------------- + +// GetFeatures + +// ------------------------------------------------------------------- + +// Features + +// optional string vendor = 1; +inline bool Features::has_vendor() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Features::set_has_vendor() { + _has_bits_[0] |= 0x00000001u; +} +inline void Features::clear_has_vendor() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Features::clear_vendor() { + vendor_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_vendor(); +} +inline const ::std::string& Features::vendor() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.vendor) + return vendor_.GetNoArena(); +} +inline void Features::set_vendor(const ::std::string& value) { + set_has_vendor(); + vendor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.vendor) +} +#if LANG_CXX11 +inline void Features::set_vendor(::std::string&& value) { + set_has_vendor(); + vendor_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Features.vendor) +} +#endif +inline void Features::set_vendor(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_vendor(); + vendor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Features.vendor) +} +inline void Features::set_vendor(const char* value, size_t size) { + set_has_vendor(); + vendor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Features.vendor) +} +inline ::std::string* Features::mutable_vendor() { + set_has_vendor(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Features.vendor) + return vendor_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Features::release_vendor() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Features.vendor) + if (!has_vendor()) { + return NULL; + } + clear_has_vendor(); + return vendor_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Features::set_allocated_vendor(::std::string* vendor) { + if (vendor != NULL) { + set_has_vendor(); + } else { + clear_has_vendor(); + } + vendor_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), vendor); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Features.vendor) +} + +// optional uint32 major_version = 2; +inline bool Features::has_major_version() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void Features::set_has_major_version() { + _has_bits_[0] |= 0x00000200u; +} +inline void Features::clear_has_major_version() { + _has_bits_[0] &= ~0x00000200u; +} +inline void Features::clear_major_version() { + major_version_ = 0u; + clear_has_major_version(); +} +inline ::google::protobuf::uint32 Features::major_version() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.major_version) + return major_version_; +} +inline void Features::set_major_version(::google::protobuf::uint32 value) { + set_has_major_version(); + major_version_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.major_version) +} + +// optional uint32 minor_version = 3; +inline bool Features::has_minor_version() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void Features::set_has_minor_version() { + _has_bits_[0] |= 0x00000400u; +} +inline void Features::clear_has_minor_version() { + _has_bits_[0] &= ~0x00000400u; +} +inline void Features::clear_minor_version() { + minor_version_ = 0u; + clear_has_minor_version(); +} +inline ::google::protobuf::uint32 Features::minor_version() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.minor_version) + return minor_version_; +} +inline void Features::set_minor_version(::google::protobuf::uint32 value) { + set_has_minor_version(); + minor_version_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.minor_version) +} + +// optional uint32 patch_version = 4; +inline bool Features::has_patch_version() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void Features::set_has_patch_version() { + _has_bits_[0] |= 0x00000800u; +} +inline void Features::clear_has_patch_version() { + _has_bits_[0] &= ~0x00000800u; +} +inline void Features::clear_patch_version() { + patch_version_ = 0u; + clear_has_patch_version(); +} +inline ::google::protobuf::uint32 Features::patch_version() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.patch_version) + return patch_version_; +} +inline void Features::set_patch_version(::google::protobuf::uint32 value) { + set_has_patch_version(); + patch_version_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.patch_version) +} + +// optional bool bootloader_mode = 5; +inline bool Features::has_bootloader_mode() const { + return (_has_bits_[0] & 0x00001000u) != 0; +} +inline void Features::set_has_bootloader_mode() { + _has_bits_[0] |= 0x00001000u; +} +inline void Features::clear_has_bootloader_mode() { + _has_bits_[0] &= ~0x00001000u; +} +inline void Features::clear_bootloader_mode() { + bootloader_mode_ = false; + clear_has_bootloader_mode(); +} +inline bool Features::bootloader_mode() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.bootloader_mode) + return bootloader_mode_; +} +inline void Features::set_bootloader_mode(bool value) { + set_has_bootloader_mode(); + bootloader_mode_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.bootloader_mode) +} + +// optional string device_id = 6; +inline bool Features::has_device_id() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Features::set_has_device_id() { + _has_bits_[0] |= 0x00000002u; +} +inline void Features::clear_has_device_id() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Features::clear_device_id() { + device_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_device_id(); +} +inline const ::std::string& Features::device_id() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.device_id) + return device_id_.GetNoArena(); +} +inline void Features::set_device_id(const ::std::string& value) { + set_has_device_id(); + device_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.device_id) +} +#if LANG_CXX11 +inline void Features::set_device_id(::std::string&& value) { + set_has_device_id(); + device_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Features.device_id) +} +#endif +inline void Features::set_device_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_device_id(); + device_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Features.device_id) +} +inline void Features::set_device_id(const char* value, size_t size) { + set_has_device_id(); + device_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Features.device_id) +} +inline ::std::string* Features::mutable_device_id() { + set_has_device_id(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Features.device_id) + return device_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Features::release_device_id() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Features.device_id) + if (!has_device_id()) { + return NULL; + } + clear_has_device_id(); + return device_id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Features::set_allocated_device_id(::std::string* device_id) { + if (device_id != NULL) { + set_has_device_id(); + } else { + clear_has_device_id(); + } + device_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device_id); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Features.device_id) +} + +// optional bool pin_protection = 7; +inline bool Features::has_pin_protection() const { + return (_has_bits_[0] & 0x00002000u) != 0; +} +inline void Features::set_has_pin_protection() { + _has_bits_[0] |= 0x00002000u; +} +inline void Features::clear_has_pin_protection() { + _has_bits_[0] &= ~0x00002000u; +} +inline void Features::clear_pin_protection() { + pin_protection_ = false; + clear_has_pin_protection(); +} +inline bool Features::pin_protection() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.pin_protection) + return pin_protection_; +} +inline void Features::set_pin_protection(bool value) { + set_has_pin_protection(); + pin_protection_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.pin_protection) +} + +// optional bool passphrase_protection = 8; +inline bool Features::has_passphrase_protection() const { + return (_has_bits_[0] & 0x00004000u) != 0; +} +inline void Features::set_has_passphrase_protection() { + _has_bits_[0] |= 0x00004000u; +} +inline void Features::clear_has_passphrase_protection() { + _has_bits_[0] &= ~0x00004000u; +} +inline void Features::clear_passphrase_protection() { + passphrase_protection_ = false; + clear_has_passphrase_protection(); +} +inline bool Features::passphrase_protection() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.passphrase_protection) + return passphrase_protection_; +} +inline void Features::set_passphrase_protection(bool value) { + set_has_passphrase_protection(); + passphrase_protection_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.passphrase_protection) +} + +// optional string language = 9; +inline bool Features::has_language() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Features::set_has_language() { + _has_bits_[0] |= 0x00000004u; +} +inline void Features::clear_has_language() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Features::clear_language() { + language_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_language(); +} +inline const ::std::string& Features::language() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.language) + return language_.GetNoArena(); +} +inline void Features::set_language(const ::std::string& value) { + set_has_language(); + language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.language) +} +#if LANG_CXX11 +inline void Features::set_language(::std::string&& value) { + set_has_language(); + language_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Features.language) +} +#endif +inline void Features::set_language(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_language(); + language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Features.language) +} +inline void Features::set_language(const char* value, size_t size) { + set_has_language(); + language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Features.language) +} +inline ::std::string* Features::mutable_language() { + set_has_language(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Features.language) + return language_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Features::release_language() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Features.language) + if (!has_language()) { + return NULL; + } + clear_has_language(); + return language_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Features::set_allocated_language(::std::string* language) { + if (language != NULL) { + set_has_language(); + } else { + clear_has_language(); + } + language_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), language); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Features.language) +} + +// optional string label = 10; +inline bool Features::has_label() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Features::set_has_label() { + _has_bits_[0] |= 0x00000008u; +} +inline void Features::clear_has_label() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Features::clear_label() { + label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_label(); +} +inline const ::std::string& Features::label() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.label) + return label_.GetNoArena(); +} +inline void Features::set_label(const ::std::string& value) { + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.label) +} +#if LANG_CXX11 +inline void Features::set_label(::std::string&& value) { + set_has_label(); + label_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Features.label) +} +#endif +inline void Features::set_label(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Features.label) +} +inline void Features::set_label(const char* value, size_t size) { + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Features.label) +} +inline ::std::string* Features::mutable_label() { + set_has_label(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Features.label) + return label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Features::release_label() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Features.label) + if (!has_label()) { + return NULL; + } + clear_has_label(); + return label_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Features::set_allocated_label(::std::string* label) { + if (label != NULL) { + set_has_label(); + } else { + clear_has_label(); + } + label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), label); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Features.label) +} + +// optional bool initialized = 12; +inline bool Features::has_initialized() const { + return (_has_bits_[0] & 0x00008000u) != 0; +} +inline void Features::set_has_initialized() { + _has_bits_[0] |= 0x00008000u; +} +inline void Features::clear_has_initialized() { + _has_bits_[0] &= ~0x00008000u; +} +inline void Features::clear_initialized() { + initialized_ = false; + clear_has_initialized(); +} +inline bool Features::initialized() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.initialized) + return initialized_; +} +inline void Features::set_initialized(bool value) { + set_has_initialized(); + initialized_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.initialized) +} + +// optional bytes revision = 13; +inline bool Features::has_revision() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void Features::set_has_revision() { + _has_bits_[0] |= 0x00000010u; +} +inline void Features::clear_has_revision() { + _has_bits_[0] &= ~0x00000010u; +} +inline void Features::clear_revision() { + revision_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_revision(); +} +inline const ::std::string& Features::revision() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.revision) + return revision_.GetNoArena(); +} +inline void Features::set_revision(const ::std::string& value) { + set_has_revision(); + revision_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.revision) +} +#if LANG_CXX11 +inline void Features::set_revision(::std::string&& value) { + set_has_revision(); + revision_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Features.revision) +} +#endif +inline void Features::set_revision(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_revision(); + revision_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Features.revision) +} +inline void Features::set_revision(const void* value, size_t size) { + set_has_revision(); + revision_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Features.revision) +} +inline ::std::string* Features::mutable_revision() { + set_has_revision(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Features.revision) + return revision_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Features::release_revision() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Features.revision) + if (!has_revision()) { + return NULL; + } + clear_has_revision(); + return revision_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Features::set_allocated_revision(::std::string* revision) { + if (revision != NULL) { + set_has_revision(); + } else { + clear_has_revision(); + } + revision_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), revision); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Features.revision) +} + +// optional bytes bootloader_hash = 14; +inline bool Features::has_bootloader_hash() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void Features::set_has_bootloader_hash() { + _has_bits_[0] |= 0x00000020u; +} +inline void Features::clear_has_bootloader_hash() { + _has_bits_[0] &= ~0x00000020u; +} +inline void Features::clear_bootloader_hash() { + bootloader_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_bootloader_hash(); +} +inline const ::std::string& Features::bootloader_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.bootloader_hash) + return bootloader_hash_.GetNoArena(); +} +inline void Features::set_bootloader_hash(const ::std::string& value) { + set_has_bootloader_hash(); + bootloader_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.bootloader_hash) +} +#if LANG_CXX11 +inline void Features::set_bootloader_hash(::std::string&& value) { + set_has_bootloader_hash(); + bootloader_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Features.bootloader_hash) +} +#endif +inline void Features::set_bootloader_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_bootloader_hash(); + bootloader_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Features.bootloader_hash) +} +inline void Features::set_bootloader_hash(const void* value, size_t size) { + set_has_bootloader_hash(); + bootloader_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Features.bootloader_hash) +} +inline ::std::string* Features::mutable_bootloader_hash() { + set_has_bootloader_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Features.bootloader_hash) + return bootloader_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Features::release_bootloader_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Features.bootloader_hash) + if (!has_bootloader_hash()) { + return NULL; + } + clear_has_bootloader_hash(); + return bootloader_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Features::set_allocated_bootloader_hash(::std::string* bootloader_hash) { + if (bootloader_hash != NULL) { + set_has_bootloader_hash(); + } else { + clear_has_bootloader_hash(); + } + bootloader_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bootloader_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Features.bootloader_hash) +} + +// optional bool imported = 15; +inline bool Features::has_imported() const { + return (_has_bits_[0] & 0x00010000u) != 0; +} +inline void Features::set_has_imported() { + _has_bits_[0] |= 0x00010000u; +} +inline void Features::clear_has_imported() { + _has_bits_[0] &= ~0x00010000u; +} +inline void Features::clear_imported() { + imported_ = false; + clear_has_imported(); +} +inline bool Features::imported() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.imported) + return imported_; +} +inline void Features::set_imported(bool value) { + set_has_imported(); + imported_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.imported) +} + +// optional bool pin_cached = 16; +inline bool Features::has_pin_cached() const { + return (_has_bits_[0] & 0x00020000u) != 0; +} +inline void Features::set_has_pin_cached() { + _has_bits_[0] |= 0x00020000u; +} +inline void Features::clear_has_pin_cached() { + _has_bits_[0] &= ~0x00020000u; +} +inline void Features::clear_pin_cached() { + pin_cached_ = false; + clear_has_pin_cached(); +} +inline bool Features::pin_cached() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.pin_cached) + return pin_cached_; +} +inline void Features::set_pin_cached(bool value) { + set_has_pin_cached(); + pin_cached_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.pin_cached) +} + +// optional bool passphrase_cached = 17; +inline bool Features::has_passphrase_cached() const { + return (_has_bits_[0] & 0x00040000u) != 0; +} +inline void Features::set_has_passphrase_cached() { + _has_bits_[0] |= 0x00040000u; +} +inline void Features::clear_has_passphrase_cached() { + _has_bits_[0] &= ~0x00040000u; +} +inline void Features::clear_passphrase_cached() { + passphrase_cached_ = false; + clear_has_passphrase_cached(); +} +inline bool Features::passphrase_cached() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.passphrase_cached) + return passphrase_cached_; +} +inline void Features::set_passphrase_cached(bool value) { + set_has_passphrase_cached(); + passphrase_cached_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.passphrase_cached) +} + +// optional bool firmware_present = 18; +inline bool Features::has_firmware_present() const { + return (_has_bits_[0] & 0x00080000u) != 0; +} +inline void Features::set_has_firmware_present() { + _has_bits_[0] |= 0x00080000u; +} +inline void Features::clear_has_firmware_present() { + _has_bits_[0] &= ~0x00080000u; +} +inline void Features::clear_firmware_present() { + firmware_present_ = false; + clear_has_firmware_present(); +} +inline bool Features::firmware_present() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.firmware_present) + return firmware_present_; +} +inline void Features::set_firmware_present(bool value) { + set_has_firmware_present(); + firmware_present_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.firmware_present) +} + +// optional bool needs_backup = 19; +inline bool Features::has_needs_backup() const { + return (_has_bits_[0] & 0x01000000u) != 0; +} +inline void Features::set_has_needs_backup() { + _has_bits_[0] |= 0x01000000u; +} +inline void Features::clear_has_needs_backup() { + _has_bits_[0] &= ~0x01000000u; +} +inline void Features::clear_needs_backup() { + needs_backup_ = false; + clear_has_needs_backup(); +} +inline bool Features::needs_backup() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.needs_backup) + return needs_backup_; +} +inline void Features::set_needs_backup(bool value) { + set_has_needs_backup(); + needs_backup_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.needs_backup) +} + +// optional uint32 flags = 20; +inline bool Features::has_flags() const { + return (_has_bits_[0] & 0x00100000u) != 0; +} +inline void Features::set_has_flags() { + _has_bits_[0] |= 0x00100000u; +} +inline void Features::clear_has_flags() { + _has_bits_[0] &= ~0x00100000u; +} +inline void Features::clear_flags() { + flags_ = 0u; + clear_has_flags(); +} +inline ::google::protobuf::uint32 Features::flags() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.flags) + return flags_; +} +inline void Features::set_flags(::google::protobuf::uint32 value) { + set_has_flags(); + flags_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.flags) +} + +// optional string model = 21; +inline bool Features::has_model() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void Features::set_has_model() { + _has_bits_[0] |= 0x00000040u; +} +inline void Features::clear_has_model() { + _has_bits_[0] &= ~0x00000040u; +} +inline void Features::clear_model() { + model_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_model(); +} +inline const ::std::string& Features::model() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.model) + return model_.GetNoArena(); +} +inline void Features::set_model(const ::std::string& value) { + set_has_model(); + model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.model) +} +#if LANG_CXX11 +inline void Features::set_model(::std::string&& value) { + set_has_model(); + model_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Features.model) +} +#endif +inline void Features::set_model(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_model(); + model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Features.model) +} +inline void Features::set_model(const char* value, size_t size) { + set_has_model(); + model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Features.model) +} +inline ::std::string* Features::mutable_model() { + set_has_model(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Features.model) + return model_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Features::release_model() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Features.model) + if (!has_model()) { + return NULL; + } + clear_has_model(); + return model_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Features::set_allocated_model(::std::string* model) { + if (model != NULL) { + set_has_model(); + } else { + clear_has_model(); + } + model_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), model); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Features.model) +} + +// optional uint32 fw_major = 22; +inline bool Features::has_fw_major() const { + return (_has_bits_[0] & 0x00200000u) != 0; +} +inline void Features::set_has_fw_major() { + _has_bits_[0] |= 0x00200000u; +} +inline void Features::clear_has_fw_major() { + _has_bits_[0] &= ~0x00200000u; +} +inline void Features::clear_fw_major() { + fw_major_ = 0u; + clear_has_fw_major(); +} +inline ::google::protobuf::uint32 Features::fw_major() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.fw_major) + return fw_major_; +} +inline void Features::set_fw_major(::google::protobuf::uint32 value) { + set_has_fw_major(); + fw_major_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.fw_major) +} + +// optional uint32 fw_minor = 23; +inline bool Features::has_fw_minor() const { + return (_has_bits_[0] & 0x00400000u) != 0; +} +inline void Features::set_has_fw_minor() { + _has_bits_[0] |= 0x00400000u; +} +inline void Features::clear_has_fw_minor() { + _has_bits_[0] &= ~0x00400000u; +} +inline void Features::clear_fw_minor() { + fw_minor_ = 0u; + clear_has_fw_minor(); +} +inline ::google::protobuf::uint32 Features::fw_minor() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.fw_minor) + return fw_minor_; +} +inline void Features::set_fw_minor(::google::protobuf::uint32 value) { + set_has_fw_minor(); + fw_minor_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.fw_minor) +} + +// optional uint32 fw_patch = 24; +inline bool Features::has_fw_patch() const { + return (_has_bits_[0] & 0x00800000u) != 0; +} +inline void Features::set_has_fw_patch() { + _has_bits_[0] |= 0x00800000u; +} +inline void Features::clear_has_fw_patch() { + _has_bits_[0] &= ~0x00800000u; +} +inline void Features::clear_fw_patch() { + fw_patch_ = 0u; + clear_has_fw_patch(); +} +inline ::google::protobuf::uint32 Features::fw_patch() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.fw_patch) + return fw_patch_; +} +inline void Features::set_fw_patch(::google::protobuf::uint32 value) { + set_has_fw_patch(); + fw_patch_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.fw_patch) +} + +// optional string fw_vendor = 25; +inline bool Features::has_fw_vendor() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void Features::set_has_fw_vendor() { + _has_bits_[0] |= 0x00000080u; +} +inline void Features::clear_has_fw_vendor() { + _has_bits_[0] &= ~0x00000080u; +} +inline void Features::clear_fw_vendor() { + fw_vendor_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_fw_vendor(); +} +inline const ::std::string& Features::fw_vendor() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.fw_vendor) + return fw_vendor_.GetNoArena(); +} +inline void Features::set_fw_vendor(const ::std::string& value) { + set_has_fw_vendor(); + fw_vendor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.fw_vendor) +} +#if LANG_CXX11 +inline void Features::set_fw_vendor(::std::string&& value) { + set_has_fw_vendor(); + fw_vendor_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Features.fw_vendor) +} +#endif +inline void Features::set_fw_vendor(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_fw_vendor(); + fw_vendor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Features.fw_vendor) +} +inline void Features::set_fw_vendor(const char* value, size_t size) { + set_has_fw_vendor(); + fw_vendor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Features.fw_vendor) +} +inline ::std::string* Features::mutable_fw_vendor() { + set_has_fw_vendor(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Features.fw_vendor) + return fw_vendor_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Features::release_fw_vendor() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Features.fw_vendor) + if (!has_fw_vendor()) { + return NULL; + } + clear_has_fw_vendor(); + return fw_vendor_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Features::set_allocated_fw_vendor(::std::string* fw_vendor) { + if (fw_vendor != NULL) { + set_has_fw_vendor(); + } else { + clear_has_fw_vendor(); + } + fw_vendor_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), fw_vendor); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Features.fw_vendor) +} + +// optional bytes fw_vendor_keys = 26; +inline bool Features::has_fw_vendor_keys() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void Features::set_has_fw_vendor_keys() { + _has_bits_[0] |= 0x00000100u; +} +inline void Features::clear_has_fw_vendor_keys() { + _has_bits_[0] &= ~0x00000100u; +} +inline void Features::clear_fw_vendor_keys() { + fw_vendor_keys_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_fw_vendor_keys(); +} +inline const ::std::string& Features::fw_vendor_keys() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.fw_vendor_keys) + return fw_vendor_keys_.GetNoArena(); +} +inline void Features::set_fw_vendor_keys(const ::std::string& value) { + set_has_fw_vendor_keys(); + fw_vendor_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.fw_vendor_keys) +} +#if LANG_CXX11 +inline void Features::set_fw_vendor_keys(::std::string&& value) { + set_has_fw_vendor_keys(); + fw_vendor_keys_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Features.fw_vendor_keys) +} +#endif +inline void Features::set_fw_vendor_keys(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_fw_vendor_keys(); + fw_vendor_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Features.fw_vendor_keys) +} +inline void Features::set_fw_vendor_keys(const void* value, size_t size) { + set_has_fw_vendor_keys(); + fw_vendor_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Features.fw_vendor_keys) +} +inline ::std::string* Features::mutable_fw_vendor_keys() { + set_has_fw_vendor_keys(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Features.fw_vendor_keys) + return fw_vendor_keys_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Features::release_fw_vendor_keys() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Features.fw_vendor_keys) + if (!has_fw_vendor_keys()) { + return NULL; + } + clear_has_fw_vendor_keys(); + return fw_vendor_keys_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Features::set_allocated_fw_vendor_keys(::std::string* fw_vendor_keys) { + if (fw_vendor_keys != NULL) { + set_has_fw_vendor_keys(); + } else { + clear_has_fw_vendor_keys(); + } + fw_vendor_keys_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), fw_vendor_keys); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Features.fw_vendor_keys) +} + +// optional bool unfinished_backup = 27; +inline bool Features::has_unfinished_backup() const { + return (_has_bits_[0] & 0x02000000u) != 0; +} +inline void Features::set_has_unfinished_backup() { + _has_bits_[0] |= 0x02000000u; +} +inline void Features::clear_has_unfinished_backup() { + _has_bits_[0] &= ~0x02000000u; +} +inline void Features::clear_unfinished_backup() { + unfinished_backup_ = false; + clear_has_unfinished_backup(); +} +inline bool Features::unfinished_backup() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.unfinished_backup) + return unfinished_backup_; +} +inline void Features::set_unfinished_backup(bool value) { + set_has_unfinished_backup(); + unfinished_backup_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.unfinished_backup) +} + +// optional bool no_backup = 28; +inline bool Features::has_no_backup() const { + return (_has_bits_[0] & 0x04000000u) != 0; +} +inline void Features::set_has_no_backup() { + _has_bits_[0] |= 0x04000000u; +} +inline void Features::clear_has_no_backup() { + _has_bits_[0] &= ~0x04000000u; +} +inline void Features::clear_no_backup() { + no_backup_ = false; + clear_has_no_backup(); +} +inline bool Features::no_backup() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Features.no_backup) + return no_backup_; +} +inline void Features::set_no_backup(bool value) { + set_has_no_backup(); + no_backup_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Features.no_backup) +} + +// ------------------------------------------------------------------- + +// ClearSession + +// ------------------------------------------------------------------- + +// ApplySettings + +// optional string language = 1; +inline bool ApplySettings::has_language() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ApplySettings::set_has_language() { + _has_bits_[0] |= 0x00000001u; +} +inline void ApplySettings::clear_has_language() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ApplySettings::clear_language() { + language_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_language(); +} +inline const ::std::string& ApplySettings::language() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ApplySettings.language) + return language_.GetNoArena(); +} +inline void ApplySettings::set_language(const ::std::string& value) { + set_has_language(); + language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ApplySettings.language) +} +#if LANG_CXX11 +inline void ApplySettings::set_language(::std::string&& value) { + set_has_language(); + language_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.ApplySettings.language) +} +#endif +inline void ApplySettings::set_language(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_language(); + language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.ApplySettings.language) +} +inline void ApplySettings::set_language(const char* value, size_t size) { + set_has_language(); + language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.ApplySettings.language) +} +inline ::std::string* ApplySettings::mutable_language() { + set_has_language(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.ApplySettings.language) + return language_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ApplySettings::release_language() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.ApplySettings.language) + if (!has_language()) { + return NULL; + } + clear_has_language(); + return language_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ApplySettings::set_allocated_language(::std::string* language) { + if (language != NULL) { + set_has_language(); + } else { + clear_has_language(); + } + language_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), language); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.ApplySettings.language) +} + +// optional string label = 2; +inline bool ApplySettings::has_label() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ApplySettings::set_has_label() { + _has_bits_[0] |= 0x00000002u; +} +inline void ApplySettings::clear_has_label() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ApplySettings::clear_label() { + label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_label(); +} +inline const ::std::string& ApplySettings::label() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ApplySettings.label) + return label_.GetNoArena(); +} +inline void ApplySettings::set_label(const ::std::string& value) { + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ApplySettings.label) +} +#if LANG_CXX11 +inline void ApplySettings::set_label(::std::string&& value) { + set_has_label(); + label_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.ApplySettings.label) +} +#endif +inline void ApplySettings::set_label(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.ApplySettings.label) +} +inline void ApplySettings::set_label(const char* value, size_t size) { + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.ApplySettings.label) +} +inline ::std::string* ApplySettings::mutable_label() { + set_has_label(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.ApplySettings.label) + return label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ApplySettings::release_label() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.ApplySettings.label) + if (!has_label()) { + return NULL; + } + clear_has_label(); + return label_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ApplySettings::set_allocated_label(::std::string* label) { + if (label != NULL) { + set_has_label(); + } else { + clear_has_label(); + } + label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), label); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.ApplySettings.label) +} + +// optional bool use_passphrase = 3; +inline bool ApplySettings::has_use_passphrase() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ApplySettings::set_has_use_passphrase() { + _has_bits_[0] |= 0x00000008u; +} +inline void ApplySettings::clear_has_use_passphrase() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ApplySettings::clear_use_passphrase() { + use_passphrase_ = false; + clear_has_use_passphrase(); +} +inline bool ApplySettings::use_passphrase() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ApplySettings.use_passphrase) + return use_passphrase_; +} +inline void ApplySettings::set_use_passphrase(bool value) { + set_has_use_passphrase(); + use_passphrase_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ApplySettings.use_passphrase) +} + +// optional bytes homescreen = 4; +inline bool ApplySettings::has_homescreen() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ApplySettings::set_has_homescreen() { + _has_bits_[0] |= 0x00000004u; +} +inline void ApplySettings::clear_has_homescreen() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ApplySettings::clear_homescreen() { + homescreen_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_homescreen(); +} +inline const ::std::string& ApplySettings::homescreen() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ApplySettings.homescreen) + return homescreen_.GetNoArena(); +} +inline void ApplySettings::set_homescreen(const ::std::string& value) { + set_has_homescreen(); + homescreen_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ApplySettings.homescreen) +} +#if LANG_CXX11 +inline void ApplySettings::set_homescreen(::std::string&& value) { + set_has_homescreen(); + homescreen_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.ApplySettings.homescreen) +} +#endif +inline void ApplySettings::set_homescreen(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_homescreen(); + homescreen_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.ApplySettings.homescreen) +} +inline void ApplySettings::set_homescreen(const void* value, size_t size) { + set_has_homescreen(); + homescreen_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.ApplySettings.homescreen) +} +inline ::std::string* ApplySettings::mutable_homescreen() { + set_has_homescreen(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.ApplySettings.homescreen) + return homescreen_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ApplySettings::release_homescreen() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.ApplySettings.homescreen) + if (!has_homescreen()) { + return NULL; + } + clear_has_homescreen(); + return homescreen_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ApplySettings::set_allocated_homescreen(::std::string* homescreen) { + if (homescreen != NULL) { + set_has_homescreen(); + } else { + clear_has_homescreen(); + } + homescreen_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), homescreen); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.ApplySettings.homescreen) +} + +// optional .hw.trezor.messages.management.ApplySettings.PassphraseSourceType passphrase_source = 5; +inline bool ApplySettings::has_passphrase_source() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void ApplySettings::set_has_passphrase_source() { + _has_bits_[0] |= 0x00000010u; +} +inline void ApplySettings::clear_has_passphrase_source() { + _has_bits_[0] &= ~0x00000010u; +} +inline void ApplySettings::clear_passphrase_source() { + passphrase_source_ = 0; + clear_has_passphrase_source(); +} +inline ::hw::trezor::messages::management::ApplySettings_PassphraseSourceType ApplySettings::passphrase_source() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ApplySettings.passphrase_source) + return static_cast< ::hw::trezor::messages::management::ApplySettings_PassphraseSourceType >(passphrase_source_); +} +inline void ApplySettings::set_passphrase_source(::hw::trezor::messages::management::ApplySettings_PassphraseSourceType value) { + assert(::hw::trezor::messages::management::ApplySettings_PassphraseSourceType_IsValid(value)); + set_has_passphrase_source(); + passphrase_source_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ApplySettings.passphrase_source) +} + +// optional uint32 auto_lock_delay_ms = 6; +inline bool ApplySettings::has_auto_lock_delay_ms() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void ApplySettings::set_has_auto_lock_delay_ms() { + _has_bits_[0] |= 0x00000020u; +} +inline void ApplySettings::clear_has_auto_lock_delay_ms() { + _has_bits_[0] &= ~0x00000020u; +} +inline void ApplySettings::clear_auto_lock_delay_ms() { + auto_lock_delay_ms_ = 0u; + clear_has_auto_lock_delay_ms(); +} +inline ::google::protobuf::uint32 ApplySettings::auto_lock_delay_ms() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ApplySettings.auto_lock_delay_ms) + return auto_lock_delay_ms_; +} +inline void ApplySettings::set_auto_lock_delay_ms(::google::protobuf::uint32 value) { + set_has_auto_lock_delay_ms(); + auto_lock_delay_ms_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ApplySettings.auto_lock_delay_ms) +} + +// ------------------------------------------------------------------- + +// ApplyFlags + +// optional uint32 flags = 1; +inline bool ApplyFlags::has_flags() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ApplyFlags::set_has_flags() { + _has_bits_[0] |= 0x00000001u; +} +inline void ApplyFlags::clear_has_flags() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ApplyFlags::clear_flags() { + flags_ = 0u; + clear_has_flags(); +} +inline ::google::protobuf::uint32 ApplyFlags::flags() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ApplyFlags.flags) + return flags_; +} +inline void ApplyFlags::set_flags(::google::protobuf::uint32 value) { + set_has_flags(); + flags_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ApplyFlags.flags) +} + +// ------------------------------------------------------------------- + +// ChangePin + +// optional bool remove = 1; +inline bool ChangePin::has_remove() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ChangePin::set_has_remove() { + _has_bits_[0] |= 0x00000001u; +} +inline void ChangePin::clear_has_remove() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ChangePin::clear_remove() { + remove_ = false; + clear_has_remove(); +} +inline bool ChangePin::remove() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ChangePin.remove) + return remove_; +} +inline void ChangePin::set_remove(bool value) { + set_has_remove(); + remove_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ChangePin.remove) +} + +// ------------------------------------------------------------------- + +// Ping + +// optional string message = 1; +inline bool Ping::has_message() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Ping::set_has_message() { + _has_bits_[0] |= 0x00000001u; +} +inline void Ping::clear_has_message() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Ping::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_message(); +} +inline const ::std::string& Ping::message() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Ping.message) + return message_.GetNoArena(); +} +inline void Ping::set_message(const ::std::string& value) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Ping.message) +} +#if LANG_CXX11 +inline void Ping::set_message(::std::string&& value) { + set_has_message(); + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Ping.message) +} +#endif +inline void Ping::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Ping.message) +} +inline void Ping::set_message(const char* value, size_t size) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Ping.message) +} +inline ::std::string* Ping::mutable_message() { + set_has_message(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Ping.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Ping::release_message() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Ping.message) + if (!has_message()) { + return NULL; + } + clear_has_message(); + return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Ping::set_allocated_message(::std::string* message) { + if (message != NULL) { + set_has_message(); + } else { + clear_has_message(); + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Ping.message) +} + +// optional bool button_protection = 2; +inline bool Ping::has_button_protection() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Ping::set_has_button_protection() { + _has_bits_[0] |= 0x00000002u; +} +inline void Ping::clear_has_button_protection() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Ping::clear_button_protection() { + button_protection_ = false; + clear_has_button_protection(); +} +inline bool Ping::button_protection() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Ping.button_protection) + return button_protection_; +} +inline void Ping::set_button_protection(bool value) { + set_has_button_protection(); + button_protection_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Ping.button_protection) +} + +// optional bool pin_protection = 3; +inline bool Ping::has_pin_protection() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Ping::set_has_pin_protection() { + _has_bits_[0] |= 0x00000004u; +} +inline void Ping::clear_has_pin_protection() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Ping::clear_pin_protection() { + pin_protection_ = false; + clear_has_pin_protection(); +} +inline bool Ping::pin_protection() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Ping.pin_protection) + return pin_protection_; +} +inline void Ping::set_pin_protection(bool value) { + set_has_pin_protection(); + pin_protection_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Ping.pin_protection) +} + +// optional bool passphrase_protection = 4; +inline bool Ping::has_passphrase_protection() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Ping::set_has_passphrase_protection() { + _has_bits_[0] |= 0x00000008u; +} +inline void Ping::clear_has_passphrase_protection() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Ping::clear_passphrase_protection() { + passphrase_protection_ = false; + clear_has_passphrase_protection(); +} +inline bool Ping::passphrase_protection() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Ping.passphrase_protection) + return passphrase_protection_; +} +inline void Ping::set_passphrase_protection(bool value) { + set_has_passphrase_protection(); + passphrase_protection_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Ping.passphrase_protection) +} + +// ------------------------------------------------------------------- + +// Cancel + +// ------------------------------------------------------------------- + +// GetEntropy + +// required uint32 size = 1; +inline bool GetEntropy::has_size() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetEntropy::set_has_size() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetEntropy::clear_has_size() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetEntropy::clear_size() { + size_ = 0u; + clear_has_size(); +} +inline ::google::protobuf::uint32 GetEntropy::size() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.GetEntropy.size) + return size_; +} +inline void GetEntropy::set_size(::google::protobuf::uint32 value) { + set_has_size(); + size_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.GetEntropy.size) +} + +// ------------------------------------------------------------------- + +// Entropy + +// required bytes entropy = 1; +inline bool Entropy::has_entropy() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Entropy::set_has_entropy() { + _has_bits_[0] |= 0x00000001u; +} +inline void Entropy::clear_has_entropy() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Entropy::clear_entropy() { + entropy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_entropy(); +} +inline const ::std::string& Entropy::entropy() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.Entropy.entropy) + return entropy_.GetNoArena(); +} +inline void Entropy::set_entropy(const ::std::string& value) { + set_has_entropy(); + entropy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.Entropy.entropy) +} +#if LANG_CXX11 +inline void Entropy::set_entropy(::std::string&& value) { + set_has_entropy(); + entropy_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.Entropy.entropy) +} +#endif +inline void Entropy::set_entropy(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_entropy(); + entropy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.Entropy.entropy) +} +inline void Entropy::set_entropy(const void* value, size_t size) { + set_has_entropy(); + entropy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.Entropy.entropy) +} +inline ::std::string* Entropy::mutable_entropy() { + set_has_entropy(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.Entropy.entropy) + return entropy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Entropy::release_entropy() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.Entropy.entropy) + if (!has_entropy()) { + return NULL; + } + clear_has_entropy(); + return entropy_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Entropy::set_allocated_entropy(::std::string* entropy) { + if (entropy != NULL) { + set_has_entropy(); + } else { + clear_has_entropy(); + } + entropy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entropy); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.Entropy.entropy) +} + +// ------------------------------------------------------------------- + +// WipeDevice + +// ------------------------------------------------------------------- + +// LoadDevice + +// optional string mnemonic = 1; +inline bool LoadDevice::has_mnemonic() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LoadDevice::set_has_mnemonic() { + _has_bits_[0] |= 0x00000001u; +} +inline void LoadDevice::clear_has_mnemonic() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LoadDevice::clear_mnemonic() { + mnemonic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_mnemonic(); +} +inline const ::std::string& LoadDevice::mnemonic() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.LoadDevice.mnemonic) + return mnemonic_.GetNoArena(); +} +inline void LoadDevice::set_mnemonic(const ::std::string& value) { + set_has_mnemonic(); + mnemonic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.LoadDevice.mnemonic) +} +#if LANG_CXX11 +inline void LoadDevice::set_mnemonic(::std::string&& value) { + set_has_mnemonic(); + mnemonic_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.LoadDevice.mnemonic) +} +#endif +inline void LoadDevice::set_mnemonic(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_mnemonic(); + mnemonic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.LoadDevice.mnemonic) +} +inline void LoadDevice::set_mnemonic(const char* value, size_t size) { + set_has_mnemonic(); + mnemonic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.LoadDevice.mnemonic) +} +inline ::std::string* LoadDevice::mutable_mnemonic() { + set_has_mnemonic(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.LoadDevice.mnemonic) + return mnemonic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LoadDevice::release_mnemonic() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.LoadDevice.mnemonic) + if (!has_mnemonic()) { + return NULL; + } + clear_has_mnemonic(); + return mnemonic_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LoadDevice::set_allocated_mnemonic(::std::string* mnemonic) { + if (mnemonic != NULL) { + set_has_mnemonic(); + } else { + clear_has_mnemonic(); + } + mnemonic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mnemonic); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.LoadDevice.mnemonic) +} + +// optional .hw.trezor.messages.common.HDNodeType node = 2; +inline bool LoadDevice::has_node() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void LoadDevice::set_has_node() { + _has_bits_[0] |= 0x00000010u; +} +inline void LoadDevice::clear_has_node() { + _has_bits_[0] &= ~0x00000010u; +} +inline const ::hw::trezor::messages::common::HDNodeType& LoadDevice::_internal_node() const { + return *node_; +} +inline const ::hw::trezor::messages::common::HDNodeType& LoadDevice::node() const { + const ::hw::trezor::messages::common::HDNodeType* p = node_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.LoadDevice.node) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::common::_HDNodeType_default_instance_); +} +inline ::hw::trezor::messages::common::HDNodeType* LoadDevice::release_node() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.LoadDevice.node) + clear_has_node(); + ::hw::trezor::messages::common::HDNodeType* temp = node_; + node_ = NULL; + return temp; +} +inline ::hw::trezor::messages::common::HDNodeType* LoadDevice::mutable_node() { + set_has_node(); + if (node_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::common::HDNodeType>(GetArenaNoVirtual()); + node_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.LoadDevice.node) + return node_; +} +inline void LoadDevice::set_allocated_node(::hw::trezor::messages::common::HDNodeType* node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(node_); + } + if (node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node, submessage_arena); + } + set_has_node(); + } else { + clear_has_node(); + } + node_ = node; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.LoadDevice.node) +} + +// optional string pin = 3; +inline bool LoadDevice::has_pin() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void LoadDevice::set_has_pin() { + _has_bits_[0] |= 0x00000002u; +} +inline void LoadDevice::clear_has_pin() { + _has_bits_[0] &= ~0x00000002u; +} +inline void LoadDevice::clear_pin() { + pin_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pin(); +} +inline const ::std::string& LoadDevice::pin() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.LoadDevice.pin) + return pin_.GetNoArena(); +} +inline void LoadDevice::set_pin(const ::std::string& value) { + set_has_pin(); + pin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.LoadDevice.pin) +} +#if LANG_CXX11 +inline void LoadDevice::set_pin(::std::string&& value) { + set_has_pin(); + pin_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.LoadDevice.pin) +} +#endif +inline void LoadDevice::set_pin(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pin(); + pin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.LoadDevice.pin) +} +inline void LoadDevice::set_pin(const char* value, size_t size) { + set_has_pin(); + pin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.LoadDevice.pin) +} +inline ::std::string* LoadDevice::mutable_pin() { + set_has_pin(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.LoadDevice.pin) + return pin_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LoadDevice::release_pin() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.LoadDevice.pin) + if (!has_pin()) { + return NULL; + } + clear_has_pin(); + return pin_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LoadDevice::set_allocated_pin(::std::string* pin) { + if (pin != NULL) { + set_has_pin(); + } else { + clear_has_pin(); + } + pin_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pin); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.LoadDevice.pin) +} + +// optional bool passphrase_protection = 4; +inline bool LoadDevice::has_passphrase_protection() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void LoadDevice::set_has_passphrase_protection() { + _has_bits_[0] |= 0x00000020u; +} +inline void LoadDevice::clear_has_passphrase_protection() { + _has_bits_[0] &= ~0x00000020u; +} +inline void LoadDevice::clear_passphrase_protection() { + passphrase_protection_ = false; + clear_has_passphrase_protection(); +} +inline bool LoadDevice::passphrase_protection() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.LoadDevice.passphrase_protection) + return passphrase_protection_; +} +inline void LoadDevice::set_passphrase_protection(bool value) { + set_has_passphrase_protection(); + passphrase_protection_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.LoadDevice.passphrase_protection) +} + +// optional string language = 5 [default = "english"]; +inline bool LoadDevice::has_language() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void LoadDevice::set_has_language() { + _has_bits_[0] |= 0x00000004u; +} +inline void LoadDevice::clear_has_language() { + _has_bits_[0] &= ~0x00000004u; +} +inline void LoadDevice::clear_language() { + language_.ClearToDefaultNoArena(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get()); + clear_has_language(); +} +inline const ::std::string& LoadDevice::language() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.LoadDevice.language) + return language_.GetNoArena(); +} +inline void LoadDevice::set_language(const ::std::string& value) { + set_has_language(); + language_.SetNoArena(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.LoadDevice.language) +} +#if LANG_CXX11 +inline void LoadDevice::set_language(::std::string&& value) { + set_has_language(); + language_.SetNoArena( + &::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.LoadDevice.language) +} +#endif +inline void LoadDevice::set_language(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_language(); + language_.SetNoArena(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.LoadDevice.language) +} +inline void LoadDevice::set_language(const char* value, size_t size) { + set_has_language(); + language_.SetNoArena(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.LoadDevice.language) +} +inline ::std::string* LoadDevice::mutable_language() { + set_has_language(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.LoadDevice.language) + return language_.MutableNoArena(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get()); +} +inline ::std::string* LoadDevice::release_language() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.LoadDevice.language) + if (!has_language()) { + return NULL; + } + clear_has_language(); + return language_.ReleaseNonDefaultNoArena(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get()); +} +inline void LoadDevice::set_allocated_language(::std::string* language) { + if (language != NULL) { + set_has_language(); + } else { + clear_has_language(); + } + language_.SetAllocatedNoArena(&::hw::trezor::messages::management::LoadDevice::_i_give_permission_to_break_this_code_default_language_.get(), language); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.LoadDevice.language) +} + +// optional string label = 6; +inline bool LoadDevice::has_label() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void LoadDevice::set_has_label() { + _has_bits_[0] |= 0x00000008u; +} +inline void LoadDevice::clear_has_label() { + _has_bits_[0] &= ~0x00000008u; +} +inline void LoadDevice::clear_label() { + label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_label(); +} +inline const ::std::string& LoadDevice::label() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.LoadDevice.label) + return label_.GetNoArena(); +} +inline void LoadDevice::set_label(const ::std::string& value) { + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.LoadDevice.label) +} +#if LANG_CXX11 +inline void LoadDevice::set_label(::std::string&& value) { + set_has_label(); + label_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.LoadDevice.label) +} +#endif +inline void LoadDevice::set_label(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.LoadDevice.label) +} +inline void LoadDevice::set_label(const char* value, size_t size) { + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.LoadDevice.label) +} +inline ::std::string* LoadDevice::mutable_label() { + set_has_label(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.LoadDevice.label) + return label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LoadDevice::release_label() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.LoadDevice.label) + if (!has_label()) { + return NULL; + } + clear_has_label(); + return label_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LoadDevice::set_allocated_label(::std::string* label) { + if (label != NULL) { + set_has_label(); + } else { + clear_has_label(); + } + label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), label); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.LoadDevice.label) +} + +// optional bool skip_checksum = 7; +inline bool LoadDevice::has_skip_checksum() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void LoadDevice::set_has_skip_checksum() { + _has_bits_[0] |= 0x00000040u; +} +inline void LoadDevice::clear_has_skip_checksum() { + _has_bits_[0] &= ~0x00000040u; +} +inline void LoadDevice::clear_skip_checksum() { + skip_checksum_ = false; + clear_has_skip_checksum(); +} +inline bool LoadDevice::skip_checksum() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.LoadDevice.skip_checksum) + return skip_checksum_; +} +inline void LoadDevice::set_skip_checksum(bool value) { + set_has_skip_checksum(); + skip_checksum_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.LoadDevice.skip_checksum) +} + +// optional uint32 u2f_counter = 8; +inline bool LoadDevice::has_u2f_counter() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void LoadDevice::set_has_u2f_counter() { + _has_bits_[0] |= 0x00000080u; +} +inline void LoadDevice::clear_has_u2f_counter() { + _has_bits_[0] &= ~0x00000080u; +} +inline void LoadDevice::clear_u2f_counter() { + u2f_counter_ = 0u; + clear_has_u2f_counter(); +} +inline ::google::protobuf::uint32 LoadDevice::u2f_counter() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.LoadDevice.u2f_counter) + return u2f_counter_; +} +inline void LoadDevice::set_u2f_counter(::google::protobuf::uint32 value) { + set_has_u2f_counter(); + u2f_counter_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.LoadDevice.u2f_counter) +} + +// ------------------------------------------------------------------- + +// ResetDevice + +// optional bool display_random = 1; +inline bool ResetDevice::has_display_random() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ResetDevice::set_has_display_random() { + _has_bits_[0] |= 0x00000004u; +} +inline void ResetDevice::clear_has_display_random() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ResetDevice::clear_display_random() { + display_random_ = false; + clear_has_display_random(); +} +inline bool ResetDevice::display_random() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ResetDevice.display_random) + return display_random_; +} +inline void ResetDevice::set_display_random(bool value) { + set_has_display_random(); + display_random_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ResetDevice.display_random) +} + +// optional uint32 strength = 2 [default = 256]; +inline bool ResetDevice::has_strength() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void ResetDevice::set_has_strength() { + _has_bits_[0] |= 0x00000100u; +} +inline void ResetDevice::clear_has_strength() { + _has_bits_[0] &= ~0x00000100u; +} +inline void ResetDevice::clear_strength() { + strength_ = 256u; + clear_has_strength(); +} +inline ::google::protobuf::uint32 ResetDevice::strength() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ResetDevice.strength) + return strength_; +} +inline void ResetDevice::set_strength(::google::protobuf::uint32 value) { + set_has_strength(); + strength_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ResetDevice.strength) +} + +// optional bool passphrase_protection = 3; +inline bool ResetDevice::has_passphrase_protection() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ResetDevice::set_has_passphrase_protection() { + _has_bits_[0] |= 0x00000008u; +} +inline void ResetDevice::clear_has_passphrase_protection() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ResetDevice::clear_passphrase_protection() { + passphrase_protection_ = false; + clear_has_passphrase_protection(); +} +inline bool ResetDevice::passphrase_protection() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ResetDevice.passphrase_protection) + return passphrase_protection_; +} +inline void ResetDevice::set_passphrase_protection(bool value) { + set_has_passphrase_protection(); + passphrase_protection_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ResetDevice.passphrase_protection) +} + +// optional bool pin_protection = 4; +inline bool ResetDevice::has_pin_protection() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void ResetDevice::set_has_pin_protection() { + _has_bits_[0] |= 0x00000010u; +} +inline void ResetDevice::clear_has_pin_protection() { + _has_bits_[0] &= ~0x00000010u; +} +inline void ResetDevice::clear_pin_protection() { + pin_protection_ = false; + clear_has_pin_protection(); +} +inline bool ResetDevice::pin_protection() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ResetDevice.pin_protection) + return pin_protection_; +} +inline void ResetDevice::set_pin_protection(bool value) { + set_has_pin_protection(); + pin_protection_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ResetDevice.pin_protection) +} + +// optional string language = 5 [default = "english"]; +inline bool ResetDevice::has_language() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ResetDevice::set_has_language() { + _has_bits_[0] |= 0x00000001u; +} +inline void ResetDevice::clear_has_language() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ResetDevice::clear_language() { + language_.ClearToDefaultNoArena(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get()); + clear_has_language(); +} +inline const ::std::string& ResetDevice::language() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ResetDevice.language) + return language_.GetNoArena(); +} +inline void ResetDevice::set_language(const ::std::string& value) { + set_has_language(); + language_.SetNoArena(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ResetDevice.language) +} +#if LANG_CXX11 +inline void ResetDevice::set_language(::std::string&& value) { + set_has_language(); + language_.SetNoArena( + &::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.ResetDevice.language) +} +#endif +inline void ResetDevice::set_language(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_language(); + language_.SetNoArena(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.ResetDevice.language) +} +inline void ResetDevice::set_language(const char* value, size_t size) { + set_has_language(); + language_.SetNoArena(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.ResetDevice.language) +} +inline ::std::string* ResetDevice::mutable_language() { + set_has_language(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.ResetDevice.language) + return language_.MutableNoArena(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get()); +} +inline ::std::string* ResetDevice::release_language() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.ResetDevice.language) + if (!has_language()) { + return NULL; + } + clear_has_language(); + return language_.ReleaseNonDefaultNoArena(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get()); +} +inline void ResetDevice::set_allocated_language(::std::string* language) { + if (language != NULL) { + set_has_language(); + } else { + clear_has_language(); + } + language_.SetAllocatedNoArena(&::hw::trezor::messages::management::ResetDevice::_i_give_permission_to_break_this_code_default_language_.get(), language); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.ResetDevice.language) +} + +// optional string label = 6; +inline bool ResetDevice::has_label() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ResetDevice::set_has_label() { + _has_bits_[0] |= 0x00000002u; +} +inline void ResetDevice::clear_has_label() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ResetDevice::clear_label() { + label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_label(); +} +inline const ::std::string& ResetDevice::label() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ResetDevice.label) + return label_.GetNoArena(); +} +inline void ResetDevice::set_label(const ::std::string& value) { + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ResetDevice.label) +} +#if LANG_CXX11 +inline void ResetDevice::set_label(::std::string&& value) { + set_has_label(); + label_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.ResetDevice.label) +} +#endif +inline void ResetDevice::set_label(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.ResetDevice.label) +} +inline void ResetDevice::set_label(const char* value, size_t size) { + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.ResetDevice.label) +} +inline ::std::string* ResetDevice::mutable_label() { + set_has_label(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.ResetDevice.label) + return label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ResetDevice::release_label() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.ResetDevice.label) + if (!has_label()) { + return NULL; + } + clear_has_label(); + return label_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ResetDevice::set_allocated_label(::std::string* label) { + if (label != NULL) { + set_has_label(); + } else { + clear_has_label(); + } + label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), label); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.ResetDevice.label) +} + +// optional uint32 u2f_counter = 7; +inline bool ResetDevice::has_u2f_counter() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void ResetDevice::set_has_u2f_counter() { + _has_bits_[0] |= 0x00000040u; +} +inline void ResetDevice::clear_has_u2f_counter() { + _has_bits_[0] &= ~0x00000040u; +} +inline void ResetDevice::clear_u2f_counter() { + u2f_counter_ = 0u; + clear_has_u2f_counter(); +} +inline ::google::protobuf::uint32 ResetDevice::u2f_counter() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ResetDevice.u2f_counter) + return u2f_counter_; +} +inline void ResetDevice::set_u2f_counter(::google::protobuf::uint32 value) { + set_has_u2f_counter(); + u2f_counter_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ResetDevice.u2f_counter) +} + +// optional bool skip_backup = 8; +inline bool ResetDevice::has_skip_backup() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void ResetDevice::set_has_skip_backup() { + _has_bits_[0] |= 0x00000020u; +} +inline void ResetDevice::clear_has_skip_backup() { + _has_bits_[0] &= ~0x00000020u; +} +inline void ResetDevice::clear_skip_backup() { + skip_backup_ = false; + clear_has_skip_backup(); +} +inline bool ResetDevice::skip_backup() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ResetDevice.skip_backup) + return skip_backup_; +} +inline void ResetDevice::set_skip_backup(bool value) { + set_has_skip_backup(); + skip_backup_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ResetDevice.skip_backup) +} + +// optional bool no_backup = 9; +inline bool ResetDevice::has_no_backup() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void ResetDevice::set_has_no_backup() { + _has_bits_[0] |= 0x00000080u; +} +inline void ResetDevice::clear_has_no_backup() { + _has_bits_[0] &= ~0x00000080u; +} +inline void ResetDevice::clear_no_backup() { + no_backup_ = false; + clear_has_no_backup(); +} +inline bool ResetDevice::no_backup() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.ResetDevice.no_backup) + return no_backup_; +} +inline void ResetDevice::set_no_backup(bool value) { + set_has_no_backup(); + no_backup_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.ResetDevice.no_backup) +} + +// ------------------------------------------------------------------- + +// BackupDevice + +// ------------------------------------------------------------------- + +// EntropyRequest + +// ------------------------------------------------------------------- + +// EntropyAck + +// optional bytes entropy = 1; +inline bool EntropyAck::has_entropy() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EntropyAck::set_has_entropy() { + _has_bits_[0] |= 0x00000001u; +} +inline void EntropyAck::clear_has_entropy() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EntropyAck::clear_entropy() { + entropy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_entropy(); +} +inline const ::std::string& EntropyAck::entropy() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.EntropyAck.entropy) + return entropy_.GetNoArena(); +} +inline void EntropyAck::set_entropy(const ::std::string& value) { + set_has_entropy(); + entropy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.EntropyAck.entropy) +} +#if LANG_CXX11 +inline void EntropyAck::set_entropy(::std::string&& value) { + set_has_entropy(); + entropy_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.EntropyAck.entropy) +} +#endif +inline void EntropyAck::set_entropy(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_entropy(); + entropy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.EntropyAck.entropy) +} +inline void EntropyAck::set_entropy(const void* value, size_t size) { + set_has_entropy(); + entropy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.EntropyAck.entropy) +} +inline ::std::string* EntropyAck::mutable_entropy() { + set_has_entropy(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.EntropyAck.entropy) + return entropy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EntropyAck::release_entropy() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.EntropyAck.entropy) + if (!has_entropy()) { + return NULL; + } + clear_has_entropy(); + return entropy_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EntropyAck::set_allocated_entropy(::std::string* entropy) { + if (entropy != NULL) { + set_has_entropy(); + } else { + clear_has_entropy(); + } + entropy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entropy); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.EntropyAck.entropy) +} + +// ------------------------------------------------------------------- + +// RecoveryDevice + +// optional uint32 word_count = 1; +inline bool RecoveryDevice::has_word_count() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RecoveryDevice::set_has_word_count() { + _has_bits_[0] |= 0x00000004u; +} +inline void RecoveryDevice::clear_has_word_count() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RecoveryDevice::clear_word_count() { + word_count_ = 0u; + clear_has_word_count(); +} +inline ::google::protobuf::uint32 RecoveryDevice::word_count() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.RecoveryDevice.word_count) + return word_count_; +} +inline void RecoveryDevice::set_word_count(::google::protobuf::uint32 value) { + set_has_word_count(); + word_count_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.RecoveryDevice.word_count) +} + +// optional bool passphrase_protection = 2; +inline bool RecoveryDevice::has_passphrase_protection() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void RecoveryDevice::set_has_passphrase_protection() { + _has_bits_[0] |= 0x00000008u; +} +inline void RecoveryDevice::clear_has_passphrase_protection() { + _has_bits_[0] &= ~0x00000008u; +} +inline void RecoveryDevice::clear_passphrase_protection() { + passphrase_protection_ = false; + clear_has_passphrase_protection(); +} +inline bool RecoveryDevice::passphrase_protection() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.RecoveryDevice.passphrase_protection) + return passphrase_protection_; +} +inline void RecoveryDevice::set_passphrase_protection(bool value) { + set_has_passphrase_protection(); + passphrase_protection_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.RecoveryDevice.passphrase_protection) +} + +// optional bool pin_protection = 3; +inline bool RecoveryDevice::has_pin_protection() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void RecoveryDevice::set_has_pin_protection() { + _has_bits_[0] |= 0x00000010u; +} +inline void RecoveryDevice::clear_has_pin_protection() { + _has_bits_[0] &= ~0x00000010u; +} +inline void RecoveryDevice::clear_pin_protection() { + pin_protection_ = false; + clear_has_pin_protection(); +} +inline bool RecoveryDevice::pin_protection() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.RecoveryDevice.pin_protection) + return pin_protection_; +} +inline void RecoveryDevice::set_pin_protection(bool value) { + set_has_pin_protection(); + pin_protection_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.RecoveryDevice.pin_protection) +} + +// optional string language = 4 [default = "english"]; +inline bool RecoveryDevice::has_language() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RecoveryDevice::set_has_language() { + _has_bits_[0] |= 0x00000001u; +} +inline void RecoveryDevice::clear_has_language() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RecoveryDevice::clear_language() { + language_.ClearToDefaultNoArena(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get()); + clear_has_language(); +} +inline const ::std::string& RecoveryDevice::language() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.RecoveryDevice.language) + return language_.GetNoArena(); +} +inline void RecoveryDevice::set_language(const ::std::string& value) { + set_has_language(); + language_.SetNoArena(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.RecoveryDevice.language) +} +#if LANG_CXX11 +inline void RecoveryDevice::set_language(::std::string&& value) { + set_has_language(); + language_.SetNoArena( + &::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.RecoveryDevice.language) +} +#endif +inline void RecoveryDevice::set_language(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_language(); + language_.SetNoArena(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.RecoveryDevice.language) +} +inline void RecoveryDevice::set_language(const char* value, size_t size) { + set_has_language(); + language_.SetNoArena(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.RecoveryDevice.language) +} +inline ::std::string* RecoveryDevice::mutable_language() { + set_has_language(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.RecoveryDevice.language) + return language_.MutableNoArena(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get()); +} +inline ::std::string* RecoveryDevice::release_language() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.RecoveryDevice.language) + if (!has_language()) { + return NULL; + } + clear_has_language(); + return language_.ReleaseNonDefaultNoArena(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get()); +} +inline void RecoveryDevice::set_allocated_language(::std::string* language) { + if (language != NULL) { + set_has_language(); + } else { + clear_has_language(); + } + language_.SetAllocatedNoArena(&::hw::trezor::messages::management::RecoveryDevice::_i_give_permission_to_break_this_code_default_language_.get(), language); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.RecoveryDevice.language) +} + +// optional string label = 5; +inline bool RecoveryDevice::has_label() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RecoveryDevice::set_has_label() { + _has_bits_[0] |= 0x00000002u; +} +inline void RecoveryDevice::clear_has_label() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RecoveryDevice::clear_label() { + label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_label(); +} +inline const ::std::string& RecoveryDevice::label() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.RecoveryDevice.label) + return label_.GetNoArena(); +} +inline void RecoveryDevice::set_label(const ::std::string& value) { + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.RecoveryDevice.label) +} +#if LANG_CXX11 +inline void RecoveryDevice::set_label(::std::string&& value) { + set_has_label(); + label_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.RecoveryDevice.label) +} +#endif +inline void RecoveryDevice::set_label(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.RecoveryDevice.label) +} +inline void RecoveryDevice::set_label(const char* value, size_t size) { + set_has_label(); + label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.RecoveryDevice.label) +} +inline ::std::string* RecoveryDevice::mutable_label() { + set_has_label(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.RecoveryDevice.label) + return label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RecoveryDevice::release_label() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.RecoveryDevice.label) + if (!has_label()) { + return NULL; + } + clear_has_label(); + return label_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void RecoveryDevice::set_allocated_label(::std::string* label) { + if (label != NULL) { + set_has_label(); + } else { + clear_has_label(); + } + label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), label); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.RecoveryDevice.label) +} + +// optional bool enforce_wordlist = 6; +inline bool RecoveryDevice::has_enforce_wordlist() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void RecoveryDevice::set_has_enforce_wordlist() { + _has_bits_[0] |= 0x00000020u; +} +inline void RecoveryDevice::clear_has_enforce_wordlist() { + _has_bits_[0] &= ~0x00000020u; +} +inline void RecoveryDevice::clear_enforce_wordlist() { + enforce_wordlist_ = false; + clear_has_enforce_wordlist(); +} +inline bool RecoveryDevice::enforce_wordlist() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.RecoveryDevice.enforce_wordlist) + return enforce_wordlist_; +} +inline void RecoveryDevice::set_enforce_wordlist(bool value) { + set_has_enforce_wordlist(); + enforce_wordlist_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.RecoveryDevice.enforce_wordlist) +} + +// optional .hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceType type = 8; +inline bool RecoveryDevice::has_type() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void RecoveryDevice::set_has_type() { + _has_bits_[0] |= 0x00000080u; +} +inline void RecoveryDevice::clear_has_type() { + _has_bits_[0] &= ~0x00000080u; +} +inline void RecoveryDevice::clear_type() { + type_ = 0; + clear_has_type(); +} +inline ::hw::trezor::messages::management::RecoveryDevice_RecoveryDeviceType RecoveryDevice::type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.RecoveryDevice.type) + return static_cast< ::hw::trezor::messages::management::RecoveryDevice_RecoveryDeviceType >(type_); +} +inline void RecoveryDevice::set_type(::hw::trezor::messages::management::RecoveryDevice_RecoveryDeviceType value) { + assert(::hw::trezor::messages::management::RecoveryDevice_RecoveryDeviceType_IsValid(value)); + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.RecoveryDevice.type) +} + +// optional uint32 u2f_counter = 9; +inline bool RecoveryDevice::has_u2f_counter() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void RecoveryDevice::set_has_u2f_counter() { + _has_bits_[0] |= 0x00000100u; +} +inline void RecoveryDevice::clear_has_u2f_counter() { + _has_bits_[0] &= ~0x00000100u; +} +inline void RecoveryDevice::clear_u2f_counter() { + u2f_counter_ = 0u; + clear_has_u2f_counter(); +} +inline ::google::protobuf::uint32 RecoveryDevice::u2f_counter() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.RecoveryDevice.u2f_counter) + return u2f_counter_; +} +inline void RecoveryDevice::set_u2f_counter(::google::protobuf::uint32 value) { + set_has_u2f_counter(); + u2f_counter_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.RecoveryDevice.u2f_counter) +} + +// optional bool dry_run = 10; +inline bool RecoveryDevice::has_dry_run() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void RecoveryDevice::set_has_dry_run() { + _has_bits_[0] |= 0x00000040u; +} +inline void RecoveryDevice::clear_has_dry_run() { + _has_bits_[0] &= ~0x00000040u; +} +inline void RecoveryDevice::clear_dry_run() { + dry_run_ = false; + clear_has_dry_run(); +} +inline bool RecoveryDevice::dry_run() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.RecoveryDevice.dry_run) + return dry_run_; +} +inline void RecoveryDevice::set_dry_run(bool value) { + set_has_dry_run(); + dry_run_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.RecoveryDevice.dry_run) +} + +// ------------------------------------------------------------------- + +// WordRequest + +// optional .hw.trezor.messages.management.WordRequest.WordRequestType type = 1; +inline bool WordRequest::has_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void WordRequest::set_has_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void WordRequest::clear_has_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void WordRequest::clear_type() { + type_ = 0; + clear_has_type(); +} +inline ::hw::trezor::messages::management::WordRequest_WordRequestType WordRequest::type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.WordRequest.type) + return static_cast< ::hw::trezor::messages::management::WordRequest_WordRequestType >(type_); +} +inline void WordRequest::set_type(::hw::trezor::messages::management::WordRequest_WordRequestType value) { + assert(::hw::trezor::messages::management::WordRequest_WordRequestType_IsValid(value)); + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.WordRequest.type) +} + +// ------------------------------------------------------------------- + +// WordAck + +// required string word = 1; +inline bool WordAck::has_word() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void WordAck::set_has_word() { + _has_bits_[0] |= 0x00000001u; +} +inline void WordAck::clear_has_word() { + _has_bits_[0] &= ~0x00000001u; +} +inline void WordAck::clear_word() { + word_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_word(); +} +inline const ::std::string& WordAck::word() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.WordAck.word) + return word_.GetNoArena(); +} +inline void WordAck::set_word(const ::std::string& value) { + set_has_word(); + word_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.WordAck.word) +} +#if LANG_CXX11 +inline void WordAck::set_word(::std::string&& value) { + set_has_word(); + word_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.management.WordAck.word) +} +#endif +inline void WordAck::set_word(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_word(); + word_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.management.WordAck.word) +} +inline void WordAck::set_word(const char* value, size_t size) { + set_has_word(); + word_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.management.WordAck.word) +} +inline ::std::string* WordAck::mutable_word() { + set_has_word(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.management.WordAck.word) + return word_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WordAck::release_word() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.management.WordAck.word) + if (!has_word()) { + return NULL; + } + clear_has_word(); + return word_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WordAck::set_allocated_word(::std::string* word) { + if (word != NULL) { + set_has_word(); + } else { + clear_has_word(); + } + word_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), word); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.management.WordAck.word) +} + +// ------------------------------------------------------------------- + +// SetU2FCounter + +// optional uint32 u2f_counter = 1; +inline bool SetU2FCounter::has_u2f_counter() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SetU2FCounter::set_has_u2f_counter() { + _has_bits_[0] |= 0x00000001u; +} +inline void SetU2FCounter::clear_has_u2f_counter() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SetU2FCounter::clear_u2f_counter() { + u2f_counter_ = 0u; + clear_has_u2f_counter(); +} +inline ::google::protobuf::uint32 SetU2FCounter::u2f_counter() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.management.SetU2FCounter.u2f_counter) + return u2f_counter_; +} +inline void SetU2FCounter::set_u2f_counter(::google::protobuf::uint32 value) { + set_has_u2f_counter(); + u2f_counter_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.management.SetU2FCounter.u2f_counter) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace management +} // namespace messages +} // namespace trezor +} // namespace hw + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::hw::trezor::messages::management::ApplySettings_PassphraseSourceType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::management::ApplySettings_PassphraseSourceType>() { + return ::hw::trezor::messages::management::ApplySettings_PassphraseSourceType_descriptor(); +} +template <> struct is_proto_enum< ::hw::trezor::messages::management::RecoveryDevice_RecoveryDeviceType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::management::RecoveryDevice_RecoveryDeviceType>() { + return ::hw::trezor::messages::management::RecoveryDevice_RecoveryDeviceType_descriptor(); +} +template <> struct is_proto_enum< ::hw::trezor::messages::management::WordRequest_WordRequestType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::management::WordRequest_WordRequestType>() { + return ::hw::trezor::messages::management::WordRequest_WordRequestType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dmanagement_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-monero.pb.cc b/src/Core/hardware/trezor/protob/messages-monero.pb.cc new file mode 100644 index 00000000..362a4694 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-monero.pb.cc @@ -0,0 +1,18257 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-monero.proto + +#include "messages-monero.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dmonero_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MoneroKeyImageSyncStepAck_MoneroExportedKeyImage; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MoneroKeyImageSyncStepRequest_MoneroTransferDetails; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionAllOutSetAck_MoneroRingCtSig; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionDestinationEntry_MoneroAccountPublicAddress; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionRsigData; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionSourceEntry_MoneroMultisigKLRki; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionDestinationEntry; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_MoneroTransactionInitRequest_MoneroTransactionData; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_MoneroTransactionSourceEntry; +} // namespace protobuf_messages_2dmonero_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace monero { +class MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublicDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic_default_instance_; +class MoneroTransactionSourceEntry_MoneroOutputEntryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionSourceEntry_MoneroOutputEntry_default_instance_; +class MoneroTransactionSourceEntry_MoneroMultisigKLRkiDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionSourceEntry_MoneroMultisigKLRki_default_instance_; +class MoneroTransactionSourceEntryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionSourceEntry_default_instance_; +class MoneroTransactionDestinationEntry_MoneroAccountPublicAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionDestinationEntry_MoneroAccountPublicAddress_default_instance_; +class MoneroTransactionDestinationEntryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionDestinationEntry_default_instance_; +class MoneroTransactionRsigDataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionRsigData_default_instance_; +class MoneroGetAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroGetAddress_default_instance_; +class MoneroAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroAddress_default_instance_; +class MoneroGetWatchKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroGetWatchKey_default_instance_; +class MoneroWatchKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroWatchKey_default_instance_; +class MoneroTransactionInitRequest_MoneroTransactionDataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionInitRequest_MoneroTransactionData_default_instance_; +class MoneroTransactionInitRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionInitRequest_default_instance_; +class MoneroTransactionInitAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionInitAck_default_instance_; +class MoneroTransactionSetInputRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionSetInputRequest_default_instance_; +class MoneroTransactionSetInputAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionSetInputAck_default_instance_; +class MoneroTransactionInputsPermutationRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionInputsPermutationRequest_default_instance_; +class MoneroTransactionInputsPermutationAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionInputsPermutationAck_default_instance_; +class MoneroTransactionInputViniRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionInputViniRequest_default_instance_; +class MoneroTransactionInputViniAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionInputViniAck_default_instance_; +class MoneroTransactionAllInputsSetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionAllInputsSetRequest_default_instance_; +class MoneroTransactionAllInputsSetAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionAllInputsSetAck_default_instance_; +class MoneroTransactionSetOutputRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionSetOutputRequest_default_instance_; +class MoneroTransactionSetOutputAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionSetOutputAck_default_instance_; +class MoneroTransactionAllOutSetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionAllOutSetRequest_default_instance_; +class MoneroTransactionAllOutSetAck_MoneroRingCtSigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionAllOutSetAck_MoneroRingCtSig_default_instance_; +class MoneroTransactionAllOutSetAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionAllOutSetAck_default_instance_; +class MoneroTransactionSignInputRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionSignInputRequest_default_instance_; +class MoneroTransactionSignInputAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionSignInputAck_default_instance_; +class MoneroTransactionFinalRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionFinalRequest_default_instance_; +class MoneroTransactionFinalAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroTransactionFinalAck_default_instance_; +class MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList_default_instance_; +class MoneroKeyImageExportInitRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroKeyImageExportInitRequest_default_instance_; +class MoneroKeyImageExportInitAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroKeyImageExportInitAck_default_instance_; +class MoneroKeyImageSyncStepRequest_MoneroTransferDetailsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroKeyImageSyncStepRequest_MoneroTransferDetails_default_instance_; +class MoneroKeyImageSyncStepRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroKeyImageSyncStepRequest_default_instance_; +class MoneroKeyImageSyncStepAck_MoneroExportedKeyImageDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroKeyImageSyncStepAck_MoneroExportedKeyImage_default_instance_; +class MoneroKeyImageSyncStepAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroKeyImageSyncStepAck_default_instance_; +class MoneroKeyImageSyncFinalRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroKeyImageSyncFinalRequest_default_instance_; +class MoneroKeyImageSyncFinalAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroKeyImageSyncFinalAck_default_instance_; +class MoneroGetTxKeyRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroGetTxKeyRequest_default_instance_; +class MoneroGetTxKeyAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroGetTxKeyAck_default_instance_; +class MoneroLiveRefreshStartRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroLiveRefreshStartRequest_default_instance_; +class MoneroLiveRefreshStartAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroLiveRefreshStartAck_default_instance_; +class MoneroLiveRefreshStepRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroLiveRefreshStepRequest_default_instance_; +class MoneroLiveRefreshStepAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroLiveRefreshStepAck_default_instance_; +class MoneroLiveRefreshFinalRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroLiveRefreshFinalRequest_default_instance_; +class MoneroLiveRefreshFinalAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MoneroLiveRefreshFinalAck_default_instance_; +class DebugMoneroDiagRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DebugMoneroDiagRequest_default_instance_; +class DebugMoneroDiagAckDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DebugMoneroDiagAck_default_instance_; +} // namespace monero +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dmonero_2eproto { +static void InitDefaultsMoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic}, {}}; + +static void InitDefaultsMoneroTransactionSourceEntry_MoneroOutputEntry() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_MoneroOutputEntry_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroTransactionSourceEntry_MoneroOutputEntry}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic.base,}}; + +static void InitDefaultsMoneroTransactionSourceEntry_MoneroMultisigKLRki() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_MoneroMultisigKLRki_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionSourceEntry_MoneroMultisigKLRki = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionSourceEntry_MoneroMultisigKLRki}, {}}; + +static void InitDefaultsMoneroTransactionSourceEntry() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionSourceEntry(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_MoneroTransactionSourceEntry = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsMoneroTransactionSourceEntry}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry.base, + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry_MoneroMultisigKLRki.base,}}; + +static void InitDefaultsMoneroTransactionDestinationEntry_MoneroAccountPublicAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionDestinationEntry_MoneroAccountPublicAddress_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionDestinationEntry_MoneroAccountPublicAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionDestinationEntry_MoneroAccountPublicAddress}, {}}; + +static void InitDefaultsMoneroTransactionDestinationEntry() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionDestinationEntry_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionDestinationEntry = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroTransactionDestinationEntry}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionDestinationEntry_MoneroAccountPublicAddress.base,}}; + +static void InitDefaultsMoneroTransactionRsigData() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionRsigData_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionRsigData(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionRsigData::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionRsigData = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionRsigData}, {}}; + +static void InitDefaultsMoneroGetAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroGetAddress_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroGetAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroGetAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroGetAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroGetAddress}, {}}; + +static void InitDefaultsMoneroAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroAddress_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroAddress}, {}}; + +static void InitDefaultsMoneroGetWatchKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroGetWatchKey_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroGetWatchKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroGetWatchKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroGetWatchKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroGetWatchKey}, {}}; + +static void InitDefaultsMoneroWatchKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroWatchKey_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroWatchKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroWatchKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroWatchKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroWatchKey}, {}}; + +static void InitDefaultsMoneroTransactionInitRequest_MoneroTransactionData() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionInitRequest_MoneroTransactionData_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_MoneroTransactionInitRequest_MoneroTransactionData = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsMoneroTransactionInitRequest_MoneroTransactionData}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionDestinationEntry.base, + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionRsigData.base,}}; + +static void InitDefaultsMoneroTransactionInitRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionInitRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionInitRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionInitRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionInitRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroTransactionInitRequest}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInitRequest_MoneroTransactionData.base,}}; + +static void InitDefaultsMoneroTransactionInitAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionInitAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionInitAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionInitAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionInitAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroTransactionInitAck}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionRsigData.base,}}; + +static void InitDefaultsMoneroTransactionSetInputRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionSetInputRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionSetInputRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionSetInputRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionSetInputRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroTransactionSetInputRequest}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry.base,}}; + +static void InitDefaultsMoneroTransactionSetInputAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionSetInputAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionSetInputAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionSetInputAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionSetInputAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionSetInputAck}, {}}; + +static void InitDefaultsMoneroTransactionInputsPermutationRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionInputsPermutationRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionInputsPermutationRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionInputsPermutationRequest}, {}}; + +static void InitDefaultsMoneroTransactionInputsPermutationAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionInputsPermutationAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionInputsPermutationAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionInputsPermutationAck}, {}}; + +static void InitDefaultsMoneroTransactionInputViniRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionInputViniRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionInputViniRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionInputViniRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionInputViniRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroTransactionInputViniRequest}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry.base,}}; + +static void InitDefaultsMoneroTransactionInputViniAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionInputViniAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionInputViniAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionInputViniAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionInputViniAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionInputViniAck}, {}}; + +static void InitDefaultsMoneroTransactionAllInputsSetRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionAllInputsSetRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionAllInputsSetRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionAllInputsSetRequest}, {}}; + +static void InitDefaultsMoneroTransactionAllInputsSetAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionAllInputsSetAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionAllInputsSetAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroTransactionAllInputsSetAck}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionRsigData.base,}}; + +static void InitDefaultsMoneroTransactionSetOutputRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionSetOutputRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_MoneroTransactionSetOutputRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsMoneroTransactionSetOutputRequest}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionDestinationEntry.base, + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionRsigData.base,}}; + +static void InitDefaultsMoneroTransactionSetOutputAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionSetOutputAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionSetOutputAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionSetOutputAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionSetOutputAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroTransactionSetOutputAck}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionRsigData.base,}}; + +static void InitDefaultsMoneroTransactionAllOutSetRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionAllOutSetRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionAllOutSetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionAllOutSetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionAllOutSetRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroTransactionAllOutSetRequest}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionRsigData.base,}}; + +static void InitDefaultsMoneroTransactionAllOutSetAck_MoneroRingCtSig() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionAllOutSetAck_MoneroRingCtSig_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionAllOutSetAck_MoneroRingCtSig = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionAllOutSetAck_MoneroRingCtSig}, {}}; + +static void InitDefaultsMoneroTransactionAllOutSetAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionAllOutSetAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionAllOutSetAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroTransactionAllOutSetAck}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionAllOutSetAck_MoneroRingCtSig.base,}}; + +static void InitDefaultsMoneroTransactionSignInputRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionSignInputRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionSignInputRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionSignInputRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroTransactionSignInputRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroTransactionSignInputRequest}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry.base,}}; + +static void InitDefaultsMoneroTransactionSignInputAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionSignInputAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionSignInputAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionSignInputAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionSignInputAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionSignInputAck}, {}}; + +static void InitDefaultsMoneroTransactionFinalRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionFinalRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionFinalRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionFinalRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionFinalRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionFinalRequest}, {}}; + +static void InitDefaultsMoneroTransactionFinalAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroTransactionFinalAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroTransactionFinalAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroTransactionFinalAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroTransactionFinalAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroTransactionFinalAck}, {}}; + +static void InitDefaultsMoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList}, {}}; + +static void InitDefaultsMoneroKeyImageExportInitRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroKeyImageExportInitRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroKeyImageExportInitRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroKeyImageExportInitRequest}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList.base,}}; + +static void InitDefaultsMoneroKeyImageExportInitAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroKeyImageExportInitAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroKeyImageExportInitAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroKeyImageExportInitAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroKeyImageExportInitAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroKeyImageExportInitAck}, {}}; + +static void InitDefaultsMoneroKeyImageSyncStepRequest_MoneroTransferDetails() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroKeyImageSyncStepRequest_MoneroTransferDetails_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroKeyImageSyncStepRequest_MoneroTransferDetails = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroKeyImageSyncStepRequest_MoneroTransferDetails}, {}}; + +static void InitDefaultsMoneroKeyImageSyncStepRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroKeyImageSyncStepRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroKeyImageSyncStepRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroKeyImageSyncStepRequest}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncStepRequest_MoneroTransferDetails.base,}}; + +static void InitDefaultsMoneroKeyImageSyncStepAck_MoneroExportedKeyImage() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroKeyImageSyncStepAck_MoneroExportedKeyImage_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroKeyImageSyncStepAck_MoneroExportedKeyImage = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroKeyImageSyncStepAck_MoneroExportedKeyImage}, {}}; + +static void InitDefaultsMoneroKeyImageSyncStepAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroKeyImageSyncStepAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MoneroKeyImageSyncStepAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMoneroKeyImageSyncStepAck}, { + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncStepAck_MoneroExportedKeyImage.base,}}; + +static void InitDefaultsMoneroKeyImageSyncFinalRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroKeyImageSyncFinalRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroKeyImageSyncFinalRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroKeyImageSyncFinalRequest}, {}}; + +static void InitDefaultsMoneroKeyImageSyncFinalAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroKeyImageSyncFinalAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroKeyImageSyncFinalAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroKeyImageSyncFinalAck}, {}}; + +static void InitDefaultsMoneroGetTxKeyRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroGetTxKeyRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroGetTxKeyRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroGetTxKeyRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroGetTxKeyRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroGetTxKeyRequest}, {}}; + +static void InitDefaultsMoneroGetTxKeyAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroGetTxKeyAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroGetTxKeyAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroGetTxKeyAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroGetTxKeyAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroGetTxKeyAck}, {}}; + +static void InitDefaultsMoneroLiveRefreshStartRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroLiveRefreshStartRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroLiveRefreshStartRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroLiveRefreshStartRequest}, {}}; + +static void InitDefaultsMoneroLiveRefreshStartAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroLiveRefreshStartAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroLiveRefreshStartAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroLiveRefreshStartAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroLiveRefreshStartAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroLiveRefreshStartAck}, {}}; + +static void InitDefaultsMoneroLiveRefreshStepRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroLiveRefreshStepRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroLiveRefreshStepRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroLiveRefreshStepRequest}, {}}; + +static void InitDefaultsMoneroLiveRefreshStepAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroLiveRefreshStepAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroLiveRefreshStepAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroLiveRefreshStepAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroLiveRefreshStepAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroLiveRefreshStepAck}, {}}; + +static void InitDefaultsMoneroLiveRefreshFinalRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroLiveRefreshFinalRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroLiveRefreshFinalRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroLiveRefreshFinalRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroLiveRefreshFinalRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroLiveRefreshFinalRequest}, {}}; + +static void InitDefaultsMoneroLiveRefreshFinalAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_MoneroLiveRefreshFinalAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::MoneroLiveRefreshFinalAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::MoneroLiveRefreshFinalAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MoneroLiveRefreshFinalAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMoneroLiveRefreshFinalAck}, {}}; + +static void InitDefaultsDebugMoneroDiagRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_DebugMoneroDiagRequest_default_instance_; + new (ptr) ::hw::trezor::messages::monero::DebugMoneroDiagRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::DebugMoneroDiagRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DebugMoneroDiagRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDebugMoneroDiagRequest}, {}}; + +static void InitDefaultsDebugMoneroDiagAck() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::monero::_DebugMoneroDiagAck_default_instance_; + new (ptr) ::hw::trezor::messages::monero::DebugMoneroDiagAck(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::monero::DebugMoneroDiagAck::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DebugMoneroDiagAck = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDebugMoneroDiagAck}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionSourceEntry_MoneroMultisigKLRki.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionSourceEntry.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionDestinationEntry_MoneroAccountPublicAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionDestinationEntry.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionRsigData.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroGetAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroGetWatchKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroWatchKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionInitRequest_MoneroTransactionData.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionInitRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionInitAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionSetInputRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionSetInputAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionInputsPermutationRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionInputsPermutationAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionInputViniRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionInputViniAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionAllInputsSetRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionAllInputsSetAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionSetOutputRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionSetOutputAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionAllOutSetRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionAllOutSetAck_MoneroRingCtSig.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionAllOutSetAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionSignInputRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionSignInputAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionFinalRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroTransactionFinalAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroKeyImageExportInitRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroKeyImageExportInitAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroKeyImageSyncStepRequest_MoneroTransferDetails.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroKeyImageSyncStepRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroKeyImageSyncStepAck_MoneroExportedKeyImage.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroKeyImageSyncStepAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroKeyImageSyncFinalRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroKeyImageSyncFinalAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroGetTxKeyRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroGetTxKeyAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroLiveRefreshStartRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroLiveRefreshStartAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroLiveRefreshStepRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroLiveRefreshStepAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroLiveRefreshFinalRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_MoneroLiveRefreshFinalAck.base); + ::google::protobuf::internal::InitSCC(&scc_info_DebugMoneroDiagRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_DebugMoneroDiagAck.base); +} + +::google::protobuf::Metadata file_level_metadata[50]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic, dest_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic, commitment_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry, idx_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry, key_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki, k_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki, l_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki, r_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki, ki_), + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry, outputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry, real_output_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry, real_out_tx_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry, real_out_additional_tx_keys_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry, real_output_in_tx_index_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry, rct_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry, mask_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSourceEntry, multisig_klrki_), + ~0u, + 3, + 0, + ~0u, + 4, + 5, + 6, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress, spend_public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress, view_public_key_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry, addr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry, is_subaddress_), + 1, + 0, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionRsigData, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionRsigData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionRsigData, rsig_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionRsigData, offload_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionRsigData, grouping_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionRsigData, mask_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionRsigData, rsig_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionRsigData, rsig_parts_), + 2, + 3, + ~0u, + 0, + 1, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetAddress, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetAddress, show_display_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetAddress, network_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetAddress, account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetAddress, minor_), + ~0u, + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroAddress, address_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetWatchKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetWatchKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetWatchKey, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetWatchKey, network_type_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroWatchKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroWatchKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroWatchKey, watch_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroWatchKey, address_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, payment_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, unlock_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, outputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, change_dts_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, num_inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, mixin_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, fee_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, minor_indices_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, rsig_data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData, integrated_indices_), + 4, + 0, + 3, + ~0u, + 1, + 5, + 7, + 6, + 8, + ~0u, + 2, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest, network_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitRequest, tsx_data_), + 1, + ~0u, + 2, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitAck, hmacs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInitAck, rsig_data_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetInputRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetInputRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetInputRequest, src_entr_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetInputAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetInputAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetInputAck, vini_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetInputAck, vini_hmac_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetInputAck, pseudo_out_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetInputAck, pseudo_out_hmac_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetInputAck, pseudo_out_alpha_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetInputAck, spend_key_), + 0, + 1, + 2, + 3, + 4, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputsPermutationRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputsPermutationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputsPermutationRequest, perm_), + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputsPermutationAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputsPermutationAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputViniRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputViniRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputViniRequest, src_entr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputViniRequest, vini_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputViniRequest, vini_hmac_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputViniRequest, pseudo_out_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputViniRequest, pseudo_out_hmac_), + 4, + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputViniAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionInputViniAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllInputsSetRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllInputsSetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllInputsSetAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllInputsSetAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllInputsSetAck, rsig_data_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest, dst_entr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest, dst_entr_hmac_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest, rsig_data_), + 1, + 0, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputAck, tx_out_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputAck, vouti_hmac_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputAck, rsig_data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputAck, out_pk_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSetOutputAck, ecdh_info_), + 0, + 1, + 4, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetRequest, rsig_data_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig, txn_fee_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig, rv_type_), + 1, + 0, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck, extra_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck, tx_prefix_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck, rv_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck, full_message_hash_), + 0, + 1, + 3, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputRequest, src_entr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputRequest, vini_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputRequest, vini_hmac_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputRequest, pseudo_out_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputRequest, pseudo_out_hmac_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputRequest, pseudo_out_alpha_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputRequest, spend_key_), + 6, + 0, + 1, + 2, + 3, + 4, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionSignInputAck, signature_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionFinalRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionFinalRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionFinalAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionFinalAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionFinalAck, cout_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionFinalAck, salt_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionFinalAck, rand_mult_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroTransactionFinalAck, tx_enc_keys_), + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList, account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList, minor_indices_), + 0, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest, num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest, hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest, network_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest, subs_), + 1, + 0, + ~0u, + 2, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageExportInitAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails, out_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails, tx_pub_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails, additional_tx_pub_keys_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails, internal_output_index_), + 0, + 1, + ~0u, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest, tdis_), + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage, iv_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage, blob_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck, kis_), + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncFinalRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncFinalRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncFinalAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncFinalAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroKeyImageSyncFinalAck, enc_key_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyRequest, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyRequest, network_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyRequest, salt1_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyRequest, salt2_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyRequest, tx_enc_keys_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyRequest, tx_prefix_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyRequest, reason_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyRequest, view_public_key_), + ~0u, + 5, + 0, + 1, + 2, + 3, + 6, + 4, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyAck, salt_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyAck, tx_keys_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroGetTxKeyAck, tx_derivations_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest, network_type_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStartAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStartAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest, out_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest, recv_deriv_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest, real_out_idx_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest, sub_addr_major_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest, sub_addr_minor_), + 0, + 1, + 2, + 3, + 4, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStepAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStepAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStepAck, salt_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshStepAck, key_image_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshFinalRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshFinalRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshFinalAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::MoneroLiveRefreshFinalAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagRequest, ins_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagRequest, p1_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagRequest, p2_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagRequest, pd_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagRequest, data1_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagRequest, data2_), + 2, + 3, + 4, + ~0u, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagAck, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagAck, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagAck, ins_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagAck, p1_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagAck, p2_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagAck, pd_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagAck, data1_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::monero::DebugMoneroDiagAck, data2_), + 2, + 3, + 4, + ~0u, + 0, + 1, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic)}, + { 9, 16, sizeof(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry)}, + { 18, 27, sizeof(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki)}, + { 31, 45, sizeof(::hw::trezor::messages::monero::MoneroTransactionSourceEntry)}, + { 54, 61, sizeof(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress)}, + { 63, 71, sizeof(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry)}, + { 74, 85, sizeof(::hw::trezor::messages::monero::MoneroTransactionRsigData)}, + { 91, 101, sizeof(::hw::trezor::messages::monero::MoneroGetAddress)}, + { 106, 112, sizeof(::hw::trezor::messages::monero::MoneroAddress)}, + { 113, 120, sizeof(::hw::trezor::messages::monero::MoneroGetWatchKey)}, + { 122, 129, sizeof(::hw::trezor::messages::monero::MoneroWatchKey)}, + { 131, 148, sizeof(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData)}, + { 160, 169, sizeof(::hw::trezor::messages::monero::MoneroTransactionInitRequest)}, + { 173, 180, sizeof(::hw::trezor::messages::monero::MoneroTransactionInitAck)}, + { 182, 188, sizeof(::hw::trezor::messages::monero::MoneroTransactionSetInputRequest)}, + { 189, 200, sizeof(::hw::trezor::messages::monero::MoneroTransactionSetInputAck)}, + { 206, 212, sizeof(::hw::trezor::messages::monero::MoneroTransactionInputsPermutationRequest)}, + { 213, 218, sizeof(::hw::trezor::messages::monero::MoneroTransactionInputsPermutationAck)}, + { 218, 228, sizeof(::hw::trezor::messages::monero::MoneroTransactionInputViniRequest)}, + { 233, 238, sizeof(::hw::trezor::messages::monero::MoneroTransactionInputViniAck)}, + { 238, 243, sizeof(::hw::trezor::messages::monero::MoneroTransactionAllInputsSetRequest)}, + { 243, 249, sizeof(::hw::trezor::messages::monero::MoneroTransactionAllInputsSetAck)}, + { 250, 258, sizeof(::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest)}, + { 261, 271, sizeof(::hw::trezor::messages::monero::MoneroTransactionSetOutputAck)}, + { 276, 282, sizeof(::hw::trezor::messages::monero::MoneroTransactionAllOutSetRequest)}, + { 283, 291, sizeof(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig)}, + { 294, 303, sizeof(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck)}, + { 307, 319, sizeof(::hw::trezor::messages::monero::MoneroTransactionSignInputRequest)}, + { 326, 332, sizeof(::hw::trezor::messages::monero::MoneroTransactionSignInputAck)}, + { 333, 338, sizeof(::hw::trezor::messages::monero::MoneroTransactionFinalRequest)}, + { 338, 347, sizeof(::hw::trezor::messages::monero::MoneroTransactionFinalAck)}, + { 351, 358, sizeof(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList)}, + { 360, 370, sizeof(::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest)}, + { 375, 380, sizeof(::hw::trezor::messages::monero::MoneroKeyImageExportInitAck)}, + { 380, 389, sizeof(::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails)}, + { 393, 399, sizeof(::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest)}, + { 400, 407, sizeof(::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage)}, + { 409, 415, sizeof(::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck)}, + { 416, 421, sizeof(::hw::trezor::messages::monero::MoneroKeyImageSyncFinalRequest)}, + { 421, 427, sizeof(::hw::trezor::messages::monero::MoneroKeyImageSyncFinalAck)}, + { 428, 441, sizeof(::hw::trezor::messages::monero::MoneroGetTxKeyRequest)}, + { 449, 457, sizeof(::hw::trezor::messages::monero::MoneroGetTxKeyAck)}, + { 460, 467, sizeof(::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest)}, + { 469, 474, sizeof(::hw::trezor::messages::monero::MoneroLiveRefreshStartAck)}, + { 474, 484, sizeof(::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest)}, + { 489, 496, sizeof(::hw::trezor::messages::monero::MoneroLiveRefreshStepAck)}, + { 498, 503, sizeof(::hw::trezor::messages::monero::MoneroLiveRefreshFinalRequest)}, + { 503, 508, sizeof(::hw::trezor::messages::monero::MoneroLiveRefreshFinalAck)}, + { 508, 519, sizeof(::hw::trezor::messages::monero::DebugMoneroDiagRequest)}, + { 525, 536, sizeof(::hw::trezor::messages::monero::DebugMoneroDiagAck)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_MoneroOutputEntry_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_MoneroMultisigKLRki_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionDestinationEntry_MoneroAccountPublicAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionDestinationEntry_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionRsigData_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroGetAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroGetWatchKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroWatchKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionInitRequest_MoneroTransactionData_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionInitRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionInitAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionSetInputRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionSetInputAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionInputsPermutationRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionInputsPermutationAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionInputViniRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionInputViniAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionAllInputsSetRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionAllInputsSetAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionSetOutputRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionSetOutputAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionAllOutSetRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionAllOutSetAck_MoneroRingCtSig_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionAllOutSetAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionSignInputRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionSignInputAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionFinalRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroTransactionFinalAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroKeyImageExportInitRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroKeyImageExportInitAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroKeyImageSyncStepRequest_MoneroTransferDetails_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroKeyImageSyncStepRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroKeyImageSyncStepAck_MoneroExportedKeyImage_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroKeyImageSyncStepAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroKeyImageSyncFinalRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroKeyImageSyncFinalAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroGetTxKeyRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroGetTxKeyAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroLiveRefreshStartRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroLiveRefreshStartAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroLiveRefreshStepRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroLiveRefreshStepAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroLiveRefreshFinalRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_MoneroLiveRefreshFinalAck_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_DebugMoneroDiagRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::monero::_DebugMoneroDiagAck_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-monero.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 50); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\025messages-monero.proto\022\031hw.trezor.messa" + "ges.monero\"\210\005\n\034MoneroTransactionSourceEn" + "try\022Z\n\007outputs\030\001 \003(\0132I.hw.trezor.message" + "s.monero.MoneroTransactionSourceEntry.Mo" + "neroOutputEntry\022\023\n\013real_output\030\002 \001(\004\022\027\n\017" + "real_out_tx_key\030\003 \001(\014\022#\n\033real_out_additi" + "onal_tx_keys\030\004 \003(\014\022\037\n\027real_output_in_tx_" + "index\030\005 \001(\004\022\016\n\006amount\030\006 \001(\004\022\013\n\003rct\030\007 \001(\010" + "\022\014\n\004mask\030\010 \001(\014\022c\n\016multisig_kLRki\030\t \001(\0132K" + ".hw.trezor.messages.monero.MoneroTransac" + "tionSourceEntry.MoneroMultisigKLRki\032\303\001\n\021" + "MoneroOutputEntry\022\013\n\003idx\030\001 \001(\004\022i\n\003key\030\002 " + "\001(\0132\\.hw.trezor.messages.monero.MoneroTr" + "ansactionSourceEntry.MoneroOutputEntry.M" + "oneroRctKeyPublic\0326\n\022MoneroRctKeyPublic\022" + "\014\n\004dest\030\001 \001(\014\022\022\n\ncommitment\030\002 \001(\014\032B\n\023Mon" + "eroMultisigKLRki\022\t\n\001K\030\001 \001(\014\022\t\n\001L\030\002 \001(\014\022\t" + "\n\001R\030\003 \001(\014\022\n\n\002ki\030\004 \001(\014\"\202\002\n!MoneroTransact" + "ionDestinationEntry\022\016\n\006amount\030\001 \001(\004\022e\n\004a" + "ddr\030\002 \001(\0132W.hw.trezor.messages.monero.Mo" + "neroTransactionDestinationEntry.MoneroAc" + "countPublicAddress\022\025\n\ris_subaddress\030\003 \001(" + "\010\032O\n\032MoneroAccountPublicAddress\022\030\n\020spend" + "_public_key\030\001 \001(\014\022\027\n\017view_public_key\030\002 \001" + "(\014\"\206\001\n\031MoneroTransactionRsigData\022\021\n\trsig" + "_type\030\001 \001(\r\022\024\n\014offload_type\030\002 \001(\r\022\020\n\010gro" + "uping\030\003 \003(\004\022\014\n\004mask\030\004 \001(\014\022\014\n\004rsig\030\005 \001(\014\022" + "\022\n\nrsig_parts\030\006 \003(\014\"q\n\020MoneroGetAddress\022" + "\021\n\taddress_n\030\001 \003(\r\022\024\n\014show_display\030\002 \001(\010" + "\022\024\n\014network_type\030\003 \001(\r\022\017\n\007account\030\004 \001(\r\022" + "\r\n\005minor\030\005 \001(\r\" \n\rMoneroAddress\022\017\n\007addre" + "ss\030\001 \001(\014\"<\n\021MoneroGetWatchKey\022\021\n\taddress" + "_n\030\001 \003(\r\022\024\n\014network_type\030\002 \001(\r\"4\n\016Monero" + "WatchKey\022\021\n\twatch_key\030\001 \001(\014\022\017\n\007address\030\002" + " \001(\014\"\353\004\n\034MoneroTransactionInitRequest\022\017\n" + "\007version\030\001 \001(\r\022\021\n\taddress_n\030\002 \003(\r\022\024\n\014net" + "work_type\030\003 \001(\r\022_\n\010tsx_data\030\004 \001(\0132M.hw.t" + "rezor.messages.monero.MoneroTransactionI" + "nitRequest.MoneroTransactionData\032\257\003\n\025Mon" + "eroTransactionData\022\017\n\007version\030\001 \001(\r\022\022\n\np" + "ayment_id\030\002 \001(\014\022\023\n\013unlock_time\030\003 \001(\004\022M\n\007" + "outputs\030\004 \003(\0132<.hw.trezor.messages.moner" + "o.MoneroTransactionDestinationEntry\022P\n\nc" + "hange_dts\030\005 \001(\0132<.hw.trezor.messages.mon" + "ero.MoneroTransactionDestinationEntry\022\022\n" + "\nnum_inputs\030\006 \001(\r\022\r\n\005mixin\030\007 \001(\r\022\013\n\003fee\030" + "\010 \001(\004\022\017\n\007account\030\t \001(\r\022\025\n\rminor_indices\030" + "\n \003(\r\022G\n\trsig_data\030\013 \001(\01324.hw.trezor.mes" + "sages.monero.MoneroTransactionRsigData\022\032" + "\n\022integrated_indices\030\014 \003(\r\"r\n\030MoneroTran" + "sactionInitAck\022\r\n\005hmacs\030\001 \003(\014\022G\n\trsig_da" + "ta\030\002 \001(\01324.hw.trezor.messages.monero.Mon" + "eroTransactionRsigData\"m\n MoneroTransact" + "ionSetInputRequest\022I\n\010src_entr\030\001 \001(\01327.h" + "w.trezor.messages.monero.MoneroTransacti" + "onSourceEntry\"\231\001\n\034MoneroTransactionSetIn" + "putAck\022\014\n\004vini\030\001 \001(\014\022\021\n\tvini_hmac\030\002 \001(\014\022" + "\022\n\npseudo_out\030\003 \001(\014\022\027\n\017pseudo_out_hmac\030\004" + " \001(\014\022\030\n\020pseudo_out_alpha\030\005 \001(\014\022\021\n\tspend_" + "key\030\006 \001(\014\"9\n)MoneroTransactionInputsPerm" + "utationRequest\022\014\n\004perm\030\001 \003(\r\"\'\n%MoneroTr" + "ansactionInputsPermutationAck\"\274\001\n!Monero" + "TransactionInputViniRequest\022I\n\010src_entr\030" + "\001 \001(\01327.hw.trezor.messages.monero.Monero" + "TransactionSourceEntry\022\014\n\004vini\030\002 \001(\014\022\021\n\t" + "vini_hmac\030\003 \001(\014\022\022\n\npseudo_out\030\004 \001(\014\022\027\n\017p" + "seudo_out_hmac\030\005 \001(\014\"\037\n\035MoneroTransactio" + "nInputViniAck\"&\n$MoneroTransactionAllInp" + "utsSetRequest\"k\n MoneroTransactionAllInp" + "utsSetAck\022G\n\trsig_data\030\001 \001(\01324.hw.trezor" + ".messages.monero.MoneroTransactionRsigDa" + "ta\"\323\001\n!MoneroTransactionSetOutputRequest" + "\022N\n\010dst_entr\030\001 \001(\0132<.hw.trezor.messages." + "monero.MoneroTransactionDestinationEntry" + "\022\025\n\rdst_entr_hmac\030\002 \001(\014\022G\n\trsig_data\030\003 \001" + "(\01324.hw.trezor.messages.monero.MoneroTra" + "nsactionRsigData\"\257\001\n\035MoneroTransactionSe" + "tOutputAck\022\016\n\006tx_out\030\001 \001(\014\022\022\n\nvouti_hmac" + "\030\002 \001(\014\022G\n\trsig_data\030\003 \001(\01324.hw.trezor.me" + "ssages.monero.MoneroTransactionRsigData\022" + "\016\n\006out_pk\030\004 \001(\014\022\021\n\tecdh_info\030\005 \001(\014\"l\n!Mo" + "neroTransactionAllOutSetRequest\022G\n\trsig_" + "data\030\001 \001(\01324.hw.trezor.messages.monero.M" + "oneroTransactionRsigData\"\375\001\n\035MoneroTrans" + "actionAllOutSetAck\022\r\n\005extra\030\001 \001(\014\022\026\n\016tx_" + "prefix_hash\030\002 \001(\014\022T\n\002rv\030\004 \001(\0132H.hw.trezo" + "r.messages.monero.MoneroTransactionAllOu" + "tSetAck.MoneroRingCtSig\022\031\n\021full_message_" + "hash\030\005 \001(\014\032D\n\017MoneroRingCtSig\022\017\n\007txn_fee" + "\030\001 \001(\004\022\017\n\007message\030\002 \001(\014\022\017\n\007rv_type\030\003 \001(\r" + "\"\351\001\n!MoneroTransactionSignInputRequest\022I" + "\n\010src_entr\030\001 \001(\01327.hw.trezor.messages.mo" + "nero.MoneroTransactionSourceEntry\022\014\n\004vin" + "i\030\002 \001(\014\022\021\n\tvini_hmac\030\003 \001(\014\022\022\n\npseudo_out" + "\030\004 \001(\014\022\027\n\017pseudo_out_hmac\030\005 \001(\014\022\030\n\020pseud" + "o_out_alpha\030\006 \001(\014\022\021\n\tspend_key\030\007 \001(\014\"2\n\035" + "MoneroTransactionSignInputAck\022\021\n\tsignatu" + "re\030\001 \001(\014\"\037\n\035MoneroTransactionFinalReques" + "t\"c\n\031MoneroTransactionFinalAck\022\020\n\010cout_k" + "ey\030\001 \001(\014\022\014\n\004salt\030\002 \001(\014\022\021\n\trand_mult\030\003 \001(" + "\014\022\023\n\013tx_enc_keys\030\004 \001(\014\"\222\002\n\037MoneroKeyImag" + "eExportInitRequest\022\013\n\003num\030\001 \001(\004\022\014\n\004hash\030" + "\002 \001(\014\022\021\n\taddress_n\030\003 \003(\r\022\024\n\014network_type" + "\030\004 \001(\r\022d\n\004subs\030\005 \003(\0132V.hw.trezor.message" + "s.monero.MoneroKeyImageExportInitRequest" + ".MoneroSubAddressIndicesList\032E\n\033MoneroSu" + "bAddressIndicesList\022\017\n\007account\030\001 \001(\r\022\025\n\r" + "minor_indices\030\002 \003(\r\"\035\n\033MoneroKeyImageExp" + "ortInitAck\"\372\001\n\035MoneroKeyImageSyncStepReq" + "uest\022\\\n\004tdis\030\001 \003(\0132N.hw.trezor.messages." + "monero.MoneroKeyImageSyncStepRequest.Mon" + "eroTransferDetails\032{\n\025MoneroTransferDeta" + "ils\022\017\n\007out_key\030\001 \001(\014\022\022\n\ntx_pub_key\030\002 \001(\014" + "\022\036\n\026additional_tx_pub_keys\030\003 \003(\014\022\035\n\025inte" + "rnal_output_index\030\004 \001(\004\"\251\001\n\031MoneroKeyIma" + "geSyncStepAck\022X\n\003kis\030\001 \003(\0132K.hw.trezor.m" + "essages.monero.MoneroKeyImageSyncStepAck" + ".MoneroExportedKeyImage\0322\n\026MoneroExporte" + "dKeyImage\022\n\n\002iv\030\001 \001(\014\022\014\n\004blob\030\003 \001(\014\" \n\036M" + "oneroKeyImageSyncFinalRequest\"-\n\032MoneroK" + "eyImageSyncFinalAck\022\017\n\007enc_key\030\001 \001(\014\"\264\001\n" + "\025MoneroGetTxKeyRequest\022\021\n\taddress_n\030\001 \003(" + "\r\022\024\n\014network_type\030\002 \001(\r\022\r\n\005salt1\030\003 \001(\014\022\r" + "\n\005salt2\030\004 \001(\014\022\023\n\013tx_enc_keys\030\005 \001(\014\022\026\n\016tx" + "_prefix_hash\030\006 \001(\014\022\016\n\006reason\030\007 \001(\r\022\027\n\017vi" + "ew_public_key\030\010 \001(\014\"J\n\021MoneroGetTxKeyAck" + "\022\014\n\004salt\030\001 \001(\014\022\017\n\007tx_keys\030\002 \001(\014\022\026\n\016tx_de" + "rivations\030\003 \001(\014\"H\n\035MoneroLiveRefreshStar" + "tRequest\022\021\n\taddress_n\030\001 \003(\r\022\024\n\014network_t" + "ype\030\002 \001(\r\"\033\n\031MoneroLiveRefreshStartAck\"\211" + "\001\n\034MoneroLiveRefreshStepRequest\022\017\n\007out_k" + "ey\030\001 \001(\014\022\022\n\nrecv_deriv\030\002 \001(\014\022\024\n\014real_out" + "_idx\030\003 \001(\004\022\026\n\016sub_addr_major\030\004 \001(\r\022\026\n\016su" + "b_addr_minor\030\005 \001(\r\";\n\030MoneroLiveRefreshS" + "tepAck\022\014\n\004salt\030\001 \001(\014\022\021\n\tkey_image\030\002 \001(\014\"" + "\037\n\035MoneroLiveRefreshFinalRequest\"\033\n\031Mone" + "roLiveRefreshFinalAck\"g\n\026DebugMoneroDiag" + "Request\022\013\n\003ins\030\001 \001(\004\022\n\n\002p1\030\002 \001(\004\022\n\n\002p2\030\003" + " \001(\004\022\n\n\002pd\030\004 \003(\004\022\r\n\005data1\030\005 \001(\014\022\r\n\005data2" + "\030\006 \001(\014\"c\n\022DebugMoneroDiagAck\022\013\n\003ins\030\001 \001(" + "\004\022\n\n\002p1\030\002 \001(\004\022\n\n\002p2\030\003 \001(\004\022\n\n\002pd\030\004 \003(\004\022\r\n" + "\005data1\030\005 \001(\014\022\r\n\005data2\030\006 \001(\014B:\n#com.satos" + "hilabs.trezor.lib.protobufB\023TrezorMessag" + "eMonero" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 5727); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-monero.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dmonero_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace monero { + +// =================================================================== + +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::kDestFieldNumber; +const int MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::kCommitmentFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) +} +MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic(const MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + dest_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_dest()) { + dest_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_); + } + commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_commitment()) { + commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.commitment_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::SharedCtor() { + dest_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::~MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + SharedDtor(); +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::SharedDtor() { + dest_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + commitment_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic.base); + return *internal_default_instance(); +} + + +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + dest_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + commitment_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes dest = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_dest())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes commitment = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_commitment())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + return false; +#undef DO_ +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes dest = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->dest(), output); + } + + // optional bytes commitment = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->commitment(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) +} + +::google::protobuf::uint8* MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes dest = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->dest(), target); + } + + // optional bytes commitment = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->commitment(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + return target; +} + +size_t MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes dest = 1; + if (has_dest()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->dest()); + } + + // optional bytes commitment = 2; + if (has_commitment()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->commitment()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + MergeFrom(*source); + } +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::MergeFrom(const MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_dest(); + dest_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_); + } + if (cached_has_bits & 0x00000002u) { + set_has_commitment(); + commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.commitment_); + } + } +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::CopyFrom(const MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::IsInitialized() const { + return true; +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::Swap(MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::InternalSwap(MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* other) { + using std::swap; + dest_.Swap(&other->dest_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + commitment_.Swap(&other->commitment_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionSourceEntry_MoneroOutputEntry::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_MoneroOutputEntry_default_instance_._instance.get_mutable()->key_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic*>( + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionSourceEntry_MoneroOutputEntry::kIdxFieldNumber; +const int MoneroTransactionSourceEntry_MoneroOutputEntry::kKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionSourceEntry_MoneroOutputEntry::MoneroTransactionSourceEntry_MoneroOutputEntry() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) +} +MoneroTransactionSourceEntry_MoneroOutputEntry::MoneroTransactionSourceEntry_MoneroOutputEntry(const MoneroTransactionSourceEntry_MoneroOutputEntry& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_key()) { + key_ = new ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic(*from.key_); + } else { + key_ = NULL; + } + idx_ = from.idx_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry::SharedCtor() { + ::memset(&key_, 0, static_cast( + reinterpret_cast(&idx_) - + reinterpret_cast(&key_)) + sizeof(idx_)); +} + +MoneroTransactionSourceEntry_MoneroOutputEntry::~MoneroTransactionSourceEntry_MoneroOutputEntry() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + SharedDtor(); +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry::SharedDtor() { + if (this != internal_default_instance()) delete key_; +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionSourceEntry_MoneroOutputEntry::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionSourceEntry_MoneroOutputEntry& MoneroTransactionSourceEntry_MoneroOutputEntry::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry_MoneroOutputEntry.base); + return *internal_default_instance(); +} + + +void MoneroTransactionSourceEntry_MoneroOutputEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(key_ != NULL); + key_->Clear(); + } + idx_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionSourceEntry_MoneroOutputEntry::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 idx = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_idx(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &idx_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + return false; +#undef DO_ +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 idx = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->idx(), output); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic key = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) +} + +::google::protobuf::uint8* MoneroTransactionSourceEntry_MoneroOutputEntry::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 idx = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->idx(), target); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic key = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_key(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + return target; +} + +size_t MoneroTransactionSourceEntry_MoneroOutputEntry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic key = 2; + if (has_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *key_); + } + + // optional uint64 idx = 1; + if (has_idx()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->idx()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionSourceEntry_MoneroOutputEntry* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + MergeFrom(*source); + } +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry::MergeFrom(const MoneroTransactionSourceEntry_MoneroOutputEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + mutable_key()->::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::MergeFrom(from.key()); + } + if (cached_has_bits & 0x00000002u) { + idx_ = from.idx_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry::CopyFrom(const MoneroTransactionSourceEntry_MoneroOutputEntry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionSourceEntry_MoneroOutputEntry::IsInitialized() const { + return true; +} + +void MoneroTransactionSourceEntry_MoneroOutputEntry::Swap(MoneroTransactionSourceEntry_MoneroOutputEntry* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionSourceEntry_MoneroOutputEntry::InternalSwap(MoneroTransactionSourceEntry_MoneroOutputEntry* other) { + using std::swap; + swap(key_, other->key_); + swap(idx_, other->idx_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionSourceEntry_MoneroOutputEntry::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionSourceEntry_MoneroMultisigKLRki::kKFieldNumber; +const int MoneroTransactionSourceEntry_MoneroMultisigKLRki::kLFieldNumber; +const int MoneroTransactionSourceEntry_MoneroMultisigKLRki::kRFieldNumber; +const int MoneroTransactionSourceEntry_MoneroMultisigKLRki::kKiFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionSourceEntry_MoneroMultisigKLRki::MoneroTransactionSourceEntry_MoneroMultisigKLRki() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry_MoneroMultisigKLRki.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) +} +MoneroTransactionSourceEntry_MoneroMultisigKLRki::MoneroTransactionSourceEntry_MoneroMultisigKLRki(const MoneroTransactionSourceEntry_MoneroMultisigKLRki& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + k_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_k()) { + k_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.k_); + } + l_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_l()) { + l_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.l_); + } + r_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_r()) { + r_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.r_); + } + ki_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_ki()) { + ki_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ki_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) +} + +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::SharedCtor() { + k_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + l_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + r_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ki_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroTransactionSourceEntry_MoneroMultisigKLRki::~MoneroTransactionSourceEntry_MoneroMultisigKLRki() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + SharedDtor(); +} + +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::SharedDtor() { + k_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + l_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + r_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ki_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionSourceEntry_MoneroMultisigKLRki::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionSourceEntry_MoneroMultisigKLRki& MoneroTransactionSourceEntry_MoneroMultisigKLRki::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry_MoneroMultisigKLRki.base); + return *internal_default_instance(); +} + + +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + k_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + l_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + r_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + ki_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionSourceEntry_MoneroMultisigKLRki::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes K = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_k())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes L = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_l())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes R = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_r())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes ki = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_ki())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + return false; +#undef DO_ +} + +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes K = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->k(), output); + } + + // optional bytes L = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->l(), output); + } + + // optional bytes R = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->r(), output); + } + + // optional bytes ki = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->ki(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) +} + +::google::protobuf::uint8* MoneroTransactionSourceEntry_MoneroMultisigKLRki::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes K = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->k(), target); + } + + // optional bytes L = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->l(), target); + } + + // optional bytes R = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->r(), target); + } + + // optional bytes ki = 4; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->ki(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + return target; +} + +size_t MoneroTransactionSourceEntry_MoneroMultisigKLRki::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional bytes K = 1; + if (has_k()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->k()); + } + + // optional bytes L = 2; + if (has_l()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->l()); + } + + // optional bytes R = 3; + if (has_r()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->r()); + } + + // optional bytes ki = 4; + if (has_ki()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->ki()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionSourceEntry_MoneroMultisigKLRki* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + MergeFrom(*source); + } +} + +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::MergeFrom(const MoneroTransactionSourceEntry_MoneroMultisigKLRki& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_k(); + k_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.k_); + } + if (cached_has_bits & 0x00000002u) { + set_has_l(); + l_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.l_); + } + if (cached_has_bits & 0x00000004u) { + set_has_r(); + r_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.r_); + } + if (cached_has_bits & 0x00000008u) { + set_has_ki(); + ki_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ki_); + } + } +} + +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::CopyFrom(const MoneroTransactionSourceEntry_MoneroMultisigKLRki& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionSourceEntry_MoneroMultisigKLRki::IsInitialized() const { + return true; +} + +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::Swap(MoneroTransactionSourceEntry_MoneroMultisigKLRki* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionSourceEntry_MoneroMultisigKLRki::InternalSwap(MoneroTransactionSourceEntry_MoneroMultisigKLRki* other) { + using std::swap; + k_.Swap(&other->k_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + l_.Swap(&other->l_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + r_.Swap(&other->r_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + ki_.Swap(&other->ki_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionSourceEntry_MoneroMultisigKLRki::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionSourceEntry::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_default_instance_._instance.get_mutable()->multisig_klrki_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki*>( + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionSourceEntry::kOutputsFieldNumber; +const int MoneroTransactionSourceEntry::kRealOutputFieldNumber; +const int MoneroTransactionSourceEntry::kRealOutTxKeyFieldNumber; +const int MoneroTransactionSourceEntry::kRealOutAdditionalTxKeysFieldNumber; +const int MoneroTransactionSourceEntry::kRealOutputInTxIndexFieldNumber; +const int MoneroTransactionSourceEntry::kAmountFieldNumber; +const int MoneroTransactionSourceEntry::kRctFieldNumber; +const int MoneroTransactionSourceEntry::kMaskFieldNumber; +const int MoneroTransactionSourceEntry::kMultisigKLRkiFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionSourceEntry::MoneroTransactionSourceEntry() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry) +} +MoneroTransactionSourceEntry::MoneroTransactionSourceEntry(const MoneroTransactionSourceEntry& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + outputs_(from.outputs_), + real_out_additional_tx_keys_(from.real_out_additional_tx_keys_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + real_out_tx_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_real_out_tx_key()) { + real_out_tx_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.real_out_tx_key_); + } + mask_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_mask()) { + mask_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mask_); + } + if (from.has_multisig_klrki()) { + multisig_klrki_ = new ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki(*from.multisig_klrki_); + } else { + multisig_klrki_ = NULL; + } + ::memcpy(&real_output_, &from.real_output_, + static_cast(reinterpret_cast(&rct_) - + reinterpret_cast(&real_output_)) + sizeof(rct_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry) +} + +void MoneroTransactionSourceEntry::SharedCtor() { + real_out_tx_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mask_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&multisig_klrki_, 0, static_cast( + reinterpret_cast(&rct_) - + reinterpret_cast(&multisig_klrki_)) + sizeof(rct_)); +} + +MoneroTransactionSourceEntry::~MoneroTransactionSourceEntry() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + SharedDtor(); +} + +void MoneroTransactionSourceEntry::SharedDtor() { + real_out_tx_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mask_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete multisig_klrki_; +} + +void MoneroTransactionSourceEntry::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionSourceEntry::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionSourceEntry& MoneroTransactionSourceEntry::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSourceEntry.base); + return *internal_default_instance(); +} + + +void MoneroTransactionSourceEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + outputs_.Clear(); + real_out_additional_tx_keys_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + real_out_tx_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + mask_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(multisig_klrki_ != NULL); + multisig_klrki_->Clear(); + } + } + if (cached_has_bits & 120u) { + ::memset(&real_output_, 0, static_cast( + reinterpret_cast(&rct_) - + reinterpret_cast(&real_output_)) + sizeof(rct_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionSourceEntry::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry outputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 real_output = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_real_output(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &real_output_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes real_out_tx_key = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_real_out_tx_key())); + } else { + goto handle_unusual; + } + break; + } + + // repeated bytes real_out_additional_tx_keys = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_real_out_additional_tx_keys())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 real_output_in_tx_index = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_real_output_in_tx_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &real_output_in_tx_index_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 amount = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool rct = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_rct(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &rct_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes mask = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_mask())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki multisig_kLRki = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_multisig_klrki())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + return false; +#undef DO_ +} + +void MoneroTransactionSourceEntry::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry outputs = 1; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->outputs(static_cast(i)), + output); + } + + cached_has_bits = _has_bits_[0]; + // optional uint64 real_output = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->real_output(), output); + } + + // optional bytes real_out_tx_key = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->real_out_tx_key(), output); + } + + // repeated bytes real_out_additional_tx_keys = 4; + for (int i = 0, n = this->real_out_additional_tx_keys_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 4, this->real_out_additional_tx_keys(i), output); + } + + // optional uint64 real_output_in_tx_index = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->real_output_in_tx_index(), output); + } + + // optional uint64 amount = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->amount(), output); + } + + // optional bool rct = 7; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->rct(), output); + } + + // optional bytes mask = 8; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 8, this->mask(), output); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki multisig_kLRki = 9; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, this->_internal_multisig_klrki(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionSourceEntry) +} + +::google::protobuf::uint8* MoneroTransactionSourceEntry::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry outputs = 1; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->outputs(static_cast(i)), deterministic, target); + } + + cached_has_bits = _has_bits_[0]; + // optional uint64 real_output = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->real_output(), target); + } + + // optional bytes real_out_tx_key = 3; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->real_out_tx_key(), target); + } + + // repeated bytes real_out_additional_tx_keys = 4; + for (int i = 0, n = this->real_out_additional_tx_keys_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(4, this->real_out_additional_tx_keys(i), target); + } + + // optional uint64 real_output_in_tx_index = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->real_output_in_tx_index(), target); + } + + // optional uint64 amount = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->amount(), target); + } + + // optional bool rct = 7; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->rct(), target); + } + + // optional bytes mask = 8; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 8, this->mask(), target); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki multisig_kLRki = 9; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, this->_internal_multisig_klrki(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + return target; +} + +size_t MoneroTransactionSourceEntry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry outputs = 1; + { + unsigned int count = static_cast(this->outputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->outputs(static_cast(i))); + } + } + + // repeated bytes real_out_additional_tx_keys = 4; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->real_out_additional_tx_keys_size()); + for (int i = 0, n = this->real_out_additional_tx_keys_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->real_out_additional_tx_keys(i)); + } + + if (_has_bits_[0 / 32] & 127u) { + // optional bytes real_out_tx_key = 3; + if (has_real_out_tx_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->real_out_tx_key()); + } + + // optional bytes mask = 8; + if (has_mask()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->mask()); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki multisig_kLRki = 9; + if (has_multisig_klrki()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *multisig_klrki_); + } + + // optional uint64 real_output = 2; + if (has_real_output()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->real_output()); + } + + // optional uint64 real_output_in_tx_index = 5; + if (has_real_output_in_tx_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->real_output_in_tx_index()); + } + + // optional uint64 amount = 6; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + // optional bool rct = 7; + if (has_rct()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionSourceEntry::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionSourceEntry* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + MergeFrom(*source); + } +} + +void MoneroTransactionSourceEntry::MergeFrom(const MoneroTransactionSourceEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + outputs_.MergeFrom(from.outputs_); + real_out_additional_tx_keys_.MergeFrom(from.real_out_additional_tx_keys_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 127u) { + if (cached_has_bits & 0x00000001u) { + set_has_real_out_tx_key(); + real_out_tx_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.real_out_tx_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_mask(); + mask_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mask_); + } + if (cached_has_bits & 0x00000004u) { + mutable_multisig_klrki()->::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki::MergeFrom(from.multisig_klrki()); + } + if (cached_has_bits & 0x00000008u) { + real_output_ = from.real_output_; + } + if (cached_has_bits & 0x00000010u) { + real_output_in_tx_index_ = from.real_output_in_tx_index_; + } + if (cached_has_bits & 0x00000020u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000040u) { + rct_ = from.rct_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MoneroTransactionSourceEntry::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionSourceEntry::CopyFrom(const MoneroTransactionSourceEntry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionSourceEntry::IsInitialized() const { + return true; +} + +void MoneroTransactionSourceEntry::Swap(MoneroTransactionSourceEntry* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionSourceEntry::InternalSwap(MoneroTransactionSourceEntry* other) { + using std::swap; + CastToBase(&outputs_)->InternalSwap(CastToBase(&other->outputs_)); + real_out_additional_tx_keys_.InternalSwap(CastToBase(&other->real_out_additional_tx_keys_)); + real_out_tx_key_.Swap(&other->real_out_tx_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + mask_.Swap(&other->mask_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(multisig_klrki_, other->multisig_klrki_); + swap(real_output_, other->real_output_); + swap(real_output_in_tx_index_, other->real_output_in_tx_index_); + swap(amount_, other->amount_); + swap(rct_, other->rct_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionSourceEntry::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::kSpendPublicKeyFieldNumber; +const int MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::kViewPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionDestinationEntry_MoneroAccountPublicAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) +} +MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress(const MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + spend_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_spend_public_key()) { + spend_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spend_public_key_); + } + view_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_view_public_key()) { + view_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.view_public_key_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) +} + +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::SharedCtor() { + spend_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + view_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::~MoneroTransactionDestinationEntry_MoneroAccountPublicAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + SharedDtor(); +} + +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::SharedDtor() { + spend_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + view_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionDestinationEntry_MoneroAccountPublicAddress.base); + return *internal_default_instance(); +} + + +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + spend_public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + view_public_key_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes spend_public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_spend_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes view_public_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_view_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + return false; +#undef DO_ +} + +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes spend_public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->spend_public_key(), output); + } + + // optional bytes view_public_key = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->view_public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) +} + +::google::protobuf::uint8* MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes spend_public_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->spend_public_key(), target); + } + + // optional bytes view_public_key = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->view_public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + return target; +} + +size_t MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes spend_public_key = 1; + if (has_spend_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->spend_public_key()); + } + + // optional bytes view_public_key = 2; + if (has_view_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->view_public_key()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + MergeFrom(*source); + } +} + +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::MergeFrom(const MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_spend_public_key(); + spend_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spend_public_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_view_public_key(); + view_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.view_public_key_); + } + } +} + +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::CopyFrom(const MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::IsInitialized() const { + return true; +} + +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::Swap(MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::InternalSwap(MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* other) { + using std::swap; + spend_public_key_.Swap(&other->spend_public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + view_public_key_.Swap(&other->view_public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionDestinationEntry::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionDestinationEntry_default_instance_._instance.get_mutable()->addr_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress*>( + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionDestinationEntry::kAmountFieldNumber; +const int MoneroTransactionDestinationEntry::kAddrFieldNumber; +const int MoneroTransactionDestinationEntry::kIsSubaddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionDestinationEntry::MoneroTransactionDestinationEntry() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionDestinationEntry.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) +} +MoneroTransactionDestinationEntry::MoneroTransactionDestinationEntry(const MoneroTransactionDestinationEntry& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_addr()) { + addr_ = new ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress(*from.addr_); + } else { + addr_ = NULL; + } + ::memcpy(&amount_, &from.amount_, + static_cast(reinterpret_cast(&is_subaddress_) - + reinterpret_cast(&amount_)) + sizeof(is_subaddress_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) +} + +void MoneroTransactionDestinationEntry::SharedCtor() { + ::memset(&addr_, 0, static_cast( + reinterpret_cast(&is_subaddress_) - + reinterpret_cast(&addr_)) + sizeof(is_subaddress_)); +} + +MoneroTransactionDestinationEntry::~MoneroTransactionDestinationEntry() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + SharedDtor(); +} + +void MoneroTransactionDestinationEntry::SharedDtor() { + if (this != internal_default_instance()) delete addr_; +} + +void MoneroTransactionDestinationEntry::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionDestinationEntry::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionDestinationEntry& MoneroTransactionDestinationEntry::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionDestinationEntry.base); + return *internal_default_instance(); +} + + +void MoneroTransactionDestinationEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(addr_ != NULL); + addr_->Clear(); + } + if (cached_has_bits & 6u) { + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&is_subaddress_) - + reinterpret_cast(&amount_)) + sizeof(is_subaddress_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionDestinationEntry::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 amount = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress addr = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_addr())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool is_subaddress = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_is_subaddress(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_subaddress_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + return false; +#undef DO_ +} + +void MoneroTransactionDestinationEntry::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 amount = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->amount(), output); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress addr = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_addr(), output); + } + + // optional bool is_subaddress = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_subaddress(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) +} + +::google::protobuf::uint8* MoneroTransactionDestinationEntry::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 amount = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->amount(), target); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress addr = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_addr(), deterministic, target); + } + + // optional bool is_subaddress = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_subaddress(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + return target; +} + +size_t MoneroTransactionDestinationEntry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress addr = 2; + if (has_addr()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *addr_); + } + + // optional uint64 amount = 1; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + // optional bool is_subaddress = 3; + if (has_is_subaddress()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionDestinationEntry::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionDestinationEntry* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + MergeFrom(*source); + } +} + +void MoneroTransactionDestinationEntry::MergeFrom(const MoneroTransactionDestinationEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + mutable_addr()->::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::MergeFrom(from.addr()); + } + if (cached_has_bits & 0x00000002u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000004u) { + is_subaddress_ = from.is_subaddress_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MoneroTransactionDestinationEntry::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionDestinationEntry::CopyFrom(const MoneroTransactionDestinationEntry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionDestinationEntry::IsInitialized() const { + return true; +} + +void MoneroTransactionDestinationEntry::Swap(MoneroTransactionDestinationEntry* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionDestinationEntry::InternalSwap(MoneroTransactionDestinationEntry* other) { + using std::swap; + swap(addr_, other->addr_); + swap(amount_, other->amount_); + swap(is_subaddress_, other->is_subaddress_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionDestinationEntry::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionRsigData::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionRsigData::kRsigTypeFieldNumber; +const int MoneroTransactionRsigData::kOffloadTypeFieldNumber; +const int MoneroTransactionRsigData::kGroupingFieldNumber; +const int MoneroTransactionRsigData::kMaskFieldNumber; +const int MoneroTransactionRsigData::kRsigFieldNumber; +const int MoneroTransactionRsigData::kRsigPartsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionRsigData::MoneroTransactionRsigData() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionRsigData.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionRsigData) +} +MoneroTransactionRsigData::MoneroTransactionRsigData(const MoneroTransactionRsigData& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + grouping_(from.grouping_), + rsig_parts_(from.rsig_parts_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + mask_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_mask()) { + mask_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mask_); + } + rsig_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_rsig()) { + rsig_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rsig_); + } + ::memcpy(&rsig_type_, &from.rsig_type_, + static_cast(reinterpret_cast(&offload_type_) - + reinterpret_cast(&rsig_type_)) + sizeof(offload_type_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionRsigData) +} + +void MoneroTransactionRsigData::SharedCtor() { + mask_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rsig_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&rsig_type_, 0, static_cast( + reinterpret_cast(&offload_type_) - + reinterpret_cast(&rsig_type_)) + sizeof(offload_type_)); +} + +MoneroTransactionRsigData::~MoneroTransactionRsigData() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionRsigData) + SharedDtor(); +} + +void MoneroTransactionRsigData::SharedDtor() { + mask_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rsig_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroTransactionRsigData::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionRsigData::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionRsigData& MoneroTransactionRsigData::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionRsigData.base); + return *internal_default_instance(); +} + + +void MoneroTransactionRsigData::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionRsigData) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + grouping_.Clear(); + rsig_parts_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + mask_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + rsig_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 12u) { + ::memset(&rsig_type_, 0, static_cast( + reinterpret_cast(&offload_type_) - + reinterpret_cast(&rsig_type_)) + sizeof(offload_type_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionRsigData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionRsigData) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 rsig_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_rsig_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &rsig_type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 offload_type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_offload_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &offload_type_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint64 grouping = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + 1, 24u, input, this->mutable_grouping()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, this->mutable_grouping()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes mask = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_mask())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes rsig = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_rsig())); + } else { + goto handle_unusual; + } + break; + } + + // repeated bytes rsig_parts = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_rsig_parts())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionRsigData) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionRsigData) + return false; +#undef DO_ +} + +void MoneroTransactionRsigData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionRsigData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 rsig_type = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->rsig_type(), output); + } + + // optional uint32 offload_type = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->offload_type(), output); + } + + // repeated uint64 grouping = 3; + for (int i = 0, n = this->grouping_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64( + 3, this->grouping(i), output); + } + + // optional bytes mask = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->mask(), output); + } + + // optional bytes rsig = 5; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->rsig(), output); + } + + // repeated bytes rsig_parts = 6; + for (int i = 0, n = this->rsig_parts_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 6, this->rsig_parts(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionRsigData) +} + +::google::protobuf::uint8* MoneroTransactionRsigData::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionRsigData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 rsig_type = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->rsig_type(), target); + } + + // optional uint32 offload_type = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->offload_type(), target); + } + + // repeated uint64 grouping = 3; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt64ToArray(3, this->grouping_, target); + + // optional bytes mask = 4; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->mask(), target); + } + + // optional bytes rsig = 5; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->rsig(), target); + } + + // repeated bytes rsig_parts = 6; + for (int i = 0, n = this->rsig_parts_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(6, this->rsig_parts(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionRsigData) + return target; +} + +size_t MoneroTransactionRsigData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionRsigData) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint64 grouping = 3; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt64Size(this->grouping_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->grouping_size()); + total_size += data_size; + } + + // repeated bytes rsig_parts = 6; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->rsig_parts_size()); + for (int i = 0, n = this->rsig_parts_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->rsig_parts(i)); + } + + if (_has_bits_[0 / 32] & 15u) { + // optional bytes mask = 4; + if (has_mask()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->mask()); + } + + // optional bytes rsig = 5; + if (has_rsig()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->rsig()); + } + + // optional uint32 rsig_type = 1; + if (has_rsig_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->rsig_type()); + } + + // optional uint32 offload_type = 2; + if (has_offload_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->offload_type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionRsigData::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionRsigData) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionRsigData* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionRsigData) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionRsigData) + MergeFrom(*source); + } +} + +void MoneroTransactionRsigData::MergeFrom(const MoneroTransactionRsigData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionRsigData) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + grouping_.MergeFrom(from.grouping_); + rsig_parts_.MergeFrom(from.rsig_parts_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_mask(); + mask_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mask_); + } + if (cached_has_bits & 0x00000002u) { + set_has_rsig(); + rsig_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rsig_); + } + if (cached_has_bits & 0x00000004u) { + rsig_type_ = from.rsig_type_; + } + if (cached_has_bits & 0x00000008u) { + offload_type_ = from.offload_type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MoneroTransactionRsigData::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionRsigData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionRsigData::CopyFrom(const MoneroTransactionRsigData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionRsigData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionRsigData::IsInitialized() const { + return true; +} + +void MoneroTransactionRsigData::Swap(MoneroTransactionRsigData* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionRsigData::InternalSwap(MoneroTransactionRsigData* other) { + using std::swap; + grouping_.InternalSwap(&other->grouping_); + rsig_parts_.InternalSwap(CastToBase(&other->rsig_parts_)); + mask_.Swap(&other->mask_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + rsig_.Swap(&other->rsig_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(rsig_type_, other->rsig_type_); + swap(offload_type_, other->offload_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionRsigData::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroGetAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroGetAddress::kAddressNFieldNumber; +const int MoneroGetAddress::kShowDisplayFieldNumber; +const int MoneroGetAddress::kNetworkTypeFieldNumber; +const int MoneroGetAddress::kAccountFieldNumber; +const int MoneroGetAddress::kMinorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroGetAddress::MoneroGetAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroGetAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroGetAddress) +} +MoneroGetAddress::MoneroGetAddress(const MoneroGetAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&show_display_, &from.show_display_, + static_cast(reinterpret_cast(&minor_) - + reinterpret_cast(&show_display_)) + sizeof(minor_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroGetAddress) +} + +void MoneroGetAddress::SharedCtor() { + ::memset(&show_display_, 0, static_cast( + reinterpret_cast(&minor_) - + reinterpret_cast(&show_display_)) + sizeof(minor_)); +} + +MoneroGetAddress::~MoneroGetAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroGetAddress) + SharedDtor(); +} + +void MoneroGetAddress::SharedDtor() { +} + +void MoneroGetAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroGetAddress::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroGetAddress& MoneroGetAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroGetAddress.base); + return *internal_default_instance(); +} + + +void MoneroGetAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + ::memset(&show_display_, 0, static_cast( + reinterpret_cast(&minor_) - + reinterpret_cast(&show_display_)) + sizeof(minor_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroGetAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroGetAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 network_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_network_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &network_type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 account = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_account(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &account_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 minor = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_minor(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &minor_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroGetAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroGetAddress) + return false; +#undef DO_ +} + +void MoneroGetAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + // optional uint32 network_type = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->network_type(), output); + } + + // optional uint32 account = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->account(), output); + } + + // optional uint32 minor = 5; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->minor(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroGetAddress) +} + +::google::protobuf::uint8* MoneroGetAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + // optional uint32 network_type = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->network_type(), target); + } + + // optional uint32 account = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->account(), target); + } + + // optional uint32 minor = 5; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->minor(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroGetAddress) + return target; +} + +size_t MoneroGetAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroGetAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 15u) { + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + // optional uint32 network_type = 3; + if (has_network_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->network_type()); + } + + // optional uint32 account = 4; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->account()); + } + + // optional uint32 minor = 5; + if (has_minor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->minor()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroGetAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroGetAddress) + GOOGLE_DCHECK_NE(&from, this); + const MoneroGetAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroGetAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroGetAddress) + MergeFrom(*source); + } +} + +void MoneroGetAddress::MergeFrom(const MoneroGetAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroGetAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + show_display_ = from.show_display_; + } + if (cached_has_bits & 0x00000002u) { + network_type_ = from.network_type_; + } + if (cached_has_bits & 0x00000004u) { + account_ = from.account_; + } + if (cached_has_bits & 0x00000008u) { + minor_ = from.minor_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MoneroGetAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroGetAddress::CopyFrom(const MoneroGetAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroGetAddress::IsInitialized() const { + return true; +} + +void MoneroGetAddress::Swap(MoneroGetAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroGetAddress::InternalSwap(MoneroGetAddress* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(network_type_, other->network_type_); + swap(account_, other->account_); + swap(minor_, other->minor_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroGetAddress::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroAddress::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroAddress::MoneroAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroAddress) +} +MoneroAddress::MoneroAddress(const MoneroAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroAddress) +} + +void MoneroAddress::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroAddress::~MoneroAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroAddress) + SharedDtor(); +} + +void MoneroAddress::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroAddress::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroAddress& MoneroAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroAddress.base); + return *internal_default_instance(); +} + + +void MoneroAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_address())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroAddress) + return false; +#undef DO_ +} + +void MoneroAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroAddress) +} + +::google::protobuf::uint8* MoneroAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes address = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroAddress) + return target; +} + +size_t MoneroAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->address()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroAddress) + GOOGLE_DCHECK_NE(&from, this); + const MoneroAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroAddress) + MergeFrom(*source); + } +} + +void MoneroAddress::MergeFrom(const MoneroAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_address()) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } +} + +void MoneroAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroAddress::CopyFrom(const MoneroAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroAddress::IsInitialized() const { + return true; +} + +void MoneroAddress::Swap(MoneroAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroAddress::InternalSwap(MoneroAddress* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroAddress::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroGetWatchKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroGetWatchKey::kAddressNFieldNumber; +const int MoneroGetWatchKey::kNetworkTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroGetWatchKey::MoneroGetWatchKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroGetWatchKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroGetWatchKey) +} +MoneroGetWatchKey::MoneroGetWatchKey(const MoneroGetWatchKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + network_type_ = from.network_type_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroGetWatchKey) +} + +void MoneroGetWatchKey::SharedCtor() { + network_type_ = 0u; +} + +MoneroGetWatchKey::~MoneroGetWatchKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroGetWatchKey) + SharedDtor(); +} + +void MoneroGetWatchKey::SharedDtor() { +} + +void MoneroGetWatchKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroGetWatchKey::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroGetWatchKey& MoneroGetWatchKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroGetWatchKey.base); + return *internal_default_instance(); +} + + +void MoneroGetWatchKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroGetWatchKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + network_type_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroGetWatchKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroGetWatchKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 network_type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_network_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &network_type_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroGetWatchKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroGetWatchKey) + return false; +#undef DO_ +} + +void MoneroGetWatchKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroGetWatchKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional uint32 network_type = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->network_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroGetWatchKey) +} + +::google::protobuf::uint8* MoneroGetWatchKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroGetWatchKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional uint32 network_type = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->network_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroGetWatchKey) + return target; +} + +size_t MoneroGetWatchKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroGetWatchKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional uint32 network_type = 2; + if (has_network_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->network_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroGetWatchKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroGetWatchKey) + GOOGLE_DCHECK_NE(&from, this); + const MoneroGetWatchKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroGetWatchKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroGetWatchKey) + MergeFrom(*source); + } +} + +void MoneroGetWatchKey::MergeFrom(const MoneroGetWatchKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroGetWatchKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_network_type()) { + set_network_type(from.network_type()); + } +} + +void MoneroGetWatchKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroGetWatchKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroGetWatchKey::CopyFrom(const MoneroGetWatchKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroGetWatchKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroGetWatchKey::IsInitialized() const { + return true; +} + +void MoneroGetWatchKey::Swap(MoneroGetWatchKey* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroGetWatchKey::InternalSwap(MoneroGetWatchKey* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(network_type_, other->network_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroGetWatchKey::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroWatchKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroWatchKey::kWatchKeyFieldNumber; +const int MoneroWatchKey::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroWatchKey::MoneroWatchKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroWatchKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroWatchKey) +} +MoneroWatchKey::MoneroWatchKey(const MoneroWatchKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + watch_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_watch_key()) { + watch_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.watch_key_); + } + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroWatchKey) +} + +void MoneroWatchKey::SharedCtor() { + watch_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroWatchKey::~MoneroWatchKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroWatchKey) + SharedDtor(); +} + +void MoneroWatchKey::SharedDtor() { + watch_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroWatchKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroWatchKey::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroWatchKey& MoneroWatchKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroWatchKey.base); + return *internal_default_instance(); +} + + +void MoneroWatchKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroWatchKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + watch_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroWatchKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroWatchKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes watch_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_watch_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes address = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_address())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroWatchKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroWatchKey) + return false; +#undef DO_ +} + +void MoneroWatchKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroWatchKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes watch_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->watch_key(), output); + } + + // optional bytes address = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroWatchKey) +} + +::google::protobuf::uint8* MoneroWatchKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroWatchKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes watch_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->watch_key(), target); + } + + // optional bytes address = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroWatchKey) + return target; +} + +size_t MoneroWatchKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroWatchKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes watch_key = 1; + if (has_watch_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->watch_key()); + } + + // optional bytes address = 2; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->address()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroWatchKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroWatchKey) + GOOGLE_DCHECK_NE(&from, this); + const MoneroWatchKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroWatchKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroWatchKey) + MergeFrom(*source); + } +} + +void MoneroWatchKey::MergeFrom(const MoneroWatchKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroWatchKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_watch_key(); + watch_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.watch_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + } +} + +void MoneroWatchKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroWatchKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroWatchKey::CopyFrom(const MoneroWatchKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroWatchKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroWatchKey::IsInitialized() const { + return true; +} + +void MoneroWatchKey::Swap(MoneroWatchKey* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroWatchKey::InternalSwap(MoneroWatchKey* other) { + using std::swap; + watch_key_.Swap(&other->watch_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroWatchKey::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionInitRequest_MoneroTransactionData::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionInitRequest_MoneroTransactionData_default_instance_._instance.get_mutable()->change_dts_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry*>( + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry::internal_default_instance()); + ::hw::trezor::messages::monero::_MoneroTransactionInitRequest_MoneroTransactionData_default_instance_._instance.get_mutable()->rsig_data_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionRsigData*>( + ::hw::trezor::messages::monero::MoneroTransactionRsigData::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionInitRequest_MoneroTransactionData::kVersionFieldNumber; +const int MoneroTransactionInitRequest_MoneroTransactionData::kPaymentIdFieldNumber; +const int MoneroTransactionInitRequest_MoneroTransactionData::kUnlockTimeFieldNumber; +const int MoneroTransactionInitRequest_MoneroTransactionData::kOutputsFieldNumber; +const int MoneroTransactionInitRequest_MoneroTransactionData::kChangeDtsFieldNumber; +const int MoneroTransactionInitRequest_MoneroTransactionData::kNumInputsFieldNumber; +const int MoneroTransactionInitRequest_MoneroTransactionData::kMixinFieldNumber; +const int MoneroTransactionInitRequest_MoneroTransactionData::kFeeFieldNumber; +const int MoneroTransactionInitRequest_MoneroTransactionData::kAccountFieldNumber; +const int MoneroTransactionInitRequest_MoneroTransactionData::kMinorIndicesFieldNumber; +const int MoneroTransactionInitRequest_MoneroTransactionData::kRsigDataFieldNumber; +const int MoneroTransactionInitRequest_MoneroTransactionData::kIntegratedIndicesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionInitRequest_MoneroTransactionData::MoneroTransactionInitRequest_MoneroTransactionData() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInitRequest_MoneroTransactionData.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) +} +MoneroTransactionInitRequest_MoneroTransactionData::MoneroTransactionInitRequest_MoneroTransactionData(const MoneroTransactionInitRequest_MoneroTransactionData& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + outputs_(from.outputs_), + minor_indices_(from.minor_indices_), + integrated_indices_(from.integrated_indices_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + payment_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_payment_id()) { + payment_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payment_id_); + } + if (from.has_change_dts()) { + change_dts_ = new ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry(*from.change_dts_); + } else { + change_dts_ = NULL; + } + if (from.has_rsig_data()) { + rsig_data_ = new ::hw::trezor::messages::monero::MoneroTransactionRsigData(*from.rsig_data_); + } else { + rsig_data_ = NULL; + } + ::memcpy(&unlock_time_, &from.unlock_time_, + static_cast(reinterpret_cast(&account_) - + reinterpret_cast(&unlock_time_)) + sizeof(account_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) +} + +void MoneroTransactionInitRequest_MoneroTransactionData::SharedCtor() { + payment_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&change_dts_, 0, static_cast( + reinterpret_cast(&account_) - + reinterpret_cast(&change_dts_)) + sizeof(account_)); +} + +MoneroTransactionInitRequest_MoneroTransactionData::~MoneroTransactionInitRequest_MoneroTransactionData() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + SharedDtor(); +} + +void MoneroTransactionInitRequest_MoneroTransactionData::SharedDtor() { + payment_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete change_dts_; + if (this != internal_default_instance()) delete rsig_data_; +} + +void MoneroTransactionInitRequest_MoneroTransactionData::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionInitRequest_MoneroTransactionData::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionInitRequest_MoneroTransactionData& MoneroTransactionInitRequest_MoneroTransactionData::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInitRequest_MoneroTransactionData.base); + return *internal_default_instance(); +} + + +void MoneroTransactionInitRequest_MoneroTransactionData::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + outputs_.Clear(); + minor_indices_.Clear(); + integrated_indices_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + payment_id_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(change_dts_ != NULL); + change_dts_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(rsig_data_ != NULL); + rsig_data_->Clear(); + } + } + if (cached_has_bits & 248u) { + ::memset(&unlock_time_, 0, static_cast( + reinterpret_cast(&mixin_) - + reinterpret_cast(&unlock_time_)) + sizeof(mixin_)); + } + account_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionInitRequest_MoneroTransactionData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 version = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes payment_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_payment_id())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 unlock_time = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_unlock_time(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &unlock_time_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.monero.MoneroTransactionDestinationEntry outputs = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry change_dts = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_change_dts())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 num_inputs = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_num_inputs(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &num_inputs_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 mixin = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_mixin(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &mixin_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 fee = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 account = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_account(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &account_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 minor_indices = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 80u, input, this->mutable_minor_indices()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_minor_indices()))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_rsig_data())); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 integrated_indices = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 96u, input, this->mutable_integrated_indices()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_integrated_indices()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + return false; +#undef DO_ +} + +void MoneroTransactionInitRequest_MoneroTransactionData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 version = 1; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->version(), output); + } + + // optional bytes payment_id = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->payment_id(), output); + } + + // optional uint64 unlock_time = 3; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->unlock_time(), output); + } + + // repeated .hw.trezor.messages.monero.MoneroTransactionDestinationEntry outputs = 4; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->outputs(static_cast(i)), + output); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry change_dts = 5; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->_internal_change_dts(), output); + } + + // optional uint32 num_inputs = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->num_inputs(), output); + } + + // optional uint32 mixin = 7; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->mixin(), output); + } + + // optional uint64 fee = 8; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->fee(), output); + } + + // optional uint32 account = 9; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->account(), output); + } + + // repeated uint32 minor_indices = 10; + for (int i = 0, n = this->minor_indices_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 10, this->minor_indices(i), output); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 11; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, this->_internal_rsig_data(), output); + } + + // repeated uint32 integrated_indices = 12; + for (int i = 0, n = this->integrated_indices_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 12, this->integrated_indices(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) +} + +::google::protobuf::uint8* MoneroTransactionInitRequest_MoneroTransactionData::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 version = 1; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->version(), target); + } + + // optional bytes payment_id = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->payment_id(), target); + } + + // optional uint64 unlock_time = 3; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->unlock_time(), target); + } + + // repeated .hw.trezor.messages.monero.MoneroTransactionDestinationEntry outputs = 4; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->outputs(static_cast(i)), deterministic, target); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry change_dts = 5; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->_internal_change_dts(), deterministic, target); + } + + // optional uint32 num_inputs = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->num_inputs(), target); + } + + // optional uint32 mixin = 7; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->mixin(), target); + } + + // optional uint64 fee = 8; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->fee(), target); + } + + // optional uint32 account = 9; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->account(), target); + } + + // repeated uint32 minor_indices = 10; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(10, this->minor_indices_, target); + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 11; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 11, this->_internal_rsig_data(), deterministic, target); + } + + // repeated uint32 integrated_indices = 12; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(12, this->integrated_indices_, target); + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + return target; +} + +size_t MoneroTransactionInitRequest_MoneroTransactionData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.monero.MoneroTransactionDestinationEntry outputs = 4; + { + unsigned int count = static_cast(this->outputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->outputs(static_cast(i))); + } + } + + // repeated uint32 minor_indices = 10; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->minor_indices_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->minor_indices_size()); + total_size += data_size; + } + + // repeated uint32 integrated_indices = 12; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->integrated_indices_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->integrated_indices_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 255u) { + // optional bytes payment_id = 2; + if (has_payment_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->payment_id()); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry change_dts = 5; + if (has_change_dts()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *change_dts_); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 11; + if (has_rsig_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *rsig_data_); + } + + // optional uint64 unlock_time = 3; + if (has_unlock_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->unlock_time()); + } + + // optional uint32 version = 1; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version()); + } + + // optional uint32 num_inputs = 6; + if (has_num_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num_inputs()); + } + + // optional uint64 fee = 8; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->fee()); + } + + // optional uint32 mixin = 7; + if (has_mixin()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->mixin()); + } + + } + // optional uint32 account = 9; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->account()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionInitRequest_MoneroTransactionData::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionInitRequest_MoneroTransactionData* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + MergeFrom(*source); + } +} + +void MoneroTransactionInitRequest_MoneroTransactionData::MergeFrom(const MoneroTransactionInitRequest_MoneroTransactionData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + outputs_.MergeFrom(from.outputs_); + minor_indices_.MergeFrom(from.minor_indices_); + integrated_indices_.MergeFrom(from.integrated_indices_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_payment_id(); + payment_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payment_id_); + } + if (cached_has_bits & 0x00000002u) { + mutable_change_dts()->::hw::trezor::messages::monero::MoneroTransactionDestinationEntry::MergeFrom(from.change_dts()); + } + if (cached_has_bits & 0x00000004u) { + mutable_rsig_data()->::hw::trezor::messages::monero::MoneroTransactionRsigData::MergeFrom(from.rsig_data()); + } + if (cached_has_bits & 0x00000008u) { + unlock_time_ = from.unlock_time_; + } + if (cached_has_bits & 0x00000010u) { + version_ = from.version_; + } + if (cached_has_bits & 0x00000020u) { + num_inputs_ = from.num_inputs_; + } + if (cached_has_bits & 0x00000040u) { + fee_ = from.fee_; + } + if (cached_has_bits & 0x00000080u) { + mixin_ = from.mixin_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x00000100u) { + set_account(from.account()); + } +} + +void MoneroTransactionInitRequest_MoneroTransactionData::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionInitRequest_MoneroTransactionData::CopyFrom(const MoneroTransactionInitRequest_MoneroTransactionData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionInitRequest_MoneroTransactionData::IsInitialized() const { + return true; +} + +void MoneroTransactionInitRequest_MoneroTransactionData::Swap(MoneroTransactionInitRequest_MoneroTransactionData* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionInitRequest_MoneroTransactionData::InternalSwap(MoneroTransactionInitRequest_MoneroTransactionData* other) { + using std::swap; + CastToBase(&outputs_)->InternalSwap(CastToBase(&other->outputs_)); + minor_indices_.InternalSwap(&other->minor_indices_); + integrated_indices_.InternalSwap(&other->integrated_indices_); + payment_id_.Swap(&other->payment_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(change_dts_, other->change_dts_); + swap(rsig_data_, other->rsig_data_); + swap(unlock_time_, other->unlock_time_); + swap(version_, other->version_); + swap(num_inputs_, other->num_inputs_); + swap(fee_, other->fee_); + swap(mixin_, other->mixin_); + swap(account_, other->account_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionInitRequest_MoneroTransactionData::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionInitRequest::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionInitRequest_default_instance_._instance.get_mutable()->tsx_data_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData*>( + ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionInitRequest::kVersionFieldNumber; +const int MoneroTransactionInitRequest::kAddressNFieldNumber; +const int MoneroTransactionInitRequest::kNetworkTypeFieldNumber; +const int MoneroTransactionInitRequest::kTsxDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionInitRequest::MoneroTransactionInitRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInitRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionInitRequest) +} +MoneroTransactionInitRequest::MoneroTransactionInitRequest(const MoneroTransactionInitRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_tsx_data()) { + tsx_data_ = new ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData(*from.tsx_data_); + } else { + tsx_data_ = NULL; + } + ::memcpy(&version_, &from.version_, + static_cast(reinterpret_cast(&network_type_) - + reinterpret_cast(&version_)) + sizeof(network_type_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionInitRequest) +} + +void MoneroTransactionInitRequest::SharedCtor() { + ::memset(&tsx_data_, 0, static_cast( + reinterpret_cast(&network_type_) - + reinterpret_cast(&tsx_data_)) + sizeof(network_type_)); +} + +MoneroTransactionInitRequest::~MoneroTransactionInitRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionInitRequest) + SharedDtor(); +} + +void MoneroTransactionInitRequest::SharedDtor() { + if (this != internal_default_instance()) delete tsx_data_; +} + +void MoneroTransactionInitRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionInitRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionInitRequest& MoneroTransactionInitRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInitRequest.base); + return *internal_default_instance(); +} + + +void MoneroTransactionInitRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionInitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(tsx_data_ != NULL); + tsx_data_->Clear(); + } + if (cached_has_bits & 6u) { + ::memset(&version_, 0, static_cast( + reinterpret_cast(&network_type_) - + reinterpret_cast(&version_)) + sizeof(network_type_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionInitRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionInitRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 version = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 address_n = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 16u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 network_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_network_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &network_type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData tsx_data = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_tsx_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionInitRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionInitRequest) + return false; +#undef DO_ +} + +void MoneroTransactionInitRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionInitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 version = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->version(), output); + } + + // repeated uint32 address_n = 2; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 2, this->address_n(i), output); + } + + // optional uint32 network_type = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->network_type(), output); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData tsx_data = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_tsx_data(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionInitRequest) +} + +::google::protobuf::uint8* MoneroTransactionInitRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionInitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 version = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->version(), target); + } + + // repeated uint32 address_n = 2; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(2, this->address_n_, target); + + // optional uint32 network_type = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->network_type(), target); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData tsx_data = 4; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_tsx_data(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionInitRequest) + return target; +} + +size_t MoneroTransactionInitRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionInitRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 2; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 7u) { + // optional .hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData tsx_data = 4; + if (has_tsx_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *tsx_data_); + } + + // optional uint32 version = 1; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version()); + } + + // optional uint32 network_type = 3; + if (has_network_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->network_type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionInitRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInitRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionInitRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionInitRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionInitRequest) + MergeFrom(*source); + } +} + +void MoneroTransactionInitRequest::MergeFrom(const MoneroTransactionInitRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInitRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + mutable_tsx_data()->::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData::MergeFrom(from.tsx_data()); + } + if (cached_has_bits & 0x00000002u) { + version_ = from.version_; + } + if (cached_has_bits & 0x00000004u) { + network_type_ = from.network_type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MoneroTransactionInitRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInitRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionInitRequest::CopyFrom(const MoneroTransactionInitRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInitRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionInitRequest::IsInitialized() const { + return true; +} + +void MoneroTransactionInitRequest::Swap(MoneroTransactionInitRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionInitRequest::InternalSwap(MoneroTransactionInitRequest* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(tsx_data_, other->tsx_data_); + swap(version_, other->version_); + swap(network_type_, other->network_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionInitRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionInitAck::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionInitAck_default_instance_._instance.get_mutable()->rsig_data_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionRsigData*>( + ::hw::trezor::messages::monero::MoneroTransactionRsigData::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionInitAck::kHmacsFieldNumber; +const int MoneroTransactionInitAck::kRsigDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionInitAck::MoneroTransactionInitAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInitAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionInitAck) +} +MoneroTransactionInitAck::MoneroTransactionInitAck(const MoneroTransactionInitAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + hmacs_(from.hmacs_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_rsig_data()) { + rsig_data_ = new ::hw::trezor::messages::monero::MoneroTransactionRsigData(*from.rsig_data_); + } else { + rsig_data_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionInitAck) +} + +void MoneroTransactionInitAck::SharedCtor() { + rsig_data_ = NULL; +} + +MoneroTransactionInitAck::~MoneroTransactionInitAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionInitAck) + SharedDtor(); +} + +void MoneroTransactionInitAck::SharedDtor() { + if (this != internal_default_instance()) delete rsig_data_; +} + +void MoneroTransactionInitAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionInitAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionInitAck& MoneroTransactionInitAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInitAck.base); + return *internal_default_instance(); +} + + +void MoneroTransactionInitAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionInitAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + hmacs_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(rsig_data_ != NULL); + rsig_data_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionInitAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionInitAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated bytes hmacs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_hmacs())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_rsig_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionInitAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionInitAck) + return false; +#undef DO_ +} + +void MoneroTransactionInitAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionInitAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes hmacs = 1; + for (int i = 0, n = this->hmacs_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->hmacs(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_rsig_data(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionInitAck) +} + +::google::protobuf::uint8* MoneroTransactionInitAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionInitAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes hmacs = 1; + for (int i = 0, n = this->hmacs_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(1, this->hmacs(i), target); + } + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_rsig_data(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionInitAck) + return target; +} + +size_t MoneroTransactionInitAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionInitAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated bytes hmacs = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->hmacs_size()); + for (int i = 0, n = this->hmacs_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->hmacs(i)); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 2; + if (has_rsig_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *rsig_data_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionInitAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInitAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionInitAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionInitAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionInitAck) + MergeFrom(*source); + } +} + +void MoneroTransactionInitAck::MergeFrom(const MoneroTransactionInitAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInitAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + hmacs_.MergeFrom(from.hmacs_); + if (from.has_rsig_data()) { + mutable_rsig_data()->::hw::trezor::messages::monero::MoneroTransactionRsigData::MergeFrom(from.rsig_data()); + } +} + +void MoneroTransactionInitAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInitAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionInitAck::CopyFrom(const MoneroTransactionInitAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInitAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionInitAck::IsInitialized() const { + return true; +} + +void MoneroTransactionInitAck::Swap(MoneroTransactionInitAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionInitAck::InternalSwap(MoneroTransactionInitAck* other) { + using std::swap; + hmacs_.InternalSwap(CastToBase(&other->hmacs_)); + swap(rsig_data_, other->rsig_data_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionInitAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionSetInputRequest::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionSetInputRequest_default_instance_._instance.get_mutable()->src_entr_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry*>( + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionSetInputRequest::kSrcEntrFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionSetInputRequest::MoneroTransactionSetInputRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSetInputRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) +} +MoneroTransactionSetInputRequest::MoneroTransactionSetInputRequest(const MoneroTransactionSetInputRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_src_entr()) { + src_entr_ = new ::hw::trezor::messages::monero::MoneroTransactionSourceEntry(*from.src_entr_); + } else { + src_entr_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) +} + +void MoneroTransactionSetInputRequest::SharedCtor() { + src_entr_ = NULL; +} + +MoneroTransactionSetInputRequest::~MoneroTransactionSetInputRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + SharedDtor(); +} + +void MoneroTransactionSetInputRequest::SharedDtor() { + if (this != internal_default_instance()) delete src_entr_; +} + +void MoneroTransactionSetInputRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionSetInputRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionSetInputRequest& MoneroTransactionSetInputRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSetInputRequest.base); + return *internal_default_instance(); +} + + +void MoneroTransactionSetInputRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(src_entr_ != NULL); + src_entr_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionSetInputRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_src_entr())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + return false; +#undef DO_ +} + +void MoneroTransactionSetInputRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_src_entr(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) +} + +::google::protobuf::uint8* MoneroTransactionSetInputRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_src_entr(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + return target; +} + +size_t MoneroTransactionSetInputRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + if (has_src_entr()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *src_entr_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionSetInputRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionSetInputRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + MergeFrom(*source); + } +} + +void MoneroTransactionSetInputRequest::MergeFrom(const MoneroTransactionSetInputRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_src_entr()) { + mutable_src_entr()->::hw::trezor::messages::monero::MoneroTransactionSourceEntry::MergeFrom(from.src_entr()); + } +} + +void MoneroTransactionSetInputRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionSetInputRequest::CopyFrom(const MoneroTransactionSetInputRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionSetInputRequest::IsInitialized() const { + return true; +} + +void MoneroTransactionSetInputRequest::Swap(MoneroTransactionSetInputRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionSetInputRequest::InternalSwap(MoneroTransactionSetInputRequest* other) { + using std::swap; + swap(src_entr_, other->src_entr_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionSetInputRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionSetInputAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionSetInputAck::kViniFieldNumber; +const int MoneroTransactionSetInputAck::kViniHmacFieldNumber; +const int MoneroTransactionSetInputAck::kPseudoOutFieldNumber; +const int MoneroTransactionSetInputAck::kPseudoOutHmacFieldNumber; +const int MoneroTransactionSetInputAck::kPseudoOutAlphaFieldNumber; +const int MoneroTransactionSetInputAck::kSpendKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionSetInputAck::MoneroTransactionSetInputAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSetInputAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionSetInputAck) +} +MoneroTransactionSetInputAck::MoneroTransactionSetInputAck(const MoneroTransactionSetInputAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + vini_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_vini()) { + vini_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_); + } + vini_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_vini_hmac()) { + vini_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_hmac_); + } + pseudo_out_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pseudo_out()) { + pseudo_out_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_); + } + pseudo_out_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pseudo_out_hmac()) { + pseudo_out_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_hmac_); + } + pseudo_out_alpha_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pseudo_out_alpha()) { + pseudo_out_alpha_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_alpha_); + } + spend_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_spend_key()) { + spend_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spend_key_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionSetInputAck) +} + +void MoneroTransactionSetInputAck::SharedCtor() { + vini_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + vini_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_alpha_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spend_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroTransactionSetInputAck::~MoneroTransactionSetInputAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + SharedDtor(); +} + +void MoneroTransactionSetInputAck::SharedDtor() { + vini_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + vini_hmac_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_hmac_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_alpha_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spend_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroTransactionSetInputAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionSetInputAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionSetInputAck& MoneroTransactionSetInputAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSetInputAck.base); + return *internal_default_instance(); +} + + +void MoneroTransactionSetInputAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + vini_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + vini_hmac_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + pseudo_out_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + pseudo_out_hmac_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + pseudo_out_alpha_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000020u) { + spend_key_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionSetInputAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes vini = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_vini())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes vini_hmac = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_vini_hmac())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes pseudo_out = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_pseudo_out())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes pseudo_out_hmac = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_pseudo_out_hmac())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes pseudo_out_alpha = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_pseudo_out_alpha())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes spend_key = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_spend_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + return false; +#undef DO_ +} + +void MoneroTransactionSetInputAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes vini = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->vini(), output); + } + + // optional bytes vini_hmac = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->vini_hmac(), output); + } + + // optional bytes pseudo_out = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->pseudo_out(), output); + } + + // optional bytes pseudo_out_hmac = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->pseudo_out_hmac(), output); + } + + // optional bytes pseudo_out_alpha = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->pseudo_out_alpha(), output); + } + + // optional bytes spend_key = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->spend_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionSetInputAck) +} + +::google::protobuf::uint8* MoneroTransactionSetInputAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes vini = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->vini(), target); + } + + // optional bytes vini_hmac = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->vini_hmac(), target); + } + + // optional bytes pseudo_out = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->pseudo_out(), target); + } + + // optional bytes pseudo_out_hmac = 4; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->pseudo_out_hmac(), target); + } + + // optional bytes pseudo_out_alpha = 5; + if (cached_has_bits & 0x00000010u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->pseudo_out_alpha(), target); + } + + // optional bytes spend_key = 6; + if (cached_has_bits & 0x00000020u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->spend_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + return target; +} + +size_t MoneroTransactionSetInputAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 63u) { + // optional bytes vini = 1; + if (has_vini()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->vini()); + } + + // optional bytes vini_hmac = 2; + if (has_vini_hmac()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->vini_hmac()); + } + + // optional bytes pseudo_out = 3; + if (has_pseudo_out()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->pseudo_out()); + } + + // optional bytes pseudo_out_hmac = 4; + if (has_pseudo_out_hmac()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->pseudo_out_hmac()); + } + + // optional bytes pseudo_out_alpha = 5; + if (has_pseudo_out_alpha()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->pseudo_out_alpha()); + } + + // optional bytes spend_key = 6; + if (has_spend_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->spend_key()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionSetInputAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionSetInputAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + MergeFrom(*source); + } +} + +void MoneroTransactionSetInputAck::MergeFrom(const MoneroTransactionSetInputAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_vini(); + vini_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_); + } + if (cached_has_bits & 0x00000002u) { + set_has_vini_hmac(); + vini_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_hmac_); + } + if (cached_has_bits & 0x00000004u) { + set_has_pseudo_out(); + pseudo_out_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_); + } + if (cached_has_bits & 0x00000008u) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_hmac_); + } + if (cached_has_bits & 0x00000010u) { + set_has_pseudo_out_alpha(); + pseudo_out_alpha_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_alpha_); + } + if (cached_has_bits & 0x00000020u) { + set_has_spend_key(); + spend_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spend_key_); + } + } +} + +void MoneroTransactionSetInputAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionSetInputAck::CopyFrom(const MoneroTransactionSetInputAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionSetInputAck::IsInitialized() const { + return true; +} + +void MoneroTransactionSetInputAck::Swap(MoneroTransactionSetInputAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionSetInputAck::InternalSwap(MoneroTransactionSetInputAck* other) { + using std::swap; + vini_.Swap(&other->vini_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + vini_hmac_.Swap(&other->vini_hmac_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pseudo_out_.Swap(&other->pseudo_out_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pseudo_out_hmac_.Swap(&other->pseudo_out_hmac_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pseudo_out_alpha_.Swap(&other->pseudo_out_alpha_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + spend_key_.Swap(&other->spend_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionSetInputAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionInputsPermutationRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionInputsPermutationRequest::kPermFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionInputsPermutationRequest::MoneroTransactionInputsPermutationRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInputsPermutationRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) +} +MoneroTransactionInputsPermutationRequest::MoneroTransactionInputsPermutationRequest(const MoneroTransactionInputsPermutationRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + perm_(from.perm_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) +} + +void MoneroTransactionInputsPermutationRequest::SharedCtor() { +} + +MoneroTransactionInputsPermutationRequest::~MoneroTransactionInputsPermutationRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + SharedDtor(); +} + +void MoneroTransactionInputsPermutationRequest::SharedDtor() { +} + +void MoneroTransactionInputsPermutationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionInputsPermutationRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionInputsPermutationRequest& MoneroTransactionInputsPermutationRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInputsPermutationRequest.base); + return *internal_default_instance(); +} + + +void MoneroTransactionInputsPermutationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + perm_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionInputsPermutationRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 perm = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_perm()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_perm()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + return false; +#undef DO_ +} + +void MoneroTransactionInputsPermutationRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 perm = 1; + for (int i = 0, n = this->perm_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->perm(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) +} + +::google::protobuf::uint8* MoneroTransactionInputsPermutationRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 perm = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->perm_, target); + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + return target; +} + +size_t MoneroTransactionInputsPermutationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 perm = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->perm_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->perm_size()); + total_size += data_size; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionInputsPermutationRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionInputsPermutationRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + MergeFrom(*source); + } +} + +void MoneroTransactionInputsPermutationRequest::MergeFrom(const MoneroTransactionInputsPermutationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + perm_.MergeFrom(from.perm_); +} + +void MoneroTransactionInputsPermutationRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionInputsPermutationRequest::CopyFrom(const MoneroTransactionInputsPermutationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionInputsPermutationRequest::IsInitialized() const { + return true; +} + +void MoneroTransactionInputsPermutationRequest::Swap(MoneroTransactionInputsPermutationRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionInputsPermutationRequest::InternalSwap(MoneroTransactionInputsPermutationRequest* other) { + using std::swap; + perm_.InternalSwap(&other->perm_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionInputsPermutationRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionInputsPermutationAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionInputsPermutationAck::MoneroTransactionInputsPermutationAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInputsPermutationAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) +} +MoneroTransactionInputsPermutationAck::MoneroTransactionInputsPermutationAck(const MoneroTransactionInputsPermutationAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) +} + +void MoneroTransactionInputsPermutationAck::SharedCtor() { +} + +MoneroTransactionInputsPermutationAck::~MoneroTransactionInputsPermutationAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + SharedDtor(); +} + +void MoneroTransactionInputsPermutationAck::SharedDtor() { +} + +void MoneroTransactionInputsPermutationAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionInputsPermutationAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionInputsPermutationAck& MoneroTransactionInputsPermutationAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInputsPermutationAck.base); + return *internal_default_instance(); +} + + +void MoneroTransactionInputsPermutationAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionInputsPermutationAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + return false; +#undef DO_ +} + +void MoneroTransactionInputsPermutationAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) +} + +::google::protobuf::uint8* MoneroTransactionInputsPermutationAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + return target; +} + +size_t MoneroTransactionInputsPermutationAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionInputsPermutationAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionInputsPermutationAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + MergeFrom(*source); + } +} + +void MoneroTransactionInputsPermutationAck::MergeFrom(const MoneroTransactionInputsPermutationAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void MoneroTransactionInputsPermutationAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionInputsPermutationAck::CopyFrom(const MoneroTransactionInputsPermutationAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionInputsPermutationAck::IsInitialized() const { + return true; +} + +void MoneroTransactionInputsPermutationAck::Swap(MoneroTransactionInputsPermutationAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionInputsPermutationAck::InternalSwap(MoneroTransactionInputsPermutationAck* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionInputsPermutationAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionInputViniRequest::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionInputViniRequest_default_instance_._instance.get_mutable()->src_entr_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry*>( + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionInputViniRequest::kSrcEntrFieldNumber; +const int MoneroTransactionInputViniRequest::kViniFieldNumber; +const int MoneroTransactionInputViniRequest::kViniHmacFieldNumber; +const int MoneroTransactionInputViniRequest::kPseudoOutFieldNumber; +const int MoneroTransactionInputViniRequest::kPseudoOutHmacFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionInputViniRequest::MoneroTransactionInputViniRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInputViniRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) +} +MoneroTransactionInputViniRequest::MoneroTransactionInputViniRequest(const MoneroTransactionInputViniRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + vini_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_vini()) { + vini_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_); + } + vini_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_vini_hmac()) { + vini_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_hmac_); + } + pseudo_out_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pseudo_out()) { + pseudo_out_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_); + } + pseudo_out_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pseudo_out_hmac()) { + pseudo_out_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_hmac_); + } + if (from.has_src_entr()) { + src_entr_ = new ::hw::trezor::messages::monero::MoneroTransactionSourceEntry(*from.src_entr_); + } else { + src_entr_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) +} + +void MoneroTransactionInputViniRequest::SharedCtor() { + vini_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + vini_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + src_entr_ = NULL; +} + +MoneroTransactionInputViniRequest::~MoneroTransactionInputViniRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + SharedDtor(); +} + +void MoneroTransactionInputViniRequest::SharedDtor() { + vini_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + vini_hmac_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_hmac_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete src_entr_; +} + +void MoneroTransactionInputViniRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionInputViniRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionInputViniRequest& MoneroTransactionInputViniRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInputViniRequest.base); + return *internal_default_instance(); +} + + +void MoneroTransactionInputViniRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + vini_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + vini_hmac_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + pseudo_out_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + pseudo_out_hmac_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(src_entr_ != NULL); + src_entr_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionInputViniRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_src_entr())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes vini = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_vini())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes vini_hmac = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_vini_hmac())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes pseudo_out = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_pseudo_out())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes pseudo_out_hmac = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_pseudo_out_hmac())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + return false; +#undef DO_ +} + +void MoneroTransactionInputViniRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_src_entr(), output); + } + + // optional bytes vini = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->vini(), output); + } + + // optional bytes vini_hmac = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->vini_hmac(), output); + } + + // optional bytes pseudo_out = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->pseudo_out(), output); + } + + // optional bytes pseudo_out_hmac = 5; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->pseudo_out_hmac(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) +} + +::google::protobuf::uint8* MoneroTransactionInputViniRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_src_entr(), deterministic, target); + } + + // optional bytes vini = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->vini(), target); + } + + // optional bytes vini_hmac = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->vini_hmac(), target); + } + + // optional bytes pseudo_out = 4; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->pseudo_out(), target); + } + + // optional bytes pseudo_out_hmac = 5; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->pseudo_out_hmac(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + return target; +} + +size_t MoneroTransactionInputViniRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 31u) { + // optional bytes vini = 2; + if (has_vini()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->vini()); + } + + // optional bytes vini_hmac = 3; + if (has_vini_hmac()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->vini_hmac()); + } + + // optional bytes pseudo_out = 4; + if (has_pseudo_out()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->pseudo_out()); + } + + // optional bytes pseudo_out_hmac = 5; + if (has_pseudo_out_hmac()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->pseudo_out_hmac()); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + if (has_src_entr()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *src_entr_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionInputViniRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionInputViniRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + MergeFrom(*source); + } +} + +void MoneroTransactionInputViniRequest::MergeFrom(const MoneroTransactionInputViniRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + set_has_vini(); + vini_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_); + } + if (cached_has_bits & 0x00000002u) { + set_has_vini_hmac(); + vini_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_hmac_); + } + if (cached_has_bits & 0x00000004u) { + set_has_pseudo_out(); + pseudo_out_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_); + } + if (cached_has_bits & 0x00000008u) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_hmac_); + } + if (cached_has_bits & 0x00000010u) { + mutable_src_entr()->::hw::trezor::messages::monero::MoneroTransactionSourceEntry::MergeFrom(from.src_entr()); + } + } +} + +void MoneroTransactionInputViniRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionInputViniRequest::CopyFrom(const MoneroTransactionInputViniRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionInputViniRequest::IsInitialized() const { + return true; +} + +void MoneroTransactionInputViniRequest::Swap(MoneroTransactionInputViniRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionInputViniRequest::InternalSwap(MoneroTransactionInputViniRequest* other) { + using std::swap; + vini_.Swap(&other->vini_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + vini_hmac_.Swap(&other->vini_hmac_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pseudo_out_.Swap(&other->pseudo_out_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pseudo_out_hmac_.Swap(&other->pseudo_out_hmac_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(src_entr_, other->src_entr_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionInputViniRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionInputViniAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionInputViniAck::MoneroTransactionInputViniAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInputViniAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionInputViniAck) +} +MoneroTransactionInputViniAck::MoneroTransactionInputViniAck(const MoneroTransactionInputViniAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionInputViniAck) +} + +void MoneroTransactionInputViniAck::SharedCtor() { +} + +MoneroTransactionInputViniAck::~MoneroTransactionInputViniAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + SharedDtor(); +} + +void MoneroTransactionInputViniAck::SharedDtor() { +} + +void MoneroTransactionInputViniAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionInputViniAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionInputViniAck& MoneroTransactionInputViniAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionInputViniAck.base); + return *internal_default_instance(); +} + + +void MoneroTransactionInputViniAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionInputViniAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + return false; +#undef DO_ +} + +void MoneroTransactionInputViniAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionInputViniAck) +} + +::google::protobuf::uint8* MoneroTransactionInputViniAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + return target; +} + +size_t MoneroTransactionInputViniAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionInputViniAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionInputViniAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + MergeFrom(*source); + } +} + +void MoneroTransactionInputViniAck::MergeFrom(const MoneroTransactionInputViniAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void MoneroTransactionInputViniAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionInputViniAck::CopyFrom(const MoneroTransactionInputViniAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionInputViniAck::IsInitialized() const { + return true; +} + +void MoneroTransactionInputViniAck::Swap(MoneroTransactionInputViniAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionInputViniAck::InternalSwap(MoneroTransactionInputViniAck* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionInputViniAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionAllInputsSetRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionAllInputsSetRequest::MoneroTransactionAllInputsSetRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionAllInputsSetRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) +} +MoneroTransactionAllInputsSetRequest::MoneroTransactionAllInputsSetRequest(const MoneroTransactionAllInputsSetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) +} + +void MoneroTransactionAllInputsSetRequest::SharedCtor() { +} + +MoneroTransactionAllInputsSetRequest::~MoneroTransactionAllInputsSetRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + SharedDtor(); +} + +void MoneroTransactionAllInputsSetRequest::SharedDtor() { +} + +void MoneroTransactionAllInputsSetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionAllInputsSetRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionAllInputsSetRequest& MoneroTransactionAllInputsSetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionAllInputsSetRequest.base); + return *internal_default_instance(); +} + + +void MoneroTransactionAllInputsSetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionAllInputsSetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + return false; +#undef DO_ +} + +void MoneroTransactionAllInputsSetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) +} + +::google::protobuf::uint8* MoneroTransactionAllInputsSetRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + return target; +} + +size_t MoneroTransactionAllInputsSetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionAllInputsSetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionAllInputsSetRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + MergeFrom(*source); + } +} + +void MoneroTransactionAllInputsSetRequest::MergeFrom(const MoneroTransactionAllInputsSetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void MoneroTransactionAllInputsSetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionAllInputsSetRequest::CopyFrom(const MoneroTransactionAllInputsSetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionAllInputsSetRequest::IsInitialized() const { + return true; +} + +void MoneroTransactionAllInputsSetRequest::Swap(MoneroTransactionAllInputsSetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionAllInputsSetRequest::InternalSwap(MoneroTransactionAllInputsSetRequest* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionAllInputsSetRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionAllInputsSetAck::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionAllInputsSetAck_default_instance_._instance.get_mutable()->rsig_data_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionRsigData*>( + ::hw::trezor::messages::monero::MoneroTransactionRsigData::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionAllInputsSetAck::kRsigDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionAllInputsSetAck::MoneroTransactionAllInputsSetAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionAllInputsSetAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) +} +MoneroTransactionAllInputsSetAck::MoneroTransactionAllInputsSetAck(const MoneroTransactionAllInputsSetAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_rsig_data()) { + rsig_data_ = new ::hw::trezor::messages::monero::MoneroTransactionRsigData(*from.rsig_data_); + } else { + rsig_data_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) +} + +void MoneroTransactionAllInputsSetAck::SharedCtor() { + rsig_data_ = NULL; +} + +MoneroTransactionAllInputsSetAck::~MoneroTransactionAllInputsSetAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + SharedDtor(); +} + +void MoneroTransactionAllInputsSetAck::SharedDtor() { + if (this != internal_default_instance()) delete rsig_data_; +} + +void MoneroTransactionAllInputsSetAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionAllInputsSetAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionAllInputsSetAck& MoneroTransactionAllInputsSetAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionAllInputsSetAck.base); + return *internal_default_instance(); +} + + +void MoneroTransactionAllInputsSetAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(rsig_data_ != NULL); + rsig_data_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionAllInputsSetAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_rsig_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + return false; +#undef DO_ +} + +void MoneroTransactionAllInputsSetAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_rsig_data(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) +} + +::google::protobuf::uint8* MoneroTransactionAllInputsSetAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_rsig_data(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + return target; +} + +size_t MoneroTransactionAllInputsSetAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; + if (has_rsig_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *rsig_data_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionAllInputsSetAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionAllInputsSetAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + MergeFrom(*source); + } +} + +void MoneroTransactionAllInputsSetAck::MergeFrom(const MoneroTransactionAllInputsSetAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_rsig_data()) { + mutable_rsig_data()->::hw::trezor::messages::monero::MoneroTransactionRsigData::MergeFrom(from.rsig_data()); + } +} + +void MoneroTransactionAllInputsSetAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionAllInputsSetAck::CopyFrom(const MoneroTransactionAllInputsSetAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionAllInputsSetAck::IsInitialized() const { + return true; +} + +void MoneroTransactionAllInputsSetAck::Swap(MoneroTransactionAllInputsSetAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionAllInputsSetAck::InternalSwap(MoneroTransactionAllInputsSetAck* other) { + using std::swap; + swap(rsig_data_, other->rsig_data_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionAllInputsSetAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionSetOutputRequest::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionSetOutputRequest_default_instance_._instance.get_mutable()->dst_entr_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry*>( + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry::internal_default_instance()); + ::hw::trezor::messages::monero::_MoneroTransactionSetOutputRequest_default_instance_._instance.get_mutable()->rsig_data_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionRsigData*>( + ::hw::trezor::messages::monero::MoneroTransactionRsigData::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionSetOutputRequest::kDstEntrFieldNumber; +const int MoneroTransactionSetOutputRequest::kDstEntrHmacFieldNumber; +const int MoneroTransactionSetOutputRequest::kRsigDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionSetOutputRequest::MoneroTransactionSetOutputRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSetOutputRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) +} +MoneroTransactionSetOutputRequest::MoneroTransactionSetOutputRequest(const MoneroTransactionSetOutputRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + dst_entr_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_dst_entr_hmac()) { + dst_entr_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dst_entr_hmac_); + } + if (from.has_dst_entr()) { + dst_entr_ = new ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry(*from.dst_entr_); + } else { + dst_entr_ = NULL; + } + if (from.has_rsig_data()) { + rsig_data_ = new ::hw::trezor::messages::monero::MoneroTransactionRsigData(*from.rsig_data_); + } else { + rsig_data_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) +} + +void MoneroTransactionSetOutputRequest::SharedCtor() { + dst_entr_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&dst_entr_, 0, static_cast( + reinterpret_cast(&rsig_data_) - + reinterpret_cast(&dst_entr_)) + sizeof(rsig_data_)); +} + +MoneroTransactionSetOutputRequest::~MoneroTransactionSetOutputRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + SharedDtor(); +} + +void MoneroTransactionSetOutputRequest::SharedDtor() { + dst_entr_hmac_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete dst_entr_; + if (this != internal_default_instance()) delete rsig_data_; +} + +void MoneroTransactionSetOutputRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionSetOutputRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionSetOutputRequest& MoneroTransactionSetOutputRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSetOutputRequest.base); + return *internal_default_instance(); +} + + +void MoneroTransactionSetOutputRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + dst_entr_hmac_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(dst_entr_ != NULL); + dst_entr_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(rsig_data_ != NULL); + rsig_data_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionSetOutputRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry dst_entr = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dst_entr())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes dst_entr_hmac = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_dst_entr_hmac())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_rsig_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + return false; +#undef DO_ +} + +void MoneroTransactionSetOutputRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry dst_entr = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_dst_entr(), output); + } + + // optional bytes dst_entr_hmac = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->dst_entr_hmac(), output); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_rsig_data(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) +} + +::google::protobuf::uint8* MoneroTransactionSetOutputRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry dst_entr = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_dst_entr(), deterministic, target); + } + + // optional bytes dst_entr_hmac = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->dst_entr_hmac(), target); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_rsig_data(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + return target; +} + +size_t MoneroTransactionSetOutputRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes dst_entr_hmac = 2; + if (has_dst_entr_hmac()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->dst_entr_hmac()); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry dst_entr = 1; + if (has_dst_entr()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dst_entr_); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; + if (has_rsig_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *rsig_data_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionSetOutputRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionSetOutputRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + MergeFrom(*source); + } +} + +void MoneroTransactionSetOutputRequest::MergeFrom(const MoneroTransactionSetOutputRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_dst_entr_hmac(); + dst_entr_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dst_entr_hmac_); + } + if (cached_has_bits & 0x00000002u) { + mutable_dst_entr()->::hw::trezor::messages::monero::MoneroTransactionDestinationEntry::MergeFrom(from.dst_entr()); + } + if (cached_has_bits & 0x00000004u) { + mutable_rsig_data()->::hw::trezor::messages::monero::MoneroTransactionRsigData::MergeFrom(from.rsig_data()); + } + } +} + +void MoneroTransactionSetOutputRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionSetOutputRequest::CopyFrom(const MoneroTransactionSetOutputRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionSetOutputRequest::IsInitialized() const { + return true; +} + +void MoneroTransactionSetOutputRequest::Swap(MoneroTransactionSetOutputRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionSetOutputRequest::InternalSwap(MoneroTransactionSetOutputRequest* other) { + using std::swap; + dst_entr_hmac_.Swap(&other->dst_entr_hmac_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(dst_entr_, other->dst_entr_); + swap(rsig_data_, other->rsig_data_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionSetOutputRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionSetOutputAck::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionSetOutputAck_default_instance_._instance.get_mutable()->rsig_data_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionRsigData*>( + ::hw::trezor::messages::monero::MoneroTransactionRsigData::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionSetOutputAck::kTxOutFieldNumber; +const int MoneroTransactionSetOutputAck::kVoutiHmacFieldNumber; +const int MoneroTransactionSetOutputAck::kRsigDataFieldNumber; +const int MoneroTransactionSetOutputAck::kOutPkFieldNumber; +const int MoneroTransactionSetOutputAck::kEcdhInfoFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionSetOutputAck::MoneroTransactionSetOutputAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSetOutputAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) +} +MoneroTransactionSetOutputAck::MoneroTransactionSetOutputAck(const MoneroTransactionSetOutputAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tx_out_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_out()) { + tx_out_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_out_); + } + vouti_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_vouti_hmac()) { + vouti_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vouti_hmac_); + } + out_pk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_out_pk()) { + out_pk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.out_pk_); + } + ecdh_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_ecdh_info()) { + ecdh_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ecdh_info_); + } + if (from.has_rsig_data()) { + rsig_data_ = new ::hw::trezor::messages::monero::MoneroTransactionRsigData(*from.rsig_data_); + } else { + rsig_data_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) +} + +void MoneroTransactionSetOutputAck::SharedCtor() { + tx_out_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + vouti_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + out_pk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ecdh_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rsig_data_ = NULL; +} + +MoneroTransactionSetOutputAck::~MoneroTransactionSetOutputAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + SharedDtor(); +} + +void MoneroTransactionSetOutputAck::SharedDtor() { + tx_out_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + vouti_hmac_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + out_pk_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ecdh_info_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete rsig_data_; +} + +void MoneroTransactionSetOutputAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionSetOutputAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionSetOutputAck& MoneroTransactionSetOutputAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSetOutputAck.base); + return *internal_default_instance(); +} + + +void MoneroTransactionSetOutputAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + tx_out_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + vouti_hmac_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + out_pk_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + ecdh_info_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(rsig_data_ != NULL); + rsig_data_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionSetOutputAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes tx_out = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_out())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes vouti_hmac = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_vouti_hmac())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_rsig_data())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes out_pk = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_out_pk())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes ecdh_info = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_ecdh_info())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + return false; +#undef DO_ +} + +void MoneroTransactionSetOutputAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes tx_out = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->tx_out(), output); + } + + // optional bytes vouti_hmac = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->vouti_hmac(), output); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_rsig_data(), output); + } + + // optional bytes out_pk = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->out_pk(), output); + } + + // optional bytes ecdh_info = 5; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->ecdh_info(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) +} + +::google::protobuf::uint8* MoneroTransactionSetOutputAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes tx_out = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->tx_out(), target); + } + + // optional bytes vouti_hmac = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->vouti_hmac(), target); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_rsig_data(), deterministic, target); + } + + // optional bytes out_pk = 4; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->out_pk(), target); + } + + // optional bytes ecdh_info = 5; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->ecdh_info(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + return target; +} + +size_t MoneroTransactionSetOutputAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 31u) { + // optional bytes tx_out = 1; + if (has_tx_out()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_out()); + } + + // optional bytes vouti_hmac = 2; + if (has_vouti_hmac()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->vouti_hmac()); + } + + // optional bytes out_pk = 4; + if (has_out_pk()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->out_pk()); + } + + // optional bytes ecdh_info = 5; + if (has_ecdh_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->ecdh_info()); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; + if (has_rsig_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *rsig_data_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionSetOutputAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionSetOutputAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + MergeFrom(*source); + } +} + +void MoneroTransactionSetOutputAck::MergeFrom(const MoneroTransactionSetOutputAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + set_has_tx_out(); + tx_out_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_out_); + } + if (cached_has_bits & 0x00000002u) { + set_has_vouti_hmac(); + vouti_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vouti_hmac_); + } + if (cached_has_bits & 0x00000004u) { + set_has_out_pk(); + out_pk_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.out_pk_); + } + if (cached_has_bits & 0x00000008u) { + set_has_ecdh_info(); + ecdh_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ecdh_info_); + } + if (cached_has_bits & 0x00000010u) { + mutable_rsig_data()->::hw::trezor::messages::monero::MoneroTransactionRsigData::MergeFrom(from.rsig_data()); + } + } +} + +void MoneroTransactionSetOutputAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionSetOutputAck::CopyFrom(const MoneroTransactionSetOutputAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionSetOutputAck::IsInitialized() const { + return true; +} + +void MoneroTransactionSetOutputAck::Swap(MoneroTransactionSetOutputAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionSetOutputAck::InternalSwap(MoneroTransactionSetOutputAck* other) { + using std::swap; + tx_out_.Swap(&other->tx_out_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + vouti_hmac_.Swap(&other->vouti_hmac_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + out_pk_.Swap(&other->out_pk_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + ecdh_info_.Swap(&other->ecdh_info_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(rsig_data_, other->rsig_data_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionSetOutputAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionAllOutSetRequest::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionAllOutSetRequest_default_instance_._instance.get_mutable()->rsig_data_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionRsigData*>( + ::hw::trezor::messages::monero::MoneroTransactionRsigData::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionAllOutSetRequest::kRsigDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionAllOutSetRequest::MoneroTransactionAllOutSetRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionAllOutSetRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) +} +MoneroTransactionAllOutSetRequest::MoneroTransactionAllOutSetRequest(const MoneroTransactionAllOutSetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_rsig_data()) { + rsig_data_ = new ::hw::trezor::messages::monero::MoneroTransactionRsigData(*from.rsig_data_); + } else { + rsig_data_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) +} + +void MoneroTransactionAllOutSetRequest::SharedCtor() { + rsig_data_ = NULL; +} + +MoneroTransactionAllOutSetRequest::~MoneroTransactionAllOutSetRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + SharedDtor(); +} + +void MoneroTransactionAllOutSetRequest::SharedDtor() { + if (this != internal_default_instance()) delete rsig_data_; +} + +void MoneroTransactionAllOutSetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionAllOutSetRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionAllOutSetRequest& MoneroTransactionAllOutSetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionAllOutSetRequest.base); + return *internal_default_instance(); +} + + +void MoneroTransactionAllOutSetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(rsig_data_ != NULL); + rsig_data_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionAllOutSetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_rsig_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + return false; +#undef DO_ +} + +void MoneroTransactionAllOutSetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_rsig_data(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) +} + +::google::protobuf::uint8* MoneroTransactionAllOutSetRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_rsig_data(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + return target; +} + +size_t MoneroTransactionAllOutSetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; + if (has_rsig_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *rsig_data_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionAllOutSetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionAllOutSetRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + MergeFrom(*source); + } +} + +void MoneroTransactionAllOutSetRequest::MergeFrom(const MoneroTransactionAllOutSetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_rsig_data()) { + mutable_rsig_data()->::hw::trezor::messages::monero::MoneroTransactionRsigData::MergeFrom(from.rsig_data()); + } +} + +void MoneroTransactionAllOutSetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionAllOutSetRequest::CopyFrom(const MoneroTransactionAllOutSetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionAllOutSetRequest::IsInitialized() const { + return true; +} + +void MoneroTransactionAllOutSetRequest::Swap(MoneroTransactionAllOutSetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionAllOutSetRequest::InternalSwap(MoneroTransactionAllOutSetRequest* other) { + using std::swap; + swap(rsig_data_, other->rsig_data_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionAllOutSetRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionAllOutSetAck_MoneroRingCtSig::kTxnFeeFieldNumber; +const int MoneroTransactionAllOutSetAck_MoneroRingCtSig::kMessageFieldNumber; +const int MoneroTransactionAllOutSetAck_MoneroRingCtSig::kRvTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionAllOutSetAck_MoneroRingCtSig::MoneroTransactionAllOutSetAck_MoneroRingCtSig() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionAllOutSetAck_MoneroRingCtSig.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) +} +MoneroTransactionAllOutSetAck_MoneroRingCtSig::MoneroTransactionAllOutSetAck_MoneroRingCtSig(const MoneroTransactionAllOutSetAck_MoneroRingCtSig& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_message()) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + ::memcpy(&txn_fee_, &from.txn_fee_, + static_cast(reinterpret_cast(&rv_type_) - + reinterpret_cast(&txn_fee_)) + sizeof(rv_type_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) +} + +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::SharedCtor() { + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&txn_fee_, 0, static_cast( + reinterpret_cast(&rv_type_) - + reinterpret_cast(&txn_fee_)) + sizeof(rv_type_)); +} + +MoneroTransactionAllOutSetAck_MoneroRingCtSig::~MoneroTransactionAllOutSetAck_MoneroRingCtSig() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + SharedDtor(); +} + +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::SharedDtor() { + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionAllOutSetAck_MoneroRingCtSig::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionAllOutSetAck_MoneroRingCtSig& MoneroTransactionAllOutSetAck_MoneroRingCtSig::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionAllOutSetAck_MoneroRingCtSig.base); + return *internal_default_instance(); +} + + +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + message_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 6u) { + ::memset(&txn_fee_, 0, static_cast( + reinterpret_cast(&rv_type_) - + reinterpret_cast(&txn_fee_)) + sizeof(rv_type_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionAllOutSetAck_MoneroRingCtSig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 txn_fee = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_txn_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &txn_fee_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_message())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 rv_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_rv_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &rv_type_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + return false; +#undef DO_ +} + +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 txn_fee = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->txn_fee(), output); + } + + // optional bytes message = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->message(), output); + } + + // optional uint32 rv_type = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->rv_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) +} + +::google::protobuf::uint8* MoneroTransactionAllOutSetAck_MoneroRingCtSig::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 txn_fee = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->txn_fee(), target); + } + + // optional bytes message = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->message(), target); + } + + // optional uint32 rv_type = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->rv_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + return target; +} + +size_t MoneroTransactionAllOutSetAck_MoneroRingCtSig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes message = 2; + if (has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->message()); + } + + // optional uint64 txn_fee = 1; + if (has_txn_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->txn_fee()); + } + + // optional uint32 rv_type = 3; + if (has_rv_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->rv_type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionAllOutSetAck_MoneroRingCtSig* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + MergeFrom(*source); + } +} + +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::MergeFrom(const MoneroTransactionAllOutSetAck_MoneroRingCtSig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_message(); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (cached_has_bits & 0x00000002u) { + txn_fee_ = from.txn_fee_; + } + if (cached_has_bits & 0x00000004u) { + rv_type_ = from.rv_type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::CopyFrom(const MoneroTransactionAllOutSetAck_MoneroRingCtSig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionAllOutSetAck_MoneroRingCtSig::IsInitialized() const { + return true; +} + +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::Swap(MoneroTransactionAllOutSetAck_MoneroRingCtSig* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionAllOutSetAck_MoneroRingCtSig::InternalSwap(MoneroTransactionAllOutSetAck_MoneroRingCtSig* other) { + using std::swap; + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(txn_fee_, other->txn_fee_); + swap(rv_type_, other->rv_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionAllOutSetAck_MoneroRingCtSig::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionAllOutSetAck::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionAllOutSetAck_default_instance_._instance.get_mutable()->rv_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig*>( + ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionAllOutSetAck::kExtraFieldNumber; +const int MoneroTransactionAllOutSetAck::kTxPrefixHashFieldNumber; +const int MoneroTransactionAllOutSetAck::kRvFieldNumber; +const int MoneroTransactionAllOutSetAck::kFullMessageHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionAllOutSetAck::MoneroTransactionAllOutSetAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionAllOutSetAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) +} +MoneroTransactionAllOutSetAck::MoneroTransactionAllOutSetAck(const MoneroTransactionAllOutSetAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + extra_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_extra()) { + extra_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extra_); + } + tx_prefix_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_prefix_hash()) { + tx_prefix_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_prefix_hash_); + } + full_message_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_full_message_hash()) { + full_message_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.full_message_hash_); + } + if (from.has_rv()) { + rv_ = new ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig(*from.rv_); + } else { + rv_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) +} + +void MoneroTransactionAllOutSetAck::SharedCtor() { + extra_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_prefix_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + full_message_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rv_ = NULL; +} + +MoneroTransactionAllOutSetAck::~MoneroTransactionAllOutSetAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + SharedDtor(); +} + +void MoneroTransactionAllOutSetAck::SharedDtor() { + extra_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_prefix_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + full_message_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete rv_; +} + +void MoneroTransactionAllOutSetAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionAllOutSetAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionAllOutSetAck& MoneroTransactionAllOutSetAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionAllOutSetAck.base); + return *internal_default_instance(); +} + + +void MoneroTransactionAllOutSetAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + extra_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + tx_prefix_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + full_message_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(rv_ != NULL); + rv_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionAllOutSetAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes extra = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_extra())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_prefix_hash = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_prefix_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig rv = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_rv())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes full_message_hash = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_full_message_hash())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + return false; +#undef DO_ +} + +void MoneroTransactionAllOutSetAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes extra = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->extra(), output); + } + + // optional bytes tx_prefix_hash = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->tx_prefix_hash(), output); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig rv = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_rv(), output); + } + + // optional bytes full_message_hash = 5; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->full_message_hash(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) +} + +::google::protobuf::uint8* MoneroTransactionAllOutSetAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes extra = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->extra(), target); + } + + // optional bytes tx_prefix_hash = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->tx_prefix_hash(), target); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig rv = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_rv(), deterministic, target); + } + + // optional bytes full_message_hash = 5; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->full_message_hash(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + return target; +} + +size_t MoneroTransactionAllOutSetAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional bytes extra = 1; + if (has_extra()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->extra()); + } + + // optional bytes tx_prefix_hash = 2; + if (has_tx_prefix_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_prefix_hash()); + } + + // optional bytes full_message_hash = 5; + if (has_full_message_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->full_message_hash()); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig rv = 4; + if (has_rv()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *rv_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionAllOutSetAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionAllOutSetAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + MergeFrom(*source); + } +} + +void MoneroTransactionAllOutSetAck::MergeFrom(const MoneroTransactionAllOutSetAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_extra(); + extra_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extra_); + } + if (cached_has_bits & 0x00000002u) { + set_has_tx_prefix_hash(); + tx_prefix_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_prefix_hash_); + } + if (cached_has_bits & 0x00000004u) { + set_has_full_message_hash(); + full_message_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.full_message_hash_); + } + if (cached_has_bits & 0x00000008u) { + mutable_rv()->::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig::MergeFrom(from.rv()); + } + } +} + +void MoneroTransactionAllOutSetAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionAllOutSetAck::CopyFrom(const MoneroTransactionAllOutSetAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionAllOutSetAck::IsInitialized() const { + return true; +} + +void MoneroTransactionAllOutSetAck::Swap(MoneroTransactionAllOutSetAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionAllOutSetAck::InternalSwap(MoneroTransactionAllOutSetAck* other) { + using std::swap; + extra_.Swap(&other->extra_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tx_prefix_hash_.Swap(&other->tx_prefix_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + full_message_hash_.Swap(&other->full_message_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(rv_, other->rv_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionAllOutSetAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionSignInputRequest::InitAsDefaultInstance() { + ::hw::trezor::messages::monero::_MoneroTransactionSignInputRequest_default_instance_._instance.get_mutable()->src_entr_ = const_cast< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry*>( + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionSignInputRequest::kSrcEntrFieldNumber; +const int MoneroTransactionSignInputRequest::kViniFieldNumber; +const int MoneroTransactionSignInputRequest::kViniHmacFieldNumber; +const int MoneroTransactionSignInputRequest::kPseudoOutFieldNumber; +const int MoneroTransactionSignInputRequest::kPseudoOutHmacFieldNumber; +const int MoneroTransactionSignInputRequest::kPseudoOutAlphaFieldNumber; +const int MoneroTransactionSignInputRequest::kSpendKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionSignInputRequest::MoneroTransactionSignInputRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSignInputRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) +} +MoneroTransactionSignInputRequest::MoneroTransactionSignInputRequest(const MoneroTransactionSignInputRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + vini_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_vini()) { + vini_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_); + } + vini_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_vini_hmac()) { + vini_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_hmac_); + } + pseudo_out_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pseudo_out()) { + pseudo_out_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_); + } + pseudo_out_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pseudo_out_hmac()) { + pseudo_out_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_hmac_); + } + pseudo_out_alpha_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_pseudo_out_alpha()) { + pseudo_out_alpha_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_alpha_); + } + spend_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_spend_key()) { + spend_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spend_key_); + } + if (from.has_src_entr()) { + src_entr_ = new ::hw::trezor::messages::monero::MoneroTransactionSourceEntry(*from.src_entr_); + } else { + src_entr_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) +} + +void MoneroTransactionSignInputRequest::SharedCtor() { + vini_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + vini_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_hmac_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_alpha_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spend_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + src_entr_ = NULL; +} + +MoneroTransactionSignInputRequest::~MoneroTransactionSignInputRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + SharedDtor(); +} + +void MoneroTransactionSignInputRequest::SharedDtor() { + vini_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + vini_hmac_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_hmac_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pseudo_out_alpha_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spend_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete src_entr_; +} + +void MoneroTransactionSignInputRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionSignInputRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionSignInputRequest& MoneroTransactionSignInputRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSignInputRequest.base); + return *internal_default_instance(); +} + + +void MoneroTransactionSignInputRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 127u) { + if (cached_has_bits & 0x00000001u) { + vini_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + vini_hmac_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + pseudo_out_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + pseudo_out_hmac_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + pseudo_out_alpha_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000020u) { + spend_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(src_entr_ != NULL); + src_entr_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionSignInputRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_src_entr())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes vini = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_vini())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes vini_hmac = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_vini_hmac())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes pseudo_out = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_pseudo_out())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes pseudo_out_hmac = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_pseudo_out_hmac())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes pseudo_out_alpha = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_pseudo_out_alpha())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes spend_key = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_spend_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + return false; +#undef DO_ +} + +void MoneroTransactionSignInputRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_src_entr(), output); + } + + // optional bytes vini = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->vini(), output); + } + + // optional bytes vini_hmac = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->vini_hmac(), output); + } + + // optional bytes pseudo_out = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->pseudo_out(), output); + } + + // optional bytes pseudo_out_hmac = 5; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->pseudo_out_hmac(), output); + } + + // optional bytes pseudo_out_alpha = 6; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->pseudo_out_alpha(), output); + } + + // optional bytes spend_key = 7; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 7, this->spend_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) +} + +::google::protobuf::uint8* MoneroTransactionSignInputRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_src_entr(), deterministic, target); + } + + // optional bytes vini = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->vini(), target); + } + + // optional bytes vini_hmac = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->vini_hmac(), target); + } + + // optional bytes pseudo_out = 4; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->pseudo_out(), target); + } + + // optional bytes pseudo_out_hmac = 5; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->pseudo_out_hmac(), target); + } + + // optional bytes pseudo_out_alpha = 6; + if (cached_has_bits & 0x00000010u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->pseudo_out_alpha(), target); + } + + // optional bytes spend_key = 7; + if (cached_has_bits & 0x00000020u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 7, this->spend_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + return target; +} + +size_t MoneroTransactionSignInputRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 127u) { + // optional bytes vini = 2; + if (has_vini()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->vini()); + } + + // optional bytes vini_hmac = 3; + if (has_vini_hmac()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->vini_hmac()); + } + + // optional bytes pseudo_out = 4; + if (has_pseudo_out()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->pseudo_out()); + } + + // optional bytes pseudo_out_hmac = 5; + if (has_pseudo_out_hmac()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->pseudo_out_hmac()); + } + + // optional bytes pseudo_out_alpha = 6; + if (has_pseudo_out_alpha()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->pseudo_out_alpha()); + } + + // optional bytes spend_key = 7; + if (has_spend_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->spend_key()); + } + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + if (has_src_entr()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *src_entr_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionSignInputRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionSignInputRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + MergeFrom(*source); + } +} + +void MoneroTransactionSignInputRequest::MergeFrom(const MoneroTransactionSignInputRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 127u) { + if (cached_has_bits & 0x00000001u) { + set_has_vini(); + vini_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_); + } + if (cached_has_bits & 0x00000002u) { + set_has_vini_hmac(); + vini_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vini_hmac_); + } + if (cached_has_bits & 0x00000004u) { + set_has_pseudo_out(); + pseudo_out_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_); + } + if (cached_has_bits & 0x00000008u) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_hmac_); + } + if (cached_has_bits & 0x00000010u) { + set_has_pseudo_out_alpha(); + pseudo_out_alpha_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pseudo_out_alpha_); + } + if (cached_has_bits & 0x00000020u) { + set_has_spend_key(); + spend_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spend_key_); + } + if (cached_has_bits & 0x00000040u) { + mutable_src_entr()->::hw::trezor::messages::monero::MoneroTransactionSourceEntry::MergeFrom(from.src_entr()); + } + } +} + +void MoneroTransactionSignInputRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionSignInputRequest::CopyFrom(const MoneroTransactionSignInputRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionSignInputRequest::IsInitialized() const { + return true; +} + +void MoneroTransactionSignInputRequest::Swap(MoneroTransactionSignInputRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionSignInputRequest::InternalSwap(MoneroTransactionSignInputRequest* other) { + using std::swap; + vini_.Swap(&other->vini_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + vini_hmac_.Swap(&other->vini_hmac_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pseudo_out_.Swap(&other->pseudo_out_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pseudo_out_hmac_.Swap(&other->pseudo_out_hmac_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pseudo_out_alpha_.Swap(&other->pseudo_out_alpha_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + spend_key_.Swap(&other->spend_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(src_entr_, other->src_entr_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionSignInputRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionSignInputAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionSignInputAck::kSignatureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionSignInputAck::MoneroTransactionSignInputAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSignInputAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionSignInputAck) +} +MoneroTransactionSignInputAck::MoneroTransactionSignInputAck(const MoneroTransactionSignInputAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionSignInputAck) +} + +void MoneroTransactionSignInputAck::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroTransactionSignInputAck::~MoneroTransactionSignInputAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + SharedDtor(); +} + +void MoneroTransactionSignInputAck::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroTransactionSignInputAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionSignInputAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionSignInputAck& MoneroTransactionSignInputAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionSignInputAck.base); + return *internal_default_instance(); +} + + +void MoneroTransactionSignInputAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionSignInputAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes signature = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + return false; +#undef DO_ +} + +void MoneroTransactionSignInputAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->signature(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionSignInputAck) +} + +::google::protobuf::uint8* MoneroTransactionSignInputAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->signature(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + return target; +} + +size_t MoneroTransactionSignInputAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionSignInputAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionSignInputAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + MergeFrom(*source); + } +} + +void MoneroTransactionSignInputAck::MergeFrom(const MoneroTransactionSignInputAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_signature()) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } +} + +void MoneroTransactionSignInputAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionSignInputAck::CopyFrom(const MoneroTransactionSignInputAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionSignInputAck::IsInitialized() const { + return true; +} + +void MoneroTransactionSignInputAck::Swap(MoneroTransactionSignInputAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionSignInputAck::InternalSwap(MoneroTransactionSignInputAck* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionSignInputAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionFinalRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionFinalRequest::MoneroTransactionFinalRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionFinalRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionFinalRequest) +} +MoneroTransactionFinalRequest::MoneroTransactionFinalRequest(const MoneroTransactionFinalRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionFinalRequest) +} + +void MoneroTransactionFinalRequest::SharedCtor() { +} + +MoneroTransactionFinalRequest::~MoneroTransactionFinalRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + SharedDtor(); +} + +void MoneroTransactionFinalRequest::SharedDtor() { +} + +void MoneroTransactionFinalRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionFinalRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionFinalRequest& MoneroTransactionFinalRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionFinalRequest.base); + return *internal_default_instance(); +} + + +void MoneroTransactionFinalRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionFinalRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + return false; +#undef DO_ +} + +void MoneroTransactionFinalRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionFinalRequest) +} + +::google::protobuf::uint8* MoneroTransactionFinalRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + return target; +} + +size_t MoneroTransactionFinalRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionFinalRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionFinalRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + MergeFrom(*source); + } +} + +void MoneroTransactionFinalRequest::MergeFrom(const MoneroTransactionFinalRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void MoneroTransactionFinalRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionFinalRequest::CopyFrom(const MoneroTransactionFinalRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionFinalRequest::IsInitialized() const { + return true; +} + +void MoneroTransactionFinalRequest::Swap(MoneroTransactionFinalRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionFinalRequest::InternalSwap(MoneroTransactionFinalRequest* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionFinalRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroTransactionFinalAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroTransactionFinalAck::kCoutKeyFieldNumber; +const int MoneroTransactionFinalAck::kSaltFieldNumber; +const int MoneroTransactionFinalAck::kRandMultFieldNumber; +const int MoneroTransactionFinalAck::kTxEncKeysFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroTransactionFinalAck::MoneroTransactionFinalAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionFinalAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroTransactionFinalAck) +} +MoneroTransactionFinalAck::MoneroTransactionFinalAck(const MoneroTransactionFinalAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cout_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_cout_key()) { + cout_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cout_key_); + } + salt_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_salt()) { + salt_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salt_); + } + rand_mult_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_rand_mult()) { + rand_mult_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rand_mult_); + } + tx_enc_keys_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_enc_keys()) { + tx_enc_keys_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_enc_keys_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroTransactionFinalAck) +} + +void MoneroTransactionFinalAck::SharedCtor() { + cout_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + salt_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rand_mult_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_enc_keys_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroTransactionFinalAck::~MoneroTransactionFinalAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroTransactionFinalAck) + SharedDtor(); +} + +void MoneroTransactionFinalAck::SharedDtor() { + cout_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + salt_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rand_mult_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_enc_keys_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroTransactionFinalAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroTransactionFinalAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroTransactionFinalAck& MoneroTransactionFinalAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroTransactionFinalAck.base); + return *internal_default_instance(); +} + + +void MoneroTransactionFinalAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroTransactionFinalAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + cout_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + salt_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + rand_mult_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + tx_enc_keys_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroTransactionFinalAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroTransactionFinalAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes cout_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_cout_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes salt = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_salt())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes rand_mult = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_rand_mult())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_enc_keys = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_enc_keys())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroTransactionFinalAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroTransactionFinalAck) + return false; +#undef DO_ +} + +void MoneroTransactionFinalAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroTransactionFinalAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes cout_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->cout_key(), output); + } + + // optional bytes salt = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->salt(), output); + } + + // optional bytes rand_mult = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->rand_mult(), output); + } + + // optional bytes tx_enc_keys = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->tx_enc_keys(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroTransactionFinalAck) +} + +::google::protobuf::uint8* MoneroTransactionFinalAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroTransactionFinalAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes cout_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->cout_key(), target); + } + + // optional bytes salt = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->salt(), target); + } + + // optional bytes rand_mult = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->rand_mult(), target); + } + + // optional bytes tx_enc_keys = 4; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->tx_enc_keys(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroTransactionFinalAck) + return target; +} + +size_t MoneroTransactionFinalAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroTransactionFinalAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional bytes cout_key = 1; + if (has_cout_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->cout_key()); + } + + // optional bytes salt = 2; + if (has_salt()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->salt()); + } + + // optional bytes rand_mult = 3; + if (has_rand_mult()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->rand_mult()); + } + + // optional bytes tx_enc_keys = 4; + if (has_tx_enc_keys()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_enc_keys()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroTransactionFinalAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroTransactionFinalAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroTransactionFinalAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroTransactionFinalAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroTransactionFinalAck) + MergeFrom(*source); + } +} + +void MoneroTransactionFinalAck::MergeFrom(const MoneroTransactionFinalAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroTransactionFinalAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_cout_key(); + cout_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cout_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_salt(); + salt_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salt_); + } + if (cached_has_bits & 0x00000004u) { + set_has_rand_mult(); + rand_mult_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rand_mult_); + } + if (cached_has_bits & 0x00000008u) { + set_has_tx_enc_keys(); + tx_enc_keys_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_enc_keys_); + } + } +} + +void MoneroTransactionFinalAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroTransactionFinalAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroTransactionFinalAck::CopyFrom(const MoneroTransactionFinalAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroTransactionFinalAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroTransactionFinalAck::IsInitialized() const { + return true; +} + +void MoneroTransactionFinalAck::Swap(MoneroTransactionFinalAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroTransactionFinalAck::InternalSwap(MoneroTransactionFinalAck* other) { + using std::swap; + cout_key_.Swap(&other->cout_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + salt_.Swap(&other->salt_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + rand_mult_.Swap(&other->rand_mult_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tx_enc_keys_.Swap(&other->tx_enc_keys_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroTransactionFinalAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::kAccountFieldNumber; +const int MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::kMinorIndicesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) +} +MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList(const MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + minor_indices_(from.minor_indices_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + account_ = from.account_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) +} + +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::SharedCtor() { + account_ = 0u; +} + +MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::~MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + SharedDtor(); +} + +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::SharedDtor() { +} + +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList.base); + return *internal_default_instance(); +} + + +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + minor_indices_.Clear(); + account_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_account(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &account_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 minor_indices = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 16u, input, this->mutable_minor_indices()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_minor_indices()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + return false; +#undef DO_ +} + +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->account(), output); + } + + // repeated uint32 minor_indices = 2; + for (int i = 0, n = this->minor_indices_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 2, this->minor_indices(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) +} + +::google::protobuf::uint8* MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 account = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->account(), target); + } + + // repeated uint32 minor_indices = 2; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(2, this->minor_indices_, target); + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + return target; +} + +size_t MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 minor_indices = 2; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->minor_indices_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->minor_indices_size()); + total_size += data_size; + } + + // optional uint32 account = 1; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->account()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + GOOGLE_DCHECK_NE(&from, this); + const MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + MergeFrom(*source); + } +} + +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::MergeFrom(const MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + minor_indices_.MergeFrom(from.minor_indices_); + if (from.has_account()) { + set_account(from.account()); + } +} + +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::CopyFrom(const MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::IsInitialized() const { + return true; +} + +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::Swap(MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::InternalSwap(MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* other) { + using std::swap; + minor_indices_.InternalSwap(&other->minor_indices_); + swap(account_, other->account_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroKeyImageExportInitRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroKeyImageExportInitRequest::kNumFieldNumber; +const int MoneroKeyImageExportInitRequest::kHashFieldNumber; +const int MoneroKeyImageExportInitRequest::kAddressNFieldNumber; +const int MoneroKeyImageExportInitRequest::kNetworkTypeFieldNumber; +const int MoneroKeyImageExportInitRequest::kSubsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroKeyImageExportInitRequest::MoneroKeyImageExportInitRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageExportInitRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) +} +MoneroKeyImageExportInitRequest::MoneroKeyImageExportInitRequest(const MoneroKeyImageExportInitRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_), + subs_(from.subs_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_hash()) { + hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); + } + ::memcpy(&num_, &from.num_, + static_cast(reinterpret_cast(&network_type_) - + reinterpret_cast(&num_)) + sizeof(network_type_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) +} + +void MoneroKeyImageExportInitRequest::SharedCtor() { + hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&num_, 0, static_cast( + reinterpret_cast(&network_type_) - + reinterpret_cast(&num_)) + sizeof(network_type_)); +} + +MoneroKeyImageExportInitRequest::~MoneroKeyImageExportInitRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + SharedDtor(); +} + +void MoneroKeyImageExportInitRequest::SharedDtor() { + hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroKeyImageExportInitRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroKeyImageExportInitRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroKeyImageExportInitRequest& MoneroKeyImageExportInitRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageExportInitRequest.base); + return *internal_default_instance(); +} + + +void MoneroKeyImageExportInitRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + subs_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 6u) { + ::memset(&num_, 0, static_cast( + reinterpret_cast(&network_type_) - + reinterpret_cast(&num_)) + sizeof(network_type_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroKeyImageExportInitRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 num = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_num(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &num_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes hash = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_hash())); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 address_n = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 24u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 network_type = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_network_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &network_type_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList subs = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_subs())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + return false; +#undef DO_ +} + +void MoneroKeyImageExportInitRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 num = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->num(), output); + } + + // optional bytes hash = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->hash(), output); + } + + // repeated uint32 address_n = 3; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 3, this->address_n(i), output); + } + + // optional uint32 network_type = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->network_type(), output); + } + + // repeated .hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList subs = 5; + for (unsigned int i = 0, + n = static_cast(this->subs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->subs(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) +} + +::google::protobuf::uint8* MoneroKeyImageExportInitRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 num = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->num(), target); + } + + // optional bytes hash = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->hash(), target); + } + + // repeated uint32 address_n = 3; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(3, this->address_n_, target); + + // optional uint32 network_type = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->network_type(), target); + } + + // repeated .hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList subs = 5; + for (unsigned int i = 0, + n = static_cast(this->subs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->subs(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + return target; +} + +size_t MoneroKeyImageExportInitRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 3; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // repeated .hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList subs = 5; + { + unsigned int count = static_cast(this->subs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->subs(static_cast(i))); + } + } + + if (_has_bits_[0 / 32] & 7u) { + // optional bytes hash = 2; + if (has_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->hash()); + } + + // optional uint64 num = 1; + if (has_num()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->num()); + } + + // optional uint32 network_type = 4; + if (has_network_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->network_type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroKeyImageExportInitRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroKeyImageExportInitRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + MergeFrom(*source); + } +} + +void MoneroKeyImageExportInitRequest::MergeFrom(const MoneroKeyImageExportInitRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + subs_.MergeFrom(from.subs_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_hash(); + hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); + } + if (cached_has_bits & 0x00000002u) { + num_ = from.num_; + } + if (cached_has_bits & 0x00000004u) { + network_type_ = from.network_type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MoneroKeyImageExportInitRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroKeyImageExportInitRequest::CopyFrom(const MoneroKeyImageExportInitRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroKeyImageExportInitRequest::IsInitialized() const { + return true; +} + +void MoneroKeyImageExportInitRequest::Swap(MoneroKeyImageExportInitRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroKeyImageExportInitRequest::InternalSwap(MoneroKeyImageExportInitRequest* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + CastToBase(&subs_)->InternalSwap(CastToBase(&other->subs_)); + hash_.Swap(&other->hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(num_, other->num_); + swap(network_type_, other->network_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroKeyImageExportInitRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroKeyImageExportInitAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroKeyImageExportInitAck::MoneroKeyImageExportInitAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageExportInitAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) +} +MoneroKeyImageExportInitAck::MoneroKeyImageExportInitAck(const MoneroKeyImageExportInitAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) +} + +void MoneroKeyImageExportInitAck::SharedCtor() { +} + +MoneroKeyImageExportInitAck::~MoneroKeyImageExportInitAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + SharedDtor(); +} + +void MoneroKeyImageExportInitAck::SharedDtor() { +} + +void MoneroKeyImageExportInitAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroKeyImageExportInitAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroKeyImageExportInitAck& MoneroKeyImageExportInitAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageExportInitAck.base); + return *internal_default_instance(); +} + + +void MoneroKeyImageExportInitAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroKeyImageExportInitAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + return false; +#undef DO_ +} + +void MoneroKeyImageExportInitAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) +} + +::google::protobuf::uint8* MoneroKeyImageExportInitAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + return target; +} + +size_t MoneroKeyImageExportInitAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroKeyImageExportInitAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroKeyImageExportInitAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + MergeFrom(*source); + } +} + +void MoneroKeyImageExportInitAck::MergeFrom(const MoneroKeyImageExportInitAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void MoneroKeyImageExportInitAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroKeyImageExportInitAck::CopyFrom(const MoneroKeyImageExportInitAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroKeyImageExportInitAck::IsInitialized() const { + return true; +} + +void MoneroKeyImageExportInitAck::Swap(MoneroKeyImageExportInitAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroKeyImageExportInitAck::InternalSwap(MoneroKeyImageExportInitAck* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroKeyImageExportInitAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroKeyImageSyncStepRequest_MoneroTransferDetails::kOutKeyFieldNumber; +const int MoneroKeyImageSyncStepRequest_MoneroTransferDetails::kTxPubKeyFieldNumber; +const int MoneroKeyImageSyncStepRequest_MoneroTransferDetails::kAdditionalTxPubKeysFieldNumber; +const int MoneroKeyImageSyncStepRequest_MoneroTransferDetails::kInternalOutputIndexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroKeyImageSyncStepRequest_MoneroTransferDetails::MoneroKeyImageSyncStepRequest_MoneroTransferDetails() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncStepRequest_MoneroTransferDetails.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) +} +MoneroKeyImageSyncStepRequest_MoneroTransferDetails::MoneroKeyImageSyncStepRequest_MoneroTransferDetails(const MoneroKeyImageSyncStepRequest_MoneroTransferDetails& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + additional_tx_pub_keys_(from.additional_tx_pub_keys_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + out_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_out_key()) { + out_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.out_key_); + } + tx_pub_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_pub_key()) { + tx_pub_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_pub_key_); + } + internal_output_index_ = from.internal_output_index_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) +} + +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::SharedCtor() { + out_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_pub_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + internal_output_index_ = GOOGLE_ULONGLONG(0); +} + +MoneroKeyImageSyncStepRequest_MoneroTransferDetails::~MoneroKeyImageSyncStepRequest_MoneroTransferDetails() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + SharedDtor(); +} + +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::SharedDtor() { + out_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_pub_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroKeyImageSyncStepRequest_MoneroTransferDetails::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroKeyImageSyncStepRequest_MoneroTransferDetails& MoneroKeyImageSyncStepRequest_MoneroTransferDetails::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncStepRequest_MoneroTransferDetails.base); + return *internal_default_instance(); +} + + +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + additional_tx_pub_keys_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + out_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + tx_pub_key_.ClearNonDefaultToEmptyNoArena(); + } + } + internal_output_index_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroKeyImageSyncStepRequest_MoneroTransferDetails::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes out_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_out_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_pub_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_pub_key())); + } else { + goto handle_unusual; + } + break; + } + + // repeated bytes additional_tx_pub_keys = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_additional_tx_pub_keys())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 internal_output_index = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_internal_output_index(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &internal_output_index_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + return false; +#undef DO_ +} + +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes out_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->out_key(), output); + } + + // optional bytes tx_pub_key = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->tx_pub_key(), output); + } + + // repeated bytes additional_tx_pub_keys = 3; + for (int i = 0, n = this->additional_tx_pub_keys_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->additional_tx_pub_keys(i), output); + } + + // optional uint64 internal_output_index = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->internal_output_index(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) +} + +::google::protobuf::uint8* MoneroKeyImageSyncStepRequest_MoneroTransferDetails::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes out_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->out_key(), target); + } + + // optional bytes tx_pub_key = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->tx_pub_key(), target); + } + + // repeated bytes additional_tx_pub_keys = 3; + for (int i = 0, n = this->additional_tx_pub_keys_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(3, this->additional_tx_pub_keys(i), target); + } + + // optional uint64 internal_output_index = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->internal_output_index(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + return target; +} + +size_t MoneroKeyImageSyncStepRequest_MoneroTransferDetails::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated bytes additional_tx_pub_keys = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->additional_tx_pub_keys_size()); + for (int i = 0, n = this->additional_tx_pub_keys_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->additional_tx_pub_keys(i)); + } + + if (_has_bits_[0 / 32] & 7u) { + // optional bytes out_key = 1; + if (has_out_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->out_key()); + } + + // optional bytes tx_pub_key = 2; + if (has_tx_pub_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_pub_key()); + } + + // optional uint64 internal_output_index = 4; + if (has_internal_output_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->internal_output_index()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + GOOGLE_DCHECK_NE(&from, this); + const MoneroKeyImageSyncStepRequest_MoneroTransferDetails* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + MergeFrom(*source); + } +} + +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::MergeFrom(const MoneroKeyImageSyncStepRequest_MoneroTransferDetails& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + additional_tx_pub_keys_.MergeFrom(from.additional_tx_pub_keys_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_out_key(); + out_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.out_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_tx_pub_key(); + tx_pub_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_pub_key_); + } + if (cached_has_bits & 0x00000004u) { + internal_output_index_ = from.internal_output_index_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::CopyFrom(const MoneroKeyImageSyncStepRequest_MoneroTransferDetails& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroKeyImageSyncStepRequest_MoneroTransferDetails::IsInitialized() const { + return true; +} + +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::Swap(MoneroKeyImageSyncStepRequest_MoneroTransferDetails* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::InternalSwap(MoneroKeyImageSyncStepRequest_MoneroTransferDetails* other) { + using std::swap; + additional_tx_pub_keys_.InternalSwap(CastToBase(&other->additional_tx_pub_keys_)); + out_key_.Swap(&other->out_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tx_pub_key_.Swap(&other->tx_pub_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(internal_output_index_, other->internal_output_index_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroKeyImageSyncStepRequest_MoneroTransferDetails::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroKeyImageSyncStepRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroKeyImageSyncStepRequest::kTdisFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroKeyImageSyncStepRequest::MoneroKeyImageSyncStepRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncStepRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) +} +MoneroKeyImageSyncStepRequest::MoneroKeyImageSyncStepRequest(const MoneroKeyImageSyncStepRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + tdis_(from.tdis_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) +} + +void MoneroKeyImageSyncStepRequest::SharedCtor() { +} + +MoneroKeyImageSyncStepRequest::~MoneroKeyImageSyncStepRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + SharedDtor(); +} + +void MoneroKeyImageSyncStepRequest::SharedDtor() { +} + +void MoneroKeyImageSyncStepRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroKeyImageSyncStepRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroKeyImageSyncStepRequest& MoneroKeyImageSyncStepRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncStepRequest.base); + return *internal_default_instance(); +} + + +void MoneroKeyImageSyncStepRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tdis_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroKeyImageSyncStepRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails tdis = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_tdis())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + return false; +#undef DO_ +} + +void MoneroKeyImageSyncStepRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails tdis = 1; + for (unsigned int i = 0, + n = static_cast(this->tdis_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->tdis(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) +} + +::google::protobuf::uint8* MoneroKeyImageSyncStepRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails tdis = 1; + for (unsigned int i = 0, + n = static_cast(this->tdis_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->tdis(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + return target; +} + +size_t MoneroKeyImageSyncStepRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails tdis = 1; + { + unsigned int count = static_cast(this->tdis_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tdis(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroKeyImageSyncStepRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroKeyImageSyncStepRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + MergeFrom(*source); + } +} + +void MoneroKeyImageSyncStepRequest::MergeFrom(const MoneroKeyImageSyncStepRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tdis_.MergeFrom(from.tdis_); +} + +void MoneroKeyImageSyncStepRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroKeyImageSyncStepRequest::CopyFrom(const MoneroKeyImageSyncStepRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroKeyImageSyncStepRequest::IsInitialized() const { + return true; +} + +void MoneroKeyImageSyncStepRequest::Swap(MoneroKeyImageSyncStepRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroKeyImageSyncStepRequest::InternalSwap(MoneroKeyImageSyncStepRequest* other) { + using std::swap; + CastToBase(&tdis_)->InternalSwap(CastToBase(&other->tdis_)); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroKeyImageSyncStepRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::kIvFieldNumber; +const int MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::kBlobFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncStepAck_MoneroExportedKeyImage.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) +} +MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage(const MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + iv_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_iv()) { + iv_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.iv_); + } + blob_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_blob()) { + blob_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.blob_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) +} + +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::SharedCtor() { + iv_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + blob_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::~MoneroKeyImageSyncStepAck_MoneroExportedKeyImage() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + SharedDtor(); +} + +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::SharedDtor() { + iv_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + blob_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncStepAck_MoneroExportedKeyImage.base); + return *internal_default_instance(); +} + + +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + iv_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + blob_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes iv = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_iv())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes blob = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_blob())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + return false; +#undef DO_ +} + +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes iv = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->iv(), output); + } + + // optional bytes blob = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->blob(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) +} + +::google::protobuf::uint8* MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes iv = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->iv(), target); + } + + // optional bytes blob = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->blob(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + return target; +} + +size_t MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes iv = 1; + if (has_iv()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->iv()); + } + + // optional bytes blob = 3; + if (has_blob()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->blob()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + GOOGLE_DCHECK_NE(&from, this); + const MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + MergeFrom(*source); + } +} + +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::MergeFrom(const MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_iv(); + iv_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.iv_); + } + if (cached_has_bits & 0x00000002u) { + set_has_blob(); + blob_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.blob_); + } + } +} + +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::CopyFrom(const MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::IsInitialized() const { + return true; +} + +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::Swap(MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::InternalSwap(MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* other) { + using std::swap; + iv_.Swap(&other->iv_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + blob_.Swap(&other->blob_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroKeyImageSyncStepAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroKeyImageSyncStepAck::kKisFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroKeyImageSyncStepAck::MoneroKeyImageSyncStepAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncStepAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) +} +MoneroKeyImageSyncStepAck::MoneroKeyImageSyncStepAck(const MoneroKeyImageSyncStepAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + kis_(from.kis_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) +} + +void MoneroKeyImageSyncStepAck::SharedCtor() { +} + +MoneroKeyImageSyncStepAck::~MoneroKeyImageSyncStepAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + SharedDtor(); +} + +void MoneroKeyImageSyncStepAck::SharedDtor() { +} + +void MoneroKeyImageSyncStepAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroKeyImageSyncStepAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroKeyImageSyncStepAck& MoneroKeyImageSyncStepAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncStepAck.base); + return *internal_default_instance(); +} + + +void MoneroKeyImageSyncStepAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + kis_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroKeyImageSyncStepAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage kis = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_kis())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + return false; +#undef DO_ +} + +void MoneroKeyImageSyncStepAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage kis = 1; + for (unsigned int i = 0, + n = static_cast(this->kis_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->kis(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) +} + +::google::protobuf::uint8* MoneroKeyImageSyncStepAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage kis = 1; + for (unsigned int i = 0, + n = static_cast(this->kis_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->kis(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + return target; +} + +size_t MoneroKeyImageSyncStepAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage kis = 1; + { + unsigned int count = static_cast(this->kis_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->kis(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroKeyImageSyncStepAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroKeyImageSyncStepAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + MergeFrom(*source); + } +} + +void MoneroKeyImageSyncStepAck::MergeFrom(const MoneroKeyImageSyncStepAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + kis_.MergeFrom(from.kis_); +} + +void MoneroKeyImageSyncStepAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroKeyImageSyncStepAck::CopyFrom(const MoneroKeyImageSyncStepAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroKeyImageSyncStepAck::IsInitialized() const { + return true; +} + +void MoneroKeyImageSyncStepAck::Swap(MoneroKeyImageSyncStepAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroKeyImageSyncStepAck::InternalSwap(MoneroKeyImageSyncStepAck* other) { + using std::swap; + CastToBase(&kis_)->InternalSwap(CastToBase(&other->kis_)); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroKeyImageSyncStepAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroKeyImageSyncFinalRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroKeyImageSyncFinalRequest::MoneroKeyImageSyncFinalRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncFinalRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) +} +MoneroKeyImageSyncFinalRequest::MoneroKeyImageSyncFinalRequest(const MoneroKeyImageSyncFinalRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) +} + +void MoneroKeyImageSyncFinalRequest::SharedCtor() { +} + +MoneroKeyImageSyncFinalRequest::~MoneroKeyImageSyncFinalRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + SharedDtor(); +} + +void MoneroKeyImageSyncFinalRequest::SharedDtor() { +} + +void MoneroKeyImageSyncFinalRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroKeyImageSyncFinalRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroKeyImageSyncFinalRequest& MoneroKeyImageSyncFinalRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncFinalRequest.base); + return *internal_default_instance(); +} + + +void MoneroKeyImageSyncFinalRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroKeyImageSyncFinalRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + return false; +#undef DO_ +} + +void MoneroKeyImageSyncFinalRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) +} + +::google::protobuf::uint8* MoneroKeyImageSyncFinalRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + return target; +} + +size_t MoneroKeyImageSyncFinalRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroKeyImageSyncFinalRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroKeyImageSyncFinalRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + MergeFrom(*source); + } +} + +void MoneroKeyImageSyncFinalRequest::MergeFrom(const MoneroKeyImageSyncFinalRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void MoneroKeyImageSyncFinalRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroKeyImageSyncFinalRequest::CopyFrom(const MoneroKeyImageSyncFinalRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroKeyImageSyncFinalRequest::IsInitialized() const { + return true; +} + +void MoneroKeyImageSyncFinalRequest::Swap(MoneroKeyImageSyncFinalRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroKeyImageSyncFinalRequest::InternalSwap(MoneroKeyImageSyncFinalRequest* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroKeyImageSyncFinalRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroKeyImageSyncFinalAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroKeyImageSyncFinalAck::kEncKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroKeyImageSyncFinalAck::MoneroKeyImageSyncFinalAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncFinalAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) +} +MoneroKeyImageSyncFinalAck::MoneroKeyImageSyncFinalAck(const MoneroKeyImageSyncFinalAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + enc_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_enc_key()) { + enc_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.enc_key_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) +} + +void MoneroKeyImageSyncFinalAck::SharedCtor() { + enc_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroKeyImageSyncFinalAck::~MoneroKeyImageSyncFinalAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + SharedDtor(); +} + +void MoneroKeyImageSyncFinalAck::SharedDtor() { + enc_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroKeyImageSyncFinalAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroKeyImageSyncFinalAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroKeyImageSyncFinalAck& MoneroKeyImageSyncFinalAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroKeyImageSyncFinalAck.base); + return *internal_default_instance(); +} + + +void MoneroKeyImageSyncFinalAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + enc_key_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroKeyImageSyncFinalAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes enc_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_enc_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + return false; +#undef DO_ +} + +void MoneroKeyImageSyncFinalAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes enc_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->enc_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) +} + +::google::protobuf::uint8* MoneroKeyImageSyncFinalAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes enc_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->enc_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + return target; +} + +size_t MoneroKeyImageSyncFinalAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes enc_key = 1; + if (has_enc_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->enc_key()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroKeyImageSyncFinalAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroKeyImageSyncFinalAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + MergeFrom(*source); + } +} + +void MoneroKeyImageSyncFinalAck::MergeFrom(const MoneroKeyImageSyncFinalAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_enc_key()) { + set_has_enc_key(); + enc_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.enc_key_); + } +} + +void MoneroKeyImageSyncFinalAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroKeyImageSyncFinalAck::CopyFrom(const MoneroKeyImageSyncFinalAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroKeyImageSyncFinalAck::IsInitialized() const { + return true; +} + +void MoneroKeyImageSyncFinalAck::Swap(MoneroKeyImageSyncFinalAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroKeyImageSyncFinalAck::InternalSwap(MoneroKeyImageSyncFinalAck* other) { + using std::swap; + enc_key_.Swap(&other->enc_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroKeyImageSyncFinalAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroGetTxKeyRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroGetTxKeyRequest::kAddressNFieldNumber; +const int MoneroGetTxKeyRequest::kNetworkTypeFieldNumber; +const int MoneroGetTxKeyRequest::kSalt1FieldNumber; +const int MoneroGetTxKeyRequest::kSalt2FieldNumber; +const int MoneroGetTxKeyRequest::kTxEncKeysFieldNumber; +const int MoneroGetTxKeyRequest::kTxPrefixHashFieldNumber; +const int MoneroGetTxKeyRequest::kReasonFieldNumber; +const int MoneroGetTxKeyRequest::kViewPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroGetTxKeyRequest::MoneroGetTxKeyRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroGetTxKeyRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroGetTxKeyRequest) +} +MoneroGetTxKeyRequest::MoneroGetTxKeyRequest(const MoneroGetTxKeyRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + salt1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_salt1()) { + salt1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salt1_); + } + salt2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_salt2()) { + salt2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salt2_); + } + tx_enc_keys_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_enc_keys()) { + tx_enc_keys_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_enc_keys_); + } + tx_prefix_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_prefix_hash()) { + tx_prefix_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_prefix_hash_); + } + view_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_view_public_key()) { + view_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.view_public_key_); + } + ::memcpy(&network_type_, &from.network_type_, + static_cast(reinterpret_cast(&reason_) - + reinterpret_cast(&network_type_)) + sizeof(reason_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroGetTxKeyRequest) +} + +void MoneroGetTxKeyRequest::SharedCtor() { + salt1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + salt2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_enc_keys_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_prefix_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + view_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&network_type_, 0, static_cast( + reinterpret_cast(&reason_) - + reinterpret_cast(&network_type_)) + sizeof(reason_)); +} + +MoneroGetTxKeyRequest::~MoneroGetTxKeyRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + SharedDtor(); +} + +void MoneroGetTxKeyRequest::SharedDtor() { + salt1_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + salt2_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_enc_keys_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_prefix_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + view_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroGetTxKeyRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroGetTxKeyRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroGetTxKeyRequest& MoneroGetTxKeyRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroGetTxKeyRequest.base); + return *internal_default_instance(); +} + + +void MoneroGetTxKeyRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + salt1_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + salt2_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + tx_enc_keys_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + tx_prefix_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + view_public_key_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 96u) { + ::memset(&network_type_, 0, static_cast( + reinterpret_cast(&reason_) - + reinterpret_cast(&network_type_)) + sizeof(reason_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroGetTxKeyRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 network_type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_network_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &network_type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes salt1 = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_salt1())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes salt2 = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_salt2())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_enc_keys = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_enc_keys())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_prefix_hash = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_prefix_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 reason = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_reason(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &reason_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes view_public_key = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_view_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + return false; +#undef DO_ +} + +void MoneroGetTxKeyRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional uint32 network_type = 2; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->network_type(), output); + } + + // optional bytes salt1 = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->salt1(), output); + } + + // optional bytes salt2 = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->salt2(), output); + } + + // optional bytes tx_enc_keys = 5; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->tx_enc_keys(), output); + } + + // optional bytes tx_prefix_hash = 6; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->tx_prefix_hash(), output); + } + + // optional uint32 reason = 7; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->reason(), output); + } + + // optional bytes view_public_key = 8; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 8, this->view_public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroGetTxKeyRequest) +} + +::google::protobuf::uint8* MoneroGetTxKeyRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional uint32 network_type = 2; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->network_type(), target); + } + + // optional bytes salt1 = 3; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->salt1(), target); + } + + // optional bytes salt2 = 4; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->salt2(), target); + } + + // optional bytes tx_enc_keys = 5; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->tx_enc_keys(), target); + } + + // optional bytes tx_prefix_hash = 6; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->tx_prefix_hash(), target); + } + + // optional uint32 reason = 7; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->reason(), target); + } + + // optional bytes view_public_key = 8; + if (cached_has_bits & 0x00000010u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 8, this->view_public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + return target; +} + +size_t MoneroGetTxKeyRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 127u) { + // optional bytes salt1 = 3; + if (has_salt1()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->salt1()); + } + + // optional bytes salt2 = 4; + if (has_salt2()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->salt2()); + } + + // optional bytes tx_enc_keys = 5; + if (has_tx_enc_keys()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_enc_keys()); + } + + // optional bytes tx_prefix_hash = 6; + if (has_tx_prefix_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_prefix_hash()); + } + + // optional bytes view_public_key = 8; + if (has_view_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->view_public_key()); + } + + // optional uint32 network_type = 2; + if (has_network_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->network_type()); + } + + // optional uint32 reason = 7; + if (has_reason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->reason()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroGetTxKeyRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroGetTxKeyRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + MergeFrom(*source); + } +} + +void MoneroGetTxKeyRequest::MergeFrom(const MoneroGetTxKeyRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 127u) { + if (cached_has_bits & 0x00000001u) { + set_has_salt1(); + salt1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salt1_); + } + if (cached_has_bits & 0x00000002u) { + set_has_salt2(); + salt2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salt2_); + } + if (cached_has_bits & 0x00000004u) { + set_has_tx_enc_keys(); + tx_enc_keys_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_enc_keys_); + } + if (cached_has_bits & 0x00000008u) { + set_has_tx_prefix_hash(); + tx_prefix_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_prefix_hash_); + } + if (cached_has_bits & 0x00000010u) { + set_has_view_public_key(); + view_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.view_public_key_); + } + if (cached_has_bits & 0x00000020u) { + network_type_ = from.network_type_; + } + if (cached_has_bits & 0x00000040u) { + reason_ = from.reason_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MoneroGetTxKeyRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroGetTxKeyRequest::CopyFrom(const MoneroGetTxKeyRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroGetTxKeyRequest::IsInitialized() const { + return true; +} + +void MoneroGetTxKeyRequest::Swap(MoneroGetTxKeyRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroGetTxKeyRequest::InternalSwap(MoneroGetTxKeyRequest* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + salt1_.Swap(&other->salt1_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + salt2_.Swap(&other->salt2_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tx_enc_keys_.Swap(&other->tx_enc_keys_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tx_prefix_hash_.Swap(&other->tx_prefix_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + view_public_key_.Swap(&other->view_public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(network_type_, other->network_type_); + swap(reason_, other->reason_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroGetTxKeyRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroGetTxKeyAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroGetTxKeyAck::kSaltFieldNumber; +const int MoneroGetTxKeyAck::kTxKeysFieldNumber; +const int MoneroGetTxKeyAck::kTxDerivationsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroGetTxKeyAck::MoneroGetTxKeyAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroGetTxKeyAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroGetTxKeyAck) +} +MoneroGetTxKeyAck::MoneroGetTxKeyAck(const MoneroGetTxKeyAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + salt_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_salt()) { + salt_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salt_); + } + tx_keys_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_keys()) { + tx_keys_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_keys_); + } + tx_derivations_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_tx_derivations()) { + tx_derivations_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_derivations_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroGetTxKeyAck) +} + +void MoneroGetTxKeyAck::SharedCtor() { + salt_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_keys_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_derivations_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroGetTxKeyAck::~MoneroGetTxKeyAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroGetTxKeyAck) + SharedDtor(); +} + +void MoneroGetTxKeyAck::SharedDtor() { + salt_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_keys_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tx_derivations_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroGetTxKeyAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroGetTxKeyAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroGetTxKeyAck& MoneroGetTxKeyAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroGetTxKeyAck.base); + return *internal_default_instance(); +} + + +void MoneroGetTxKeyAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroGetTxKeyAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + salt_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + tx_keys_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + tx_derivations_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroGetTxKeyAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroGetTxKeyAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes salt = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_salt())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_keys = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_keys())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes tx_derivations = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tx_derivations())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroGetTxKeyAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroGetTxKeyAck) + return false; +#undef DO_ +} + +void MoneroGetTxKeyAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroGetTxKeyAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes salt = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->salt(), output); + } + + // optional bytes tx_keys = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->tx_keys(), output); + } + + // optional bytes tx_derivations = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->tx_derivations(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroGetTxKeyAck) +} + +::google::protobuf::uint8* MoneroGetTxKeyAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroGetTxKeyAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes salt = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->salt(), target); + } + + // optional bytes tx_keys = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->tx_keys(), target); + } + + // optional bytes tx_derivations = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->tx_derivations(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroGetTxKeyAck) + return target; +} + +size_t MoneroGetTxKeyAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroGetTxKeyAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes salt = 1; + if (has_salt()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->salt()); + } + + // optional bytes tx_keys = 2; + if (has_tx_keys()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_keys()); + } + + // optional bytes tx_derivations = 3; + if (has_tx_derivations()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tx_derivations()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroGetTxKeyAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroGetTxKeyAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroGetTxKeyAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroGetTxKeyAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroGetTxKeyAck) + MergeFrom(*source); + } +} + +void MoneroGetTxKeyAck::MergeFrom(const MoneroGetTxKeyAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroGetTxKeyAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_salt(); + salt_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salt_); + } + if (cached_has_bits & 0x00000002u) { + set_has_tx_keys(); + tx_keys_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_keys_); + } + if (cached_has_bits & 0x00000004u) { + set_has_tx_derivations(); + tx_derivations_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tx_derivations_); + } + } +} + +void MoneroGetTxKeyAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroGetTxKeyAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroGetTxKeyAck::CopyFrom(const MoneroGetTxKeyAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroGetTxKeyAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroGetTxKeyAck::IsInitialized() const { + return true; +} + +void MoneroGetTxKeyAck::Swap(MoneroGetTxKeyAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroGetTxKeyAck::InternalSwap(MoneroGetTxKeyAck* other) { + using std::swap; + salt_.Swap(&other->salt_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tx_keys_.Swap(&other->tx_keys_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tx_derivations_.Swap(&other->tx_derivations_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroGetTxKeyAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroLiveRefreshStartRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroLiveRefreshStartRequest::kAddressNFieldNumber; +const int MoneroLiveRefreshStartRequest::kNetworkTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroLiveRefreshStartRequest::MoneroLiveRefreshStartRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshStartRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) +} +MoneroLiveRefreshStartRequest::MoneroLiveRefreshStartRequest(const MoneroLiveRefreshStartRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + network_type_ = from.network_type_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) +} + +void MoneroLiveRefreshStartRequest::SharedCtor() { + network_type_ = 0u; +} + +MoneroLiveRefreshStartRequest::~MoneroLiveRefreshStartRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + SharedDtor(); +} + +void MoneroLiveRefreshStartRequest::SharedDtor() { +} + +void MoneroLiveRefreshStartRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroLiveRefreshStartRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroLiveRefreshStartRequest& MoneroLiveRefreshStartRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshStartRequest.base); + return *internal_default_instance(); +} + + +void MoneroLiveRefreshStartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + network_type_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroLiveRefreshStartRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 network_type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_network_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &network_type_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + return false; +#undef DO_ +} + +void MoneroLiveRefreshStartRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional uint32 network_type = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->network_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) +} + +::google::protobuf::uint8* MoneroLiveRefreshStartRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional uint32 network_type = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->network_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + return target; +} + +size_t MoneroLiveRefreshStartRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional uint32 network_type = 2; + if (has_network_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->network_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroLiveRefreshStartRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroLiveRefreshStartRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + MergeFrom(*source); + } +} + +void MoneroLiveRefreshStartRequest::MergeFrom(const MoneroLiveRefreshStartRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_network_type()) { + set_network_type(from.network_type()); + } +} + +void MoneroLiveRefreshStartRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroLiveRefreshStartRequest::CopyFrom(const MoneroLiveRefreshStartRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroLiveRefreshStartRequest::IsInitialized() const { + return true; +} + +void MoneroLiveRefreshStartRequest::Swap(MoneroLiveRefreshStartRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroLiveRefreshStartRequest::InternalSwap(MoneroLiveRefreshStartRequest* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(network_type_, other->network_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroLiveRefreshStartRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroLiveRefreshStartAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroLiveRefreshStartAck::MoneroLiveRefreshStartAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshStartAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) +} +MoneroLiveRefreshStartAck::MoneroLiveRefreshStartAck(const MoneroLiveRefreshStartAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) +} + +void MoneroLiveRefreshStartAck::SharedCtor() { +} + +MoneroLiveRefreshStartAck::~MoneroLiveRefreshStartAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + SharedDtor(); +} + +void MoneroLiveRefreshStartAck::SharedDtor() { +} + +void MoneroLiveRefreshStartAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroLiveRefreshStartAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroLiveRefreshStartAck& MoneroLiveRefreshStartAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshStartAck.base); + return *internal_default_instance(); +} + + +void MoneroLiveRefreshStartAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroLiveRefreshStartAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + return false; +#undef DO_ +} + +void MoneroLiveRefreshStartAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) +} + +::google::protobuf::uint8* MoneroLiveRefreshStartAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + return target; +} + +size_t MoneroLiveRefreshStartAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroLiveRefreshStartAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroLiveRefreshStartAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + MergeFrom(*source); + } +} + +void MoneroLiveRefreshStartAck::MergeFrom(const MoneroLiveRefreshStartAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void MoneroLiveRefreshStartAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroLiveRefreshStartAck::CopyFrom(const MoneroLiveRefreshStartAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroLiveRefreshStartAck::IsInitialized() const { + return true; +} + +void MoneroLiveRefreshStartAck::Swap(MoneroLiveRefreshStartAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroLiveRefreshStartAck::InternalSwap(MoneroLiveRefreshStartAck* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroLiveRefreshStartAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroLiveRefreshStepRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroLiveRefreshStepRequest::kOutKeyFieldNumber; +const int MoneroLiveRefreshStepRequest::kRecvDerivFieldNumber; +const int MoneroLiveRefreshStepRequest::kRealOutIdxFieldNumber; +const int MoneroLiveRefreshStepRequest::kSubAddrMajorFieldNumber; +const int MoneroLiveRefreshStepRequest::kSubAddrMinorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroLiveRefreshStepRequest::MoneroLiveRefreshStepRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshStepRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) +} +MoneroLiveRefreshStepRequest::MoneroLiveRefreshStepRequest(const MoneroLiveRefreshStepRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + out_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_out_key()) { + out_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.out_key_); + } + recv_deriv_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_recv_deriv()) { + recv_deriv_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.recv_deriv_); + } + ::memcpy(&real_out_idx_, &from.real_out_idx_, + static_cast(reinterpret_cast(&sub_addr_minor_) - + reinterpret_cast(&real_out_idx_)) + sizeof(sub_addr_minor_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) +} + +void MoneroLiveRefreshStepRequest::SharedCtor() { + out_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + recv_deriv_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&real_out_idx_, 0, static_cast( + reinterpret_cast(&sub_addr_minor_) - + reinterpret_cast(&real_out_idx_)) + sizeof(sub_addr_minor_)); +} + +MoneroLiveRefreshStepRequest::~MoneroLiveRefreshStepRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + SharedDtor(); +} + +void MoneroLiveRefreshStepRequest::SharedDtor() { + out_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + recv_deriv_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroLiveRefreshStepRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroLiveRefreshStepRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroLiveRefreshStepRequest& MoneroLiveRefreshStepRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshStepRequest.base); + return *internal_default_instance(); +} + + +void MoneroLiveRefreshStepRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + out_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + recv_deriv_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 28u) { + ::memset(&real_out_idx_, 0, static_cast( + reinterpret_cast(&sub_addr_minor_) - + reinterpret_cast(&real_out_idx_)) + sizeof(sub_addr_minor_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroLiveRefreshStepRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes out_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_out_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes recv_deriv = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_recv_deriv())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 real_out_idx = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_real_out_idx(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &real_out_idx_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 sub_addr_major = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_sub_addr_major(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &sub_addr_major_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 sub_addr_minor = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_sub_addr_minor(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &sub_addr_minor_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + return false; +#undef DO_ +} + +void MoneroLiveRefreshStepRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes out_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->out_key(), output); + } + + // optional bytes recv_deriv = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->recv_deriv(), output); + } + + // optional uint64 real_out_idx = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->real_out_idx(), output); + } + + // optional uint32 sub_addr_major = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->sub_addr_major(), output); + } + + // optional uint32 sub_addr_minor = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->sub_addr_minor(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) +} + +::google::protobuf::uint8* MoneroLiveRefreshStepRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes out_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->out_key(), target); + } + + // optional bytes recv_deriv = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->recv_deriv(), target); + } + + // optional uint64 real_out_idx = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->real_out_idx(), target); + } + + // optional uint32 sub_addr_major = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->sub_addr_major(), target); + } + + // optional uint32 sub_addr_minor = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->sub_addr_minor(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + return target; +} + +size_t MoneroLiveRefreshStepRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 31u) { + // optional bytes out_key = 1; + if (has_out_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->out_key()); + } + + // optional bytes recv_deriv = 2; + if (has_recv_deriv()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->recv_deriv()); + } + + // optional uint64 real_out_idx = 3; + if (has_real_out_idx()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->real_out_idx()); + } + + // optional uint32 sub_addr_major = 4; + if (has_sub_addr_major()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->sub_addr_major()); + } + + // optional uint32 sub_addr_minor = 5; + if (has_sub_addr_minor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->sub_addr_minor()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroLiveRefreshStepRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroLiveRefreshStepRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + MergeFrom(*source); + } +} + +void MoneroLiveRefreshStepRequest::MergeFrom(const MoneroLiveRefreshStepRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + set_has_out_key(); + out_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.out_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_recv_deriv(); + recv_deriv_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.recv_deriv_); + } + if (cached_has_bits & 0x00000004u) { + real_out_idx_ = from.real_out_idx_; + } + if (cached_has_bits & 0x00000008u) { + sub_addr_major_ = from.sub_addr_major_; + } + if (cached_has_bits & 0x00000010u) { + sub_addr_minor_ = from.sub_addr_minor_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MoneroLiveRefreshStepRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroLiveRefreshStepRequest::CopyFrom(const MoneroLiveRefreshStepRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroLiveRefreshStepRequest::IsInitialized() const { + return true; +} + +void MoneroLiveRefreshStepRequest::Swap(MoneroLiveRefreshStepRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroLiveRefreshStepRequest::InternalSwap(MoneroLiveRefreshStepRequest* other) { + using std::swap; + out_key_.Swap(&other->out_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + recv_deriv_.Swap(&other->recv_deriv_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(real_out_idx_, other->real_out_idx_); + swap(sub_addr_major_, other->sub_addr_major_); + swap(sub_addr_minor_, other->sub_addr_minor_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroLiveRefreshStepRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroLiveRefreshStepAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MoneroLiveRefreshStepAck::kSaltFieldNumber; +const int MoneroLiveRefreshStepAck::kKeyImageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroLiveRefreshStepAck::MoneroLiveRefreshStepAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshStepAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) +} +MoneroLiveRefreshStepAck::MoneroLiveRefreshStepAck(const MoneroLiveRefreshStepAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + salt_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_salt()) { + salt_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salt_); + } + key_image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_key_image()) { + key_image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_image_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) +} + +void MoneroLiveRefreshStepAck::SharedCtor() { + salt_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MoneroLiveRefreshStepAck::~MoneroLiveRefreshStepAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + SharedDtor(); +} + +void MoneroLiveRefreshStepAck::SharedDtor() { + salt_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MoneroLiveRefreshStepAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroLiveRefreshStepAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroLiveRefreshStepAck& MoneroLiveRefreshStepAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshStepAck.base); + return *internal_default_instance(); +} + + +void MoneroLiveRefreshStepAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + salt_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + key_image_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroLiveRefreshStepAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes salt = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_salt())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes key_image = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_key_image())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + return false; +#undef DO_ +} + +void MoneroLiveRefreshStepAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes salt = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->salt(), output); + } + + // optional bytes key_image = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->key_image(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) +} + +::google::protobuf::uint8* MoneroLiveRefreshStepAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes salt = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->salt(), target); + } + + // optional bytes key_image = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->key_image(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + return target; +} + +size_t MoneroLiveRefreshStepAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes salt = 1; + if (has_salt()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->salt()); + } + + // optional bytes key_image = 2; + if (has_key_image()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->key_image()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroLiveRefreshStepAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroLiveRefreshStepAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + MergeFrom(*source); + } +} + +void MoneroLiveRefreshStepAck::MergeFrom(const MoneroLiveRefreshStepAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_salt(); + salt_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salt_); + } + if (cached_has_bits & 0x00000002u) { + set_has_key_image(); + key_image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_image_); + } + } +} + +void MoneroLiveRefreshStepAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroLiveRefreshStepAck::CopyFrom(const MoneroLiveRefreshStepAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroLiveRefreshStepAck::IsInitialized() const { + return true; +} + +void MoneroLiveRefreshStepAck::Swap(MoneroLiveRefreshStepAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroLiveRefreshStepAck::InternalSwap(MoneroLiveRefreshStepAck* other) { + using std::swap; + salt_.Swap(&other->salt_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + key_image_.Swap(&other->key_image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroLiveRefreshStepAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroLiveRefreshFinalRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroLiveRefreshFinalRequest::MoneroLiveRefreshFinalRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshFinalRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) +} +MoneroLiveRefreshFinalRequest::MoneroLiveRefreshFinalRequest(const MoneroLiveRefreshFinalRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) +} + +void MoneroLiveRefreshFinalRequest::SharedCtor() { +} + +MoneroLiveRefreshFinalRequest::~MoneroLiveRefreshFinalRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + SharedDtor(); +} + +void MoneroLiveRefreshFinalRequest::SharedDtor() { +} + +void MoneroLiveRefreshFinalRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroLiveRefreshFinalRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroLiveRefreshFinalRequest& MoneroLiveRefreshFinalRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshFinalRequest.base); + return *internal_default_instance(); +} + + +void MoneroLiveRefreshFinalRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroLiveRefreshFinalRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + return false; +#undef DO_ +} + +void MoneroLiveRefreshFinalRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) +} + +::google::protobuf::uint8* MoneroLiveRefreshFinalRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + return target; +} + +size_t MoneroLiveRefreshFinalRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroLiveRefreshFinalRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + GOOGLE_DCHECK_NE(&from, this); + const MoneroLiveRefreshFinalRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + MergeFrom(*source); + } +} + +void MoneroLiveRefreshFinalRequest::MergeFrom(const MoneroLiveRefreshFinalRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void MoneroLiveRefreshFinalRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroLiveRefreshFinalRequest::CopyFrom(const MoneroLiveRefreshFinalRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroLiveRefreshFinalRequest::IsInitialized() const { + return true; +} + +void MoneroLiveRefreshFinalRequest::Swap(MoneroLiveRefreshFinalRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroLiveRefreshFinalRequest::InternalSwap(MoneroLiveRefreshFinalRequest* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroLiveRefreshFinalRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MoneroLiveRefreshFinalAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MoneroLiveRefreshFinalAck::MoneroLiveRefreshFinalAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshFinalAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) +} +MoneroLiveRefreshFinalAck::MoneroLiveRefreshFinalAck(const MoneroLiveRefreshFinalAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) +} + +void MoneroLiveRefreshFinalAck::SharedCtor() { +} + +MoneroLiveRefreshFinalAck::~MoneroLiveRefreshFinalAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + SharedDtor(); +} + +void MoneroLiveRefreshFinalAck::SharedDtor() { +} + +void MoneroLiveRefreshFinalAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MoneroLiveRefreshFinalAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MoneroLiveRefreshFinalAck& MoneroLiveRefreshFinalAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_MoneroLiveRefreshFinalAck.base); + return *internal_default_instance(); +} + + +void MoneroLiveRefreshFinalAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MoneroLiveRefreshFinalAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + return false; +#undef DO_ +} + +void MoneroLiveRefreshFinalAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) +} + +::google::protobuf::uint8* MoneroLiveRefreshFinalAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + return target; +} + +size_t MoneroLiveRefreshFinalAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MoneroLiveRefreshFinalAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + GOOGLE_DCHECK_NE(&from, this); + const MoneroLiveRefreshFinalAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + MergeFrom(*source); + } +} + +void MoneroLiveRefreshFinalAck::MergeFrom(const MoneroLiveRefreshFinalAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void MoneroLiveRefreshFinalAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoneroLiveRefreshFinalAck::CopyFrom(const MoneroLiveRefreshFinalAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoneroLiveRefreshFinalAck::IsInitialized() const { + return true; +} + +void MoneroLiveRefreshFinalAck::Swap(MoneroLiveRefreshFinalAck* other) { + if (other == this) return; + InternalSwap(other); +} +void MoneroLiveRefreshFinalAck::InternalSwap(MoneroLiveRefreshFinalAck* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MoneroLiveRefreshFinalAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DebugMoneroDiagRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DebugMoneroDiagRequest::kInsFieldNumber; +const int DebugMoneroDiagRequest::kP1FieldNumber; +const int DebugMoneroDiagRequest::kP2FieldNumber; +const int DebugMoneroDiagRequest::kPdFieldNumber; +const int DebugMoneroDiagRequest::kData1FieldNumber; +const int DebugMoneroDiagRequest::kData2FieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DebugMoneroDiagRequest::DebugMoneroDiagRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_DebugMoneroDiagRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.DebugMoneroDiagRequest) +} +DebugMoneroDiagRequest::DebugMoneroDiagRequest(const DebugMoneroDiagRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + pd_(from.pd_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data1()) { + data1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data1_); + } + data2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data2()) { + data2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data2_); + } + ::memcpy(&ins_, &from.ins_, + static_cast(reinterpret_cast(&p2_) - + reinterpret_cast(&ins_)) + sizeof(p2_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.DebugMoneroDiagRequest) +} + +void DebugMoneroDiagRequest::SharedCtor() { + data1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&ins_, 0, static_cast( + reinterpret_cast(&p2_) - + reinterpret_cast(&ins_)) + sizeof(p2_)); +} + +DebugMoneroDiagRequest::~DebugMoneroDiagRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.DebugMoneroDiagRequest) + SharedDtor(); +} + +void DebugMoneroDiagRequest::SharedDtor() { + data1_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data2_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DebugMoneroDiagRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DebugMoneroDiagRequest::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DebugMoneroDiagRequest& DebugMoneroDiagRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_DebugMoneroDiagRequest.base); + return *internal_default_instance(); +} + + +void DebugMoneroDiagRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.DebugMoneroDiagRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + pd_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + data1_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + data2_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 28u) { + ::memset(&ins_, 0, static_cast( + reinterpret_cast(&p2_) - + reinterpret_cast(&ins_)) + sizeof(p2_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DebugMoneroDiagRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.DebugMoneroDiagRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 ins = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_ins(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &ins_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 p1 = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_p1(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &p1_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 p2 = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_p2(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &p2_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint64 pd = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + 1, 32u, input, this->mutable_pd()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, this->mutable_pd()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes data1 = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data1())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes data2 = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data2())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.DebugMoneroDiagRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.DebugMoneroDiagRequest) + return false; +#undef DO_ +} + +void DebugMoneroDiagRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.DebugMoneroDiagRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 ins = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->ins(), output); + } + + // optional uint64 p1 = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->p1(), output); + } + + // optional uint64 p2 = 3; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->p2(), output); + } + + // repeated uint64 pd = 4; + for (int i = 0, n = this->pd_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64( + 4, this->pd(i), output); + } + + // optional bytes data1 = 5; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->data1(), output); + } + + // optional bytes data2 = 6; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->data2(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.DebugMoneroDiagRequest) +} + +::google::protobuf::uint8* DebugMoneroDiagRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.DebugMoneroDiagRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 ins = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->ins(), target); + } + + // optional uint64 p1 = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->p1(), target); + } + + // optional uint64 p2 = 3; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->p2(), target); + } + + // repeated uint64 pd = 4; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt64ToArray(4, this->pd_, target); + + // optional bytes data1 = 5; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->data1(), target); + } + + // optional bytes data2 = 6; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->data2(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.DebugMoneroDiagRequest) + return target; +} + +size_t DebugMoneroDiagRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.DebugMoneroDiagRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint64 pd = 4; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt64Size(this->pd_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->pd_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 31u) { + // optional bytes data1 = 5; + if (has_data1()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data1()); + } + + // optional bytes data2 = 6; + if (has_data2()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data2()); + } + + // optional uint64 ins = 1; + if (has_ins()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->ins()); + } + + // optional uint64 p1 = 2; + if (has_p1()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->p1()); + } + + // optional uint64 p2 = 3; + if (has_p2()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->p2()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DebugMoneroDiagRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.DebugMoneroDiagRequest) + GOOGLE_DCHECK_NE(&from, this); + const DebugMoneroDiagRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.DebugMoneroDiagRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.DebugMoneroDiagRequest) + MergeFrom(*source); + } +} + +void DebugMoneroDiagRequest::MergeFrom(const DebugMoneroDiagRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.DebugMoneroDiagRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + pd_.MergeFrom(from.pd_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + set_has_data1(); + data1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data1_); + } + if (cached_has_bits & 0x00000002u) { + set_has_data2(); + data2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data2_); + } + if (cached_has_bits & 0x00000004u) { + ins_ = from.ins_; + } + if (cached_has_bits & 0x00000008u) { + p1_ = from.p1_; + } + if (cached_has_bits & 0x00000010u) { + p2_ = from.p2_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DebugMoneroDiagRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.DebugMoneroDiagRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DebugMoneroDiagRequest::CopyFrom(const DebugMoneroDiagRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.DebugMoneroDiagRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugMoneroDiagRequest::IsInitialized() const { + return true; +} + +void DebugMoneroDiagRequest::Swap(DebugMoneroDiagRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void DebugMoneroDiagRequest::InternalSwap(DebugMoneroDiagRequest* other) { + using std::swap; + pd_.InternalSwap(&other->pd_); + data1_.Swap(&other->data1_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + data2_.Swap(&other->data2_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(ins_, other->ins_); + swap(p1_, other->p1_); + swap(p2_, other->p2_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DebugMoneroDiagRequest::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DebugMoneroDiagAck::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DebugMoneroDiagAck::kInsFieldNumber; +const int DebugMoneroDiagAck::kP1FieldNumber; +const int DebugMoneroDiagAck::kP2FieldNumber; +const int DebugMoneroDiagAck::kPdFieldNumber; +const int DebugMoneroDiagAck::kData1FieldNumber; +const int DebugMoneroDiagAck::kData2FieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DebugMoneroDiagAck::DebugMoneroDiagAck() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dmonero_2eproto::scc_info_DebugMoneroDiagAck.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.monero.DebugMoneroDiagAck) +} +DebugMoneroDiagAck::DebugMoneroDiagAck(const DebugMoneroDiagAck& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + pd_(from.pd_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data1()) { + data1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data1_); + } + data2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data2()) { + data2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data2_); + } + ::memcpy(&ins_, &from.ins_, + static_cast(reinterpret_cast(&p2_) - + reinterpret_cast(&ins_)) + sizeof(p2_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.monero.DebugMoneroDiagAck) +} + +void DebugMoneroDiagAck::SharedCtor() { + data1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&ins_, 0, static_cast( + reinterpret_cast(&p2_) - + reinterpret_cast(&ins_)) + sizeof(p2_)); +} + +DebugMoneroDiagAck::~DebugMoneroDiagAck() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.monero.DebugMoneroDiagAck) + SharedDtor(); +} + +void DebugMoneroDiagAck::SharedDtor() { + data1_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data2_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DebugMoneroDiagAck::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DebugMoneroDiagAck::descriptor() { + ::protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DebugMoneroDiagAck& DebugMoneroDiagAck::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dmonero_2eproto::scc_info_DebugMoneroDiagAck.base); + return *internal_default_instance(); +} + + +void DebugMoneroDiagAck::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.monero.DebugMoneroDiagAck) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + pd_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + data1_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + data2_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 28u) { + ::memset(&ins_, 0, static_cast( + reinterpret_cast(&p2_) - + reinterpret_cast(&ins_)) + sizeof(p2_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DebugMoneroDiagAck::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.monero.DebugMoneroDiagAck) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 ins = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_ins(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &ins_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 p1 = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_p1(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &p1_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 p2 = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_p2(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &p2_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint64 pd = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + 1, 32u, input, this->mutable_pd()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, this->mutable_pd()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes data1 = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data1())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes data2 = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data2())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.monero.DebugMoneroDiagAck) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.monero.DebugMoneroDiagAck) + return false; +#undef DO_ +} + +void DebugMoneroDiagAck::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.monero.DebugMoneroDiagAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 ins = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->ins(), output); + } + + // optional uint64 p1 = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->p1(), output); + } + + // optional uint64 p2 = 3; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->p2(), output); + } + + // repeated uint64 pd = 4; + for (int i = 0, n = this->pd_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64( + 4, this->pd(i), output); + } + + // optional bytes data1 = 5; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->data1(), output); + } + + // optional bytes data2 = 6; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->data2(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.monero.DebugMoneroDiagAck) +} + +::google::protobuf::uint8* DebugMoneroDiagAck::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.monero.DebugMoneroDiagAck) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 ins = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->ins(), target); + } + + // optional uint64 p1 = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->p1(), target); + } + + // optional uint64 p2 = 3; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->p2(), target); + } + + // repeated uint64 pd = 4; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt64ToArray(4, this->pd_, target); + + // optional bytes data1 = 5; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->data1(), target); + } + + // optional bytes data2 = 6; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->data2(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.monero.DebugMoneroDiagAck) + return target; +} + +size_t DebugMoneroDiagAck::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.monero.DebugMoneroDiagAck) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint64 pd = 4; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt64Size(this->pd_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->pd_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 31u) { + // optional bytes data1 = 5; + if (has_data1()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data1()); + } + + // optional bytes data2 = 6; + if (has_data2()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data2()); + } + + // optional uint64 ins = 1; + if (has_ins()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->ins()); + } + + // optional uint64 p1 = 2; + if (has_p1()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->p1()); + } + + // optional uint64 p2 = 3; + if (has_p2()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->p2()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DebugMoneroDiagAck::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.monero.DebugMoneroDiagAck) + GOOGLE_DCHECK_NE(&from, this); + const DebugMoneroDiagAck* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.monero.DebugMoneroDiagAck) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.monero.DebugMoneroDiagAck) + MergeFrom(*source); + } +} + +void DebugMoneroDiagAck::MergeFrom(const DebugMoneroDiagAck& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.monero.DebugMoneroDiagAck) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + pd_.MergeFrom(from.pd_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + set_has_data1(); + data1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data1_); + } + if (cached_has_bits & 0x00000002u) { + set_has_data2(); + data2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data2_); + } + if (cached_has_bits & 0x00000004u) { + ins_ = from.ins_; + } + if (cached_has_bits & 0x00000008u) { + p1_ = from.p1_; + } + if (cached_has_bits & 0x00000010u) { + p2_ = from.p2_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DebugMoneroDiagAck::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.monero.DebugMoneroDiagAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DebugMoneroDiagAck::CopyFrom(const DebugMoneroDiagAck& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.monero.DebugMoneroDiagAck) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugMoneroDiagAck::IsInitialized() const { + return true; +} + +void DebugMoneroDiagAck::Swap(DebugMoneroDiagAck* other) { + if (other == this) return; + InternalSwap(other); +} +void DebugMoneroDiagAck::InternalSwap(DebugMoneroDiagAck* other) { + using std::swap; + pd_.InternalSwap(&other->pd_); + data1_.Swap(&other->data1_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + data2_.Swap(&other->data2_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(ins_, other->ins_); + swap(p1_, other->p1_); + swap(p2_, other->p2_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DebugMoneroDiagAck::GetMetadata() const { + protobuf_messages_2dmonero_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dmonero_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace monero +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionRsigData* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionRsigData >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionRsigData >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroGetAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroGetAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroGetAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroGetWatchKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroGetWatchKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroGetWatchKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroWatchKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroWatchKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroWatchKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionInitRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionInitRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionInitRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionInitAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionInitAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionInitAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionSetInputRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionSetInputRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionSetInputRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionSetInputAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionSetInputAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionSetInputAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionInputViniRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionInputViniRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionInputViniRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionInputViniAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionInputViniAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionInputViniAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionSetOutputAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionSetOutputAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionSetOutputAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionAllOutSetRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionAllOutSetRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionAllOutSetRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionSignInputRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionSignInputRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionSignInputRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionSignInputAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionSignInputAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionSignInputAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionFinalRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionFinalRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionFinalRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroTransactionFinalAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroTransactionFinalAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroTransactionFinalAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroKeyImageExportInitAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroKeyImageExportInitAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroKeyImageExportInitAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroGetTxKeyRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroGetTxKeyRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroGetTxKeyRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroGetTxKeyAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroGetTxKeyAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroGetTxKeyAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroLiveRefreshStartAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroLiveRefreshStartAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroLiveRefreshStartAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroLiveRefreshStepAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroLiveRefreshStepAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroLiveRefreshStepAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroLiveRefreshFinalRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroLiveRefreshFinalRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroLiveRefreshFinalRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::MoneroLiveRefreshFinalAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::MoneroLiveRefreshFinalAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::MoneroLiveRefreshFinalAck >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::DebugMoneroDiagRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::DebugMoneroDiagRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::DebugMoneroDiagRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::monero::DebugMoneroDiagAck* Arena::CreateMaybeMessage< ::hw::trezor::messages::monero::DebugMoneroDiagAck >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::monero::DebugMoneroDiagAck >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-monero.pb.h b/src/Core/hardware/trezor/protob/messages-monero.pb.h new file mode 100644 index 00000000..2a0ed9d3 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-monero.pb.h @@ -0,0 +1,15182 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-monero.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dmonero_2eproto +#define PROTOBUF_INCLUDED_messages_2dmonero_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dmonero_2eproto + +namespace protobuf_messages_2dmonero_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[50]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dmonero_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace monero { +class DebugMoneroDiagAck; +class DebugMoneroDiagAckDefaultTypeInternal; +extern DebugMoneroDiagAckDefaultTypeInternal _DebugMoneroDiagAck_default_instance_; +class DebugMoneroDiagRequest; +class DebugMoneroDiagRequestDefaultTypeInternal; +extern DebugMoneroDiagRequestDefaultTypeInternal _DebugMoneroDiagRequest_default_instance_; +class MoneroAddress; +class MoneroAddressDefaultTypeInternal; +extern MoneroAddressDefaultTypeInternal _MoneroAddress_default_instance_; +class MoneroGetAddress; +class MoneroGetAddressDefaultTypeInternal; +extern MoneroGetAddressDefaultTypeInternal _MoneroGetAddress_default_instance_; +class MoneroGetTxKeyAck; +class MoneroGetTxKeyAckDefaultTypeInternal; +extern MoneroGetTxKeyAckDefaultTypeInternal _MoneroGetTxKeyAck_default_instance_; +class MoneroGetTxKeyRequest; +class MoneroGetTxKeyRequestDefaultTypeInternal; +extern MoneroGetTxKeyRequestDefaultTypeInternal _MoneroGetTxKeyRequest_default_instance_; +class MoneroGetWatchKey; +class MoneroGetWatchKeyDefaultTypeInternal; +extern MoneroGetWatchKeyDefaultTypeInternal _MoneroGetWatchKey_default_instance_; +class MoneroKeyImageExportInitAck; +class MoneroKeyImageExportInitAckDefaultTypeInternal; +extern MoneroKeyImageExportInitAckDefaultTypeInternal _MoneroKeyImageExportInitAck_default_instance_; +class MoneroKeyImageExportInitRequest; +class MoneroKeyImageExportInitRequestDefaultTypeInternal; +extern MoneroKeyImageExportInitRequestDefaultTypeInternal _MoneroKeyImageExportInitRequest_default_instance_; +class MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList; +class MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesListDefaultTypeInternal; +extern MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesListDefaultTypeInternal _MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList_default_instance_; +class MoneroKeyImageSyncFinalAck; +class MoneroKeyImageSyncFinalAckDefaultTypeInternal; +extern MoneroKeyImageSyncFinalAckDefaultTypeInternal _MoneroKeyImageSyncFinalAck_default_instance_; +class MoneroKeyImageSyncFinalRequest; +class MoneroKeyImageSyncFinalRequestDefaultTypeInternal; +extern MoneroKeyImageSyncFinalRequestDefaultTypeInternal _MoneroKeyImageSyncFinalRequest_default_instance_; +class MoneroKeyImageSyncStepAck; +class MoneroKeyImageSyncStepAckDefaultTypeInternal; +extern MoneroKeyImageSyncStepAckDefaultTypeInternal _MoneroKeyImageSyncStepAck_default_instance_; +class MoneroKeyImageSyncStepAck_MoneroExportedKeyImage; +class MoneroKeyImageSyncStepAck_MoneroExportedKeyImageDefaultTypeInternal; +extern MoneroKeyImageSyncStepAck_MoneroExportedKeyImageDefaultTypeInternal _MoneroKeyImageSyncStepAck_MoneroExportedKeyImage_default_instance_; +class MoneroKeyImageSyncStepRequest; +class MoneroKeyImageSyncStepRequestDefaultTypeInternal; +extern MoneroKeyImageSyncStepRequestDefaultTypeInternal _MoneroKeyImageSyncStepRequest_default_instance_; +class MoneroKeyImageSyncStepRequest_MoneroTransferDetails; +class MoneroKeyImageSyncStepRequest_MoneroTransferDetailsDefaultTypeInternal; +extern MoneroKeyImageSyncStepRequest_MoneroTransferDetailsDefaultTypeInternal _MoneroKeyImageSyncStepRequest_MoneroTransferDetails_default_instance_; +class MoneroLiveRefreshFinalAck; +class MoneroLiveRefreshFinalAckDefaultTypeInternal; +extern MoneroLiveRefreshFinalAckDefaultTypeInternal _MoneroLiveRefreshFinalAck_default_instance_; +class MoneroLiveRefreshFinalRequest; +class MoneroLiveRefreshFinalRequestDefaultTypeInternal; +extern MoneroLiveRefreshFinalRequestDefaultTypeInternal _MoneroLiveRefreshFinalRequest_default_instance_; +class MoneroLiveRefreshStartAck; +class MoneroLiveRefreshStartAckDefaultTypeInternal; +extern MoneroLiveRefreshStartAckDefaultTypeInternal _MoneroLiveRefreshStartAck_default_instance_; +class MoneroLiveRefreshStartRequest; +class MoneroLiveRefreshStartRequestDefaultTypeInternal; +extern MoneroLiveRefreshStartRequestDefaultTypeInternal _MoneroLiveRefreshStartRequest_default_instance_; +class MoneroLiveRefreshStepAck; +class MoneroLiveRefreshStepAckDefaultTypeInternal; +extern MoneroLiveRefreshStepAckDefaultTypeInternal _MoneroLiveRefreshStepAck_default_instance_; +class MoneroLiveRefreshStepRequest; +class MoneroLiveRefreshStepRequestDefaultTypeInternal; +extern MoneroLiveRefreshStepRequestDefaultTypeInternal _MoneroLiveRefreshStepRequest_default_instance_; +class MoneroTransactionAllInputsSetAck; +class MoneroTransactionAllInputsSetAckDefaultTypeInternal; +extern MoneroTransactionAllInputsSetAckDefaultTypeInternal _MoneroTransactionAllInputsSetAck_default_instance_; +class MoneroTransactionAllInputsSetRequest; +class MoneroTransactionAllInputsSetRequestDefaultTypeInternal; +extern MoneroTransactionAllInputsSetRequestDefaultTypeInternal _MoneroTransactionAllInputsSetRequest_default_instance_; +class MoneroTransactionAllOutSetAck; +class MoneroTransactionAllOutSetAckDefaultTypeInternal; +extern MoneroTransactionAllOutSetAckDefaultTypeInternal _MoneroTransactionAllOutSetAck_default_instance_; +class MoneroTransactionAllOutSetAck_MoneroRingCtSig; +class MoneroTransactionAllOutSetAck_MoneroRingCtSigDefaultTypeInternal; +extern MoneroTransactionAllOutSetAck_MoneroRingCtSigDefaultTypeInternal _MoneroTransactionAllOutSetAck_MoneroRingCtSig_default_instance_; +class MoneroTransactionAllOutSetRequest; +class MoneroTransactionAllOutSetRequestDefaultTypeInternal; +extern MoneroTransactionAllOutSetRequestDefaultTypeInternal _MoneroTransactionAllOutSetRequest_default_instance_; +class MoneroTransactionDestinationEntry; +class MoneroTransactionDestinationEntryDefaultTypeInternal; +extern MoneroTransactionDestinationEntryDefaultTypeInternal _MoneroTransactionDestinationEntry_default_instance_; +class MoneroTransactionDestinationEntry_MoneroAccountPublicAddress; +class MoneroTransactionDestinationEntry_MoneroAccountPublicAddressDefaultTypeInternal; +extern MoneroTransactionDestinationEntry_MoneroAccountPublicAddressDefaultTypeInternal _MoneroTransactionDestinationEntry_MoneroAccountPublicAddress_default_instance_; +class MoneroTransactionFinalAck; +class MoneroTransactionFinalAckDefaultTypeInternal; +extern MoneroTransactionFinalAckDefaultTypeInternal _MoneroTransactionFinalAck_default_instance_; +class MoneroTransactionFinalRequest; +class MoneroTransactionFinalRequestDefaultTypeInternal; +extern MoneroTransactionFinalRequestDefaultTypeInternal _MoneroTransactionFinalRequest_default_instance_; +class MoneroTransactionInitAck; +class MoneroTransactionInitAckDefaultTypeInternal; +extern MoneroTransactionInitAckDefaultTypeInternal _MoneroTransactionInitAck_default_instance_; +class MoneroTransactionInitRequest; +class MoneroTransactionInitRequestDefaultTypeInternal; +extern MoneroTransactionInitRequestDefaultTypeInternal _MoneroTransactionInitRequest_default_instance_; +class MoneroTransactionInitRequest_MoneroTransactionData; +class MoneroTransactionInitRequest_MoneroTransactionDataDefaultTypeInternal; +extern MoneroTransactionInitRequest_MoneroTransactionDataDefaultTypeInternal _MoneroTransactionInitRequest_MoneroTransactionData_default_instance_; +class MoneroTransactionInputViniAck; +class MoneroTransactionInputViniAckDefaultTypeInternal; +extern MoneroTransactionInputViniAckDefaultTypeInternal _MoneroTransactionInputViniAck_default_instance_; +class MoneroTransactionInputViniRequest; +class MoneroTransactionInputViniRequestDefaultTypeInternal; +extern MoneroTransactionInputViniRequestDefaultTypeInternal _MoneroTransactionInputViniRequest_default_instance_; +class MoneroTransactionInputsPermutationAck; +class MoneroTransactionInputsPermutationAckDefaultTypeInternal; +extern MoneroTransactionInputsPermutationAckDefaultTypeInternal _MoneroTransactionInputsPermutationAck_default_instance_; +class MoneroTransactionInputsPermutationRequest; +class MoneroTransactionInputsPermutationRequestDefaultTypeInternal; +extern MoneroTransactionInputsPermutationRequestDefaultTypeInternal _MoneroTransactionInputsPermutationRequest_default_instance_; +class MoneroTransactionRsigData; +class MoneroTransactionRsigDataDefaultTypeInternal; +extern MoneroTransactionRsigDataDefaultTypeInternal _MoneroTransactionRsigData_default_instance_; +class MoneroTransactionSetInputAck; +class MoneroTransactionSetInputAckDefaultTypeInternal; +extern MoneroTransactionSetInputAckDefaultTypeInternal _MoneroTransactionSetInputAck_default_instance_; +class MoneroTransactionSetInputRequest; +class MoneroTransactionSetInputRequestDefaultTypeInternal; +extern MoneroTransactionSetInputRequestDefaultTypeInternal _MoneroTransactionSetInputRequest_default_instance_; +class MoneroTransactionSetOutputAck; +class MoneroTransactionSetOutputAckDefaultTypeInternal; +extern MoneroTransactionSetOutputAckDefaultTypeInternal _MoneroTransactionSetOutputAck_default_instance_; +class MoneroTransactionSetOutputRequest; +class MoneroTransactionSetOutputRequestDefaultTypeInternal; +extern MoneroTransactionSetOutputRequestDefaultTypeInternal _MoneroTransactionSetOutputRequest_default_instance_; +class MoneroTransactionSignInputAck; +class MoneroTransactionSignInputAckDefaultTypeInternal; +extern MoneroTransactionSignInputAckDefaultTypeInternal _MoneroTransactionSignInputAck_default_instance_; +class MoneroTransactionSignInputRequest; +class MoneroTransactionSignInputRequestDefaultTypeInternal; +extern MoneroTransactionSignInputRequestDefaultTypeInternal _MoneroTransactionSignInputRequest_default_instance_; +class MoneroTransactionSourceEntry; +class MoneroTransactionSourceEntryDefaultTypeInternal; +extern MoneroTransactionSourceEntryDefaultTypeInternal _MoneroTransactionSourceEntry_default_instance_; +class MoneroTransactionSourceEntry_MoneroMultisigKLRki; +class MoneroTransactionSourceEntry_MoneroMultisigKLRkiDefaultTypeInternal; +extern MoneroTransactionSourceEntry_MoneroMultisigKLRkiDefaultTypeInternal _MoneroTransactionSourceEntry_MoneroMultisigKLRki_default_instance_; +class MoneroTransactionSourceEntry_MoneroOutputEntry; +class MoneroTransactionSourceEntry_MoneroOutputEntryDefaultTypeInternal; +extern MoneroTransactionSourceEntry_MoneroOutputEntryDefaultTypeInternal _MoneroTransactionSourceEntry_MoneroOutputEntry_default_instance_; +class MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic; +class MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublicDefaultTypeInternal; +extern MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublicDefaultTypeInternal _MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic_default_instance_; +class MoneroWatchKey; +class MoneroWatchKeyDefaultTypeInternal; +extern MoneroWatchKeyDefaultTypeInternal _MoneroWatchKey_default_instance_; +} // namespace monero +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::monero::DebugMoneroDiagAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::DebugMoneroDiagAck>(Arena*); +template<> ::hw::trezor::messages::monero::DebugMoneroDiagRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::DebugMoneroDiagRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroAddress>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroGetAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroGetAddress>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroGetTxKeyAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroGetTxKeyAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroGetTxKeyRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroGetTxKeyRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroGetWatchKey* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroGetWatchKey>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroKeyImageExportInitAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroKeyImageExportInitAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroKeyImageSyncFinalAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroKeyImageSyncFinalRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroKeyImageSyncFinalRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroLiveRefreshFinalAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroLiveRefreshFinalAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroLiveRefreshFinalRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroLiveRefreshFinalRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroLiveRefreshStartAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroLiveRefreshStartAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroLiveRefreshStartRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroLiveRefreshStepAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroLiveRefreshStepAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroLiveRefreshStepRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionAllInputsSetAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionAllInputsSetRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionAllInputsSetRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionAllOutSetRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionAllOutSetRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionDestinationEntry>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionFinalAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionFinalAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionFinalRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionFinalRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionInitAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionInitAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionInitRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionInitRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionInputViniAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionInputViniAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionInputViniRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionInputViniRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionInputsPermutationAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionInputsPermutationRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionInputsPermutationRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionRsigData* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionRsigData>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionSetInputAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSetInputAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionSetInputRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSetInputRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionSetOutputAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSetOutputAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSetOutputRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionSignInputAck* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSignInputAck>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionSignInputRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSignInputRequest>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSourceEntry>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic>(Arena*); +template<> ::hw::trezor::messages::monero::MoneroWatchKey* Arena::CreateMaybeMessage<::hw::trezor::messages::monero::MoneroWatchKey>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace monero { + +// =================================================================== + +class MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) */ { + public: + MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic(); + virtual ~MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic(); + + MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic(const MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& from); + + inline MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& operator=(const MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic(MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic&& from) noexcept + : MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic() { + *this = ::std::move(from); + } + + inline MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& operator=(MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* other); + friend void swap(MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& a, MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& from); + void MergeFrom(const MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes dest = 1; + bool has_dest() const; + void clear_dest(); + static const int kDestFieldNumber = 1; + const ::std::string& dest() const; + void set_dest(const ::std::string& value); + #if LANG_CXX11 + void set_dest(::std::string&& value); + #endif + void set_dest(const char* value); + void set_dest(const void* value, size_t size); + ::std::string* mutable_dest(); + ::std::string* release_dest(); + void set_allocated_dest(::std::string* dest); + + // optional bytes commitment = 2; + bool has_commitment() const; + void clear_commitment(); + static const int kCommitmentFieldNumber = 2; + const ::std::string& commitment() const; + void set_commitment(const ::std::string& value); + #if LANG_CXX11 + void set_commitment(::std::string&& value); + #endif + void set_commitment(const char* value); + void set_commitment(const void* value, size_t size); + ::std::string* mutable_commitment(); + ::std::string* release_commitment(); + void set_allocated_commitment(::std::string* commitment); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic) + private: + void set_has_dest(); + void clear_has_dest(); + void set_has_commitment(); + void clear_has_commitment(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr dest_; + ::google::protobuf::internal::ArenaStringPtr commitment_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionSourceEntry_MoneroOutputEntry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) */ { + public: + MoneroTransactionSourceEntry_MoneroOutputEntry(); + virtual ~MoneroTransactionSourceEntry_MoneroOutputEntry(); + + MoneroTransactionSourceEntry_MoneroOutputEntry(const MoneroTransactionSourceEntry_MoneroOutputEntry& from); + + inline MoneroTransactionSourceEntry_MoneroOutputEntry& operator=(const MoneroTransactionSourceEntry_MoneroOutputEntry& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionSourceEntry_MoneroOutputEntry(MoneroTransactionSourceEntry_MoneroOutputEntry&& from) noexcept + : MoneroTransactionSourceEntry_MoneroOutputEntry() { + *this = ::std::move(from); + } + + inline MoneroTransactionSourceEntry_MoneroOutputEntry& operator=(MoneroTransactionSourceEntry_MoneroOutputEntry&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionSourceEntry_MoneroOutputEntry& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionSourceEntry_MoneroOutputEntry* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionSourceEntry_MoneroOutputEntry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(MoneroTransactionSourceEntry_MoneroOutputEntry* other); + friend void swap(MoneroTransactionSourceEntry_MoneroOutputEntry& a, MoneroTransactionSourceEntry_MoneroOutputEntry& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionSourceEntry_MoneroOutputEntry* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionSourceEntry_MoneroOutputEntry* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionSourceEntry_MoneroOutputEntry& from); + void MergeFrom(const MoneroTransactionSourceEntry_MoneroOutputEntry& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionSourceEntry_MoneroOutputEntry* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic MoneroRctKeyPublic; + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic key = 2; + bool has_key() const; + void clear_key(); + static const int kKeyFieldNumber = 2; + private: + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& _internal_key() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& key() const; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* release_key(); + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* mutable_key(); + void set_allocated_key(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* key); + + // optional uint64 idx = 1; + bool has_idx() const; + void clear_idx(); + static const int kIdxFieldNumber = 1; + ::google::protobuf::uint64 idx() const; + void set_idx(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry) + private: + void set_has_idx(); + void clear_has_idx(); + void set_has_key(); + void clear_has_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* key_; + ::google::protobuf::uint64 idx_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionSourceEntry_MoneroMultisigKLRki : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) */ { + public: + MoneroTransactionSourceEntry_MoneroMultisigKLRki(); + virtual ~MoneroTransactionSourceEntry_MoneroMultisigKLRki(); + + MoneroTransactionSourceEntry_MoneroMultisigKLRki(const MoneroTransactionSourceEntry_MoneroMultisigKLRki& from); + + inline MoneroTransactionSourceEntry_MoneroMultisigKLRki& operator=(const MoneroTransactionSourceEntry_MoneroMultisigKLRki& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionSourceEntry_MoneroMultisigKLRki(MoneroTransactionSourceEntry_MoneroMultisigKLRki&& from) noexcept + : MoneroTransactionSourceEntry_MoneroMultisigKLRki() { + *this = ::std::move(from); + } + + inline MoneroTransactionSourceEntry_MoneroMultisigKLRki& operator=(MoneroTransactionSourceEntry_MoneroMultisigKLRki&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionSourceEntry_MoneroMultisigKLRki& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionSourceEntry_MoneroMultisigKLRki* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionSourceEntry_MoneroMultisigKLRki_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(MoneroTransactionSourceEntry_MoneroMultisigKLRki* other); + friend void swap(MoneroTransactionSourceEntry_MoneroMultisigKLRki& a, MoneroTransactionSourceEntry_MoneroMultisigKLRki& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionSourceEntry_MoneroMultisigKLRki* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionSourceEntry_MoneroMultisigKLRki* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionSourceEntry_MoneroMultisigKLRki& from); + void MergeFrom(const MoneroTransactionSourceEntry_MoneroMultisigKLRki& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionSourceEntry_MoneroMultisigKLRki* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes K = 1; + bool has_k() const; + void clear_k(); + static const int kKFieldNumber = 1; + const ::std::string& k() const; + void set_k(const ::std::string& value); + #if LANG_CXX11 + void set_k(::std::string&& value); + #endif + void set_k(const char* value); + void set_k(const void* value, size_t size); + ::std::string* mutable_k(); + ::std::string* release_k(); + void set_allocated_k(::std::string* k); + + // optional bytes L = 2; + bool has_l() const; + void clear_l(); + static const int kLFieldNumber = 2; + const ::std::string& l() const; + void set_l(const ::std::string& value); + #if LANG_CXX11 + void set_l(::std::string&& value); + #endif + void set_l(const char* value); + void set_l(const void* value, size_t size); + ::std::string* mutable_l(); + ::std::string* release_l(); + void set_allocated_l(::std::string* l); + + // optional bytes R = 3; + bool has_r() const; + void clear_r(); + static const int kRFieldNumber = 3; + const ::std::string& r() const; + void set_r(const ::std::string& value); + #if LANG_CXX11 + void set_r(::std::string&& value); + #endif + void set_r(const char* value); + void set_r(const void* value, size_t size); + ::std::string* mutable_r(); + ::std::string* release_r(); + void set_allocated_r(::std::string* r); + + // optional bytes ki = 4; + bool has_ki() const; + void clear_ki(); + static const int kKiFieldNumber = 4; + const ::std::string& ki() const; + void set_ki(const ::std::string& value); + #if LANG_CXX11 + void set_ki(::std::string&& value); + #endif + void set_ki(const char* value); + void set_ki(const void* value, size_t size); + ::std::string* mutable_ki(); + ::std::string* release_ki(); + void set_allocated_ki(::std::string* ki); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki) + private: + void set_has_k(); + void clear_has_k(); + void set_has_l(); + void clear_has_l(); + void set_has_r(); + void clear_has_r(); + void set_has_ki(); + void clear_has_ki(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr k_; + ::google::protobuf::internal::ArenaStringPtr l_; + ::google::protobuf::internal::ArenaStringPtr r_; + ::google::protobuf::internal::ArenaStringPtr ki_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionSourceEntry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionSourceEntry) */ { + public: + MoneroTransactionSourceEntry(); + virtual ~MoneroTransactionSourceEntry(); + + MoneroTransactionSourceEntry(const MoneroTransactionSourceEntry& from); + + inline MoneroTransactionSourceEntry& operator=(const MoneroTransactionSourceEntry& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionSourceEntry(MoneroTransactionSourceEntry&& from) noexcept + : MoneroTransactionSourceEntry() { + *this = ::std::move(from); + } + + inline MoneroTransactionSourceEntry& operator=(MoneroTransactionSourceEntry&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionSourceEntry& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionSourceEntry* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionSourceEntry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(MoneroTransactionSourceEntry* other); + friend void swap(MoneroTransactionSourceEntry& a, MoneroTransactionSourceEntry& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionSourceEntry* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionSourceEntry* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionSourceEntry& from); + void MergeFrom(const MoneroTransactionSourceEntry& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionSourceEntry* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MoneroTransactionSourceEntry_MoneroOutputEntry MoneroOutputEntry; + typedef MoneroTransactionSourceEntry_MoneroMultisigKLRki MoneroMultisigKLRki; + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry outputs = 1; + int outputs_size() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 1; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry* mutable_outputs(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry >* + mutable_outputs(); + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry& outputs(int index) const; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry* add_outputs(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry >& + outputs() const; + + // repeated bytes real_out_additional_tx_keys = 4; + int real_out_additional_tx_keys_size() const; + void clear_real_out_additional_tx_keys(); + static const int kRealOutAdditionalTxKeysFieldNumber = 4; + const ::std::string& real_out_additional_tx_keys(int index) const; + ::std::string* mutable_real_out_additional_tx_keys(int index); + void set_real_out_additional_tx_keys(int index, const ::std::string& value); + #if LANG_CXX11 + void set_real_out_additional_tx_keys(int index, ::std::string&& value); + #endif + void set_real_out_additional_tx_keys(int index, const char* value); + void set_real_out_additional_tx_keys(int index, const void* value, size_t size); + ::std::string* add_real_out_additional_tx_keys(); + void add_real_out_additional_tx_keys(const ::std::string& value); + #if LANG_CXX11 + void add_real_out_additional_tx_keys(::std::string&& value); + #endif + void add_real_out_additional_tx_keys(const char* value); + void add_real_out_additional_tx_keys(const void* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& real_out_additional_tx_keys() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_real_out_additional_tx_keys(); + + // optional bytes real_out_tx_key = 3; + bool has_real_out_tx_key() const; + void clear_real_out_tx_key(); + static const int kRealOutTxKeyFieldNumber = 3; + const ::std::string& real_out_tx_key() const; + void set_real_out_tx_key(const ::std::string& value); + #if LANG_CXX11 + void set_real_out_tx_key(::std::string&& value); + #endif + void set_real_out_tx_key(const char* value); + void set_real_out_tx_key(const void* value, size_t size); + ::std::string* mutable_real_out_tx_key(); + ::std::string* release_real_out_tx_key(); + void set_allocated_real_out_tx_key(::std::string* real_out_tx_key); + + // optional bytes mask = 8; + bool has_mask() const; + void clear_mask(); + static const int kMaskFieldNumber = 8; + const ::std::string& mask() const; + void set_mask(const ::std::string& value); + #if LANG_CXX11 + void set_mask(::std::string&& value); + #endif + void set_mask(const char* value); + void set_mask(const void* value, size_t size); + ::std::string* mutable_mask(); + ::std::string* release_mask(); + void set_allocated_mask(::std::string* mask); + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki multisig_kLRki = 9; + bool has_multisig_klrki() const; + void clear_multisig_klrki(); + static const int kMultisigKLRkiFieldNumber = 9; + private: + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki& _internal_multisig_klrki() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki& multisig_klrki() const; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki* release_multisig_klrki(); + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki* mutable_multisig_klrki(); + void set_allocated_multisig_klrki(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki* multisig_klrki); + + // optional uint64 real_output = 2; + bool has_real_output() const; + void clear_real_output(); + static const int kRealOutputFieldNumber = 2; + ::google::protobuf::uint64 real_output() const; + void set_real_output(::google::protobuf::uint64 value); + + // optional uint64 real_output_in_tx_index = 5; + bool has_real_output_in_tx_index() const; + void clear_real_output_in_tx_index(); + static const int kRealOutputInTxIndexFieldNumber = 5; + ::google::protobuf::uint64 real_output_in_tx_index() const; + void set_real_output_in_tx_index(::google::protobuf::uint64 value); + + // optional uint64 amount = 6; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 6; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // optional bool rct = 7; + bool has_rct() const; + void clear_rct(); + static const int kRctFieldNumber = 7; + bool rct() const; + void set_rct(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionSourceEntry) + private: + void set_has_real_output(); + void clear_has_real_output(); + void set_has_real_out_tx_key(); + void clear_has_real_out_tx_key(); + void set_has_real_output_in_tx_index(); + void clear_has_real_output_in_tx_index(); + void set_has_amount(); + void clear_has_amount(); + void set_has_rct(); + void clear_has_rct(); + void set_has_mask(); + void clear_has_mask(); + void set_has_multisig_klrki(); + void clear_has_multisig_klrki(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry > outputs_; + ::google::protobuf::RepeatedPtrField< ::std::string> real_out_additional_tx_keys_; + ::google::protobuf::internal::ArenaStringPtr real_out_tx_key_; + ::google::protobuf::internal::ArenaStringPtr mask_; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki* multisig_klrki_; + ::google::protobuf::uint64 real_output_; + ::google::protobuf::uint64 real_output_in_tx_index_; + ::google::protobuf::uint64 amount_; + bool rct_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionDestinationEntry_MoneroAccountPublicAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) */ { + public: + MoneroTransactionDestinationEntry_MoneroAccountPublicAddress(); + virtual ~MoneroTransactionDestinationEntry_MoneroAccountPublicAddress(); + + MoneroTransactionDestinationEntry_MoneroAccountPublicAddress(const MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& from); + + inline MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& operator=(const MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionDestinationEntry_MoneroAccountPublicAddress(MoneroTransactionDestinationEntry_MoneroAccountPublicAddress&& from) noexcept + : MoneroTransactionDestinationEntry_MoneroAccountPublicAddress() { + *this = ::std::move(from); + } + + inline MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& operator=(MoneroTransactionDestinationEntry_MoneroAccountPublicAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionDestinationEntry_MoneroAccountPublicAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* other); + friend void swap(MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& a, MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& from); + void MergeFrom(const MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes spend_public_key = 1; + bool has_spend_public_key() const; + void clear_spend_public_key(); + static const int kSpendPublicKeyFieldNumber = 1; + const ::std::string& spend_public_key() const; + void set_spend_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_spend_public_key(::std::string&& value); + #endif + void set_spend_public_key(const char* value); + void set_spend_public_key(const void* value, size_t size); + ::std::string* mutable_spend_public_key(); + ::std::string* release_spend_public_key(); + void set_allocated_spend_public_key(::std::string* spend_public_key); + + // optional bytes view_public_key = 2; + bool has_view_public_key() const; + void clear_view_public_key(); + static const int kViewPublicKeyFieldNumber = 2; + const ::std::string& view_public_key() const; + void set_view_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_view_public_key(::std::string&& value); + #endif + void set_view_public_key(const char* value); + void set_view_public_key(const void* value, size_t size); + ::std::string* mutable_view_public_key(); + ::std::string* release_view_public_key(); + void set_allocated_view_public_key(::std::string* view_public_key); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress) + private: + void set_has_spend_public_key(); + void clear_has_spend_public_key(); + void set_has_view_public_key(); + void clear_has_view_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr spend_public_key_; + ::google::protobuf::internal::ArenaStringPtr view_public_key_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionDestinationEntry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) */ { + public: + MoneroTransactionDestinationEntry(); + virtual ~MoneroTransactionDestinationEntry(); + + MoneroTransactionDestinationEntry(const MoneroTransactionDestinationEntry& from); + + inline MoneroTransactionDestinationEntry& operator=(const MoneroTransactionDestinationEntry& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionDestinationEntry(MoneroTransactionDestinationEntry&& from) noexcept + : MoneroTransactionDestinationEntry() { + *this = ::std::move(from); + } + + inline MoneroTransactionDestinationEntry& operator=(MoneroTransactionDestinationEntry&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionDestinationEntry& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionDestinationEntry* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionDestinationEntry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(MoneroTransactionDestinationEntry* other); + friend void swap(MoneroTransactionDestinationEntry& a, MoneroTransactionDestinationEntry& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionDestinationEntry* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionDestinationEntry* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionDestinationEntry& from); + void MergeFrom(const MoneroTransactionDestinationEntry& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionDestinationEntry* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MoneroTransactionDestinationEntry_MoneroAccountPublicAddress MoneroAccountPublicAddress; + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress addr = 2; + bool has_addr() const; + void clear_addr(); + static const int kAddrFieldNumber = 2; + private: + const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& _internal_addr() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& addr() const; + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* release_addr(); + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* mutable_addr(); + void set_allocated_addr(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* addr); + + // optional uint64 amount = 1; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 1; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // optional bool is_subaddress = 3; + bool has_is_subaddress() const; + void clear_is_subaddress(); + static const int kIsSubaddressFieldNumber = 3; + bool is_subaddress() const; + void set_is_subaddress(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionDestinationEntry) + private: + void set_has_amount(); + void clear_has_amount(); + void set_has_addr(); + void clear_has_addr(); + void set_has_is_subaddress(); + void clear_has_is_subaddress(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* addr_; + ::google::protobuf::uint64 amount_; + bool is_subaddress_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionRsigData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionRsigData) */ { + public: + MoneroTransactionRsigData(); + virtual ~MoneroTransactionRsigData(); + + MoneroTransactionRsigData(const MoneroTransactionRsigData& from); + + inline MoneroTransactionRsigData& operator=(const MoneroTransactionRsigData& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionRsigData(MoneroTransactionRsigData&& from) noexcept + : MoneroTransactionRsigData() { + *this = ::std::move(from); + } + + inline MoneroTransactionRsigData& operator=(MoneroTransactionRsigData&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionRsigData& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionRsigData* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionRsigData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(MoneroTransactionRsigData* other); + friend void swap(MoneroTransactionRsigData& a, MoneroTransactionRsigData& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionRsigData* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionRsigData* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionRsigData& from); + void MergeFrom(const MoneroTransactionRsigData& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionRsigData* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint64 grouping = 3; + int grouping_size() const; + void clear_grouping(); + static const int kGroupingFieldNumber = 3; + ::google::protobuf::uint64 grouping(int index) const; + void set_grouping(int index, ::google::protobuf::uint64 value); + void add_grouping(::google::protobuf::uint64 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& + grouping() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* + mutable_grouping(); + + // repeated bytes rsig_parts = 6; + int rsig_parts_size() const; + void clear_rsig_parts(); + static const int kRsigPartsFieldNumber = 6; + const ::std::string& rsig_parts(int index) const; + ::std::string* mutable_rsig_parts(int index); + void set_rsig_parts(int index, const ::std::string& value); + #if LANG_CXX11 + void set_rsig_parts(int index, ::std::string&& value); + #endif + void set_rsig_parts(int index, const char* value); + void set_rsig_parts(int index, const void* value, size_t size); + ::std::string* add_rsig_parts(); + void add_rsig_parts(const ::std::string& value); + #if LANG_CXX11 + void add_rsig_parts(::std::string&& value); + #endif + void add_rsig_parts(const char* value); + void add_rsig_parts(const void* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& rsig_parts() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_rsig_parts(); + + // optional bytes mask = 4; + bool has_mask() const; + void clear_mask(); + static const int kMaskFieldNumber = 4; + const ::std::string& mask() const; + void set_mask(const ::std::string& value); + #if LANG_CXX11 + void set_mask(::std::string&& value); + #endif + void set_mask(const char* value); + void set_mask(const void* value, size_t size); + ::std::string* mutable_mask(); + ::std::string* release_mask(); + void set_allocated_mask(::std::string* mask); + + // optional bytes rsig = 5; + bool has_rsig() const; + void clear_rsig(); + static const int kRsigFieldNumber = 5; + const ::std::string& rsig() const; + void set_rsig(const ::std::string& value); + #if LANG_CXX11 + void set_rsig(::std::string&& value); + #endif + void set_rsig(const char* value); + void set_rsig(const void* value, size_t size); + ::std::string* mutable_rsig(); + ::std::string* release_rsig(); + void set_allocated_rsig(::std::string* rsig); + + // optional uint32 rsig_type = 1; + bool has_rsig_type() const; + void clear_rsig_type(); + static const int kRsigTypeFieldNumber = 1; + ::google::protobuf::uint32 rsig_type() const; + void set_rsig_type(::google::protobuf::uint32 value); + + // optional uint32 offload_type = 2; + bool has_offload_type() const; + void clear_offload_type(); + static const int kOffloadTypeFieldNumber = 2; + ::google::protobuf::uint32 offload_type() const; + void set_offload_type(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionRsigData) + private: + void set_has_rsig_type(); + void clear_has_rsig_type(); + void set_has_offload_type(); + void clear_has_offload_type(); + void set_has_mask(); + void clear_has_mask(); + void set_has_rsig(); + void clear_has_rsig(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > grouping_; + ::google::protobuf::RepeatedPtrField< ::std::string> rsig_parts_; + ::google::protobuf::internal::ArenaStringPtr mask_; + ::google::protobuf::internal::ArenaStringPtr rsig_; + ::google::protobuf::uint32 rsig_type_; + ::google::protobuf::uint32 offload_type_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroGetAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroGetAddress) */ { + public: + MoneroGetAddress(); + virtual ~MoneroGetAddress(); + + MoneroGetAddress(const MoneroGetAddress& from); + + inline MoneroGetAddress& operator=(const MoneroGetAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroGetAddress(MoneroGetAddress&& from) noexcept + : MoneroGetAddress() { + *this = ::std::move(from); + } + + inline MoneroGetAddress& operator=(MoneroGetAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroGetAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroGetAddress* internal_default_instance() { + return reinterpret_cast( + &_MoneroGetAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(MoneroGetAddress* other); + friend void swap(MoneroGetAddress& a, MoneroGetAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroGetAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroGetAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroGetAddress& from); + void MergeFrom(const MoneroGetAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroGetAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // optional uint32 network_type = 3; + bool has_network_type() const; + void clear_network_type(); + static const int kNetworkTypeFieldNumber = 3; + ::google::protobuf::uint32 network_type() const; + void set_network_type(::google::protobuf::uint32 value); + + // optional uint32 account = 4; + bool has_account() const; + void clear_account(); + static const int kAccountFieldNumber = 4; + ::google::protobuf::uint32 account() const; + void set_account(::google::protobuf::uint32 value); + + // optional uint32 minor = 5; + bool has_minor() const; + void clear_minor(); + static const int kMinorFieldNumber = 5; + ::google::protobuf::uint32 minor() const; + void set_minor(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroGetAddress) + private: + void set_has_show_display(); + void clear_has_show_display(); + void set_has_network_type(); + void clear_has_network_type(); + void set_has_account(); + void clear_has_account(); + void set_has_minor(); + void clear_has_minor(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + ::google::protobuf::uint32 network_type_; + ::google::protobuf::uint32 account_; + ::google::protobuf::uint32 minor_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroAddress) */ { + public: + MoneroAddress(); + virtual ~MoneroAddress(); + + MoneroAddress(const MoneroAddress& from); + + inline MoneroAddress& operator=(const MoneroAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroAddress(MoneroAddress&& from) noexcept + : MoneroAddress() { + *this = ::std::move(from); + } + + inline MoneroAddress& operator=(MoneroAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroAddress* internal_default_instance() { + return reinterpret_cast( + &_MoneroAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(MoneroAddress* other); + friend void swap(MoneroAddress& a, MoneroAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroAddress& from); + void MergeFrom(const MoneroAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const void* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroAddress) + private: + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroGetWatchKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroGetWatchKey) */ { + public: + MoneroGetWatchKey(); + virtual ~MoneroGetWatchKey(); + + MoneroGetWatchKey(const MoneroGetWatchKey& from); + + inline MoneroGetWatchKey& operator=(const MoneroGetWatchKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroGetWatchKey(MoneroGetWatchKey&& from) noexcept + : MoneroGetWatchKey() { + *this = ::std::move(from); + } + + inline MoneroGetWatchKey& operator=(MoneroGetWatchKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroGetWatchKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroGetWatchKey* internal_default_instance() { + return reinterpret_cast( + &_MoneroGetWatchKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(MoneroGetWatchKey* other); + friend void swap(MoneroGetWatchKey& a, MoneroGetWatchKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroGetWatchKey* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroGetWatchKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroGetWatchKey& from); + void MergeFrom(const MoneroGetWatchKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroGetWatchKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional uint32 network_type = 2; + bool has_network_type() const; + void clear_network_type(); + static const int kNetworkTypeFieldNumber = 2; + ::google::protobuf::uint32 network_type() const; + void set_network_type(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroGetWatchKey) + private: + void set_has_network_type(); + void clear_has_network_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::uint32 network_type_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroWatchKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroWatchKey) */ { + public: + MoneroWatchKey(); + virtual ~MoneroWatchKey(); + + MoneroWatchKey(const MoneroWatchKey& from); + + inline MoneroWatchKey& operator=(const MoneroWatchKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroWatchKey(MoneroWatchKey&& from) noexcept + : MoneroWatchKey() { + *this = ::std::move(from); + } + + inline MoneroWatchKey& operator=(MoneroWatchKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroWatchKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroWatchKey* internal_default_instance() { + return reinterpret_cast( + &_MoneroWatchKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(MoneroWatchKey* other); + friend void swap(MoneroWatchKey& a, MoneroWatchKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroWatchKey* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroWatchKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroWatchKey& from); + void MergeFrom(const MoneroWatchKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroWatchKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes watch_key = 1; + bool has_watch_key() const; + void clear_watch_key(); + static const int kWatchKeyFieldNumber = 1; + const ::std::string& watch_key() const; + void set_watch_key(const ::std::string& value); + #if LANG_CXX11 + void set_watch_key(::std::string&& value); + #endif + void set_watch_key(const char* value); + void set_watch_key(const void* value, size_t size); + ::std::string* mutable_watch_key(); + ::std::string* release_watch_key(); + void set_allocated_watch_key(::std::string* watch_key); + + // optional bytes address = 2; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 2; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const void* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroWatchKey) + private: + void set_has_watch_key(); + void clear_has_watch_key(); + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr watch_key_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionInitRequest_MoneroTransactionData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) */ { + public: + MoneroTransactionInitRequest_MoneroTransactionData(); + virtual ~MoneroTransactionInitRequest_MoneroTransactionData(); + + MoneroTransactionInitRequest_MoneroTransactionData(const MoneroTransactionInitRequest_MoneroTransactionData& from); + + inline MoneroTransactionInitRequest_MoneroTransactionData& operator=(const MoneroTransactionInitRequest_MoneroTransactionData& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionInitRequest_MoneroTransactionData(MoneroTransactionInitRequest_MoneroTransactionData&& from) noexcept + : MoneroTransactionInitRequest_MoneroTransactionData() { + *this = ::std::move(from); + } + + inline MoneroTransactionInitRequest_MoneroTransactionData& operator=(MoneroTransactionInitRequest_MoneroTransactionData&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionInitRequest_MoneroTransactionData& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionInitRequest_MoneroTransactionData* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionInitRequest_MoneroTransactionData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(MoneroTransactionInitRequest_MoneroTransactionData* other); + friend void swap(MoneroTransactionInitRequest_MoneroTransactionData& a, MoneroTransactionInitRequest_MoneroTransactionData& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionInitRequest_MoneroTransactionData* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionInitRequest_MoneroTransactionData* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionInitRequest_MoneroTransactionData& from); + void MergeFrom(const MoneroTransactionInitRequest_MoneroTransactionData& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionInitRequest_MoneroTransactionData* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.monero.MoneroTransactionDestinationEntry outputs = 4; + int outputs_size() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 4; + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* mutable_outputs(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry >* + mutable_outputs(); + const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry& outputs(int index) const; + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* add_outputs(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry >& + outputs() const; + + // repeated uint32 minor_indices = 10; + int minor_indices_size() const; + void clear_minor_indices(); + static const int kMinorIndicesFieldNumber = 10; + ::google::protobuf::uint32 minor_indices(int index) const; + void set_minor_indices(int index, ::google::protobuf::uint32 value); + void add_minor_indices(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + minor_indices() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_minor_indices(); + + // repeated uint32 integrated_indices = 12; + int integrated_indices_size() const; + void clear_integrated_indices(); + static const int kIntegratedIndicesFieldNumber = 12; + ::google::protobuf::uint32 integrated_indices(int index) const; + void set_integrated_indices(int index, ::google::protobuf::uint32 value); + void add_integrated_indices(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + integrated_indices() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_integrated_indices(); + + // optional bytes payment_id = 2; + bool has_payment_id() const; + void clear_payment_id(); + static const int kPaymentIdFieldNumber = 2; + const ::std::string& payment_id() const; + void set_payment_id(const ::std::string& value); + #if LANG_CXX11 + void set_payment_id(::std::string&& value); + #endif + void set_payment_id(const char* value); + void set_payment_id(const void* value, size_t size); + ::std::string* mutable_payment_id(); + ::std::string* release_payment_id(); + void set_allocated_payment_id(::std::string* payment_id); + + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry change_dts = 5; + bool has_change_dts() const; + void clear_change_dts(); + static const int kChangeDtsFieldNumber = 5; + private: + const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry& _internal_change_dts() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry& change_dts() const; + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* release_change_dts(); + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* mutable_change_dts(); + void set_allocated_change_dts(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* change_dts); + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 11; + bool has_rsig_data() const; + void clear_rsig_data(); + static const int kRsigDataFieldNumber = 11; + private: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& _internal_rsig_data() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& rsig_data() const; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* release_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* mutable_rsig_data(); + void set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data); + + // optional uint64 unlock_time = 3; + bool has_unlock_time() const; + void clear_unlock_time(); + static const int kUnlockTimeFieldNumber = 3; + ::google::protobuf::uint64 unlock_time() const; + void set_unlock_time(::google::protobuf::uint64 value); + + // optional uint32 version = 1; + bool has_version() const; + void clear_version(); + static const int kVersionFieldNumber = 1; + ::google::protobuf::uint32 version() const; + void set_version(::google::protobuf::uint32 value); + + // optional uint32 num_inputs = 6; + bool has_num_inputs() const; + void clear_num_inputs(); + static const int kNumInputsFieldNumber = 6; + ::google::protobuf::uint32 num_inputs() const; + void set_num_inputs(::google::protobuf::uint32 value); + + // optional uint64 fee = 8; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 8; + ::google::protobuf::uint64 fee() const; + void set_fee(::google::protobuf::uint64 value); + + // optional uint32 mixin = 7; + bool has_mixin() const; + void clear_mixin(); + static const int kMixinFieldNumber = 7; + ::google::protobuf::uint32 mixin() const; + void set_mixin(::google::protobuf::uint32 value); + + // optional uint32 account = 9; + bool has_account() const; + void clear_account(); + static const int kAccountFieldNumber = 9; + ::google::protobuf::uint32 account() const; + void set_account(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData) + private: + void set_has_version(); + void clear_has_version(); + void set_has_payment_id(); + void clear_has_payment_id(); + void set_has_unlock_time(); + void clear_has_unlock_time(); + void set_has_change_dts(); + void clear_has_change_dts(); + void set_has_num_inputs(); + void clear_has_num_inputs(); + void set_has_mixin(); + void clear_has_mixin(); + void set_has_fee(); + void clear_has_fee(); + void set_has_account(); + void clear_has_account(); + void set_has_rsig_data(); + void clear_has_rsig_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry > outputs_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > minor_indices_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > integrated_indices_; + ::google::protobuf::internal::ArenaStringPtr payment_id_; + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* change_dts_; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data_; + ::google::protobuf::uint64 unlock_time_; + ::google::protobuf::uint32 version_; + ::google::protobuf::uint32 num_inputs_; + ::google::protobuf::uint64 fee_; + ::google::protobuf::uint32 mixin_; + ::google::protobuf::uint32 account_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionInitRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionInitRequest) */ { + public: + MoneroTransactionInitRequest(); + virtual ~MoneroTransactionInitRequest(); + + MoneroTransactionInitRequest(const MoneroTransactionInitRequest& from); + + inline MoneroTransactionInitRequest& operator=(const MoneroTransactionInitRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionInitRequest(MoneroTransactionInitRequest&& from) noexcept + : MoneroTransactionInitRequest() { + *this = ::std::move(from); + } + + inline MoneroTransactionInitRequest& operator=(MoneroTransactionInitRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionInitRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionInitRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionInitRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(MoneroTransactionInitRequest* other); + friend void swap(MoneroTransactionInitRequest& a, MoneroTransactionInitRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionInitRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionInitRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionInitRequest& from); + void MergeFrom(const MoneroTransactionInitRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionInitRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MoneroTransactionInitRequest_MoneroTransactionData MoneroTransactionData; + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 2; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 2; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional .hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData tsx_data = 4; + bool has_tsx_data() const; + void clear_tsx_data(); + static const int kTsxDataFieldNumber = 4; + private: + const ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData& _internal_tsx_data() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData& tsx_data() const; + ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData* release_tsx_data(); + ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData* mutable_tsx_data(); + void set_allocated_tsx_data(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData* tsx_data); + + // optional uint32 version = 1; + bool has_version() const; + void clear_version(); + static const int kVersionFieldNumber = 1; + ::google::protobuf::uint32 version() const; + void set_version(::google::protobuf::uint32 value); + + // optional uint32 network_type = 3; + bool has_network_type() const; + void clear_network_type(); + static const int kNetworkTypeFieldNumber = 3; + ::google::protobuf::uint32 network_type() const; + void set_network_type(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionInitRequest) + private: + void set_has_version(); + void clear_has_version(); + void set_has_network_type(); + void clear_has_network_type(); + void set_has_tsx_data(); + void clear_has_tsx_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData* tsx_data_; + ::google::protobuf::uint32 version_; + ::google::protobuf::uint32 network_type_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionInitAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionInitAck) */ { + public: + MoneroTransactionInitAck(); + virtual ~MoneroTransactionInitAck(); + + MoneroTransactionInitAck(const MoneroTransactionInitAck& from); + + inline MoneroTransactionInitAck& operator=(const MoneroTransactionInitAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionInitAck(MoneroTransactionInitAck&& from) noexcept + : MoneroTransactionInitAck() { + *this = ::std::move(from); + } + + inline MoneroTransactionInitAck& operator=(MoneroTransactionInitAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionInitAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionInitAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionInitAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(MoneroTransactionInitAck* other); + friend void swap(MoneroTransactionInitAck& a, MoneroTransactionInitAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionInitAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionInitAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionInitAck& from); + void MergeFrom(const MoneroTransactionInitAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionInitAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated bytes hmacs = 1; + int hmacs_size() const; + void clear_hmacs(); + static const int kHmacsFieldNumber = 1; + const ::std::string& hmacs(int index) const; + ::std::string* mutable_hmacs(int index); + void set_hmacs(int index, const ::std::string& value); + #if LANG_CXX11 + void set_hmacs(int index, ::std::string&& value); + #endif + void set_hmacs(int index, const char* value); + void set_hmacs(int index, const void* value, size_t size); + ::std::string* add_hmacs(); + void add_hmacs(const ::std::string& value); + #if LANG_CXX11 + void add_hmacs(::std::string&& value); + #endif + void add_hmacs(const char* value); + void add_hmacs(const void* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& hmacs() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_hmacs(); + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 2; + bool has_rsig_data() const; + void clear_rsig_data(); + static const int kRsigDataFieldNumber = 2; + private: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& _internal_rsig_data() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& rsig_data() const; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* release_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* mutable_rsig_data(); + void set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionInitAck) + private: + void set_has_rsig_data(); + void clear_has_rsig_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::std::string> hmacs_; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionSetInputRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) */ { + public: + MoneroTransactionSetInputRequest(); + virtual ~MoneroTransactionSetInputRequest(); + + MoneroTransactionSetInputRequest(const MoneroTransactionSetInputRequest& from); + + inline MoneroTransactionSetInputRequest& operator=(const MoneroTransactionSetInputRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionSetInputRequest(MoneroTransactionSetInputRequest&& from) noexcept + : MoneroTransactionSetInputRequest() { + *this = ::std::move(from); + } + + inline MoneroTransactionSetInputRequest& operator=(MoneroTransactionSetInputRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionSetInputRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionSetInputRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionSetInputRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(MoneroTransactionSetInputRequest* other); + friend void swap(MoneroTransactionSetInputRequest& a, MoneroTransactionSetInputRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionSetInputRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionSetInputRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionSetInputRequest& from); + void MergeFrom(const MoneroTransactionSetInputRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionSetInputRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + bool has_src_entr() const; + void clear_src_entr(); + static const int kSrcEntrFieldNumber = 1; + private: + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& _internal_src_entr() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& src_entr() const; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* release_src_entr(); + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* mutable_src_entr(); + void set_allocated_src_entr(::hw::trezor::messages::monero::MoneroTransactionSourceEntry* src_entr); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionSetInputRequest) + private: + void set_has_src_entr(); + void clear_has_src_entr(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* src_entr_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionSetInputAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionSetInputAck) */ { + public: + MoneroTransactionSetInputAck(); + virtual ~MoneroTransactionSetInputAck(); + + MoneroTransactionSetInputAck(const MoneroTransactionSetInputAck& from); + + inline MoneroTransactionSetInputAck& operator=(const MoneroTransactionSetInputAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionSetInputAck(MoneroTransactionSetInputAck&& from) noexcept + : MoneroTransactionSetInputAck() { + *this = ::std::move(from); + } + + inline MoneroTransactionSetInputAck& operator=(MoneroTransactionSetInputAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionSetInputAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionSetInputAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionSetInputAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(MoneroTransactionSetInputAck* other); + friend void swap(MoneroTransactionSetInputAck& a, MoneroTransactionSetInputAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionSetInputAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionSetInputAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionSetInputAck& from); + void MergeFrom(const MoneroTransactionSetInputAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionSetInputAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes vini = 1; + bool has_vini() const; + void clear_vini(); + static const int kViniFieldNumber = 1; + const ::std::string& vini() const; + void set_vini(const ::std::string& value); + #if LANG_CXX11 + void set_vini(::std::string&& value); + #endif + void set_vini(const char* value); + void set_vini(const void* value, size_t size); + ::std::string* mutable_vini(); + ::std::string* release_vini(); + void set_allocated_vini(::std::string* vini); + + // optional bytes vini_hmac = 2; + bool has_vini_hmac() const; + void clear_vini_hmac(); + static const int kViniHmacFieldNumber = 2; + const ::std::string& vini_hmac() const; + void set_vini_hmac(const ::std::string& value); + #if LANG_CXX11 + void set_vini_hmac(::std::string&& value); + #endif + void set_vini_hmac(const char* value); + void set_vini_hmac(const void* value, size_t size); + ::std::string* mutable_vini_hmac(); + ::std::string* release_vini_hmac(); + void set_allocated_vini_hmac(::std::string* vini_hmac); + + // optional bytes pseudo_out = 3; + bool has_pseudo_out() const; + void clear_pseudo_out(); + static const int kPseudoOutFieldNumber = 3; + const ::std::string& pseudo_out() const; + void set_pseudo_out(const ::std::string& value); + #if LANG_CXX11 + void set_pseudo_out(::std::string&& value); + #endif + void set_pseudo_out(const char* value); + void set_pseudo_out(const void* value, size_t size); + ::std::string* mutable_pseudo_out(); + ::std::string* release_pseudo_out(); + void set_allocated_pseudo_out(::std::string* pseudo_out); + + // optional bytes pseudo_out_hmac = 4; + bool has_pseudo_out_hmac() const; + void clear_pseudo_out_hmac(); + static const int kPseudoOutHmacFieldNumber = 4; + const ::std::string& pseudo_out_hmac() const; + void set_pseudo_out_hmac(const ::std::string& value); + #if LANG_CXX11 + void set_pseudo_out_hmac(::std::string&& value); + #endif + void set_pseudo_out_hmac(const char* value); + void set_pseudo_out_hmac(const void* value, size_t size); + ::std::string* mutable_pseudo_out_hmac(); + ::std::string* release_pseudo_out_hmac(); + void set_allocated_pseudo_out_hmac(::std::string* pseudo_out_hmac); + + // optional bytes pseudo_out_alpha = 5; + bool has_pseudo_out_alpha() const; + void clear_pseudo_out_alpha(); + static const int kPseudoOutAlphaFieldNumber = 5; + const ::std::string& pseudo_out_alpha() const; + void set_pseudo_out_alpha(const ::std::string& value); + #if LANG_CXX11 + void set_pseudo_out_alpha(::std::string&& value); + #endif + void set_pseudo_out_alpha(const char* value); + void set_pseudo_out_alpha(const void* value, size_t size); + ::std::string* mutable_pseudo_out_alpha(); + ::std::string* release_pseudo_out_alpha(); + void set_allocated_pseudo_out_alpha(::std::string* pseudo_out_alpha); + + // optional bytes spend_key = 6; + bool has_spend_key() const; + void clear_spend_key(); + static const int kSpendKeyFieldNumber = 6; + const ::std::string& spend_key() const; + void set_spend_key(const ::std::string& value); + #if LANG_CXX11 + void set_spend_key(::std::string&& value); + #endif + void set_spend_key(const char* value); + void set_spend_key(const void* value, size_t size); + ::std::string* mutable_spend_key(); + ::std::string* release_spend_key(); + void set_allocated_spend_key(::std::string* spend_key); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionSetInputAck) + private: + void set_has_vini(); + void clear_has_vini(); + void set_has_vini_hmac(); + void clear_has_vini_hmac(); + void set_has_pseudo_out(); + void clear_has_pseudo_out(); + void set_has_pseudo_out_hmac(); + void clear_has_pseudo_out_hmac(); + void set_has_pseudo_out_alpha(); + void clear_has_pseudo_out_alpha(); + void set_has_spend_key(); + void clear_has_spend_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr vini_; + ::google::protobuf::internal::ArenaStringPtr vini_hmac_; + ::google::protobuf::internal::ArenaStringPtr pseudo_out_; + ::google::protobuf::internal::ArenaStringPtr pseudo_out_hmac_; + ::google::protobuf::internal::ArenaStringPtr pseudo_out_alpha_; + ::google::protobuf::internal::ArenaStringPtr spend_key_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionInputsPermutationRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) */ { + public: + MoneroTransactionInputsPermutationRequest(); + virtual ~MoneroTransactionInputsPermutationRequest(); + + MoneroTransactionInputsPermutationRequest(const MoneroTransactionInputsPermutationRequest& from); + + inline MoneroTransactionInputsPermutationRequest& operator=(const MoneroTransactionInputsPermutationRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionInputsPermutationRequest(MoneroTransactionInputsPermutationRequest&& from) noexcept + : MoneroTransactionInputsPermutationRequest() { + *this = ::std::move(from); + } + + inline MoneroTransactionInputsPermutationRequest& operator=(MoneroTransactionInputsPermutationRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionInputsPermutationRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionInputsPermutationRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionInputsPermutationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(MoneroTransactionInputsPermutationRequest* other); + friend void swap(MoneroTransactionInputsPermutationRequest& a, MoneroTransactionInputsPermutationRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionInputsPermutationRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionInputsPermutationRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionInputsPermutationRequest& from); + void MergeFrom(const MoneroTransactionInputsPermutationRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionInputsPermutationRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 perm = 1; + int perm_size() const; + void clear_perm(); + static const int kPermFieldNumber = 1; + ::google::protobuf::uint32 perm(int index) const; + void set_perm(int index, ::google::protobuf::uint32 value); + void add_perm(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + perm() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_perm(); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > perm_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionInputsPermutationAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) */ { + public: + MoneroTransactionInputsPermutationAck(); + virtual ~MoneroTransactionInputsPermutationAck(); + + MoneroTransactionInputsPermutationAck(const MoneroTransactionInputsPermutationAck& from); + + inline MoneroTransactionInputsPermutationAck& operator=(const MoneroTransactionInputsPermutationAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionInputsPermutationAck(MoneroTransactionInputsPermutationAck&& from) noexcept + : MoneroTransactionInputsPermutationAck() { + *this = ::std::move(from); + } + + inline MoneroTransactionInputsPermutationAck& operator=(MoneroTransactionInputsPermutationAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionInputsPermutationAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionInputsPermutationAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionInputsPermutationAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(MoneroTransactionInputsPermutationAck* other); + friend void swap(MoneroTransactionInputsPermutationAck& a, MoneroTransactionInputsPermutationAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionInputsPermutationAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionInputsPermutationAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionInputsPermutationAck& from); + void MergeFrom(const MoneroTransactionInputsPermutationAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionInputsPermutationAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionInputsPermutationAck) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionInputViniRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) */ { + public: + MoneroTransactionInputViniRequest(); + virtual ~MoneroTransactionInputViniRequest(); + + MoneroTransactionInputViniRequest(const MoneroTransactionInputViniRequest& from); + + inline MoneroTransactionInputViniRequest& operator=(const MoneroTransactionInputViniRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionInputViniRequest(MoneroTransactionInputViniRequest&& from) noexcept + : MoneroTransactionInputViniRequest() { + *this = ::std::move(from); + } + + inline MoneroTransactionInputViniRequest& operator=(MoneroTransactionInputViniRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionInputViniRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionInputViniRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionInputViniRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + void Swap(MoneroTransactionInputViniRequest* other); + friend void swap(MoneroTransactionInputViniRequest& a, MoneroTransactionInputViniRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionInputViniRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionInputViniRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionInputViniRequest& from); + void MergeFrom(const MoneroTransactionInputViniRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionInputViniRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes vini = 2; + bool has_vini() const; + void clear_vini(); + static const int kViniFieldNumber = 2; + const ::std::string& vini() const; + void set_vini(const ::std::string& value); + #if LANG_CXX11 + void set_vini(::std::string&& value); + #endif + void set_vini(const char* value); + void set_vini(const void* value, size_t size); + ::std::string* mutable_vini(); + ::std::string* release_vini(); + void set_allocated_vini(::std::string* vini); + + // optional bytes vini_hmac = 3; + bool has_vini_hmac() const; + void clear_vini_hmac(); + static const int kViniHmacFieldNumber = 3; + const ::std::string& vini_hmac() const; + void set_vini_hmac(const ::std::string& value); + #if LANG_CXX11 + void set_vini_hmac(::std::string&& value); + #endif + void set_vini_hmac(const char* value); + void set_vini_hmac(const void* value, size_t size); + ::std::string* mutable_vini_hmac(); + ::std::string* release_vini_hmac(); + void set_allocated_vini_hmac(::std::string* vini_hmac); + + // optional bytes pseudo_out = 4; + bool has_pseudo_out() const; + void clear_pseudo_out(); + static const int kPseudoOutFieldNumber = 4; + const ::std::string& pseudo_out() const; + void set_pseudo_out(const ::std::string& value); + #if LANG_CXX11 + void set_pseudo_out(::std::string&& value); + #endif + void set_pseudo_out(const char* value); + void set_pseudo_out(const void* value, size_t size); + ::std::string* mutable_pseudo_out(); + ::std::string* release_pseudo_out(); + void set_allocated_pseudo_out(::std::string* pseudo_out); + + // optional bytes pseudo_out_hmac = 5; + bool has_pseudo_out_hmac() const; + void clear_pseudo_out_hmac(); + static const int kPseudoOutHmacFieldNumber = 5; + const ::std::string& pseudo_out_hmac() const; + void set_pseudo_out_hmac(const ::std::string& value); + #if LANG_CXX11 + void set_pseudo_out_hmac(::std::string&& value); + #endif + void set_pseudo_out_hmac(const char* value); + void set_pseudo_out_hmac(const void* value, size_t size); + ::std::string* mutable_pseudo_out_hmac(); + ::std::string* release_pseudo_out_hmac(); + void set_allocated_pseudo_out_hmac(::std::string* pseudo_out_hmac); + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + bool has_src_entr() const; + void clear_src_entr(); + static const int kSrcEntrFieldNumber = 1; + private: + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& _internal_src_entr() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& src_entr() const; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* release_src_entr(); + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* mutable_src_entr(); + void set_allocated_src_entr(::hw::trezor::messages::monero::MoneroTransactionSourceEntry* src_entr); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionInputViniRequest) + private: + void set_has_src_entr(); + void clear_has_src_entr(); + void set_has_vini(); + void clear_has_vini(); + void set_has_vini_hmac(); + void clear_has_vini_hmac(); + void set_has_pseudo_out(); + void clear_has_pseudo_out(); + void set_has_pseudo_out_hmac(); + void clear_has_pseudo_out_hmac(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr vini_; + ::google::protobuf::internal::ArenaStringPtr vini_hmac_; + ::google::protobuf::internal::ArenaStringPtr pseudo_out_; + ::google::protobuf::internal::ArenaStringPtr pseudo_out_hmac_; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* src_entr_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionInputViniAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionInputViniAck) */ { + public: + MoneroTransactionInputViniAck(); + virtual ~MoneroTransactionInputViniAck(); + + MoneroTransactionInputViniAck(const MoneroTransactionInputViniAck& from); + + inline MoneroTransactionInputViniAck& operator=(const MoneroTransactionInputViniAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionInputViniAck(MoneroTransactionInputViniAck&& from) noexcept + : MoneroTransactionInputViniAck() { + *this = ::std::move(from); + } + + inline MoneroTransactionInputViniAck& operator=(MoneroTransactionInputViniAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionInputViniAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionInputViniAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionInputViniAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + void Swap(MoneroTransactionInputViniAck* other); + friend void swap(MoneroTransactionInputViniAck& a, MoneroTransactionInputViniAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionInputViniAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionInputViniAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionInputViniAck& from); + void MergeFrom(const MoneroTransactionInputViniAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionInputViniAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionInputViniAck) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionAllInputsSetRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) */ { + public: + MoneroTransactionAllInputsSetRequest(); + virtual ~MoneroTransactionAllInputsSetRequest(); + + MoneroTransactionAllInputsSetRequest(const MoneroTransactionAllInputsSetRequest& from); + + inline MoneroTransactionAllInputsSetRequest& operator=(const MoneroTransactionAllInputsSetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionAllInputsSetRequest(MoneroTransactionAllInputsSetRequest&& from) noexcept + : MoneroTransactionAllInputsSetRequest() { + *this = ::std::move(from); + } + + inline MoneroTransactionAllInputsSetRequest& operator=(MoneroTransactionAllInputsSetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionAllInputsSetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionAllInputsSetRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionAllInputsSetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + void Swap(MoneroTransactionAllInputsSetRequest* other); + friend void swap(MoneroTransactionAllInputsSetRequest& a, MoneroTransactionAllInputsSetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionAllInputsSetRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionAllInputsSetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionAllInputsSetRequest& from); + void MergeFrom(const MoneroTransactionAllInputsSetRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionAllInputsSetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionAllInputsSetRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionAllInputsSetAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) */ { + public: + MoneroTransactionAllInputsSetAck(); + virtual ~MoneroTransactionAllInputsSetAck(); + + MoneroTransactionAllInputsSetAck(const MoneroTransactionAllInputsSetAck& from); + + inline MoneroTransactionAllInputsSetAck& operator=(const MoneroTransactionAllInputsSetAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionAllInputsSetAck(MoneroTransactionAllInputsSetAck&& from) noexcept + : MoneroTransactionAllInputsSetAck() { + *this = ::std::move(from); + } + + inline MoneroTransactionAllInputsSetAck& operator=(MoneroTransactionAllInputsSetAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionAllInputsSetAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionAllInputsSetAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionAllInputsSetAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + void Swap(MoneroTransactionAllInputsSetAck* other); + friend void swap(MoneroTransactionAllInputsSetAck& a, MoneroTransactionAllInputsSetAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionAllInputsSetAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionAllInputsSetAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionAllInputsSetAck& from); + void MergeFrom(const MoneroTransactionAllInputsSetAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionAllInputsSetAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; + bool has_rsig_data() const; + void clear_rsig_data(); + static const int kRsigDataFieldNumber = 1; + private: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& _internal_rsig_data() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& rsig_data() const; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* release_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* mutable_rsig_data(); + void set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck) + private: + void set_has_rsig_data(); + void clear_has_rsig_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionSetOutputRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) */ { + public: + MoneroTransactionSetOutputRequest(); + virtual ~MoneroTransactionSetOutputRequest(); + + MoneroTransactionSetOutputRequest(const MoneroTransactionSetOutputRequest& from); + + inline MoneroTransactionSetOutputRequest& operator=(const MoneroTransactionSetOutputRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionSetOutputRequest(MoneroTransactionSetOutputRequest&& from) noexcept + : MoneroTransactionSetOutputRequest() { + *this = ::std::move(from); + } + + inline MoneroTransactionSetOutputRequest& operator=(MoneroTransactionSetOutputRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionSetOutputRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionSetOutputRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionSetOutputRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + void Swap(MoneroTransactionSetOutputRequest* other); + friend void swap(MoneroTransactionSetOutputRequest& a, MoneroTransactionSetOutputRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionSetOutputRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionSetOutputRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionSetOutputRequest& from); + void MergeFrom(const MoneroTransactionSetOutputRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionSetOutputRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes dst_entr_hmac = 2; + bool has_dst_entr_hmac() const; + void clear_dst_entr_hmac(); + static const int kDstEntrHmacFieldNumber = 2; + const ::std::string& dst_entr_hmac() const; + void set_dst_entr_hmac(const ::std::string& value); + #if LANG_CXX11 + void set_dst_entr_hmac(::std::string&& value); + #endif + void set_dst_entr_hmac(const char* value); + void set_dst_entr_hmac(const void* value, size_t size); + ::std::string* mutable_dst_entr_hmac(); + ::std::string* release_dst_entr_hmac(); + void set_allocated_dst_entr_hmac(::std::string* dst_entr_hmac); + + // optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry dst_entr = 1; + bool has_dst_entr() const; + void clear_dst_entr(); + static const int kDstEntrFieldNumber = 1; + private: + const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry& _internal_dst_entr() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry& dst_entr() const; + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* release_dst_entr(); + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* mutable_dst_entr(); + void set_allocated_dst_entr(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* dst_entr); + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; + bool has_rsig_data() const; + void clear_rsig_data(); + static const int kRsigDataFieldNumber = 3; + private: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& _internal_rsig_data() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& rsig_data() const; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* release_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* mutable_rsig_data(); + void set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest) + private: + void set_has_dst_entr(); + void clear_has_dst_entr(); + void set_has_dst_entr_hmac(); + void clear_has_dst_entr_hmac(); + void set_has_rsig_data(); + void clear_has_rsig_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr dst_entr_hmac_; + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* dst_entr_; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionSetOutputAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) */ { + public: + MoneroTransactionSetOutputAck(); + virtual ~MoneroTransactionSetOutputAck(); + + MoneroTransactionSetOutputAck(const MoneroTransactionSetOutputAck& from); + + inline MoneroTransactionSetOutputAck& operator=(const MoneroTransactionSetOutputAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionSetOutputAck(MoneroTransactionSetOutputAck&& from) noexcept + : MoneroTransactionSetOutputAck() { + *this = ::std::move(from); + } + + inline MoneroTransactionSetOutputAck& operator=(MoneroTransactionSetOutputAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionSetOutputAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionSetOutputAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionSetOutputAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + void Swap(MoneroTransactionSetOutputAck* other); + friend void swap(MoneroTransactionSetOutputAck& a, MoneroTransactionSetOutputAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionSetOutputAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionSetOutputAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionSetOutputAck& from); + void MergeFrom(const MoneroTransactionSetOutputAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionSetOutputAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes tx_out = 1; + bool has_tx_out() const; + void clear_tx_out(); + static const int kTxOutFieldNumber = 1; + const ::std::string& tx_out() const; + void set_tx_out(const ::std::string& value); + #if LANG_CXX11 + void set_tx_out(::std::string&& value); + #endif + void set_tx_out(const char* value); + void set_tx_out(const void* value, size_t size); + ::std::string* mutable_tx_out(); + ::std::string* release_tx_out(); + void set_allocated_tx_out(::std::string* tx_out); + + // optional bytes vouti_hmac = 2; + bool has_vouti_hmac() const; + void clear_vouti_hmac(); + static const int kVoutiHmacFieldNumber = 2; + const ::std::string& vouti_hmac() const; + void set_vouti_hmac(const ::std::string& value); + #if LANG_CXX11 + void set_vouti_hmac(::std::string&& value); + #endif + void set_vouti_hmac(const char* value); + void set_vouti_hmac(const void* value, size_t size); + ::std::string* mutable_vouti_hmac(); + ::std::string* release_vouti_hmac(); + void set_allocated_vouti_hmac(::std::string* vouti_hmac); + + // optional bytes out_pk = 4; + bool has_out_pk() const; + void clear_out_pk(); + static const int kOutPkFieldNumber = 4; + const ::std::string& out_pk() const; + void set_out_pk(const ::std::string& value); + #if LANG_CXX11 + void set_out_pk(::std::string&& value); + #endif + void set_out_pk(const char* value); + void set_out_pk(const void* value, size_t size); + ::std::string* mutable_out_pk(); + ::std::string* release_out_pk(); + void set_allocated_out_pk(::std::string* out_pk); + + // optional bytes ecdh_info = 5; + bool has_ecdh_info() const; + void clear_ecdh_info(); + static const int kEcdhInfoFieldNumber = 5; + const ::std::string& ecdh_info() const; + void set_ecdh_info(const ::std::string& value); + #if LANG_CXX11 + void set_ecdh_info(::std::string&& value); + #endif + void set_ecdh_info(const char* value); + void set_ecdh_info(const void* value, size_t size); + ::std::string* mutable_ecdh_info(); + ::std::string* release_ecdh_info(); + void set_allocated_ecdh_info(::std::string* ecdh_info); + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; + bool has_rsig_data() const; + void clear_rsig_data(); + static const int kRsigDataFieldNumber = 3; + private: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& _internal_rsig_data() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& rsig_data() const; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* release_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* mutable_rsig_data(); + void set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionSetOutputAck) + private: + void set_has_tx_out(); + void clear_has_tx_out(); + void set_has_vouti_hmac(); + void clear_has_vouti_hmac(); + void set_has_rsig_data(); + void clear_has_rsig_data(); + void set_has_out_pk(); + void clear_has_out_pk(); + void set_has_ecdh_info(); + void clear_has_ecdh_info(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr tx_out_; + ::google::protobuf::internal::ArenaStringPtr vouti_hmac_; + ::google::protobuf::internal::ArenaStringPtr out_pk_; + ::google::protobuf::internal::ArenaStringPtr ecdh_info_; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionAllOutSetRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) */ { + public: + MoneroTransactionAllOutSetRequest(); + virtual ~MoneroTransactionAllOutSetRequest(); + + MoneroTransactionAllOutSetRequest(const MoneroTransactionAllOutSetRequest& from); + + inline MoneroTransactionAllOutSetRequest& operator=(const MoneroTransactionAllOutSetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionAllOutSetRequest(MoneroTransactionAllOutSetRequest&& from) noexcept + : MoneroTransactionAllOutSetRequest() { + *this = ::std::move(from); + } + + inline MoneroTransactionAllOutSetRequest& operator=(MoneroTransactionAllOutSetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionAllOutSetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionAllOutSetRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionAllOutSetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + void Swap(MoneroTransactionAllOutSetRequest* other); + friend void swap(MoneroTransactionAllOutSetRequest& a, MoneroTransactionAllOutSetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionAllOutSetRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionAllOutSetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionAllOutSetRequest& from); + void MergeFrom(const MoneroTransactionAllOutSetRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionAllOutSetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; + bool has_rsig_data() const; + void clear_rsig_data(); + static const int kRsigDataFieldNumber = 1; + private: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& _internal_rsig_data() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionRsigData& rsig_data() const; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* release_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* mutable_rsig_data(); + void set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest) + private: + void set_has_rsig_data(); + void clear_has_rsig_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionAllOutSetAck_MoneroRingCtSig : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) */ { + public: + MoneroTransactionAllOutSetAck_MoneroRingCtSig(); + virtual ~MoneroTransactionAllOutSetAck_MoneroRingCtSig(); + + MoneroTransactionAllOutSetAck_MoneroRingCtSig(const MoneroTransactionAllOutSetAck_MoneroRingCtSig& from); + + inline MoneroTransactionAllOutSetAck_MoneroRingCtSig& operator=(const MoneroTransactionAllOutSetAck_MoneroRingCtSig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionAllOutSetAck_MoneroRingCtSig(MoneroTransactionAllOutSetAck_MoneroRingCtSig&& from) noexcept + : MoneroTransactionAllOutSetAck_MoneroRingCtSig() { + *this = ::std::move(from); + } + + inline MoneroTransactionAllOutSetAck_MoneroRingCtSig& operator=(MoneroTransactionAllOutSetAck_MoneroRingCtSig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionAllOutSetAck_MoneroRingCtSig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionAllOutSetAck_MoneroRingCtSig* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionAllOutSetAck_MoneroRingCtSig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + void Swap(MoneroTransactionAllOutSetAck_MoneroRingCtSig* other); + friend void swap(MoneroTransactionAllOutSetAck_MoneroRingCtSig& a, MoneroTransactionAllOutSetAck_MoneroRingCtSig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionAllOutSetAck_MoneroRingCtSig* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionAllOutSetAck_MoneroRingCtSig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionAllOutSetAck_MoneroRingCtSig& from); + void MergeFrom(const MoneroTransactionAllOutSetAck_MoneroRingCtSig& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionAllOutSetAck_MoneroRingCtSig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes message = 2; + bool has_message() const; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const void* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // optional uint64 txn_fee = 1; + bool has_txn_fee() const; + void clear_txn_fee(); + static const int kTxnFeeFieldNumber = 1; + ::google::protobuf::uint64 txn_fee() const; + void set_txn_fee(::google::protobuf::uint64 value); + + // optional uint32 rv_type = 3; + bool has_rv_type() const; + void clear_rv_type(); + static const int kRvTypeFieldNumber = 3; + ::google::protobuf::uint32 rv_type() const; + void set_rv_type(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig) + private: + void set_has_txn_fee(); + void clear_has_txn_fee(); + void set_has_message(); + void clear_has_message(); + void set_has_rv_type(); + void clear_has_rv_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr message_; + ::google::protobuf::uint64 txn_fee_; + ::google::protobuf::uint32 rv_type_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionAllOutSetAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) */ { + public: + MoneroTransactionAllOutSetAck(); + virtual ~MoneroTransactionAllOutSetAck(); + + MoneroTransactionAllOutSetAck(const MoneroTransactionAllOutSetAck& from); + + inline MoneroTransactionAllOutSetAck& operator=(const MoneroTransactionAllOutSetAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionAllOutSetAck(MoneroTransactionAllOutSetAck&& from) noexcept + : MoneroTransactionAllOutSetAck() { + *this = ::std::move(from); + } + + inline MoneroTransactionAllOutSetAck& operator=(MoneroTransactionAllOutSetAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionAllOutSetAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionAllOutSetAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionAllOutSetAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + void Swap(MoneroTransactionAllOutSetAck* other); + friend void swap(MoneroTransactionAllOutSetAck& a, MoneroTransactionAllOutSetAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionAllOutSetAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionAllOutSetAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionAllOutSetAck& from); + void MergeFrom(const MoneroTransactionAllOutSetAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionAllOutSetAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MoneroTransactionAllOutSetAck_MoneroRingCtSig MoneroRingCtSig; + + // accessors ------------------------------------------------------- + + // optional bytes extra = 1; + bool has_extra() const; + void clear_extra(); + static const int kExtraFieldNumber = 1; + const ::std::string& extra() const; + void set_extra(const ::std::string& value); + #if LANG_CXX11 + void set_extra(::std::string&& value); + #endif + void set_extra(const char* value); + void set_extra(const void* value, size_t size); + ::std::string* mutable_extra(); + ::std::string* release_extra(); + void set_allocated_extra(::std::string* extra); + + // optional bytes tx_prefix_hash = 2; + bool has_tx_prefix_hash() const; + void clear_tx_prefix_hash(); + static const int kTxPrefixHashFieldNumber = 2; + const ::std::string& tx_prefix_hash() const; + void set_tx_prefix_hash(const ::std::string& value); + #if LANG_CXX11 + void set_tx_prefix_hash(::std::string&& value); + #endif + void set_tx_prefix_hash(const char* value); + void set_tx_prefix_hash(const void* value, size_t size); + ::std::string* mutable_tx_prefix_hash(); + ::std::string* release_tx_prefix_hash(); + void set_allocated_tx_prefix_hash(::std::string* tx_prefix_hash); + + // optional bytes full_message_hash = 5; + bool has_full_message_hash() const; + void clear_full_message_hash(); + static const int kFullMessageHashFieldNumber = 5; + const ::std::string& full_message_hash() const; + void set_full_message_hash(const ::std::string& value); + #if LANG_CXX11 + void set_full_message_hash(::std::string&& value); + #endif + void set_full_message_hash(const char* value); + void set_full_message_hash(const void* value, size_t size); + ::std::string* mutable_full_message_hash(); + ::std::string* release_full_message_hash(); + void set_allocated_full_message_hash(::std::string* full_message_hash); + + // optional .hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig rv = 4; + bool has_rv() const; + void clear_rv(); + static const int kRvFieldNumber = 4; + private: + const ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig& _internal_rv() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig& rv() const; + ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig* release_rv(); + ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig* mutable_rv(); + void set_allocated_rv(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig* rv); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck) + private: + void set_has_extra(); + void clear_has_extra(); + void set_has_tx_prefix_hash(); + void clear_has_tx_prefix_hash(); + void set_has_rv(); + void clear_has_rv(); + void set_has_full_message_hash(); + void clear_has_full_message_hash(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr extra_; + ::google::protobuf::internal::ArenaStringPtr tx_prefix_hash_; + ::google::protobuf::internal::ArenaStringPtr full_message_hash_; + ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig* rv_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionSignInputRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) */ { + public: + MoneroTransactionSignInputRequest(); + virtual ~MoneroTransactionSignInputRequest(); + + MoneroTransactionSignInputRequest(const MoneroTransactionSignInputRequest& from); + + inline MoneroTransactionSignInputRequest& operator=(const MoneroTransactionSignInputRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionSignInputRequest(MoneroTransactionSignInputRequest&& from) noexcept + : MoneroTransactionSignInputRequest() { + *this = ::std::move(from); + } + + inline MoneroTransactionSignInputRequest& operator=(MoneroTransactionSignInputRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionSignInputRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionSignInputRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionSignInputRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + void Swap(MoneroTransactionSignInputRequest* other); + friend void swap(MoneroTransactionSignInputRequest& a, MoneroTransactionSignInputRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionSignInputRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionSignInputRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionSignInputRequest& from); + void MergeFrom(const MoneroTransactionSignInputRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionSignInputRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes vini = 2; + bool has_vini() const; + void clear_vini(); + static const int kViniFieldNumber = 2; + const ::std::string& vini() const; + void set_vini(const ::std::string& value); + #if LANG_CXX11 + void set_vini(::std::string&& value); + #endif + void set_vini(const char* value); + void set_vini(const void* value, size_t size); + ::std::string* mutable_vini(); + ::std::string* release_vini(); + void set_allocated_vini(::std::string* vini); + + // optional bytes vini_hmac = 3; + bool has_vini_hmac() const; + void clear_vini_hmac(); + static const int kViniHmacFieldNumber = 3; + const ::std::string& vini_hmac() const; + void set_vini_hmac(const ::std::string& value); + #if LANG_CXX11 + void set_vini_hmac(::std::string&& value); + #endif + void set_vini_hmac(const char* value); + void set_vini_hmac(const void* value, size_t size); + ::std::string* mutable_vini_hmac(); + ::std::string* release_vini_hmac(); + void set_allocated_vini_hmac(::std::string* vini_hmac); + + // optional bytes pseudo_out = 4; + bool has_pseudo_out() const; + void clear_pseudo_out(); + static const int kPseudoOutFieldNumber = 4; + const ::std::string& pseudo_out() const; + void set_pseudo_out(const ::std::string& value); + #if LANG_CXX11 + void set_pseudo_out(::std::string&& value); + #endif + void set_pseudo_out(const char* value); + void set_pseudo_out(const void* value, size_t size); + ::std::string* mutable_pseudo_out(); + ::std::string* release_pseudo_out(); + void set_allocated_pseudo_out(::std::string* pseudo_out); + + // optional bytes pseudo_out_hmac = 5; + bool has_pseudo_out_hmac() const; + void clear_pseudo_out_hmac(); + static const int kPseudoOutHmacFieldNumber = 5; + const ::std::string& pseudo_out_hmac() const; + void set_pseudo_out_hmac(const ::std::string& value); + #if LANG_CXX11 + void set_pseudo_out_hmac(::std::string&& value); + #endif + void set_pseudo_out_hmac(const char* value); + void set_pseudo_out_hmac(const void* value, size_t size); + ::std::string* mutable_pseudo_out_hmac(); + ::std::string* release_pseudo_out_hmac(); + void set_allocated_pseudo_out_hmac(::std::string* pseudo_out_hmac); + + // optional bytes pseudo_out_alpha = 6; + bool has_pseudo_out_alpha() const; + void clear_pseudo_out_alpha(); + static const int kPseudoOutAlphaFieldNumber = 6; + const ::std::string& pseudo_out_alpha() const; + void set_pseudo_out_alpha(const ::std::string& value); + #if LANG_CXX11 + void set_pseudo_out_alpha(::std::string&& value); + #endif + void set_pseudo_out_alpha(const char* value); + void set_pseudo_out_alpha(const void* value, size_t size); + ::std::string* mutable_pseudo_out_alpha(); + ::std::string* release_pseudo_out_alpha(); + void set_allocated_pseudo_out_alpha(::std::string* pseudo_out_alpha); + + // optional bytes spend_key = 7; + bool has_spend_key() const; + void clear_spend_key(); + static const int kSpendKeyFieldNumber = 7; + const ::std::string& spend_key() const; + void set_spend_key(const ::std::string& value); + #if LANG_CXX11 + void set_spend_key(::std::string&& value); + #endif + void set_spend_key(const char* value); + void set_spend_key(const void* value, size_t size); + ::std::string* mutable_spend_key(); + ::std::string* release_spend_key(); + void set_allocated_spend_key(::std::string* spend_key); + + // optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; + bool has_src_entr() const; + void clear_src_entr(); + static const int kSrcEntrFieldNumber = 1; + private: + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& _internal_src_entr() const; + public: + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& src_entr() const; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* release_src_entr(); + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* mutable_src_entr(); + void set_allocated_src_entr(::hw::trezor::messages::monero::MoneroTransactionSourceEntry* src_entr); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionSignInputRequest) + private: + void set_has_src_entr(); + void clear_has_src_entr(); + void set_has_vini(); + void clear_has_vini(); + void set_has_vini_hmac(); + void clear_has_vini_hmac(); + void set_has_pseudo_out(); + void clear_has_pseudo_out(); + void set_has_pseudo_out_hmac(); + void clear_has_pseudo_out_hmac(); + void set_has_pseudo_out_alpha(); + void clear_has_pseudo_out_alpha(); + void set_has_spend_key(); + void clear_has_spend_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr vini_; + ::google::protobuf::internal::ArenaStringPtr vini_hmac_; + ::google::protobuf::internal::ArenaStringPtr pseudo_out_; + ::google::protobuf::internal::ArenaStringPtr pseudo_out_hmac_; + ::google::protobuf::internal::ArenaStringPtr pseudo_out_alpha_; + ::google::protobuf::internal::ArenaStringPtr spend_key_; + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* src_entr_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionSignInputAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionSignInputAck) */ { + public: + MoneroTransactionSignInputAck(); + virtual ~MoneroTransactionSignInputAck(); + + MoneroTransactionSignInputAck(const MoneroTransactionSignInputAck& from); + + inline MoneroTransactionSignInputAck& operator=(const MoneroTransactionSignInputAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionSignInputAck(MoneroTransactionSignInputAck&& from) noexcept + : MoneroTransactionSignInputAck() { + *this = ::std::move(from); + } + + inline MoneroTransactionSignInputAck& operator=(MoneroTransactionSignInputAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionSignInputAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionSignInputAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionSignInputAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + void Swap(MoneroTransactionSignInputAck* other); + friend void swap(MoneroTransactionSignInputAck& a, MoneroTransactionSignInputAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionSignInputAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionSignInputAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionSignInputAck& from); + void MergeFrom(const MoneroTransactionSignInputAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionSignInputAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionSignInputAck) + private: + void set_has_signature(); + void clear_has_signature(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionFinalRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionFinalRequest) */ { + public: + MoneroTransactionFinalRequest(); + virtual ~MoneroTransactionFinalRequest(); + + MoneroTransactionFinalRequest(const MoneroTransactionFinalRequest& from); + + inline MoneroTransactionFinalRequest& operator=(const MoneroTransactionFinalRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionFinalRequest(MoneroTransactionFinalRequest&& from) noexcept + : MoneroTransactionFinalRequest() { + *this = ::std::move(from); + } + + inline MoneroTransactionFinalRequest& operator=(MoneroTransactionFinalRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionFinalRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionFinalRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionFinalRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 29; + + void Swap(MoneroTransactionFinalRequest* other); + friend void swap(MoneroTransactionFinalRequest& a, MoneroTransactionFinalRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionFinalRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionFinalRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionFinalRequest& from); + void MergeFrom(const MoneroTransactionFinalRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionFinalRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionFinalRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroTransactionFinalAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroTransactionFinalAck) */ { + public: + MoneroTransactionFinalAck(); + virtual ~MoneroTransactionFinalAck(); + + MoneroTransactionFinalAck(const MoneroTransactionFinalAck& from); + + inline MoneroTransactionFinalAck& operator=(const MoneroTransactionFinalAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroTransactionFinalAck(MoneroTransactionFinalAck&& from) noexcept + : MoneroTransactionFinalAck() { + *this = ::std::move(from); + } + + inline MoneroTransactionFinalAck& operator=(MoneroTransactionFinalAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroTransactionFinalAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroTransactionFinalAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroTransactionFinalAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 30; + + void Swap(MoneroTransactionFinalAck* other); + friend void swap(MoneroTransactionFinalAck& a, MoneroTransactionFinalAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroTransactionFinalAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroTransactionFinalAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroTransactionFinalAck& from); + void MergeFrom(const MoneroTransactionFinalAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroTransactionFinalAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes cout_key = 1; + bool has_cout_key() const; + void clear_cout_key(); + static const int kCoutKeyFieldNumber = 1; + const ::std::string& cout_key() const; + void set_cout_key(const ::std::string& value); + #if LANG_CXX11 + void set_cout_key(::std::string&& value); + #endif + void set_cout_key(const char* value); + void set_cout_key(const void* value, size_t size); + ::std::string* mutable_cout_key(); + ::std::string* release_cout_key(); + void set_allocated_cout_key(::std::string* cout_key); + + // optional bytes salt = 2; + bool has_salt() const; + void clear_salt(); + static const int kSaltFieldNumber = 2; + const ::std::string& salt() const; + void set_salt(const ::std::string& value); + #if LANG_CXX11 + void set_salt(::std::string&& value); + #endif + void set_salt(const char* value); + void set_salt(const void* value, size_t size); + ::std::string* mutable_salt(); + ::std::string* release_salt(); + void set_allocated_salt(::std::string* salt); + + // optional bytes rand_mult = 3; + bool has_rand_mult() const; + void clear_rand_mult(); + static const int kRandMultFieldNumber = 3; + const ::std::string& rand_mult() const; + void set_rand_mult(const ::std::string& value); + #if LANG_CXX11 + void set_rand_mult(::std::string&& value); + #endif + void set_rand_mult(const char* value); + void set_rand_mult(const void* value, size_t size); + ::std::string* mutable_rand_mult(); + ::std::string* release_rand_mult(); + void set_allocated_rand_mult(::std::string* rand_mult); + + // optional bytes tx_enc_keys = 4; + bool has_tx_enc_keys() const; + void clear_tx_enc_keys(); + static const int kTxEncKeysFieldNumber = 4; + const ::std::string& tx_enc_keys() const; + void set_tx_enc_keys(const ::std::string& value); + #if LANG_CXX11 + void set_tx_enc_keys(::std::string&& value); + #endif + void set_tx_enc_keys(const char* value); + void set_tx_enc_keys(const void* value, size_t size); + ::std::string* mutable_tx_enc_keys(); + ::std::string* release_tx_enc_keys(); + void set_allocated_tx_enc_keys(::std::string* tx_enc_keys); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroTransactionFinalAck) + private: + void set_has_cout_key(); + void clear_has_cout_key(); + void set_has_salt(); + void clear_has_salt(); + void set_has_rand_mult(); + void clear_has_rand_mult(); + void set_has_tx_enc_keys(); + void clear_has_tx_enc_keys(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr cout_key_; + ::google::protobuf::internal::ArenaStringPtr salt_; + ::google::protobuf::internal::ArenaStringPtr rand_mult_; + ::google::protobuf::internal::ArenaStringPtr tx_enc_keys_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) */ { + public: + MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList(); + virtual ~MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList(); + + MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList(const MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& from); + + inline MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& operator=(const MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList(MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList&& from) noexcept + : MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList() { + *this = ::std::move(from); + } + + inline MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& operator=(MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* internal_default_instance() { + return reinterpret_cast( + &_MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + void Swap(MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* other); + friend void swap(MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& a, MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& from); + void MergeFrom(const MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 minor_indices = 2; + int minor_indices_size() const; + void clear_minor_indices(); + static const int kMinorIndicesFieldNumber = 2; + ::google::protobuf::uint32 minor_indices(int index) const; + void set_minor_indices(int index, ::google::protobuf::uint32 value); + void add_minor_indices(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + minor_indices() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_minor_indices(); + + // optional uint32 account = 1; + bool has_account() const; + void clear_account(); + static const int kAccountFieldNumber = 1; + ::google::protobuf::uint32 account() const; + void set_account(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList) + private: + void set_has_account(); + void clear_has_account(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > minor_indices_; + ::google::protobuf::uint32 account_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroKeyImageExportInitRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) */ { + public: + MoneroKeyImageExportInitRequest(); + virtual ~MoneroKeyImageExportInitRequest(); + + MoneroKeyImageExportInitRequest(const MoneroKeyImageExportInitRequest& from); + + inline MoneroKeyImageExportInitRequest& operator=(const MoneroKeyImageExportInitRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroKeyImageExportInitRequest(MoneroKeyImageExportInitRequest&& from) noexcept + : MoneroKeyImageExportInitRequest() { + *this = ::std::move(from); + } + + inline MoneroKeyImageExportInitRequest& operator=(MoneroKeyImageExportInitRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroKeyImageExportInitRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroKeyImageExportInitRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroKeyImageExportInitRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 32; + + void Swap(MoneroKeyImageExportInitRequest* other); + friend void swap(MoneroKeyImageExportInitRequest& a, MoneroKeyImageExportInitRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroKeyImageExportInitRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroKeyImageExportInitRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroKeyImageExportInitRequest& from); + void MergeFrom(const MoneroKeyImageExportInitRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroKeyImageExportInitRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList MoneroSubAddressIndicesList; + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 3; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 3; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // repeated .hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList subs = 5; + int subs_size() const; + void clear_subs(); + static const int kSubsFieldNumber = 5; + ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* mutable_subs(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList >* + mutable_subs(); + const ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& subs(int index) const; + ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* add_subs(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList >& + subs() const; + + // optional bytes hash = 2; + bool has_hash() const; + void clear_hash(); + static const int kHashFieldNumber = 2; + const ::std::string& hash() const; + void set_hash(const ::std::string& value); + #if LANG_CXX11 + void set_hash(::std::string&& value); + #endif + void set_hash(const char* value); + void set_hash(const void* value, size_t size); + ::std::string* mutable_hash(); + ::std::string* release_hash(); + void set_allocated_hash(::std::string* hash); + + // optional uint64 num = 1; + bool has_num() const; + void clear_num(); + static const int kNumFieldNumber = 1; + ::google::protobuf::uint64 num() const; + void set_num(::google::protobuf::uint64 value); + + // optional uint32 network_type = 4; + bool has_network_type() const; + void clear_network_type(); + static const int kNetworkTypeFieldNumber = 4; + ::google::protobuf::uint32 network_type() const; + void set_network_type(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest) + private: + void set_has_num(); + void clear_has_num(); + void set_has_hash(); + void clear_has_hash(); + void set_has_network_type(); + void clear_has_network_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList > subs_; + ::google::protobuf::internal::ArenaStringPtr hash_; + ::google::protobuf::uint64 num_; + ::google::protobuf::uint32 network_type_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroKeyImageExportInitAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) */ { + public: + MoneroKeyImageExportInitAck(); + virtual ~MoneroKeyImageExportInitAck(); + + MoneroKeyImageExportInitAck(const MoneroKeyImageExportInitAck& from); + + inline MoneroKeyImageExportInitAck& operator=(const MoneroKeyImageExportInitAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroKeyImageExportInitAck(MoneroKeyImageExportInitAck&& from) noexcept + : MoneroKeyImageExportInitAck() { + *this = ::std::move(from); + } + + inline MoneroKeyImageExportInitAck& operator=(MoneroKeyImageExportInitAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroKeyImageExportInitAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroKeyImageExportInitAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroKeyImageExportInitAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 33; + + void Swap(MoneroKeyImageExportInitAck* other); + friend void swap(MoneroKeyImageExportInitAck& a, MoneroKeyImageExportInitAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroKeyImageExportInitAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroKeyImageExportInitAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroKeyImageExportInitAck& from); + void MergeFrom(const MoneroKeyImageExportInitAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroKeyImageExportInitAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroKeyImageExportInitAck) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroKeyImageSyncStepRequest_MoneroTransferDetails : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) */ { + public: + MoneroKeyImageSyncStepRequest_MoneroTransferDetails(); + virtual ~MoneroKeyImageSyncStepRequest_MoneroTransferDetails(); + + MoneroKeyImageSyncStepRequest_MoneroTransferDetails(const MoneroKeyImageSyncStepRequest_MoneroTransferDetails& from); + + inline MoneroKeyImageSyncStepRequest_MoneroTransferDetails& operator=(const MoneroKeyImageSyncStepRequest_MoneroTransferDetails& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroKeyImageSyncStepRequest_MoneroTransferDetails(MoneroKeyImageSyncStepRequest_MoneroTransferDetails&& from) noexcept + : MoneroKeyImageSyncStepRequest_MoneroTransferDetails() { + *this = ::std::move(from); + } + + inline MoneroKeyImageSyncStepRequest_MoneroTransferDetails& operator=(MoneroKeyImageSyncStepRequest_MoneroTransferDetails&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroKeyImageSyncStepRequest_MoneroTransferDetails& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroKeyImageSyncStepRequest_MoneroTransferDetails* internal_default_instance() { + return reinterpret_cast( + &_MoneroKeyImageSyncStepRequest_MoneroTransferDetails_default_instance_); + } + static constexpr int kIndexInFileMessages = + 34; + + void Swap(MoneroKeyImageSyncStepRequest_MoneroTransferDetails* other); + friend void swap(MoneroKeyImageSyncStepRequest_MoneroTransferDetails& a, MoneroKeyImageSyncStepRequest_MoneroTransferDetails& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroKeyImageSyncStepRequest_MoneroTransferDetails* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroKeyImageSyncStepRequest_MoneroTransferDetails* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroKeyImageSyncStepRequest_MoneroTransferDetails& from); + void MergeFrom(const MoneroKeyImageSyncStepRequest_MoneroTransferDetails& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroKeyImageSyncStepRequest_MoneroTransferDetails* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated bytes additional_tx_pub_keys = 3; + int additional_tx_pub_keys_size() const; + void clear_additional_tx_pub_keys(); + static const int kAdditionalTxPubKeysFieldNumber = 3; + const ::std::string& additional_tx_pub_keys(int index) const; + ::std::string* mutable_additional_tx_pub_keys(int index); + void set_additional_tx_pub_keys(int index, const ::std::string& value); + #if LANG_CXX11 + void set_additional_tx_pub_keys(int index, ::std::string&& value); + #endif + void set_additional_tx_pub_keys(int index, const char* value); + void set_additional_tx_pub_keys(int index, const void* value, size_t size); + ::std::string* add_additional_tx_pub_keys(); + void add_additional_tx_pub_keys(const ::std::string& value); + #if LANG_CXX11 + void add_additional_tx_pub_keys(::std::string&& value); + #endif + void add_additional_tx_pub_keys(const char* value); + void add_additional_tx_pub_keys(const void* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& additional_tx_pub_keys() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_additional_tx_pub_keys(); + + // optional bytes out_key = 1; + bool has_out_key() const; + void clear_out_key(); + static const int kOutKeyFieldNumber = 1; + const ::std::string& out_key() const; + void set_out_key(const ::std::string& value); + #if LANG_CXX11 + void set_out_key(::std::string&& value); + #endif + void set_out_key(const char* value); + void set_out_key(const void* value, size_t size); + ::std::string* mutable_out_key(); + ::std::string* release_out_key(); + void set_allocated_out_key(::std::string* out_key); + + // optional bytes tx_pub_key = 2; + bool has_tx_pub_key() const; + void clear_tx_pub_key(); + static const int kTxPubKeyFieldNumber = 2; + const ::std::string& tx_pub_key() const; + void set_tx_pub_key(const ::std::string& value); + #if LANG_CXX11 + void set_tx_pub_key(::std::string&& value); + #endif + void set_tx_pub_key(const char* value); + void set_tx_pub_key(const void* value, size_t size); + ::std::string* mutable_tx_pub_key(); + ::std::string* release_tx_pub_key(); + void set_allocated_tx_pub_key(::std::string* tx_pub_key); + + // optional uint64 internal_output_index = 4; + bool has_internal_output_index() const; + void clear_internal_output_index(); + static const int kInternalOutputIndexFieldNumber = 4; + ::google::protobuf::uint64 internal_output_index() const; + void set_internal_output_index(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails) + private: + void set_has_out_key(); + void clear_has_out_key(); + void set_has_tx_pub_key(); + void clear_has_tx_pub_key(); + void set_has_internal_output_index(); + void clear_has_internal_output_index(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::std::string> additional_tx_pub_keys_; + ::google::protobuf::internal::ArenaStringPtr out_key_; + ::google::protobuf::internal::ArenaStringPtr tx_pub_key_; + ::google::protobuf::uint64 internal_output_index_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroKeyImageSyncStepRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) */ { + public: + MoneroKeyImageSyncStepRequest(); + virtual ~MoneroKeyImageSyncStepRequest(); + + MoneroKeyImageSyncStepRequest(const MoneroKeyImageSyncStepRequest& from); + + inline MoneroKeyImageSyncStepRequest& operator=(const MoneroKeyImageSyncStepRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroKeyImageSyncStepRequest(MoneroKeyImageSyncStepRequest&& from) noexcept + : MoneroKeyImageSyncStepRequest() { + *this = ::std::move(from); + } + + inline MoneroKeyImageSyncStepRequest& operator=(MoneroKeyImageSyncStepRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroKeyImageSyncStepRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroKeyImageSyncStepRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroKeyImageSyncStepRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 35; + + void Swap(MoneroKeyImageSyncStepRequest* other); + friend void swap(MoneroKeyImageSyncStepRequest& a, MoneroKeyImageSyncStepRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroKeyImageSyncStepRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroKeyImageSyncStepRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroKeyImageSyncStepRequest& from); + void MergeFrom(const MoneroKeyImageSyncStepRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroKeyImageSyncStepRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MoneroKeyImageSyncStepRequest_MoneroTransferDetails MoneroTransferDetails; + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails tdis = 1; + int tdis_size() const; + void clear_tdis(); + static const int kTdisFieldNumber = 1; + ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails* mutable_tdis(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails >* + mutable_tdis(); + const ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails& tdis(int index) const; + ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails* add_tdis(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails >& + tdis() const; + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails > tdis_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroKeyImageSyncStepAck_MoneroExportedKeyImage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) */ { + public: + MoneroKeyImageSyncStepAck_MoneroExportedKeyImage(); + virtual ~MoneroKeyImageSyncStepAck_MoneroExportedKeyImage(); + + MoneroKeyImageSyncStepAck_MoneroExportedKeyImage(const MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& from); + + inline MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& operator=(const MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroKeyImageSyncStepAck_MoneroExportedKeyImage(MoneroKeyImageSyncStepAck_MoneroExportedKeyImage&& from) noexcept + : MoneroKeyImageSyncStepAck_MoneroExportedKeyImage() { + *this = ::std::move(from); + } + + inline MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& operator=(MoneroKeyImageSyncStepAck_MoneroExportedKeyImage&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* internal_default_instance() { + return reinterpret_cast( + &_MoneroKeyImageSyncStepAck_MoneroExportedKeyImage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 36; + + void Swap(MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* other); + friend void swap(MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& a, MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& from); + void MergeFrom(const MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes iv = 1; + bool has_iv() const; + void clear_iv(); + static const int kIvFieldNumber = 1; + const ::std::string& iv() const; + void set_iv(const ::std::string& value); + #if LANG_CXX11 + void set_iv(::std::string&& value); + #endif + void set_iv(const char* value); + void set_iv(const void* value, size_t size); + ::std::string* mutable_iv(); + ::std::string* release_iv(); + void set_allocated_iv(::std::string* iv); + + // optional bytes blob = 3; + bool has_blob() const; + void clear_blob(); + static const int kBlobFieldNumber = 3; + const ::std::string& blob() const; + void set_blob(const ::std::string& value); + #if LANG_CXX11 + void set_blob(::std::string&& value); + #endif + void set_blob(const char* value); + void set_blob(const void* value, size_t size); + ::std::string* mutable_blob(); + ::std::string* release_blob(); + void set_allocated_blob(::std::string* blob); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage) + private: + void set_has_iv(); + void clear_has_iv(); + void set_has_blob(); + void clear_has_blob(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr iv_; + ::google::protobuf::internal::ArenaStringPtr blob_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroKeyImageSyncStepAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) */ { + public: + MoneroKeyImageSyncStepAck(); + virtual ~MoneroKeyImageSyncStepAck(); + + MoneroKeyImageSyncStepAck(const MoneroKeyImageSyncStepAck& from); + + inline MoneroKeyImageSyncStepAck& operator=(const MoneroKeyImageSyncStepAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroKeyImageSyncStepAck(MoneroKeyImageSyncStepAck&& from) noexcept + : MoneroKeyImageSyncStepAck() { + *this = ::std::move(from); + } + + inline MoneroKeyImageSyncStepAck& operator=(MoneroKeyImageSyncStepAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroKeyImageSyncStepAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroKeyImageSyncStepAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroKeyImageSyncStepAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 37; + + void Swap(MoneroKeyImageSyncStepAck* other); + friend void swap(MoneroKeyImageSyncStepAck& a, MoneroKeyImageSyncStepAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroKeyImageSyncStepAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroKeyImageSyncStepAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroKeyImageSyncStepAck& from); + void MergeFrom(const MoneroKeyImageSyncStepAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroKeyImageSyncStepAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MoneroKeyImageSyncStepAck_MoneroExportedKeyImage MoneroExportedKeyImage; + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage kis = 1; + int kis_size() const; + void clear_kis(); + static const int kKisFieldNumber = 1; + ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* mutable_kis(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage >* + mutable_kis(); + const ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& kis(int index) const; + ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* add_kis(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage >& + kis() const; + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage > kis_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroKeyImageSyncFinalRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) */ { + public: + MoneroKeyImageSyncFinalRequest(); + virtual ~MoneroKeyImageSyncFinalRequest(); + + MoneroKeyImageSyncFinalRequest(const MoneroKeyImageSyncFinalRequest& from); + + inline MoneroKeyImageSyncFinalRequest& operator=(const MoneroKeyImageSyncFinalRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroKeyImageSyncFinalRequest(MoneroKeyImageSyncFinalRequest&& from) noexcept + : MoneroKeyImageSyncFinalRequest() { + *this = ::std::move(from); + } + + inline MoneroKeyImageSyncFinalRequest& operator=(MoneroKeyImageSyncFinalRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroKeyImageSyncFinalRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroKeyImageSyncFinalRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroKeyImageSyncFinalRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 38; + + void Swap(MoneroKeyImageSyncFinalRequest* other); + friend void swap(MoneroKeyImageSyncFinalRequest& a, MoneroKeyImageSyncFinalRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroKeyImageSyncFinalRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroKeyImageSyncFinalRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroKeyImageSyncFinalRequest& from); + void MergeFrom(const MoneroKeyImageSyncFinalRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroKeyImageSyncFinalRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroKeyImageSyncFinalRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroKeyImageSyncFinalAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) */ { + public: + MoneroKeyImageSyncFinalAck(); + virtual ~MoneroKeyImageSyncFinalAck(); + + MoneroKeyImageSyncFinalAck(const MoneroKeyImageSyncFinalAck& from); + + inline MoneroKeyImageSyncFinalAck& operator=(const MoneroKeyImageSyncFinalAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroKeyImageSyncFinalAck(MoneroKeyImageSyncFinalAck&& from) noexcept + : MoneroKeyImageSyncFinalAck() { + *this = ::std::move(from); + } + + inline MoneroKeyImageSyncFinalAck& operator=(MoneroKeyImageSyncFinalAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroKeyImageSyncFinalAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroKeyImageSyncFinalAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroKeyImageSyncFinalAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 39; + + void Swap(MoneroKeyImageSyncFinalAck* other); + friend void swap(MoneroKeyImageSyncFinalAck& a, MoneroKeyImageSyncFinalAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroKeyImageSyncFinalAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroKeyImageSyncFinalAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroKeyImageSyncFinalAck& from); + void MergeFrom(const MoneroKeyImageSyncFinalAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroKeyImageSyncFinalAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes enc_key = 1; + bool has_enc_key() const; + void clear_enc_key(); + static const int kEncKeyFieldNumber = 1; + const ::std::string& enc_key() const; + void set_enc_key(const ::std::string& value); + #if LANG_CXX11 + void set_enc_key(::std::string&& value); + #endif + void set_enc_key(const char* value); + void set_enc_key(const void* value, size_t size); + ::std::string* mutable_enc_key(); + ::std::string* release_enc_key(); + void set_allocated_enc_key(::std::string* enc_key); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck) + private: + void set_has_enc_key(); + void clear_has_enc_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr enc_key_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroGetTxKeyRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroGetTxKeyRequest) */ { + public: + MoneroGetTxKeyRequest(); + virtual ~MoneroGetTxKeyRequest(); + + MoneroGetTxKeyRequest(const MoneroGetTxKeyRequest& from); + + inline MoneroGetTxKeyRequest& operator=(const MoneroGetTxKeyRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroGetTxKeyRequest(MoneroGetTxKeyRequest&& from) noexcept + : MoneroGetTxKeyRequest() { + *this = ::std::move(from); + } + + inline MoneroGetTxKeyRequest& operator=(MoneroGetTxKeyRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroGetTxKeyRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroGetTxKeyRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroGetTxKeyRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 40; + + void Swap(MoneroGetTxKeyRequest* other); + friend void swap(MoneroGetTxKeyRequest& a, MoneroGetTxKeyRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroGetTxKeyRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroGetTxKeyRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroGetTxKeyRequest& from); + void MergeFrom(const MoneroGetTxKeyRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroGetTxKeyRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes salt1 = 3; + bool has_salt1() const; + void clear_salt1(); + static const int kSalt1FieldNumber = 3; + const ::std::string& salt1() const; + void set_salt1(const ::std::string& value); + #if LANG_CXX11 + void set_salt1(::std::string&& value); + #endif + void set_salt1(const char* value); + void set_salt1(const void* value, size_t size); + ::std::string* mutable_salt1(); + ::std::string* release_salt1(); + void set_allocated_salt1(::std::string* salt1); + + // optional bytes salt2 = 4; + bool has_salt2() const; + void clear_salt2(); + static const int kSalt2FieldNumber = 4; + const ::std::string& salt2() const; + void set_salt2(const ::std::string& value); + #if LANG_CXX11 + void set_salt2(::std::string&& value); + #endif + void set_salt2(const char* value); + void set_salt2(const void* value, size_t size); + ::std::string* mutable_salt2(); + ::std::string* release_salt2(); + void set_allocated_salt2(::std::string* salt2); + + // optional bytes tx_enc_keys = 5; + bool has_tx_enc_keys() const; + void clear_tx_enc_keys(); + static const int kTxEncKeysFieldNumber = 5; + const ::std::string& tx_enc_keys() const; + void set_tx_enc_keys(const ::std::string& value); + #if LANG_CXX11 + void set_tx_enc_keys(::std::string&& value); + #endif + void set_tx_enc_keys(const char* value); + void set_tx_enc_keys(const void* value, size_t size); + ::std::string* mutable_tx_enc_keys(); + ::std::string* release_tx_enc_keys(); + void set_allocated_tx_enc_keys(::std::string* tx_enc_keys); + + // optional bytes tx_prefix_hash = 6; + bool has_tx_prefix_hash() const; + void clear_tx_prefix_hash(); + static const int kTxPrefixHashFieldNumber = 6; + const ::std::string& tx_prefix_hash() const; + void set_tx_prefix_hash(const ::std::string& value); + #if LANG_CXX11 + void set_tx_prefix_hash(::std::string&& value); + #endif + void set_tx_prefix_hash(const char* value); + void set_tx_prefix_hash(const void* value, size_t size); + ::std::string* mutable_tx_prefix_hash(); + ::std::string* release_tx_prefix_hash(); + void set_allocated_tx_prefix_hash(::std::string* tx_prefix_hash); + + // optional bytes view_public_key = 8; + bool has_view_public_key() const; + void clear_view_public_key(); + static const int kViewPublicKeyFieldNumber = 8; + const ::std::string& view_public_key() const; + void set_view_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_view_public_key(::std::string&& value); + #endif + void set_view_public_key(const char* value); + void set_view_public_key(const void* value, size_t size); + ::std::string* mutable_view_public_key(); + ::std::string* release_view_public_key(); + void set_allocated_view_public_key(::std::string* view_public_key); + + // optional uint32 network_type = 2; + bool has_network_type() const; + void clear_network_type(); + static const int kNetworkTypeFieldNumber = 2; + ::google::protobuf::uint32 network_type() const; + void set_network_type(::google::protobuf::uint32 value); + + // optional uint32 reason = 7; + bool has_reason() const; + void clear_reason(); + static const int kReasonFieldNumber = 7; + ::google::protobuf::uint32 reason() const; + void set_reason(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroGetTxKeyRequest) + private: + void set_has_network_type(); + void clear_has_network_type(); + void set_has_salt1(); + void clear_has_salt1(); + void set_has_salt2(); + void clear_has_salt2(); + void set_has_tx_enc_keys(); + void clear_has_tx_enc_keys(); + void set_has_tx_prefix_hash(); + void clear_has_tx_prefix_hash(); + void set_has_reason(); + void clear_has_reason(); + void set_has_view_public_key(); + void clear_has_view_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr salt1_; + ::google::protobuf::internal::ArenaStringPtr salt2_; + ::google::protobuf::internal::ArenaStringPtr tx_enc_keys_; + ::google::protobuf::internal::ArenaStringPtr tx_prefix_hash_; + ::google::protobuf::internal::ArenaStringPtr view_public_key_; + ::google::protobuf::uint32 network_type_; + ::google::protobuf::uint32 reason_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroGetTxKeyAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroGetTxKeyAck) */ { + public: + MoneroGetTxKeyAck(); + virtual ~MoneroGetTxKeyAck(); + + MoneroGetTxKeyAck(const MoneroGetTxKeyAck& from); + + inline MoneroGetTxKeyAck& operator=(const MoneroGetTxKeyAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroGetTxKeyAck(MoneroGetTxKeyAck&& from) noexcept + : MoneroGetTxKeyAck() { + *this = ::std::move(from); + } + + inline MoneroGetTxKeyAck& operator=(MoneroGetTxKeyAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroGetTxKeyAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroGetTxKeyAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroGetTxKeyAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 41; + + void Swap(MoneroGetTxKeyAck* other); + friend void swap(MoneroGetTxKeyAck& a, MoneroGetTxKeyAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroGetTxKeyAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroGetTxKeyAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroGetTxKeyAck& from); + void MergeFrom(const MoneroGetTxKeyAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroGetTxKeyAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes salt = 1; + bool has_salt() const; + void clear_salt(); + static const int kSaltFieldNumber = 1; + const ::std::string& salt() const; + void set_salt(const ::std::string& value); + #if LANG_CXX11 + void set_salt(::std::string&& value); + #endif + void set_salt(const char* value); + void set_salt(const void* value, size_t size); + ::std::string* mutable_salt(); + ::std::string* release_salt(); + void set_allocated_salt(::std::string* salt); + + // optional bytes tx_keys = 2; + bool has_tx_keys() const; + void clear_tx_keys(); + static const int kTxKeysFieldNumber = 2; + const ::std::string& tx_keys() const; + void set_tx_keys(const ::std::string& value); + #if LANG_CXX11 + void set_tx_keys(::std::string&& value); + #endif + void set_tx_keys(const char* value); + void set_tx_keys(const void* value, size_t size); + ::std::string* mutable_tx_keys(); + ::std::string* release_tx_keys(); + void set_allocated_tx_keys(::std::string* tx_keys); + + // optional bytes tx_derivations = 3; + bool has_tx_derivations() const; + void clear_tx_derivations(); + static const int kTxDerivationsFieldNumber = 3; + const ::std::string& tx_derivations() const; + void set_tx_derivations(const ::std::string& value); + #if LANG_CXX11 + void set_tx_derivations(::std::string&& value); + #endif + void set_tx_derivations(const char* value); + void set_tx_derivations(const void* value, size_t size); + ::std::string* mutable_tx_derivations(); + ::std::string* release_tx_derivations(); + void set_allocated_tx_derivations(::std::string* tx_derivations); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroGetTxKeyAck) + private: + void set_has_salt(); + void clear_has_salt(); + void set_has_tx_keys(); + void clear_has_tx_keys(); + void set_has_tx_derivations(); + void clear_has_tx_derivations(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr salt_; + ::google::protobuf::internal::ArenaStringPtr tx_keys_; + ::google::protobuf::internal::ArenaStringPtr tx_derivations_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroLiveRefreshStartRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) */ { + public: + MoneroLiveRefreshStartRequest(); + virtual ~MoneroLiveRefreshStartRequest(); + + MoneroLiveRefreshStartRequest(const MoneroLiveRefreshStartRequest& from); + + inline MoneroLiveRefreshStartRequest& operator=(const MoneroLiveRefreshStartRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroLiveRefreshStartRequest(MoneroLiveRefreshStartRequest&& from) noexcept + : MoneroLiveRefreshStartRequest() { + *this = ::std::move(from); + } + + inline MoneroLiveRefreshStartRequest& operator=(MoneroLiveRefreshStartRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroLiveRefreshStartRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroLiveRefreshStartRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroLiveRefreshStartRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 42; + + void Swap(MoneroLiveRefreshStartRequest* other); + friend void swap(MoneroLiveRefreshStartRequest& a, MoneroLiveRefreshStartRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroLiveRefreshStartRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroLiveRefreshStartRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroLiveRefreshStartRequest& from); + void MergeFrom(const MoneroLiveRefreshStartRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroLiveRefreshStartRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional uint32 network_type = 2; + bool has_network_type() const; + void clear_network_type(); + static const int kNetworkTypeFieldNumber = 2; + ::google::protobuf::uint32 network_type() const; + void set_network_type(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest) + private: + void set_has_network_type(); + void clear_has_network_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::uint32 network_type_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroLiveRefreshStartAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) */ { + public: + MoneroLiveRefreshStartAck(); + virtual ~MoneroLiveRefreshStartAck(); + + MoneroLiveRefreshStartAck(const MoneroLiveRefreshStartAck& from); + + inline MoneroLiveRefreshStartAck& operator=(const MoneroLiveRefreshStartAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroLiveRefreshStartAck(MoneroLiveRefreshStartAck&& from) noexcept + : MoneroLiveRefreshStartAck() { + *this = ::std::move(from); + } + + inline MoneroLiveRefreshStartAck& operator=(MoneroLiveRefreshStartAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroLiveRefreshStartAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroLiveRefreshStartAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroLiveRefreshStartAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 43; + + void Swap(MoneroLiveRefreshStartAck* other); + friend void swap(MoneroLiveRefreshStartAck& a, MoneroLiveRefreshStartAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroLiveRefreshStartAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroLiveRefreshStartAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroLiveRefreshStartAck& from); + void MergeFrom(const MoneroLiveRefreshStartAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroLiveRefreshStartAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroLiveRefreshStartAck) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroLiveRefreshStepRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) */ { + public: + MoneroLiveRefreshStepRequest(); + virtual ~MoneroLiveRefreshStepRequest(); + + MoneroLiveRefreshStepRequest(const MoneroLiveRefreshStepRequest& from); + + inline MoneroLiveRefreshStepRequest& operator=(const MoneroLiveRefreshStepRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroLiveRefreshStepRequest(MoneroLiveRefreshStepRequest&& from) noexcept + : MoneroLiveRefreshStepRequest() { + *this = ::std::move(from); + } + + inline MoneroLiveRefreshStepRequest& operator=(MoneroLiveRefreshStepRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroLiveRefreshStepRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroLiveRefreshStepRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroLiveRefreshStepRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 44; + + void Swap(MoneroLiveRefreshStepRequest* other); + friend void swap(MoneroLiveRefreshStepRequest& a, MoneroLiveRefreshStepRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroLiveRefreshStepRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroLiveRefreshStepRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroLiveRefreshStepRequest& from); + void MergeFrom(const MoneroLiveRefreshStepRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroLiveRefreshStepRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes out_key = 1; + bool has_out_key() const; + void clear_out_key(); + static const int kOutKeyFieldNumber = 1; + const ::std::string& out_key() const; + void set_out_key(const ::std::string& value); + #if LANG_CXX11 + void set_out_key(::std::string&& value); + #endif + void set_out_key(const char* value); + void set_out_key(const void* value, size_t size); + ::std::string* mutable_out_key(); + ::std::string* release_out_key(); + void set_allocated_out_key(::std::string* out_key); + + // optional bytes recv_deriv = 2; + bool has_recv_deriv() const; + void clear_recv_deriv(); + static const int kRecvDerivFieldNumber = 2; + const ::std::string& recv_deriv() const; + void set_recv_deriv(const ::std::string& value); + #if LANG_CXX11 + void set_recv_deriv(::std::string&& value); + #endif + void set_recv_deriv(const char* value); + void set_recv_deriv(const void* value, size_t size); + ::std::string* mutable_recv_deriv(); + ::std::string* release_recv_deriv(); + void set_allocated_recv_deriv(::std::string* recv_deriv); + + // optional uint64 real_out_idx = 3; + bool has_real_out_idx() const; + void clear_real_out_idx(); + static const int kRealOutIdxFieldNumber = 3; + ::google::protobuf::uint64 real_out_idx() const; + void set_real_out_idx(::google::protobuf::uint64 value); + + // optional uint32 sub_addr_major = 4; + bool has_sub_addr_major() const; + void clear_sub_addr_major(); + static const int kSubAddrMajorFieldNumber = 4; + ::google::protobuf::uint32 sub_addr_major() const; + void set_sub_addr_major(::google::protobuf::uint32 value); + + // optional uint32 sub_addr_minor = 5; + bool has_sub_addr_minor() const; + void clear_sub_addr_minor(); + static const int kSubAddrMinorFieldNumber = 5; + ::google::protobuf::uint32 sub_addr_minor() const; + void set_sub_addr_minor(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest) + private: + void set_has_out_key(); + void clear_has_out_key(); + void set_has_recv_deriv(); + void clear_has_recv_deriv(); + void set_has_real_out_idx(); + void clear_has_real_out_idx(); + void set_has_sub_addr_major(); + void clear_has_sub_addr_major(); + void set_has_sub_addr_minor(); + void clear_has_sub_addr_minor(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr out_key_; + ::google::protobuf::internal::ArenaStringPtr recv_deriv_; + ::google::protobuf::uint64 real_out_idx_; + ::google::protobuf::uint32 sub_addr_major_; + ::google::protobuf::uint32 sub_addr_minor_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroLiveRefreshStepAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) */ { + public: + MoneroLiveRefreshStepAck(); + virtual ~MoneroLiveRefreshStepAck(); + + MoneroLiveRefreshStepAck(const MoneroLiveRefreshStepAck& from); + + inline MoneroLiveRefreshStepAck& operator=(const MoneroLiveRefreshStepAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroLiveRefreshStepAck(MoneroLiveRefreshStepAck&& from) noexcept + : MoneroLiveRefreshStepAck() { + *this = ::std::move(from); + } + + inline MoneroLiveRefreshStepAck& operator=(MoneroLiveRefreshStepAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroLiveRefreshStepAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroLiveRefreshStepAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroLiveRefreshStepAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 45; + + void Swap(MoneroLiveRefreshStepAck* other); + friend void swap(MoneroLiveRefreshStepAck& a, MoneroLiveRefreshStepAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroLiveRefreshStepAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroLiveRefreshStepAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroLiveRefreshStepAck& from); + void MergeFrom(const MoneroLiveRefreshStepAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroLiveRefreshStepAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes salt = 1; + bool has_salt() const; + void clear_salt(); + static const int kSaltFieldNumber = 1; + const ::std::string& salt() const; + void set_salt(const ::std::string& value); + #if LANG_CXX11 + void set_salt(::std::string&& value); + #endif + void set_salt(const char* value); + void set_salt(const void* value, size_t size); + ::std::string* mutable_salt(); + ::std::string* release_salt(); + void set_allocated_salt(::std::string* salt); + + // optional bytes key_image = 2; + bool has_key_image() const; + void clear_key_image(); + static const int kKeyImageFieldNumber = 2; + const ::std::string& key_image() const; + void set_key_image(const ::std::string& value); + #if LANG_CXX11 + void set_key_image(::std::string&& value); + #endif + void set_key_image(const char* value); + void set_key_image(const void* value, size_t size); + ::std::string* mutable_key_image(); + ::std::string* release_key_image(); + void set_allocated_key_image(::std::string* key_image); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroLiveRefreshStepAck) + private: + void set_has_salt(); + void clear_has_salt(); + void set_has_key_image(); + void clear_has_key_image(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr salt_; + ::google::protobuf::internal::ArenaStringPtr key_image_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroLiveRefreshFinalRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) */ { + public: + MoneroLiveRefreshFinalRequest(); + virtual ~MoneroLiveRefreshFinalRequest(); + + MoneroLiveRefreshFinalRequest(const MoneroLiveRefreshFinalRequest& from); + + inline MoneroLiveRefreshFinalRequest& operator=(const MoneroLiveRefreshFinalRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroLiveRefreshFinalRequest(MoneroLiveRefreshFinalRequest&& from) noexcept + : MoneroLiveRefreshFinalRequest() { + *this = ::std::move(from); + } + + inline MoneroLiveRefreshFinalRequest& operator=(MoneroLiveRefreshFinalRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroLiveRefreshFinalRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroLiveRefreshFinalRequest* internal_default_instance() { + return reinterpret_cast( + &_MoneroLiveRefreshFinalRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 46; + + void Swap(MoneroLiveRefreshFinalRequest* other); + friend void swap(MoneroLiveRefreshFinalRequest& a, MoneroLiveRefreshFinalRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroLiveRefreshFinalRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroLiveRefreshFinalRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroLiveRefreshFinalRequest& from); + void MergeFrom(const MoneroLiveRefreshFinalRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroLiveRefreshFinalRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroLiveRefreshFinalRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class MoneroLiveRefreshFinalAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) */ { + public: + MoneroLiveRefreshFinalAck(); + virtual ~MoneroLiveRefreshFinalAck(); + + MoneroLiveRefreshFinalAck(const MoneroLiveRefreshFinalAck& from); + + inline MoneroLiveRefreshFinalAck& operator=(const MoneroLiveRefreshFinalAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MoneroLiveRefreshFinalAck(MoneroLiveRefreshFinalAck&& from) noexcept + : MoneroLiveRefreshFinalAck() { + *this = ::std::move(from); + } + + inline MoneroLiveRefreshFinalAck& operator=(MoneroLiveRefreshFinalAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoneroLiveRefreshFinalAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MoneroLiveRefreshFinalAck* internal_default_instance() { + return reinterpret_cast( + &_MoneroLiveRefreshFinalAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 47; + + void Swap(MoneroLiveRefreshFinalAck* other); + friend void swap(MoneroLiveRefreshFinalAck& a, MoneroLiveRefreshFinalAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MoneroLiveRefreshFinalAck* New() const final { + return CreateMaybeMessage(NULL); + } + + MoneroLiveRefreshFinalAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MoneroLiveRefreshFinalAck& from); + void MergeFrom(const MoneroLiveRefreshFinalAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoneroLiveRefreshFinalAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.MoneroLiveRefreshFinalAck) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class DebugMoneroDiagRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.DebugMoneroDiagRequest) */ { + public: + DebugMoneroDiagRequest(); + virtual ~DebugMoneroDiagRequest(); + + DebugMoneroDiagRequest(const DebugMoneroDiagRequest& from); + + inline DebugMoneroDiagRequest& operator=(const DebugMoneroDiagRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DebugMoneroDiagRequest(DebugMoneroDiagRequest&& from) noexcept + : DebugMoneroDiagRequest() { + *this = ::std::move(from); + } + + inline DebugMoneroDiagRequest& operator=(DebugMoneroDiagRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DebugMoneroDiagRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DebugMoneroDiagRequest* internal_default_instance() { + return reinterpret_cast( + &_DebugMoneroDiagRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 48; + + void Swap(DebugMoneroDiagRequest* other); + friend void swap(DebugMoneroDiagRequest& a, DebugMoneroDiagRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DebugMoneroDiagRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + DebugMoneroDiagRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DebugMoneroDiagRequest& from); + void MergeFrom(const DebugMoneroDiagRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugMoneroDiagRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint64 pd = 4; + int pd_size() const; + void clear_pd(); + static const int kPdFieldNumber = 4; + ::google::protobuf::uint64 pd(int index) const; + void set_pd(int index, ::google::protobuf::uint64 value); + void add_pd(::google::protobuf::uint64 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& + pd() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* + mutable_pd(); + + // optional bytes data1 = 5; + bool has_data1() const; + void clear_data1(); + static const int kData1FieldNumber = 5; + const ::std::string& data1() const; + void set_data1(const ::std::string& value); + #if LANG_CXX11 + void set_data1(::std::string&& value); + #endif + void set_data1(const char* value); + void set_data1(const void* value, size_t size); + ::std::string* mutable_data1(); + ::std::string* release_data1(); + void set_allocated_data1(::std::string* data1); + + // optional bytes data2 = 6; + bool has_data2() const; + void clear_data2(); + static const int kData2FieldNumber = 6; + const ::std::string& data2() const; + void set_data2(const ::std::string& value); + #if LANG_CXX11 + void set_data2(::std::string&& value); + #endif + void set_data2(const char* value); + void set_data2(const void* value, size_t size); + ::std::string* mutable_data2(); + ::std::string* release_data2(); + void set_allocated_data2(::std::string* data2); + + // optional uint64 ins = 1; + bool has_ins() const; + void clear_ins(); + static const int kInsFieldNumber = 1; + ::google::protobuf::uint64 ins() const; + void set_ins(::google::protobuf::uint64 value); + + // optional uint64 p1 = 2; + bool has_p1() const; + void clear_p1(); + static const int kP1FieldNumber = 2; + ::google::protobuf::uint64 p1() const; + void set_p1(::google::protobuf::uint64 value); + + // optional uint64 p2 = 3; + bool has_p2() const; + void clear_p2(); + static const int kP2FieldNumber = 3; + ::google::protobuf::uint64 p2() const; + void set_p2(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.DebugMoneroDiagRequest) + private: + void set_has_ins(); + void clear_has_ins(); + void set_has_p1(); + void clear_has_p1(); + void set_has_p2(); + void clear_has_p2(); + void set_has_data1(); + void clear_has_data1(); + void set_has_data2(); + void clear_has_data2(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > pd_; + ::google::protobuf::internal::ArenaStringPtr data1_; + ::google::protobuf::internal::ArenaStringPtr data2_; + ::google::protobuf::uint64 ins_; + ::google::protobuf::uint64 p1_; + ::google::protobuf::uint64 p2_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class DebugMoneroDiagAck : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.monero.DebugMoneroDiagAck) */ { + public: + DebugMoneroDiagAck(); + virtual ~DebugMoneroDiagAck(); + + DebugMoneroDiagAck(const DebugMoneroDiagAck& from); + + inline DebugMoneroDiagAck& operator=(const DebugMoneroDiagAck& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DebugMoneroDiagAck(DebugMoneroDiagAck&& from) noexcept + : DebugMoneroDiagAck() { + *this = ::std::move(from); + } + + inline DebugMoneroDiagAck& operator=(DebugMoneroDiagAck&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DebugMoneroDiagAck& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DebugMoneroDiagAck* internal_default_instance() { + return reinterpret_cast( + &_DebugMoneroDiagAck_default_instance_); + } + static constexpr int kIndexInFileMessages = + 49; + + void Swap(DebugMoneroDiagAck* other); + friend void swap(DebugMoneroDiagAck& a, DebugMoneroDiagAck& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DebugMoneroDiagAck* New() const final { + return CreateMaybeMessage(NULL); + } + + DebugMoneroDiagAck* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DebugMoneroDiagAck& from); + void MergeFrom(const DebugMoneroDiagAck& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugMoneroDiagAck* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint64 pd = 4; + int pd_size() const; + void clear_pd(); + static const int kPdFieldNumber = 4; + ::google::protobuf::uint64 pd(int index) const; + void set_pd(int index, ::google::protobuf::uint64 value); + void add_pd(::google::protobuf::uint64 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& + pd() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* + mutable_pd(); + + // optional bytes data1 = 5; + bool has_data1() const; + void clear_data1(); + static const int kData1FieldNumber = 5; + const ::std::string& data1() const; + void set_data1(const ::std::string& value); + #if LANG_CXX11 + void set_data1(::std::string&& value); + #endif + void set_data1(const char* value); + void set_data1(const void* value, size_t size); + ::std::string* mutable_data1(); + ::std::string* release_data1(); + void set_allocated_data1(::std::string* data1); + + // optional bytes data2 = 6; + bool has_data2() const; + void clear_data2(); + static const int kData2FieldNumber = 6; + const ::std::string& data2() const; + void set_data2(const ::std::string& value); + #if LANG_CXX11 + void set_data2(::std::string&& value); + #endif + void set_data2(const char* value); + void set_data2(const void* value, size_t size); + ::std::string* mutable_data2(); + ::std::string* release_data2(); + void set_allocated_data2(::std::string* data2); + + // optional uint64 ins = 1; + bool has_ins() const; + void clear_ins(); + static const int kInsFieldNumber = 1; + ::google::protobuf::uint64 ins() const; + void set_ins(::google::protobuf::uint64 value); + + // optional uint64 p1 = 2; + bool has_p1() const; + void clear_p1(); + static const int kP1FieldNumber = 2; + ::google::protobuf::uint64 p1() const; + void set_p1(::google::protobuf::uint64 value); + + // optional uint64 p2 = 3; + bool has_p2() const; + void clear_p2(); + static const int kP2FieldNumber = 3; + ::google::protobuf::uint64 p2() const; + void set_p2(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.monero.DebugMoneroDiagAck) + private: + void set_has_ins(); + void clear_has_ins(); + void set_has_p1(); + void clear_has_p1(); + void set_has_p2(); + void clear_has_p2(); + void set_has_data1(); + void clear_has_data1(); + void set_has_data2(); + void clear_has_data2(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > pd_; + ::google::protobuf::internal::ArenaStringPtr data1_; + ::google::protobuf::internal::ArenaStringPtr data2_; + ::google::protobuf::uint64 ins_; + ::google::protobuf::uint64 p1_; + ::google::protobuf::uint64 p2_; + friend struct ::protobuf_messages_2dmonero_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic + +// optional bytes dest = 1; +inline bool MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::has_dest() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_has_dest() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::clear_has_dest() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::clear_dest() { + dest_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_dest(); +} +inline const ::std::string& MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::dest() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.dest) + return dest_.GetNoArena(); +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_dest(const ::std::string& value) { + set_has_dest(); + dest_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.dest) +} +#if LANG_CXX11 +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_dest(::std::string&& value) { + set_has_dest(); + dest_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.dest) +} +#endif +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_dest(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_dest(); + dest_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.dest) +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_dest(const void* value, size_t size) { + set_has_dest(); + dest_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.dest) +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::mutable_dest() { + set_has_dest(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.dest) + return dest_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::release_dest() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.dest) + if (!has_dest()) { + return NULL; + } + clear_has_dest(); + return dest_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_allocated_dest(::std::string* dest) { + if (dest != NULL) { + set_has_dest(); + } else { + clear_has_dest(); + } + dest_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dest); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.dest) +} + +// optional bytes commitment = 2; +inline bool MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::has_commitment() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_has_commitment() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::clear_has_commitment() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::clear_commitment() { + commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_commitment(); +} +inline const ::std::string& MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::commitment() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.commitment) + return commitment_.GetNoArena(); +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_commitment(const ::std::string& value) { + set_has_commitment(); + commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.commitment) +} +#if LANG_CXX11 +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_commitment(::std::string&& value) { + set_has_commitment(); + commitment_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.commitment) +} +#endif +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_commitment(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_commitment(); + commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.commitment) +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_commitment(const void* value, size_t size) { + set_has_commitment(); + commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.commitment) +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::mutable_commitment() { + set_has_commitment(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.commitment) + return commitment_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::release_commitment() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.commitment) + if (!has_commitment()) { + return NULL; + } + clear_has_commitment(); + return commitment_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic::set_allocated_commitment(::std::string* commitment) { + if (commitment != NULL) { + set_has_commitment(); + } else { + clear_has_commitment(); + } + commitment_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), commitment); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic.commitment) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionSourceEntry_MoneroOutputEntry + +// optional uint64 idx = 1; +inline bool MoneroTransactionSourceEntry_MoneroOutputEntry::has_idx() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry::set_has_idx() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry::clear_has_idx() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry::clear_idx() { + idx_ = GOOGLE_ULONGLONG(0); + clear_has_idx(); +} +inline ::google::protobuf::uint64 MoneroTransactionSourceEntry_MoneroOutputEntry::idx() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.idx) + return idx_; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry::set_idx(::google::protobuf::uint64 value) { + set_has_idx(); + idx_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.idx) +} + +// optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.MoneroRctKeyPublic key = 2; +inline bool MoneroTransactionSourceEntry_MoneroOutputEntry::has_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry::set_has_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry::clear_has_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry::clear_key() { + if (key_ != NULL) key_->Clear(); + clear_has_key(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& MoneroTransactionSourceEntry_MoneroOutputEntry::_internal_key() const { + return *key_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic& MoneroTransactionSourceEntry_MoneroOutputEntry::key() const { + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* p = key_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.key) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* MoneroTransactionSourceEntry_MoneroOutputEntry::release_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.key) + clear_has_key(); + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* temp = key_; + key_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* MoneroTransactionSourceEntry_MoneroOutputEntry::mutable_key() { + set_has_key(); + if (key_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic>(GetArenaNoVirtual()); + key_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.key) + return key_; +} +inline void MoneroTransactionSourceEntry_MoneroOutputEntry::set_allocated_key(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry_MoneroRctKeyPublic* key) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete key_; + } + if (key) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + key = ::google::protobuf::internal::GetOwnedMessage( + message_arena, key, submessage_arena); + } + set_has_key(); + } else { + clear_has_key(); + } + key_ = key; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry.key) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionSourceEntry_MoneroMultisigKLRki + +// optional bytes K = 1; +inline bool MoneroTransactionSourceEntry_MoneroMultisigKLRki::has_k() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_has_k() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::clear_has_k() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::clear_k() { + k_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_k(); +} +inline const ::std::string& MoneroTransactionSourceEntry_MoneroMultisigKLRki::k() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.K) + return k_.GetNoArena(); +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_k(const ::std::string& value) { + set_has_k(); + k_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.K) +} +#if LANG_CXX11 +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_k(::std::string&& value) { + set_has_k(); + k_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.K) +} +#endif +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_k(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_k(); + k_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.K) +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_k(const void* value, size_t size) { + set_has_k(); + k_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.K) +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroMultisigKLRki::mutable_k() { + set_has_k(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.K) + return k_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroMultisigKLRki::release_k() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.K) + if (!has_k()) { + return NULL; + } + clear_has_k(); + return k_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_allocated_k(::std::string* k) { + if (k != NULL) { + set_has_k(); + } else { + clear_has_k(); + } + k_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), k); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.K) +} + +// optional bytes L = 2; +inline bool MoneroTransactionSourceEntry_MoneroMultisigKLRki::has_l() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_has_l() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::clear_has_l() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::clear_l() { + l_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_l(); +} +inline const ::std::string& MoneroTransactionSourceEntry_MoneroMultisigKLRki::l() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.L) + return l_.GetNoArena(); +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_l(const ::std::string& value) { + set_has_l(); + l_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.L) +} +#if LANG_CXX11 +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_l(::std::string&& value) { + set_has_l(); + l_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.L) +} +#endif +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_l(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_l(); + l_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.L) +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_l(const void* value, size_t size) { + set_has_l(); + l_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.L) +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroMultisigKLRki::mutable_l() { + set_has_l(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.L) + return l_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroMultisigKLRki::release_l() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.L) + if (!has_l()) { + return NULL; + } + clear_has_l(); + return l_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_allocated_l(::std::string* l) { + if (l != NULL) { + set_has_l(); + } else { + clear_has_l(); + } + l_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), l); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.L) +} + +// optional bytes R = 3; +inline bool MoneroTransactionSourceEntry_MoneroMultisigKLRki::has_r() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_has_r() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::clear_has_r() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::clear_r() { + r_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_r(); +} +inline const ::std::string& MoneroTransactionSourceEntry_MoneroMultisigKLRki::r() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.R) + return r_.GetNoArena(); +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_r(const ::std::string& value) { + set_has_r(); + r_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.R) +} +#if LANG_CXX11 +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_r(::std::string&& value) { + set_has_r(); + r_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.R) +} +#endif +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_r(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_r(); + r_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.R) +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_r(const void* value, size_t size) { + set_has_r(); + r_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.R) +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroMultisigKLRki::mutable_r() { + set_has_r(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.R) + return r_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroMultisigKLRki::release_r() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.R) + if (!has_r()) { + return NULL; + } + clear_has_r(); + return r_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_allocated_r(::std::string* r) { + if (r != NULL) { + set_has_r(); + } else { + clear_has_r(); + } + r_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), r); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.R) +} + +// optional bytes ki = 4; +inline bool MoneroTransactionSourceEntry_MoneroMultisigKLRki::has_ki() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_has_ki() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::clear_has_ki() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::clear_ki() { + ki_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ki(); +} +inline const ::std::string& MoneroTransactionSourceEntry_MoneroMultisigKLRki::ki() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.ki) + return ki_.GetNoArena(); +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_ki(const ::std::string& value) { + set_has_ki(); + ki_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.ki) +} +#if LANG_CXX11 +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_ki(::std::string&& value) { + set_has_ki(); + ki_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.ki) +} +#endif +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_ki(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_ki(); + ki_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.ki) +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_ki(const void* value, size_t size) { + set_has_ki(); + ki_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.ki) +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroMultisigKLRki::mutable_ki() { + set_has_ki(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.ki) + return ki_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSourceEntry_MoneroMultisigKLRki::release_ki() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.ki) + if (!has_ki()) { + return NULL; + } + clear_has_ki(); + return ki_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSourceEntry_MoneroMultisigKLRki::set_allocated_ki(::std::string* ki) { + if (ki != NULL) { + set_has_ki(); + } else { + clear_has_ki(); + } + ki_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ki); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki.ki) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionSourceEntry + +// repeated .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroOutputEntry outputs = 1; +inline int MoneroTransactionSourceEntry::outputs_size() const { + return outputs_.size(); +} +inline void MoneroTransactionSourceEntry::clear_outputs() { + outputs_.Clear(); +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry* MoneroTransactionSourceEntry::mutable_outputs(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.outputs) + return outputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry >* +MoneroTransactionSourceEntry::mutable_outputs() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroTransactionSourceEntry.outputs) + return &outputs_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry& MoneroTransactionSourceEntry::outputs(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.outputs) + return outputs_.Get(index); +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry* MoneroTransactionSourceEntry::add_outputs() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionSourceEntry.outputs) + return outputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroOutputEntry >& +MoneroTransactionSourceEntry::outputs() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroTransactionSourceEntry.outputs) + return outputs_; +} + +// optional uint64 real_output = 2; +inline bool MoneroTransactionSourceEntry::has_real_output() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroTransactionSourceEntry::set_has_real_output() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroTransactionSourceEntry::clear_has_real_output() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroTransactionSourceEntry::clear_real_output() { + real_output_ = GOOGLE_ULONGLONG(0); + clear_has_real_output(); +} +inline ::google::protobuf::uint64 MoneroTransactionSourceEntry::real_output() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_output) + return real_output_; +} +inline void MoneroTransactionSourceEntry::set_real_output(::google::protobuf::uint64 value) { + set_has_real_output(); + real_output_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_output) +} + +// optional bytes real_out_tx_key = 3; +inline bool MoneroTransactionSourceEntry::has_real_out_tx_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionSourceEntry::set_has_real_out_tx_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionSourceEntry::clear_has_real_out_tx_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionSourceEntry::clear_real_out_tx_key() { + real_out_tx_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_real_out_tx_key(); +} +inline const ::std::string& MoneroTransactionSourceEntry::real_out_tx_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_tx_key) + return real_out_tx_key_.GetNoArena(); +} +inline void MoneroTransactionSourceEntry::set_real_out_tx_key(const ::std::string& value) { + set_has_real_out_tx_key(); + real_out_tx_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_tx_key) +} +#if LANG_CXX11 +inline void MoneroTransactionSourceEntry::set_real_out_tx_key(::std::string&& value) { + set_has_real_out_tx_key(); + real_out_tx_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_tx_key) +} +#endif +inline void MoneroTransactionSourceEntry::set_real_out_tx_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_real_out_tx_key(); + real_out_tx_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_tx_key) +} +inline void MoneroTransactionSourceEntry::set_real_out_tx_key(const void* value, size_t size) { + set_has_real_out_tx_key(); + real_out_tx_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_tx_key) +} +inline ::std::string* MoneroTransactionSourceEntry::mutable_real_out_tx_key() { + set_has_real_out_tx_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_tx_key) + return real_out_tx_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSourceEntry::release_real_out_tx_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_tx_key) + if (!has_real_out_tx_key()) { + return NULL; + } + clear_has_real_out_tx_key(); + return real_out_tx_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSourceEntry::set_allocated_real_out_tx_key(::std::string* real_out_tx_key) { + if (real_out_tx_key != NULL) { + set_has_real_out_tx_key(); + } else { + clear_has_real_out_tx_key(); + } + real_out_tx_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), real_out_tx_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_tx_key) +} + +// repeated bytes real_out_additional_tx_keys = 4; +inline int MoneroTransactionSourceEntry::real_out_additional_tx_keys_size() const { + return real_out_additional_tx_keys_.size(); +} +inline void MoneroTransactionSourceEntry::clear_real_out_additional_tx_keys() { + real_out_additional_tx_keys_.Clear(); +} +inline const ::std::string& MoneroTransactionSourceEntry::real_out_additional_tx_keys(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) + return real_out_additional_tx_keys_.Get(index); +} +inline ::std::string* MoneroTransactionSourceEntry::mutable_real_out_additional_tx_keys(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) + return real_out_additional_tx_keys_.Mutable(index); +} +inline void MoneroTransactionSourceEntry::set_real_out_additional_tx_keys(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) + real_out_additional_tx_keys_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void MoneroTransactionSourceEntry::set_real_out_additional_tx_keys(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) + real_out_additional_tx_keys_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void MoneroTransactionSourceEntry::set_real_out_additional_tx_keys(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + real_out_additional_tx_keys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) +} +inline void MoneroTransactionSourceEntry::set_real_out_additional_tx_keys(int index, const void* value, size_t size) { + real_out_additional_tx_keys_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) +} +inline ::std::string* MoneroTransactionSourceEntry::add_real_out_additional_tx_keys() { + // @@protoc_insertion_point(field_add_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) + return real_out_additional_tx_keys_.Add(); +} +inline void MoneroTransactionSourceEntry::add_real_out_additional_tx_keys(const ::std::string& value) { + real_out_additional_tx_keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) +} +#if LANG_CXX11 +inline void MoneroTransactionSourceEntry::add_real_out_additional_tx_keys(::std::string&& value) { + real_out_additional_tx_keys_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) +} +#endif +inline void MoneroTransactionSourceEntry::add_real_out_additional_tx_keys(const char* value) { + GOOGLE_DCHECK(value != NULL); + real_out_additional_tx_keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) +} +inline void MoneroTransactionSourceEntry::add_real_out_additional_tx_keys(const void* value, size_t size) { + real_out_additional_tx_keys_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +MoneroTransactionSourceEntry::real_out_additional_tx_keys() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) + return real_out_additional_tx_keys_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +MoneroTransactionSourceEntry::mutable_real_out_additional_tx_keys() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_out_additional_tx_keys) + return &real_out_additional_tx_keys_; +} + +// optional uint64 real_output_in_tx_index = 5; +inline bool MoneroTransactionSourceEntry::has_real_output_in_tx_index() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void MoneroTransactionSourceEntry::set_has_real_output_in_tx_index() { + _has_bits_[0] |= 0x00000010u; +} +inline void MoneroTransactionSourceEntry::clear_has_real_output_in_tx_index() { + _has_bits_[0] &= ~0x00000010u; +} +inline void MoneroTransactionSourceEntry::clear_real_output_in_tx_index() { + real_output_in_tx_index_ = GOOGLE_ULONGLONG(0); + clear_has_real_output_in_tx_index(); +} +inline ::google::protobuf::uint64 MoneroTransactionSourceEntry::real_output_in_tx_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_output_in_tx_index) + return real_output_in_tx_index_; +} +inline void MoneroTransactionSourceEntry::set_real_output_in_tx_index(::google::protobuf::uint64 value) { + set_has_real_output_in_tx_index(); + real_output_in_tx_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.real_output_in_tx_index) +} + +// optional uint64 amount = 6; +inline bool MoneroTransactionSourceEntry::has_amount() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void MoneroTransactionSourceEntry::set_has_amount() { + _has_bits_[0] |= 0x00000020u; +} +inline void MoneroTransactionSourceEntry::clear_has_amount() { + _has_bits_[0] &= ~0x00000020u; +} +inline void MoneroTransactionSourceEntry::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 MoneroTransactionSourceEntry::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.amount) + return amount_; +} +inline void MoneroTransactionSourceEntry::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.amount) +} + +// optional bool rct = 7; +inline bool MoneroTransactionSourceEntry::has_rct() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void MoneroTransactionSourceEntry::set_has_rct() { + _has_bits_[0] |= 0x00000040u; +} +inline void MoneroTransactionSourceEntry::clear_has_rct() { + _has_bits_[0] &= ~0x00000040u; +} +inline void MoneroTransactionSourceEntry::clear_rct() { + rct_ = false; + clear_has_rct(); +} +inline bool MoneroTransactionSourceEntry::rct() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.rct) + return rct_; +} +inline void MoneroTransactionSourceEntry::set_rct(bool value) { + set_has_rct(); + rct_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.rct) +} + +// optional bytes mask = 8; +inline bool MoneroTransactionSourceEntry::has_mask() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionSourceEntry::set_has_mask() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionSourceEntry::clear_has_mask() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionSourceEntry::clear_mask() { + mask_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_mask(); +} +inline const ::std::string& MoneroTransactionSourceEntry::mask() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.mask) + return mask_.GetNoArena(); +} +inline void MoneroTransactionSourceEntry::set_mask(const ::std::string& value) { + set_has_mask(); + mask_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSourceEntry.mask) +} +#if LANG_CXX11 +inline void MoneroTransactionSourceEntry::set_mask(::std::string&& value) { + set_has_mask(); + mask_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSourceEntry.mask) +} +#endif +inline void MoneroTransactionSourceEntry::set_mask(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_mask(); + mask_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSourceEntry.mask) +} +inline void MoneroTransactionSourceEntry::set_mask(const void* value, size_t size) { + set_has_mask(); + mask_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSourceEntry.mask) +} +inline ::std::string* MoneroTransactionSourceEntry::mutable_mask() { + set_has_mask(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.mask) + return mask_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSourceEntry::release_mask() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSourceEntry.mask) + if (!has_mask()) { + return NULL; + } + clear_has_mask(); + return mask_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSourceEntry::set_allocated_mask(::std::string* mask) { + if (mask != NULL) { + set_has_mask(); + } else { + clear_has_mask(); + } + mask_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mask); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSourceEntry.mask) +} + +// optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry.MoneroMultisigKLRki multisig_kLRki = 9; +inline bool MoneroTransactionSourceEntry::has_multisig_klrki() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionSourceEntry::set_has_multisig_klrki() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionSourceEntry::clear_has_multisig_klrki() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionSourceEntry::clear_multisig_klrki() { + if (multisig_klrki_ != NULL) multisig_klrki_->Clear(); + clear_has_multisig_klrki(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki& MoneroTransactionSourceEntry::_internal_multisig_klrki() const { + return *multisig_klrki_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki& MoneroTransactionSourceEntry::multisig_klrki() const { + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki* p = multisig_klrki_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSourceEntry.multisig_kLRki) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_MoneroMultisigKLRki_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki* MoneroTransactionSourceEntry::release_multisig_klrki() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSourceEntry.multisig_kLRki) + clear_has_multisig_klrki(); + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki* temp = multisig_klrki_; + multisig_klrki_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki* MoneroTransactionSourceEntry::mutable_multisig_klrki() { + set_has_multisig_klrki(); + if (multisig_klrki_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki>(GetArenaNoVirtual()); + multisig_klrki_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSourceEntry.multisig_kLRki) + return multisig_klrki_; +} +inline void MoneroTransactionSourceEntry::set_allocated_multisig_klrki(::hw::trezor::messages::monero::MoneroTransactionSourceEntry_MoneroMultisigKLRki* multisig_klrki) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete multisig_klrki_; + } + if (multisig_klrki) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + multisig_klrki = ::google::protobuf::internal::GetOwnedMessage( + message_arena, multisig_klrki, submessage_arena); + } + set_has_multisig_klrki(); + } else { + clear_has_multisig_klrki(); + } + multisig_klrki_ = multisig_klrki; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSourceEntry.multisig_kLRki) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionDestinationEntry_MoneroAccountPublicAddress + +// optional bytes spend_public_key = 1; +inline bool MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::has_spend_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_has_spend_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::clear_has_spend_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::clear_spend_public_key() { + spend_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_spend_public_key(); +} +inline const ::std::string& MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::spend_public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.spend_public_key) + return spend_public_key_.GetNoArena(); +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_spend_public_key(const ::std::string& value) { + set_has_spend_public_key(); + spend_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.spend_public_key) +} +#if LANG_CXX11 +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_spend_public_key(::std::string&& value) { + set_has_spend_public_key(); + spend_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.spend_public_key) +} +#endif +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_spend_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_spend_public_key(); + spend_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.spend_public_key) +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_spend_public_key(const void* value, size_t size) { + set_has_spend_public_key(); + spend_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.spend_public_key) +} +inline ::std::string* MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::mutable_spend_public_key() { + set_has_spend_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.spend_public_key) + return spend_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::release_spend_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.spend_public_key) + if (!has_spend_public_key()) { + return NULL; + } + clear_has_spend_public_key(); + return spend_public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_allocated_spend_public_key(::std::string* spend_public_key) { + if (spend_public_key != NULL) { + set_has_spend_public_key(); + } else { + clear_has_spend_public_key(); + } + spend_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), spend_public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.spend_public_key) +} + +// optional bytes view_public_key = 2; +inline bool MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::has_view_public_key() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_has_view_public_key() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::clear_has_view_public_key() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::clear_view_public_key() { + view_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_view_public_key(); +} +inline const ::std::string& MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::view_public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.view_public_key) + return view_public_key_.GetNoArena(); +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_view_public_key(const ::std::string& value) { + set_has_view_public_key(); + view_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.view_public_key) +} +#if LANG_CXX11 +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_view_public_key(::std::string&& value) { + set_has_view_public_key(); + view_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.view_public_key) +} +#endif +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_view_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_view_public_key(); + view_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.view_public_key) +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_view_public_key(const void* value, size_t size) { + set_has_view_public_key(); + view_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.view_public_key) +} +inline ::std::string* MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::mutable_view_public_key() { + set_has_view_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.view_public_key) + return view_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::release_view_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.view_public_key) + if (!has_view_public_key()) { + return NULL; + } + clear_has_view_public_key(); + return view_public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionDestinationEntry_MoneroAccountPublicAddress::set_allocated_view_public_key(::std::string* view_public_key) { + if (view_public_key != NULL) { + set_has_view_public_key(); + } else { + clear_has_view_public_key(); + } + view_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), view_public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress.view_public_key) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionDestinationEntry + +// optional uint64 amount = 1; +inline bool MoneroTransactionDestinationEntry::has_amount() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionDestinationEntry::set_has_amount() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionDestinationEntry::clear_has_amount() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionDestinationEntry::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 MoneroTransactionDestinationEntry::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.amount) + return amount_; +} +inline void MoneroTransactionDestinationEntry::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.amount) +} + +// optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry.MoneroAccountPublicAddress addr = 2; +inline bool MoneroTransactionDestinationEntry::has_addr() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionDestinationEntry::set_has_addr() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionDestinationEntry::clear_has_addr() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionDestinationEntry::clear_addr() { + if (addr_ != NULL) addr_->Clear(); + clear_has_addr(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& MoneroTransactionDestinationEntry::_internal_addr() const { + return *addr_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress& MoneroTransactionDestinationEntry::addr() const { + const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* p = addr_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.addr) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionDestinationEntry_MoneroAccountPublicAddress_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* MoneroTransactionDestinationEntry::release_addr() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.addr) + clear_has_addr(); + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* temp = addr_; + addr_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* MoneroTransactionDestinationEntry::mutable_addr() { + set_has_addr(); + if (addr_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress>(GetArenaNoVirtual()); + addr_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.addr) + return addr_; +} +inline void MoneroTransactionDestinationEntry::set_allocated_addr(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry_MoneroAccountPublicAddress* addr) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete addr_; + } + if (addr) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + addr = ::google::protobuf::internal::GetOwnedMessage( + message_arena, addr, submessage_arena); + } + set_has_addr(); + } else { + clear_has_addr(); + } + addr_ = addr; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.addr) +} + +// optional bool is_subaddress = 3; +inline bool MoneroTransactionDestinationEntry::has_is_subaddress() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionDestinationEntry::set_has_is_subaddress() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionDestinationEntry::clear_has_is_subaddress() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionDestinationEntry::clear_is_subaddress() { + is_subaddress_ = false; + clear_has_is_subaddress(); +} +inline bool MoneroTransactionDestinationEntry::is_subaddress() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.is_subaddress) + return is_subaddress_; +} +inline void MoneroTransactionDestinationEntry::set_is_subaddress(bool value) { + set_has_is_subaddress(); + is_subaddress_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionDestinationEntry.is_subaddress) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionRsigData + +// optional uint32 rsig_type = 1; +inline bool MoneroTransactionRsigData::has_rsig_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionRsigData::set_has_rsig_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionRsigData::clear_has_rsig_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionRsigData::clear_rsig_type() { + rsig_type_ = 0u; + clear_has_rsig_type(); +} +inline ::google::protobuf::uint32 MoneroTransactionRsigData::rsig_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_type) + return rsig_type_; +} +inline void MoneroTransactionRsigData::set_rsig_type(::google::protobuf::uint32 value) { + set_has_rsig_type(); + rsig_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_type) +} + +// optional uint32 offload_type = 2; +inline bool MoneroTransactionRsigData::has_offload_type() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroTransactionRsigData::set_has_offload_type() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroTransactionRsigData::clear_has_offload_type() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroTransactionRsigData::clear_offload_type() { + offload_type_ = 0u; + clear_has_offload_type(); +} +inline ::google::protobuf::uint32 MoneroTransactionRsigData::offload_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionRsigData.offload_type) + return offload_type_; +} +inline void MoneroTransactionRsigData::set_offload_type(::google::protobuf::uint32 value) { + set_has_offload_type(); + offload_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionRsigData.offload_type) +} + +// repeated uint64 grouping = 3; +inline int MoneroTransactionRsigData::grouping_size() const { + return grouping_.size(); +} +inline void MoneroTransactionRsigData::clear_grouping() { + grouping_.Clear(); +} +inline ::google::protobuf::uint64 MoneroTransactionRsigData::grouping(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionRsigData.grouping) + return grouping_.Get(index); +} +inline void MoneroTransactionRsigData::set_grouping(int index, ::google::protobuf::uint64 value) { + grouping_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionRsigData.grouping) +} +inline void MoneroTransactionRsigData::add_grouping(::google::protobuf::uint64 value) { + grouping_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionRsigData.grouping) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& +MoneroTransactionRsigData::grouping() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroTransactionRsigData.grouping) + return grouping_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* +MoneroTransactionRsigData::mutable_grouping() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroTransactionRsigData.grouping) + return &grouping_; +} + +// optional bytes mask = 4; +inline bool MoneroTransactionRsigData::has_mask() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionRsigData::set_has_mask() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionRsigData::clear_has_mask() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionRsigData::clear_mask() { + mask_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_mask(); +} +inline const ::std::string& MoneroTransactionRsigData::mask() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionRsigData.mask) + return mask_.GetNoArena(); +} +inline void MoneroTransactionRsigData::set_mask(const ::std::string& value) { + set_has_mask(); + mask_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionRsigData.mask) +} +#if LANG_CXX11 +inline void MoneroTransactionRsigData::set_mask(::std::string&& value) { + set_has_mask(); + mask_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionRsigData.mask) +} +#endif +inline void MoneroTransactionRsigData::set_mask(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_mask(); + mask_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionRsigData.mask) +} +inline void MoneroTransactionRsigData::set_mask(const void* value, size_t size) { + set_has_mask(); + mask_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionRsigData.mask) +} +inline ::std::string* MoneroTransactionRsigData::mutable_mask() { + set_has_mask(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionRsigData.mask) + return mask_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionRsigData::release_mask() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionRsigData.mask) + if (!has_mask()) { + return NULL; + } + clear_has_mask(); + return mask_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionRsigData::set_allocated_mask(::std::string* mask) { + if (mask != NULL) { + set_has_mask(); + } else { + clear_has_mask(); + } + mask_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mask); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionRsigData.mask) +} + +// optional bytes rsig = 5; +inline bool MoneroTransactionRsigData::has_rsig() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionRsigData::set_has_rsig() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionRsigData::clear_has_rsig() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionRsigData::clear_rsig() { + rsig_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_rsig(); +} +inline const ::std::string& MoneroTransactionRsigData::rsig() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig) + return rsig_.GetNoArena(); +} +inline void MoneroTransactionRsigData::set_rsig(const ::std::string& value) { + set_has_rsig(); + rsig_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig) +} +#if LANG_CXX11 +inline void MoneroTransactionRsigData::set_rsig(::std::string&& value) { + set_has_rsig(); + rsig_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig) +} +#endif +inline void MoneroTransactionRsigData::set_rsig(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_rsig(); + rsig_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig) +} +inline void MoneroTransactionRsigData::set_rsig(const void* value, size_t size) { + set_has_rsig(); + rsig_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig) +} +inline ::std::string* MoneroTransactionRsigData::mutable_rsig() { + set_has_rsig(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig) + return rsig_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionRsigData::release_rsig() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig) + if (!has_rsig()) { + return NULL; + } + clear_has_rsig(); + return rsig_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionRsigData::set_allocated_rsig(::std::string* rsig) { + if (rsig != NULL) { + set_has_rsig(); + } else { + clear_has_rsig(); + } + rsig_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rsig); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig) +} + +// repeated bytes rsig_parts = 6; +inline int MoneroTransactionRsigData::rsig_parts_size() const { + return rsig_parts_.size(); +} +inline void MoneroTransactionRsigData::clear_rsig_parts() { + rsig_parts_.Clear(); +} +inline const ::std::string& MoneroTransactionRsigData::rsig_parts(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) + return rsig_parts_.Get(index); +} +inline ::std::string* MoneroTransactionRsigData::mutable_rsig_parts(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) + return rsig_parts_.Mutable(index); +} +inline void MoneroTransactionRsigData::set_rsig_parts(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) + rsig_parts_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void MoneroTransactionRsigData::set_rsig_parts(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) + rsig_parts_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void MoneroTransactionRsigData::set_rsig_parts(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + rsig_parts_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) +} +inline void MoneroTransactionRsigData::set_rsig_parts(int index, const void* value, size_t size) { + rsig_parts_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) +} +inline ::std::string* MoneroTransactionRsigData::add_rsig_parts() { + // @@protoc_insertion_point(field_add_mutable:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) + return rsig_parts_.Add(); +} +inline void MoneroTransactionRsigData::add_rsig_parts(const ::std::string& value) { + rsig_parts_.Add()->assign(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) +} +#if LANG_CXX11 +inline void MoneroTransactionRsigData::add_rsig_parts(::std::string&& value) { + rsig_parts_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) +} +#endif +inline void MoneroTransactionRsigData::add_rsig_parts(const char* value) { + GOOGLE_DCHECK(value != NULL); + rsig_parts_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) +} +inline void MoneroTransactionRsigData::add_rsig_parts(const void* value, size_t size) { + rsig_parts_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +MoneroTransactionRsigData::rsig_parts() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) + return rsig_parts_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +MoneroTransactionRsigData::mutable_rsig_parts() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroTransactionRsigData.rsig_parts) + return &rsig_parts_; +} + +// ------------------------------------------------------------------- + +// MoneroGetAddress + +// repeated uint32 address_n = 1; +inline int MoneroGetAddress::address_n_size() const { + return address_n_.size(); +} +inline void MoneroGetAddress::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 MoneroGetAddress::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetAddress.address_n) + return address_n_.Get(index); +} +inline void MoneroGetAddress::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetAddress.address_n) +} +inline void MoneroGetAddress::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroGetAddress.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MoneroGetAddress::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroGetAddress.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MoneroGetAddress::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroGetAddress.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool MoneroGetAddress::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroGetAddress::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroGetAddress::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroGetAddress::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool MoneroGetAddress::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetAddress.show_display) + return show_display_; +} +inline void MoneroGetAddress::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetAddress.show_display) +} + +// optional uint32 network_type = 3; +inline bool MoneroGetAddress::has_network_type() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroGetAddress::set_has_network_type() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroGetAddress::clear_has_network_type() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroGetAddress::clear_network_type() { + network_type_ = 0u; + clear_has_network_type(); +} +inline ::google::protobuf::uint32 MoneroGetAddress::network_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetAddress.network_type) + return network_type_; +} +inline void MoneroGetAddress::set_network_type(::google::protobuf::uint32 value) { + set_has_network_type(); + network_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetAddress.network_type) +} + +// optional uint32 account = 4; +inline bool MoneroGetAddress::has_account() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroGetAddress::set_has_account() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroGetAddress::clear_has_account() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroGetAddress::clear_account() { + account_ = 0u; + clear_has_account(); +} +inline ::google::protobuf::uint32 MoneroGetAddress::account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetAddress.account) + return account_; +} +inline void MoneroGetAddress::set_account(::google::protobuf::uint32 value) { + set_has_account(); + account_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetAddress.account) +} + +// optional uint32 minor = 5; +inline bool MoneroGetAddress::has_minor() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroGetAddress::set_has_minor() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroGetAddress::clear_has_minor() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroGetAddress::clear_minor() { + minor_ = 0u; + clear_has_minor(); +} +inline ::google::protobuf::uint32 MoneroGetAddress::minor() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetAddress.minor) + return minor_; +} +inline void MoneroGetAddress::set_minor(::google::protobuf::uint32 value) { + set_has_minor(); + minor_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetAddress.minor) +} + +// ------------------------------------------------------------------- + +// MoneroAddress + +// optional bytes address = 1; +inline bool MoneroAddress::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroAddress::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroAddress::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroAddress::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& MoneroAddress::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroAddress.address) + return address_.GetNoArena(); +} +inline void MoneroAddress::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroAddress.address) +} +#if LANG_CXX11 +inline void MoneroAddress::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroAddress.address) +} +#endif +inline void MoneroAddress::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroAddress.address) +} +inline void MoneroAddress::set_address(const void* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroAddress.address) +} +inline ::std::string* MoneroAddress::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroAddress.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroAddress::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroAddress.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroAddress::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroAddress.address) +} + +// ------------------------------------------------------------------- + +// MoneroGetWatchKey + +// repeated uint32 address_n = 1; +inline int MoneroGetWatchKey::address_n_size() const { + return address_n_.size(); +} +inline void MoneroGetWatchKey::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 MoneroGetWatchKey::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetWatchKey.address_n) + return address_n_.Get(index); +} +inline void MoneroGetWatchKey::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetWatchKey.address_n) +} +inline void MoneroGetWatchKey::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroGetWatchKey.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MoneroGetWatchKey::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroGetWatchKey.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MoneroGetWatchKey::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroGetWatchKey.address_n) + return &address_n_; +} + +// optional uint32 network_type = 2; +inline bool MoneroGetWatchKey::has_network_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroGetWatchKey::set_has_network_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroGetWatchKey::clear_has_network_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroGetWatchKey::clear_network_type() { + network_type_ = 0u; + clear_has_network_type(); +} +inline ::google::protobuf::uint32 MoneroGetWatchKey::network_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetWatchKey.network_type) + return network_type_; +} +inline void MoneroGetWatchKey::set_network_type(::google::protobuf::uint32 value) { + set_has_network_type(); + network_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetWatchKey.network_type) +} + +// ------------------------------------------------------------------- + +// MoneroWatchKey + +// optional bytes watch_key = 1; +inline bool MoneroWatchKey::has_watch_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroWatchKey::set_has_watch_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroWatchKey::clear_has_watch_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroWatchKey::clear_watch_key() { + watch_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_watch_key(); +} +inline const ::std::string& MoneroWatchKey::watch_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroWatchKey.watch_key) + return watch_key_.GetNoArena(); +} +inline void MoneroWatchKey::set_watch_key(const ::std::string& value) { + set_has_watch_key(); + watch_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroWatchKey.watch_key) +} +#if LANG_CXX11 +inline void MoneroWatchKey::set_watch_key(::std::string&& value) { + set_has_watch_key(); + watch_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroWatchKey.watch_key) +} +#endif +inline void MoneroWatchKey::set_watch_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_watch_key(); + watch_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroWatchKey.watch_key) +} +inline void MoneroWatchKey::set_watch_key(const void* value, size_t size) { + set_has_watch_key(); + watch_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroWatchKey.watch_key) +} +inline ::std::string* MoneroWatchKey::mutable_watch_key() { + set_has_watch_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroWatchKey.watch_key) + return watch_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroWatchKey::release_watch_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroWatchKey.watch_key) + if (!has_watch_key()) { + return NULL; + } + clear_has_watch_key(); + return watch_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroWatchKey::set_allocated_watch_key(::std::string* watch_key) { + if (watch_key != NULL) { + set_has_watch_key(); + } else { + clear_has_watch_key(); + } + watch_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), watch_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroWatchKey.watch_key) +} + +// optional bytes address = 2; +inline bool MoneroWatchKey::has_address() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroWatchKey::set_has_address() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroWatchKey::clear_has_address() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroWatchKey::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& MoneroWatchKey::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroWatchKey.address) + return address_.GetNoArena(); +} +inline void MoneroWatchKey::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroWatchKey.address) +} +#if LANG_CXX11 +inline void MoneroWatchKey::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroWatchKey.address) +} +#endif +inline void MoneroWatchKey::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroWatchKey.address) +} +inline void MoneroWatchKey::set_address(const void* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroWatchKey.address) +} +inline ::std::string* MoneroWatchKey::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroWatchKey.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroWatchKey::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroWatchKey.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroWatchKey::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroWatchKey.address) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionInitRequest_MoneroTransactionData + +// optional uint32 version = 1; +inline bool MoneroTransactionInitRequest_MoneroTransactionData::has_version() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_has_version() { + _has_bits_[0] |= 0x00000010u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_has_version() { + _has_bits_[0] &= ~0x00000010u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_version() { + version_ = 0u; + clear_has_version(); +} +inline ::google::protobuf::uint32 MoneroTransactionInitRequest_MoneroTransactionData::version() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.version) + return version_; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_version(::google::protobuf::uint32 value) { + set_has_version(); + version_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.version) +} + +// optional bytes payment_id = 2; +inline bool MoneroTransactionInitRequest_MoneroTransactionData::has_payment_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_has_payment_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_has_payment_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_payment_id() { + payment_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_payment_id(); +} +inline const ::std::string& MoneroTransactionInitRequest_MoneroTransactionData::payment_id() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.payment_id) + return payment_id_.GetNoArena(); +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_payment_id(const ::std::string& value) { + set_has_payment_id(); + payment_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.payment_id) +} +#if LANG_CXX11 +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_payment_id(::std::string&& value) { + set_has_payment_id(); + payment_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.payment_id) +} +#endif +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_payment_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_payment_id(); + payment_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.payment_id) +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_payment_id(const void* value, size_t size) { + set_has_payment_id(); + payment_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.payment_id) +} +inline ::std::string* MoneroTransactionInitRequest_MoneroTransactionData::mutable_payment_id() { + set_has_payment_id(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.payment_id) + return payment_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionInitRequest_MoneroTransactionData::release_payment_id() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.payment_id) + if (!has_payment_id()) { + return NULL; + } + clear_has_payment_id(); + return payment_id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_allocated_payment_id(::std::string* payment_id) { + if (payment_id != NULL) { + set_has_payment_id(); + } else { + clear_has_payment_id(); + } + payment_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payment_id); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.payment_id) +} + +// optional uint64 unlock_time = 3; +inline bool MoneroTransactionInitRequest_MoneroTransactionData::has_unlock_time() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_has_unlock_time() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_has_unlock_time() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_unlock_time() { + unlock_time_ = GOOGLE_ULONGLONG(0); + clear_has_unlock_time(); +} +inline ::google::protobuf::uint64 MoneroTransactionInitRequest_MoneroTransactionData::unlock_time() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.unlock_time) + return unlock_time_; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_unlock_time(::google::protobuf::uint64 value) { + set_has_unlock_time(); + unlock_time_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.unlock_time) +} + +// repeated .hw.trezor.messages.monero.MoneroTransactionDestinationEntry outputs = 4; +inline int MoneroTransactionInitRequest_MoneroTransactionData::outputs_size() const { + return outputs_.size(); +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_outputs() { + outputs_.Clear(); +} +inline ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* MoneroTransactionInitRequest_MoneroTransactionData::mutable_outputs(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.outputs) + return outputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry >* +MoneroTransactionInitRequest_MoneroTransactionData::mutable_outputs() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.outputs) + return &outputs_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry& MoneroTransactionInitRequest_MoneroTransactionData::outputs(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.outputs) + return outputs_.Get(index); +} +inline ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* MoneroTransactionInitRequest_MoneroTransactionData::add_outputs() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.outputs) + return outputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry >& +MoneroTransactionInitRequest_MoneroTransactionData::outputs() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.outputs) + return outputs_; +} + +// optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry change_dts = 5; +inline bool MoneroTransactionInitRequest_MoneroTransactionData::has_change_dts() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_has_change_dts() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_has_change_dts() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_change_dts() { + if (change_dts_ != NULL) change_dts_->Clear(); + clear_has_change_dts(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry& MoneroTransactionInitRequest_MoneroTransactionData::_internal_change_dts() const { + return *change_dts_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry& MoneroTransactionInitRequest_MoneroTransactionData::change_dts() const { + const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* p = change_dts_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.change_dts) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionDestinationEntry_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* MoneroTransactionInitRequest_MoneroTransactionData::release_change_dts() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.change_dts) + clear_has_change_dts(); + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* temp = change_dts_; + change_dts_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* MoneroTransactionInitRequest_MoneroTransactionData::mutable_change_dts() { + set_has_change_dts(); + if (change_dts_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionDestinationEntry>(GetArenaNoVirtual()); + change_dts_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.change_dts) + return change_dts_; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_allocated_change_dts(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* change_dts) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete change_dts_; + } + if (change_dts) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + change_dts = ::google::protobuf::internal::GetOwnedMessage( + message_arena, change_dts, submessage_arena); + } + set_has_change_dts(); + } else { + clear_has_change_dts(); + } + change_dts_ = change_dts; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.change_dts) +} + +// optional uint32 num_inputs = 6; +inline bool MoneroTransactionInitRequest_MoneroTransactionData::has_num_inputs() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_has_num_inputs() { + _has_bits_[0] |= 0x00000020u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_has_num_inputs() { + _has_bits_[0] &= ~0x00000020u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_num_inputs() { + num_inputs_ = 0u; + clear_has_num_inputs(); +} +inline ::google::protobuf::uint32 MoneroTransactionInitRequest_MoneroTransactionData::num_inputs() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.num_inputs) + return num_inputs_; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_num_inputs(::google::protobuf::uint32 value) { + set_has_num_inputs(); + num_inputs_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.num_inputs) +} + +// optional uint32 mixin = 7; +inline bool MoneroTransactionInitRequest_MoneroTransactionData::has_mixin() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_has_mixin() { + _has_bits_[0] |= 0x00000080u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_has_mixin() { + _has_bits_[0] &= ~0x00000080u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_mixin() { + mixin_ = 0u; + clear_has_mixin(); +} +inline ::google::protobuf::uint32 MoneroTransactionInitRequest_MoneroTransactionData::mixin() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.mixin) + return mixin_; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_mixin(::google::protobuf::uint32 value) { + set_has_mixin(); + mixin_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.mixin) +} + +// optional uint64 fee = 8; +inline bool MoneroTransactionInitRequest_MoneroTransactionData::has_fee() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_has_fee() { + _has_bits_[0] |= 0x00000040u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_has_fee() { + _has_bits_[0] &= ~0x00000040u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_fee() { + fee_ = GOOGLE_ULONGLONG(0); + clear_has_fee(); +} +inline ::google::protobuf::uint64 MoneroTransactionInitRequest_MoneroTransactionData::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.fee) + return fee_; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_fee(::google::protobuf::uint64 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.fee) +} + +// optional uint32 account = 9; +inline bool MoneroTransactionInitRequest_MoneroTransactionData::has_account() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_has_account() { + _has_bits_[0] |= 0x00000100u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_has_account() { + _has_bits_[0] &= ~0x00000100u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_account() { + account_ = 0u; + clear_has_account(); +} +inline ::google::protobuf::uint32 MoneroTransactionInitRequest_MoneroTransactionData::account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.account) + return account_; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_account(::google::protobuf::uint32 value) { + set_has_account(); + account_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.account) +} + +// repeated uint32 minor_indices = 10; +inline int MoneroTransactionInitRequest_MoneroTransactionData::minor_indices_size() const { + return minor_indices_.size(); +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_minor_indices() { + minor_indices_.Clear(); +} +inline ::google::protobuf::uint32 MoneroTransactionInitRequest_MoneroTransactionData::minor_indices(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.minor_indices) + return minor_indices_.Get(index); +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_minor_indices(int index, ::google::protobuf::uint32 value) { + minor_indices_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.minor_indices) +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::add_minor_indices(::google::protobuf::uint32 value) { + minor_indices_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.minor_indices) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MoneroTransactionInitRequest_MoneroTransactionData::minor_indices() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.minor_indices) + return minor_indices_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MoneroTransactionInitRequest_MoneroTransactionData::mutable_minor_indices() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.minor_indices) + return &minor_indices_; +} + +// optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 11; +inline bool MoneroTransactionInitRequest_MoneroTransactionData::has_rsig_data() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_has_rsig_data() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_has_rsig_data() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_rsig_data() { + if (rsig_data_ != NULL) rsig_data_->Clear(); + clear_has_rsig_data(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionInitRequest_MoneroTransactionData::_internal_rsig_data() const { + return *rsig_data_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionInitRequest_MoneroTransactionData::rsig_data() const { + const ::hw::trezor::messages::monero::MoneroTransactionRsigData* p = rsig_data_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.rsig_data) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionRsigData_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionInitRequest_MoneroTransactionData::release_rsig_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.rsig_data) + clear_has_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* temp = rsig_data_; + rsig_data_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionInitRequest_MoneroTransactionData::mutable_rsig_data() { + set_has_rsig_data(); + if (rsig_data_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionRsigData>(GetArenaNoVirtual()); + rsig_data_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.rsig_data) + return rsig_data_; +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete rsig_data_; + } + if (rsig_data) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + rsig_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, rsig_data, submessage_arena); + } + set_has_rsig_data(); + } else { + clear_has_rsig_data(); + } + rsig_data_ = rsig_data; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.rsig_data) +} + +// repeated uint32 integrated_indices = 12; +inline int MoneroTransactionInitRequest_MoneroTransactionData::integrated_indices_size() const { + return integrated_indices_.size(); +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::clear_integrated_indices() { + integrated_indices_.Clear(); +} +inline ::google::protobuf::uint32 MoneroTransactionInitRequest_MoneroTransactionData::integrated_indices(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.integrated_indices) + return integrated_indices_.Get(index); +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::set_integrated_indices(int index, ::google::protobuf::uint32 value) { + integrated_indices_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.integrated_indices) +} +inline void MoneroTransactionInitRequest_MoneroTransactionData::add_integrated_indices(::google::protobuf::uint32 value) { + integrated_indices_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.integrated_indices) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MoneroTransactionInitRequest_MoneroTransactionData::integrated_indices() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.integrated_indices) + return integrated_indices_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MoneroTransactionInitRequest_MoneroTransactionData::mutable_integrated_indices() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData.integrated_indices) + return &integrated_indices_; +} + +// ------------------------------------------------------------------- + +// MoneroTransactionInitRequest + +// optional uint32 version = 1; +inline bool MoneroTransactionInitRequest::has_version() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionInitRequest::set_has_version() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionInitRequest::clear_has_version() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionInitRequest::clear_version() { + version_ = 0u; + clear_has_version(); +} +inline ::google::protobuf::uint32 MoneroTransactionInitRequest::version() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.version) + return version_; +} +inline void MoneroTransactionInitRequest::set_version(::google::protobuf::uint32 value) { + set_has_version(); + version_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.version) +} + +// repeated uint32 address_n = 2; +inline int MoneroTransactionInitRequest::address_n_size() const { + return address_n_.size(); +} +inline void MoneroTransactionInitRequest::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 MoneroTransactionInitRequest::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.address_n) + return address_n_.Get(index); +} +inline void MoneroTransactionInitRequest::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.address_n) +} +inline void MoneroTransactionInitRequest::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionInitRequest.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MoneroTransactionInitRequest::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroTransactionInitRequest.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MoneroTransactionInitRequest::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroTransactionInitRequest.address_n) + return &address_n_; +} + +// optional uint32 network_type = 3; +inline bool MoneroTransactionInitRequest::has_network_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionInitRequest::set_has_network_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionInitRequest::clear_has_network_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionInitRequest::clear_network_type() { + network_type_ = 0u; + clear_has_network_type(); +} +inline ::google::protobuf::uint32 MoneroTransactionInitRequest::network_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.network_type) + return network_type_; +} +inline void MoneroTransactionInitRequest::set_network_type(::google::protobuf::uint32 value) { + set_has_network_type(); + network_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitRequest.network_type) +} + +// optional .hw.trezor.messages.monero.MoneroTransactionInitRequest.MoneroTransactionData tsx_data = 4; +inline bool MoneroTransactionInitRequest::has_tsx_data() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionInitRequest::set_has_tsx_data() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionInitRequest::clear_has_tsx_data() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionInitRequest::clear_tsx_data() { + if (tsx_data_ != NULL) tsx_data_->Clear(); + clear_has_tsx_data(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData& MoneroTransactionInitRequest::_internal_tsx_data() const { + return *tsx_data_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData& MoneroTransactionInitRequest::tsx_data() const { + const ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData* p = tsx_data_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitRequest.tsx_data) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionInitRequest_MoneroTransactionData_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData* MoneroTransactionInitRequest::release_tsx_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionInitRequest.tsx_data) + clear_has_tsx_data(); + ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData* temp = tsx_data_; + tsx_data_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData* MoneroTransactionInitRequest::mutable_tsx_data() { + set_has_tsx_data(); + if (tsx_data_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData>(GetArenaNoVirtual()); + tsx_data_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInitRequest.tsx_data) + return tsx_data_; +} +inline void MoneroTransactionInitRequest::set_allocated_tsx_data(::hw::trezor::messages::monero::MoneroTransactionInitRequest_MoneroTransactionData* tsx_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete tsx_data_; + } + if (tsx_data) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + tsx_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tsx_data, submessage_arena); + } + set_has_tsx_data(); + } else { + clear_has_tsx_data(); + } + tsx_data_ = tsx_data; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionInitRequest.tsx_data) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionInitAck + +// repeated bytes hmacs = 1; +inline int MoneroTransactionInitAck::hmacs_size() const { + return hmacs_.size(); +} +inline void MoneroTransactionInitAck::clear_hmacs() { + hmacs_.Clear(); +} +inline const ::std::string& MoneroTransactionInitAck::hmacs(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) + return hmacs_.Get(index); +} +inline ::std::string* MoneroTransactionInitAck::mutable_hmacs(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) + return hmacs_.Mutable(index); +} +inline void MoneroTransactionInitAck::set_hmacs(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) + hmacs_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void MoneroTransactionInitAck::set_hmacs(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) + hmacs_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void MoneroTransactionInitAck::set_hmacs(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + hmacs_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) +} +inline void MoneroTransactionInitAck::set_hmacs(int index, const void* value, size_t size) { + hmacs_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) +} +inline ::std::string* MoneroTransactionInitAck::add_hmacs() { + // @@protoc_insertion_point(field_add_mutable:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) + return hmacs_.Add(); +} +inline void MoneroTransactionInitAck::add_hmacs(const ::std::string& value) { + hmacs_.Add()->assign(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) +} +#if LANG_CXX11 +inline void MoneroTransactionInitAck::add_hmacs(::std::string&& value) { + hmacs_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) +} +#endif +inline void MoneroTransactionInitAck::add_hmacs(const char* value) { + GOOGLE_DCHECK(value != NULL); + hmacs_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) +} +inline void MoneroTransactionInitAck::add_hmacs(const void* value, size_t size) { + hmacs_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +MoneroTransactionInitAck::hmacs() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) + return hmacs_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +MoneroTransactionInitAck::mutable_hmacs() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroTransactionInitAck.hmacs) + return &hmacs_; +} + +// optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 2; +inline bool MoneroTransactionInitAck::has_rsig_data() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionInitAck::set_has_rsig_data() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionInitAck::clear_has_rsig_data() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionInitAck::clear_rsig_data() { + if (rsig_data_ != NULL) rsig_data_->Clear(); + clear_has_rsig_data(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionInitAck::_internal_rsig_data() const { + return *rsig_data_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionInitAck::rsig_data() const { + const ::hw::trezor::messages::monero::MoneroTransactionRsigData* p = rsig_data_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInitAck.rsig_data) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionRsigData_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionInitAck::release_rsig_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionInitAck.rsig_data) + clear_has_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* temp = rsig_data_; + rsig_data_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionInitAck::mutable_rsig_data() { + set_has_rsig_data(); + if (rsig_data_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionRsigData>(GetArenaNoVirtual()); + rsig_data_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInitAck.rsig_data) + return rsig_data_; +} +inline void MoneroTransactionInitAck::set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete rsig_data_; + } + if (rsig_data) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + rsig_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, rsig_data, submessage_arena); + } + set_has_rsig_data(); + } else { + clear_has_rsig_data(); + } + rsig_data_ = rsig_data; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionInitAck.rsig_data) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionSetInputRequest + +// optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; +inline bool MoneroTransactionSetInputRequest::has_src_entr() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionSetInputRequest::set_has_src_entr() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionSetInputRequest::clear_has_src_entr() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionSetInputRequest::clear_src_entr() { + if (src_entr_ != NULL) src_entr_->Clear(); + clear_has_src_entr(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& MoneroTransactionSetInputRequest::_internal_src_entr() const { + return *src_entr_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& MoneroTransactionSetInputRequest::src_entr() const { + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* p = src_entr_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetInputRequest.src_entr) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* MoneroTransactionSetInputRequest::release_src_entr() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetInputRequest.src_entr) + clear_has_src_entr(); + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* temp = src_entr_; + src_entr_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* MoneroTransactionSetInputRequest::mutable_src_entr() { + set_has_src_entr(); + if (src_entr_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSourceEntry>(GetArenaNoVirtual()); + src_entr_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetInputRequest.src_entr) + return src_entr_; +} +inline void MoneroTransactionSetInputRequest::set_allocated_src_entr(::hw::trezor::messages::monero::MoneroTransactionSourceEntry* src_entr) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete src_entr_; + } + if (src_entr) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + src_entr = ::google::protobuf::internal::GetOwnedMessage( + message_arena, src_entr, submessage_arena); + } + set_has_src_entr(); + } else { + clear_has_src_entr(); + } + src_entr_ = src_entr; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetInputRequest.src_entr) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionSetInputAck + +// optional bytes vini = 1; +inline bool MoneroTransactionSetInputAck::has_vini() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionSetInputAck::set_has_vini() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionSetInputAck::clear_has_vini() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionSetInputAck::clear_vini() { + vini_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_vini(); +} +inline const ::std::string& MoneroTransactionSetInputAck::vini() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini) + return vini_.GetNoArena(); +} +inline void MoneroTransactionSetInputAck::set_vini(const ::std::string& value) { + set_has_vini(); + vini_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini) +} +#if LANG_CXX11 +inline void MoneroTransactionSetInputAck::set_vini(::std::string&& value) { + set_has_vini(); + vini_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini) +} +#endif +inline void MoneroTransactionSetInputAck::set_vini(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_vini(); + vini_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini) +} +inline void MoneroTransactionSetInputAck::set_vini(const void* value, size_t size) { + set_has_vini(); + vini_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini) +} +inline ::std::string* MoneroTransactionSetInputAck::mutable_vini() { + set_has_vini(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini) + return vini_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSetInputAck::release_vini() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini) + if (!has_vini()) { + return NULL; + } + clear_has_vini(); + return vini_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSetInputAck::set_allocated_vini(::std::string* vini) { + if (vini != NULL) { + set_has_vini(); + } else { + clear_has_vini(); + } + vini_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), vini); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini) +} + +// optional bytes vini_hmac = 2; +inline bool MoneroTransactionSetInputAck::has_vini_hmac() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionSetInputAck::set_has_vini_hmac() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionSetInputAck::clear_has_vini_hmac() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionSetInputAck::clear_vini_hmac() { + vini_hmac_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_vini_hmac(); +} +inline const ::std::string& MoneroTransactionSetInputAck::vini_hmac() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini_hmac) + return vini_hmac_.GetNoArena(); +} +inline void MoneroTransactionSetInputAck::set_vini_hmac(const ::std::string& value) { + set_has_vini_hmac(); + vini_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini_hmac) +} +#if LANG_CXX11 +inline void MoneroTransactionSetInputAck::set_vini_hmac(::std::string&& value) { + set_has_vini_hmac(); + vini_hmac_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini_hmac) +} +#endif +inline void MoneroTransactionSetInputAck::set_vini_hmac(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_vini_hmac(); + vini_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini_hmac) +} +inline void MoneroTransactionSetInputAck::set_vini_hmac(const void* value, size_t size) { + set_has_vini_hmac(); + vini_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini_hmac) +} +inline ::std::string* MoneroTransactionSetInputAck::mutable_vini_hmac() { + set_has_vini_hmac(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini_hmac) + return vini_hmac_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSetInputAck::release_vini_hmac() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini_hmac) + if (!has_vini_hmac()) { + return NULL; + } + clear_has_vini_hmac(); + return vini_hmac_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSetInputAck::set_allocated_vini_hmac(::std::string* vini_hmac) { + if (vini_hmac != NULL) { + set_has_vini_hmac(); + } else { + clear_has_vini_hmac(); + } + vini_hmac_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), vini_hmac); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetInputAck.vini_hmac) +} + +// optional bytes pseudo_out = 3; +inline bool MoneroTransactionSetInputAck::has_pseudo_out() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionSetInputAck::set_has_pseudo_out() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionSetInputAck::clear_has_pseudo_out() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionSetInputAck::clear_pseudo_out() { + pseudo_out_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pseudo_out(); +} +inline const ::std::string& MoneroTransactionSetInputAck::pseudo_out() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out) + return pseudo_out_.GetNoArena(); +} +inline void MoneroTransactionSetInputAck::set_pseudo_out(const ::std::string& value) { + set_has_pseudo_out(); + pseudo_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out) +} +#if LANG_CXX11 +inline void MoneroTransactionSetInputAck::set_pseudo_out(::std::string&& value) { + set_has_pseudo_out(); + pseudo_out_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out) +} +#endif +inline void MoneroTransactionSetInputAck::set_pseudo_out(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pseudo_out(); + pseudo_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out) +} +inline void MoneroTransactionSetInputAck::set_pseudo_out(const void* value, size_t size) { + set_has_pseudo_out(); + pseudo_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out) +} +inline ::std::string* MoneroTransactionSetInputAck::mutable_pseudo_out() { + set_has_pseudo_out(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out) + return pseudo_out_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSetInputAck::release_pseudo_out() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out) + if (!has_pseudo_out()) { + return NULL; + } + clear_has_pseudo_out(); + return pseudo_out_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSetInputAck::set_allocated_pseudo_out(::std::string* pseudo_out) { + if (pseudo_out != NULL) { + set_has_pseudo_out(); + } else { + clear_has_pseudo_out(); + } + pseudo_out_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pseudo_out); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out) +} + +// optional bytes pseudo_out_hmac = 4; +inline bool MoneroTransactionSetInputAck::has_pseudo_out_hmac() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroTransactionSetInputAck::set_has_pseudo_out_hmac() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroTransactionSetInputAck::clear_has_pseudo_out_hmac() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroTransactionSetInputAck::clear_pseudo_out_hmac() { + pseudo_out_hmac_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pseudo_out_hmac(); +} +inline const ::std::string& MoneroTransactionSetInputAck::pseudo_out_hmac() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_hmac) + return pseudo_out_hmac_.GetNoArena(); +} +inline void MoneroTransactionSetInputAck::set_pseudo_out_hmac(const ::std::string& value) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_hmac) +} +#if LANG_CXX11 +inline void MoneroTransactionSetInputAck::set_pseudo_out_hmac(::std::string&& value) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_hmac) +} +#endif +inline void MoneroTransactionSetInputAck::set_pseudo_out_hmac(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_hmac) +} +inline void MoneroTransactionSetInputAck::set_pseudo_out_hmac(const void* value, size_t size) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_hmac) +} +inline ::std::string* MoneroTransactionSetInputAck::mutable_pseudo_out_hmac() { + set_has_pseudo_out_hmac(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_hmac) + return pseudo_out_hmac_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSetInputAck::release_pseudo_out_hmac() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_hmac) + if (!has_pseudo_out_hmac()) { + return NULL; + } + clear_has_pseudo_out_hmac(); + return pseudo_out_hmac_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSetInputAck::set_allocated_pseudo_out_hmac(::std::string* pseudo_out_hmac) { + if (pseudo_out_hmac != NULL) { + set_has_pseudo_out_hmac(); + } else { + clear_has_pseudo_out_hmac(); + } + pseudo_out_hmac_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pseudo_out_hmac); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_hmac) +} + +// optional bytes pseudo_out_alpha = 5; +inline bool MoneroTransactionSetInputAck::has_pseudo_out_alpha() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void MoneroTransactionSetInputAck::set_has_pseudo_out_alpha() { + _has_bits_[0] |= 0x00000010u; +} +inline void MoneroTransactionSetInputAck::clear_has_pseudo_out_alpha() { + _has_bits_[0] &= ~0x00000010u; +} +inline void MoneroTransactionSetInputAck::clear_pseudo_out_alpha() { + pseudo_out_alpha_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pseudo_out_alpha(); +} +inline const ::std::string& MoneroTransactionSetInputAck::pseudo_out_alpha() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_alpha) + return pseudo_out_alpha_.GetNoArena(); +} +inline void MoneroTransactionSetInputAck::set_pseudo_out_alpha(const ::std::string& value) { + set_has_pseudo_out_alpha(); + pseudo_out_alpha_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_alpha) +} +#if LANG_CXX11 +inline void MoneroTransactionSetInputAck::set_pseudo_out_alpha(::std::string&& value) { + set_has_pseudo_out_alpha(); + pseudo_out_alpha_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_alpha) +} +#endif +inline void MoneroTransactionSetInputAck::set_pseudo_out_alpha(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pseudo_out_alpha(); + pseudo_out_alpha_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_alpha) +} +inline void MoneroTransactionSetInputAck::set_pseudo_out_alpha(const void* value, size_t size) { + set_has_pseudo_out_alpha(); + pseudo_out_alpha_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_alpha) +} +inline ::std::string* MoneroTransactionSetInputAck::mutable_pseudo_out_alpha() { + set_has_pseudo_out_alpha(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_alpha) + return pseudo_out_alpha_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSetInputAck::release_pseudo_out_alpha() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_alpha) + if (!has_pseudo_out_alpha()) { + return NULL; + } + clear_has_pseudo_out_alpha(); + return pseudo_out_alpha_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSetInputAck::set_allocated_pseudo_out_alpha(::std::string* pseudo_out_alpha) { + if (pseudo_out_alpha != NULL) { + set_has_pseudo_out_alpha(); + } else { + clear_has_pseudo_out_alpha(); + } + pseudo_out_alpha_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pseudo_out_alpha); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetInputAck.pseudo_out_alpha) +} + +// optional bytes spend_key = 6; +inline bool MoneroTransactionSetInputAck::has_spend_key() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void MoneroTransactionSetInputAck::set_has_spend_key() { + _has_bits_[0] |= 0x00000020u; +} +inline void MoneroTransactionSetInputAck::clear_has_spend_key() { + _has_bits_[0] &= ~0x00000020u; +} +inline void MoneroTransactionSetInputAck::clear_spend_key() { + spend_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_spend_key(); +} +inline const ::std::string& MoneroTransactionSetInputAck::spend_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetInputAck.spend_key) + return spend_key_.GetNoArena(); +} +inline void MoneroTransactionSetInputAck::set_spend_key(const ::std::string& value) { + set_has_spend_key(); + spend_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSetInputAck.spend_key) +} +#if LANG_CXX11 +inline void MoneroTransactionSetInputAck::set_spend_key(::std::string&& value) { + set_has_spend_key(); + spend_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSetInputAck.spend_key) +} +#endif +inline void MoneroTransactionSetInputAck::set_spend_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_spend_key(); + spend_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSetInputAck.spend_key) +} +inline void MoneroTransactionSetInputAck::set_spend_key(const void* value, size_t size) { + set_has_spend_key(); + spend_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSetInputAck.spend_key) +} +inline ::std::string* MoneroTransactionSetInputAck::mutable_spend_key() { + set_has_spend_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetInputAck.spend_key) + return spend_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSetInputAck::release_spend_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetInputAck.spend_key) + if (!has_spend_key()) { + return NULL; + } + clear_has_spend_key(); + return spend_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSetInputAck::set_allocated_spend_key(::std::string* spend_key) { + if (spend_key != NULL) { + set_has_spend_key(); + } else { + clear_has_spend_key(); + } + spend_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), spend_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetInputAck.spend_key) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionInputsPermutationRequest + +// repeated uint32 perm = 1; +inline int MoneroTransactionInputsPermutationRequest::perm_size() const { + return perm_.size(); +} +inline void MoneroTransactionInputsPermutationRequest::clear_perm() { + perm_.Clear(); +} +inline ::google::protobuf::uint32 MoneroTransactionInputsPermutationRequest::perm(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest.perm) + return perm_.Get(index); +} +inline void MoneroTransactionInputsPermutationRequest::set_perm(int index, ::google::protobuf::uint32 value) { + perm_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest.perm) +} +inline void MoneroTransactionInputsPermutationRequest::add_perm(::google::protobuf::uint32 value) { + perm_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest.perm) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MoneroTransactionInputsPermutationRequest::perm() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest.perm) + return perm_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MoneroTransactionInputsPermutationRequest::mutable_perm() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroTransactionInputsPermutationRequest.perm) + return &perm_; +} + +// ------------------------------------------------------------------- + +// MoneroTransactionInputsPermutationAck + +// ------------------------------------------------------------------- + +// MoneroTransactionInputViniRequest + +// optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; +inline bool MoneroTransactionInputViniRequest::has_src_entr() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void MoneroTransactionInputViniRequest::set_has_src_entr() { + _has_bits_[0] |= 0x00000010u; +} +inline void MoneroTransactionInputViniRequest::clear_has_src_entr() { + _has_bits_[0] &= ~0x00000010u; +} +inline void MoneroTransactionInputViniRequest::clear_src_entr() { + if (src_entr_ != NULL) src_entr_->Clear(); + clear_has_src_entr(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& MoneroTransactionInputViniRequest::_internal_src_entr() const { + return *src_entr_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& MoneroTransactionInputViniRequest::src_entr() const { + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* p = src_entr_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.src_entr) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* MoneroTransactionInputViniRequest::release_src_entr() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.src_entr) + clear_has_src_entr(); + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* temp = src_entr_; + src_entr_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* MoneroTransactionInputViniRequest::mutable_src_entr() { + set_has_src_entr(); + if (src_entr_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSourceEntry>(GetArenaNoVirtual()); + src_entr_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.src_entr) + return src_entr_; +} +inline void MoneroTransactionInputViniRequest::set_allocated_src_entr(::hw::trezor::messages::monero::MoneroTransactionSourceEntry* src_entr) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete src_entr_; + } + if (src_entr) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + src_entr = ::google::protobuf::internal::GetOwnedMessage( + message_arena, src_entr, submessage_arena); + } + set_has_src_entr(); + } else { + clear_has_src_entr(); + } + src_entr_ = src_entr; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.src_entr) +} + +// optional bytes vini = 2; +inline bool MoneroTransactionInputViniRequest::has_vini() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionInputViniRequest::set_has_vini() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionInputViniRequest::clear_has_vini() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionInputViniRequest::clear_vini() { + vini_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_vini(); +} +inline const ::std::string& MoneroTransactionInputViniRequest::vini() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini) + return vini_.GetNoArena(); +} +inline void MoneroTransactionInputViniRequest::set_vini(const ::std::string& value) { + set_has_vini(); + vini_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini) +} +#if LANG_CXX11 +inline void MoneroTransactionInputViniRequest::set_vini(::std::string&& value) { + set_has_vini(); + vini_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini) +} +#endif +inline void MoneroTransactionInputViniRequest::set_vini(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_vini(); + vini_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini) +} +inline void MoneroTransactionInputViniRequest::set_vini(const void* value, size_t size) { + set_has_vini(); + vini_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini) +} +inline ::std::string* MoneroTransactionInputViniRequest::mutable_vini() { + set_has_vini(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini) + return vini_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionInputViniRequest::release_vini() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini) + if (!has_vini()) { + return NULL; + } + clear_has_vini(); + return vini_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionInputViniRequest::set_allocated_vini(::std::string* vini) { + if (vini != NULL) { + set_has_vini(); + } else { + clear_has_vini(); + } + vini_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), vini); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini) +} + +// optional bytes vini_hmac = 3; +inline bool MoneroTransactionInputViniRequest::has_vini_hmac() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionInputViniRequest::set_has_vini_hmac() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionInputViniRequest::clear_has_vini_hmac() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionInputViniRequest::clear_vini_hmac() { + vini_hmac_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_vini_hmac(); +} +inline const ::std::string& MoneroTransactionInputViniRequest::vini_hmac() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini_hmac) + return vini_hmac_.GetNoArena(); +} +inline void MoneroTransactionInputViniRequest::set_vini_hmac(const ::std::string& value) { + set_has_vini_hmac(); + vini_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini_hmac) +} +#if LANG_CXX11 +inline void MoneroTransactionInputViniRequest::set_vini_hmac(::std::string&& value) { + set_has_vini_hmac(); + vini_hmac_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini_hmac) +} +#endif +inline void MoneroTransactionInputViniRequest::set_vini_hmac(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_vini_hmac(); + vini_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini_hmac) +} +inline void MoneroTransactionInputViniRequest::set_vini_hmac(const void* value, size_t size) { + set_has_vini_hmac(); + vini_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini_hmac) +} +inline ::std::string* MoneroTransactionInputViniRequest::mutable_vini_hmac() { + set_has_vini_hmac(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini_hmac) + return vini_hmac_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionInputViniRequest::release_vini_hmac() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini_hmac) + if (!has_vini_hmac()) { + return NULL; + } + clear_has_vini_hmac(); + return vini_hmac_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionInputViniRequest::set_allocated_vini_hmac(::std::string* vini_hmac) { + if (vini_hmac != NULL) { + set_has_vini_hmac(); + } else { + clear_has_vini_hmac(); + } + vini_hmac_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), vini_hmac); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.vini_hmac) +} + +// optional bytes pseudo_out = 4; +inline bool MoneroTransactionInputViniRequest::has_pseudo_out() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionInputViniRequest::set_has_pseudo_out() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionInputViniRequest::clear_has_pseudo_out() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionInputViniRequest::clear_pseudo_out() { + pseudo_out_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pseudo_out(); +} +inline const ::std::string& MoneroTransactionInputViniRequest::pseudo_out() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out) + return pseudo_out_.GetNoArena(); +} +inline void MoneroTransactionInputViniRequest::set_pseudo_out(const ::std::string& value) { + set_has_pseudo_out(); + pseudo_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out) +} +#if LANG_CXX11 +inline void MoneroTransactionInputViniRequest::set_pseudo_out(::std::string&& value) { + set_has_pseudo_out(); + pseudo_out_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out) +} +#endif +inline void MoneroTransactionInputViniRequest::set_pseudo_out(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pseudo_out(); + pseudo_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out) +} +inline void MoneroTransactionInputViniRequest::set_pseudo_out(const void* value, size_t size) { + set_has_pseudo_out(); + pseudo_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out) +} +inline ::std::string* MoneroTransactionInputViniRequest::mutable_pseudo_out() { + set_has_pseudo_out(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out) + return pseudo_out_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionInputViniRequest::release_pseudo_out() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out) + if (!has_pseudo_out()) { + return NULL; + } + clear_has_pseudo_out(); + return pseudo_out_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionInputViniRequest::set_allocated_pseudo_out(::std::string* pseudo_out) { + if (pseudo_out != NULL) { + set_has_pseudo_out(); + } else { + clear_has_pseudo_out(); + } + pseudo_out_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pseudo_out); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out) +} + +// optional bytes pseudo_out_hmac = 5; +inline bool MoneroTransactionInputViniRequest::has_pseudo_out_hmac() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroTransactionInputViniRequest::set_has_pseudo_out_hmac() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroTransactionInputViniRequest::clear_has_pseudo_out_hmac() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroTransactionInputViniRequest::clear_pseudo_out_hmac() { + pseudo_out_hmac_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pseudo_out_hmac(); +} +inline const ::std::string& MoneroTransactionInputViniRequest::pseudo_out_hmac() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out_hmac) + return pseudo_out_hmac_.GetNoArena(); +} +inline void MoneroTransactionInputViniRequest::set_pseudo_out_hmac(const ::std::string& value) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out_hmac) +} +#if LANG_CXX11 +inline void MoneroTransactionInputViniRequest::set_pseudo_out_hmac(::std::string&& value) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out_hmac) +} +#endif +inline void MoneroTransactionInputViniRequest::set_pseudo_out_hmac(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out_hmac) +} +inline void MoneroTransactionInputViniRequest::set_pseudo_out_hmac(const void* value, size_t size) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out_hmac) +} +inline ::std::string* MoneroTransactionInputViniRequest::mutable_pseudo_out_hmac() { + set_has_pseudo_out_hmac(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out_hmac) + return pseudo_out_hmac_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionInputViniRequest::release_pseudo_out_hmac() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out_hmac) + if (!has_pseudo_out_hmac()) { + return NULL; + } + clear_has_pseudo_out_hmac(); + return pseudo_out_hmac_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionInputViniRequest::set_allocated_pseudo_out_hmac(::std::string* pseudo_out_hmac) { + if (pseudo_out_hmac != NULL) { + set_has_pseudo_out_hmac(); + } else { + clear_has_pseudo_out_hmac(); + } + pseudo_out_hmac_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pseudo_out_hmac); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionInputViniRequest.pseudo_out_hmac) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionInputViniAck + +// ------------------------------------------------------------------- + +// MoneroTransactionAllInputsSetRequest + +// ------------------------------------------------------------------- + +// MoneroTransactionAllInputsSetAck + +// optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; +inline bool MoneroTransactionAllInputsSetAck::has_rsig_data() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionAllInputsSetAck::set_has_rsig_data() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionAllInputsSetAck::clear_has_rsig_data() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionAllInputsSetAck::clear_rsig_data() { + if (rsig_data_ != NULL) rsig_data_->Clear(); + clear_has_rsig_data(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionAllInputsSetAck::_internal_rsig_data() const { + return *rsig_data_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionAllInputsSetAck::rsig_data() const { + const ::hw::trezor::messages::monero::MoneroTransactionRsigData* p = rsig_data_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck.rsig_data) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionRsigData_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionAllInputsSetAck::release_rsig_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck.rsig_data) + clear_has_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* temp = rsig_data_; + rsig_data_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionAllInputsSetAck::mutable_rsig_data() { + set_has_rsig_data(); + if (rsig_data_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionRsigData>(GetArenaNoVirtual()); + rsig_data_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck.rsig_data) + return rsig_data_; +} +inline void MoneroTransactionAllInputsSetAck::set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete rsig_data_; + } + if (rsig_data) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + rsig_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, rsig_data, submessage_arena); + } + set_has_rsig_data(); + } else { + clear_has_rsig_data(); + } + rsig_data_ = rsig_data; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionAllInputsSetAck.rsig_data) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionSetOutputRequest + +// optional .hw.trezor.messages.monero.MoneroTransactionDestinationEntry dst_entr = 1; +inline bool MoneroTransactionSetOutputRequest::has_dst_entr() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionSetOutputRequest::set_has_dst_entr() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionSetOutputRequest::clear_has_dst_entr() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionSetOutputRequest::clear_dst_entr() { + if (dst_entr_ != NULL) dst_entr_->Clear(); + clear_has_dst_entr(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry& MoneroTransactionSetOutputRequest::_internal_dst_entr() const { + return *dst_entr_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry& MoneroTransactionSetOutputRequest::dst_entr() const { + const ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* p = dst_entr_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionDestinationEntry_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* MoneroTransactionSetOutputRequest::release_dst_entr() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr) + clear_has_dst_entr(); + ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* temp = dst_entr_; + dst_entr_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* MoneroTransactionSetOutputRequest::mutable_dst_entr() { + set_has_dst_entr(); + if (dst_entr_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionDestinationEntry>(GetArenaNoVirtual()); + dst_entr_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr) + return dst_entr_; +} +inline void MoneroTransactionSetOutputRequest::set_allocated_dst_entr(::hw::trezor::messages::monero::MoneroTransactionDestinationEntry* dst_entr) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete dst_entr_; + } + if (dst_entr) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + dst_entr = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dst_entr, submessage_arena); + } + set_has_dst_entr(); + } else { + clear_has_dst_entr(); + } + dst_entr_ = dst_entr; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr) +} + +// optional bytes dst_entr_hmac = 2; +inline bool MoneroTransactionSetOutputRequest::has_dst_entr_hmac() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionSetOutputRequest::set_has_dst_entr_hmac() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionSetOutputRequest::clear_has_dst_entr_hmac() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionSetOutputRequest::clear_dst_entr_hmac() { + dst_entr_hmac_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_dst_entr_hmac(); +} +inline const ::std::string& MoneroTransactionSetOutputRequest::dst_entr_hmac() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr_hmac) + return dst_entr_hmac_.GetNoArena(); +} +inline void MoneroTransactionSetOutputRequest::set_dst_entr_hmac(const ::std::string& value) { + set_has_dst_entr_hmac(); + dst_entr_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr_hmac) +} +#if LANG_CXX11 +inline void MoneroTransactionSetOutputRequest::set_dst_entr_hmac(::std::string&& value) { + set_has_dst_entr_hmac(); + dst_entr_hmac_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr_hmac) +} +#endif +inline void MoneroTransactionSetOutputRequest::set_dst_entr_hmac(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_dst_entr_hmac(); + dst_entr_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr_hmac) +} +inline void MoneroTransactionSetOutputRequest::set_dst_entr_hmac(const void* value, size_t size) { + set_has_dst_entr_hmac(); + dst_entr_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr_hmac) +} +inline ::std::string* MoneroTransactionSetOutputRequest::mutable_dst_entr_hmac() { + set_has_dst_entr_hmac(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr_hmac) + return dst_entr_hmac_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSetOutputRequest::release_dst_entr_hmac() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr_hmac) + if (!has_dst_entr_hmac()) { + return NULL; + } + clear_has_dst_entr_hmac(); + return dst_entr_hmac_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSetOutputRequest::set_allocated_dst_entr_hmac(::std::string* dst_entr_hmac) { + if (dst_entr_hmac != NULL) { + set_has_dst_entr_hmac(); + } else { + clear_has_dst_entr_hmac(); + } + dst_entr_hmac_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dst_entr_hmac); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.dst_entr_hmac) +} + +// optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; +inline bool MoneroTransactionSetOutputRequest::has_rsig_data() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionSetOutputRequest::set_has_rsig_data() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionSetOutputRequest::clear_has_rsig_data() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionSetOutputRequest::clear_rsig_data() { + if (rsig_data_ != NULL) rsig_data_->Clear(); + clear_has_rsig_data(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionSetOutputRequest::_internal_rsig_data() const { + return *rsig_data_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionSetOutputRequest::rsig_data() const { + const ::hw::trezor::messages::monero::MoneroTransactionRsigData* p = rsig_data_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.rsig_data) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionRsigData_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionSetOutputRequest::release_rsig_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.rsig_data) + clear_has_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* temp = rsig_data_; + rsig_data_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionSetOutputRequest::mutable_rsig_data() { + set_has_rsig_data(); + if (rsig_data_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionRsigData>(GetArenaNoVirtual()); + rsig_data_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.rsig_data) + return rsig_data_; +} +inline void MoneroTransactionSetOutputRequest::set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete rsig_data_; + } + if (rsig_data) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + rsig_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, rsig_data, submessage_arena); + } + set_has_rsig_data(); + } else { + clear_has_rsig_data(); + } + rsig_data_ = rsig_data; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetOutputRequest.rsig_data) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionSetOutputAck + +// optional bytes tx_out = 1; +inline bool MoneroTransactionSetOutputAck::has_tx_out() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionSetOutputAck::set_has_tx_out() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionSetOutputAck::clear_has_tx_out() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionSetOutputAck::clear_tx_out() { + tx_out_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_out(); +} +inline const ::std::string& MoneroTransactionSetOutputAck::tx_out() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.tx_out) + return tx_out_.GetNoArena(); +} +inline void MoneroTransactionSetOutputAck::set_tx_out(const ::std::string& value) { + set_has_tx_out(); + tx_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.tx_out) +} +#if LANG_CXX11 +inline void MoneroTransactionSetOutputAck::set_tx_out(::std::string&& value) { + set_has_tx_out(); + tx_out_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.tx_out) +} +#endif +inline void MoneroTransactionSetOutputAck::set_tx_out(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_out(); + tx_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.tx_out) +} +inline void MoneroTransactionSetOutputAck::set_tx_out(const void* value, size_t size) { + set_has_tx_out(); + tx_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.tx_out) +} +inline ::std::string* MoneroTransactionSetOutputAck::mutable_tx_out() { + set_has_tx_out(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.tx_out) + return tx_out_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSetOutputAck::release_tx_out() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.tx_out) + if (!has_tx_out()) { + return NULL; + } + clear_has_tx_out(); + return tx_out_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSetOutputAck::set_allocated_tx_out(::std::string* tx_out) { + if (tx_out != NULL) { + set_has_tx_out(); + } else { + clear_has_tx_out(); + } + tx_out_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_out); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.tx_out) +} + +// optional bytes vouti_hmac = 2; +inline bool MoneroTransactionSetOutputAck::has_vouti_hmac() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionSetOutputAck::set_has_vouti_hmac() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionSetOutputAck::clear_has_vouti_hmac() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionSetOutputAck::clear_vouti_hmac() { + vouti_hmac_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_vouti_hmac(); +} +inline const ::std::string& MoneroTransactionSetOutputAck::vouti_hmac() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.vouti_hmac) + return vouti_hmac_.GetNoArena(); +} +inline void MoneroTransactionSetOutputAck::set_vouti_hmac(const ::std::string& value) { + set_has_vouti_hmac(); + vouti_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.vouti_hmac) +} +#if LANG_CXX11 +inline void MoneroTransactionSetOutputAck::set_vouti_hmac(::std::string&& value) { + set_has_vouti_hmac(); + vouti_hmac_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.vouti_hmac) +} +#endif +inline void MoneroTransactionSetOutputAck::set_vouti_hmac(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_vouti_hmac(); + vouti_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.vouti_hmac) +} +inline void MoneroTransactionSetOutputAck::set_vouti_hmac(const void* value, size_t size) { + set_has_vouti_hmac(); + vouti_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.vouti_hmac) +} +inline ::std::string* MoneroTransactionSetOutputAck::mutable_vouti_hmac() { + set_has_vouti_hmac(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.vouti_hmac) + return vouti_hmac_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSetOutputAck::release_vouti_hmac() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.vouti_hmac) + if (!has_vouti_hmac()) { + return NULL; + } + clear_has_vouti_hmac(); + return vouti_hmac_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSetOutputAck::set_allocated_vouti_hmac(::std::string* vouti_hmac) { + if (vouti_hmac != NULL) { + set_has_vouti_hmac(); + } else { + clear_has_vouti_hmac(); + } + vouti_hmac_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), vouti_hmac); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.vouti_hmac) +} + +// optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 3; +inline bool MoneroTransactionSetOutputAck::has_rsig_data() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void MoneroTransactionSetOutputAck::set_has_rsig_data() { + _has_bits_[0] |= 0x00000010u; +} +inline void MoneroTransactionSetOutputAck::clear_has_rsig_data() { + _has_bits_[0] &= ~0x00000010u; +} +inline void MoneroTransactionSetOutputAck::clear_rsig_data() { + if (rsig_data_ != NULL) rsig_data_->Clear(); + clear_has_rsig_data(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionSetOutputAck::_internal_rsig_data() const { + return *rsig_data_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionSetOutputAck::rsig_data() const { + const ::hw::trezor::messages::monero::MoneroTransactionRsigData* p = rsig_data_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.rsig_data) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionRsigData_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionSetOutputAck::release_rsig_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.rsig_data) + clear_has_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* temp = rsig_data_; + rsig_data_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionSetOutputAck::mutable_rsig_data() { + set_has_rsig_data(); + if (rsig_data_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionRsigData>(GetArenaNoVirtual()); + rsig_data_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.rsig_data) + return rsig_data_; +} +inline void MoneroTransactionSetOutputAck::set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete rsig_data_; + } + if (rsig_data) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + rsig_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, rsig_data, submessage_arena); + } + set_has_rsig_data(); + } else { + clear_has_rsig_data(); + } + rsig_data_ = rsig_data; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.rsig_data) +} + +// optional bytes out_pk = 4; +inline bool MoneroTransactionSetOutputAck::has_out_pk() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionSetOutputAck::set_has_out_pk() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionSetOutputAck::clear_has_out_pk() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionSetOutputAck::clear_out_pk() { + out_pk_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_out_pk(); +} +inline const ::std::string& MoneroTransactionSetOutputAck::out_pk() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.out_pk) + return out_pk_.GetNoArena(); +} +inline void MoneroTransactionSetOutputAck::set_out_pk(const ::std::string& value) { + set_has_out_pk(); + out_pk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.out_pk) +} +#if LANG_CXX11 +inline void MoneroTransactionSetOutputAck::set_out_pk(::std::string&& value) { + set_has_out_pk(); + out_pk_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.out_pk) +} +#endif +inline void MoneroTransactionSetOutputAck::set_out_pk(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_out_pk(); + out_pk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.out_pk) +} +inline void MoneroTransactionSetOutputAck::set_out_pk(const void* value, size_t size) { + set_has_out_pk(); + out_pk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.out_pk) +} +inline ::std::string* MoneroTransactionSetOutputAck::mutable_out_pk() { + set_has_out_pk(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.out_pk) + return out_pk_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSetOutputAck::release_out_pk() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.out_pk) + if (!has_out_pk()) { + return NULL; + } + clear_has_out_pk(); + return out_pk_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSetOutputAck::set_allocated_out_pk(::std::string* out_pk) { + if (out_pk != NULL) { + set_has_out_pk(); + } else { + clear_has_out_pk(); + } + out_pk_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), out_pk); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.out_pk) +} + +// optional bytes ecdh_info = 5; +inline bool MoneroTransactionSetOutputAck::has_ecdh_info() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroTransactionSetOutputAck::set_has_ecdh_info() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroTransactionSetOutputAck::clear_has_ecdh_info() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroTransactionSetOutputAck::clear_ecdh_info() { + ecdh_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ecdh_info(); +} +inline const ::std::string& MoneroTransactionSetOutputAck::ecdh_info() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.ecdh_info) + return ecdh_info_.GetNoArena(); +} +inline void MoneroTransactionSetOutputAck::set_ecdh_info(const ::std::string& value) { + set_has_ecdh_info(); + ecdh_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.ecdh_info) +} +#if LANG_CXX11 +inline void MoneroTransactionSetOutputAck::set_ecdh_info(::std::string&& value) { + set_has_ecdh_info(); + ecdh_info_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.ecdh_info) +} +#endif +inline void MoneroTransactionSetOutputAck::set_ecdh_info(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_ecdh_info(); + ecdh_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.ecdh_info) +} +inline void MoneroTransactionSetOutputAck::set_ecdh_info(const void* value, size_t size) { + set_has_ecdh_info(); + ecdh_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.ecdh_info) +} +inline ::std::string* MoneroTransactionSetOutputAck::mutable_ecdh_info() { + set_has_ecdh_info(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.ecdh_info) + return ecdh_info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSetOutputAck::release_ecdh_info() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.ecdh_info) + if (!has_ecdh_info()) { + return NULL; + } + clear_has_ecdh_info(); + return ecdh_info_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSetOutputAck::set_allocated_ecdh_info(::std::string* ecdh_info) { + if (ecdh_info != NULL) { + set_has_ecdh_info(); + } else { + clear_has_ecdh_info(); + } + ecdh_info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ecdh_info); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSetOutputAck.ecdh_info) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionAllOutSetRequest + +// optional .hw.trezor.messages.monero.MoneroTransactionRsigData rsig_data = 1; +inline bool MoneroTransactionAllOutSetRequest::has_rsig_data() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionAllOutSetRequest::set_has_rsig_data() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionAllOutSetRequest::clear_has_rsig_data() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionAllOutSetRequest::clear_rsig_data() { + if (rsig_data_ != NULL) rsig_data_->Clear(); + clear_has_rsig_data(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionAllOutSetRequest::_internal_rsig_data() const { + return *rsig_data_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionRsigData& MoneroTransactionAllOutSetRequest::rsig_data() const { + const ::hw::trezor::messages::monero::MoneroTransactionRsigData* p = rsig_data_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest.rsig_data) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionRsigData_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionAllOutSetRequest::release_rsig_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest.rsig_data) + clear_has_rsig_data(); + ::hw::trezor::messages::monero::MoneroTransactionRsigData* temp = rsig_data_; + rsig_data_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionRsigData* MoneroTransactionAllOutSetRequest::mutable_rsig_data() { + set_has_rsig_data(); + if (rsig_data_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionRsigData>(GetArenaNoVirtual()); + rsig_data_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest.rsig_data) + return rsig_data_; +} +inline void MoneroTransactionAllOutSetRequest::set_allocated_rsig_data(::hw::trezor::messages::monero::MoneroTransactionRsigData* rsig_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete rsig_data_; + } + if (rsig_data) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + rsig_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, rsig_data, submessage_arena); + } + set_has_rsig_data(); + } else { + clear_has_rsig_data(); + } + rsig_data_ = rsig_data; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionAllOutSetRequest.rsig_data) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionAllOutSetAck_MoneroRingCtSig + +// optional uint64 txn_fee = 1; +inline bool MoneroTransactionAllOutSetAck_MoneroRingCtSig::has_txn_fee() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::set_has_txn_fee() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::clear_has_txn_fee() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::clear_txn_fee() { + txn_fee_ = GOOGLE_ULONGLONG(0); + clear_has_txn_fee(); +} +inline ::google::protobuf::uint64 MoneroTransactionAllOutSetAck_MoneroRingCtSig::txn_fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.txn_fee) + return txn_fee_; +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::set_txn_fee(::google::protobuf::uint64 value) { + set_has_txn_fee(); + txn_fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.txn_fee) +} + +// optional bytes message = 2; +inline bool MoneroTransactionAllOutSetAck_MoneroRingCtSig::has_message() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::set_has_message() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::clear_has_message() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_message(); +} +inline const ::std::string& MoneroTransactionAllOutSetAck_MoneroRingCtSig::message() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.message) + return message_.GetNoArena(); +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::set_message(const ::std::string& value) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.message) +} +#if LANG_CXX11 +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::set_message(::std::string&& value) { + set_has_message(); + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.message) +} +#endif +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.message) +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::set_message(const void* value, size_t size) { + set_has_message(); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.message) +} +inline ::std::string* MoneroTransactionAllOutSetAck_MoneroRingCtSig::mutable_message() { + set_has_message(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionAllOutSetAck_MoneroRingCtSig::release_message() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.message) + if (!has_message()) { + return NULL; + } + clear_has_message(); + return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::set_allocated_message(::std::string* message) { + if (message != NULL) { + set_has_message(); + } else { + clear_has_message(); + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.message) +} + +// optional uint32 rv_type = 3; +inline bool MoneroTransactionAllOutSetAck_MoneroRingCtSig::has_rv_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::set_has_rv_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::clear_has_rv_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::clear_rv_type() { + rv_type_ = 0u; + clear_has_rv_type(); +} +inline ::google::protobuf::uint32 MoneroTransactionAllOutSetAck_MoneroRingCtSig::rv_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.rv_type) + return rv_type_; +} +inline void MoneroTransactionAllOutSetAck_MoneroRingCtSig::set_rv_type(::google::protobuf::uint32 value) { + set_has_rv_type(); + rv_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig.rv_type) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionAllOutSetAck + +// optional bytes extra = 1; +inline bool MoneroTransactionAllOutSetAck::has_extra() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionAllOutSetAck::set_has_extra() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionAllOutSetAck::clear_has_extra() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionAllOutSetAck::clear_extra() { + extra_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_extra(); +} +inline const ::std::string& MoneroTransactionAllOutSetAck::extra() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.extra) + return extra_.GetNoArena(); +} +inline void MoneroTransactionAllOutSetAck::set_extra(const ::std::string& value) { + set_has_extra(); + extra_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.extra) +} +#if LANG_CXX11 +inline void MoneroTransactionAllOutSetAck::set_extra(::std::string&& value) { + set_has_extra(); + extra_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.extra) +} +#endif +inline void MoneroTransactionAllOutSetAck::set_extra(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_extra(); + extra_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.extra) +} +inline void MoneroTransactionAllOutSetAck::set_extra(const void* value, size_t size) { + set_has_extra(); + extra_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.extra) +} +inline ::std::string* MoneroTransactionAllOutSetAck::mutable_extra() { + set_has_extra(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.extra) + return extra_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionAllOutSetAck::release_extra() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.extra) + if (!has_extra()) { + return NULL; + } + clear_has_extra(); + return extra_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionAllOutSetAck::set_allocated_extra(::std::string* extra) { + if (extra != NULL) { + set_has_extra(); + } else { + clear_has_extra(); + } + extra_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extra); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.extra) +} + +// optional bytes tx_prefix_hash = 2; +inline bool MoneroTransactionAllOutSetAck::has_tx_prefix_hash() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionAllOutSetAck::set_has_tx_prefix_hash() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionAllOutSetAck::clear_has_tx_prefix_hash() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionAllOutSetAck::clear_tx_prefix_hash() { + tx_prefix_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_prefix_hash(); +} +inline const ::std::string& MoneroTransactionAllOutSetAck::tx_prefix_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.tx_prefix_hash) + return tx_prefix_hash_.GetNoArena(); +} +inline void MoneroTransactionAllOutSetAck::set_tx_prefix_hash(const ::std::string& value) { + set_has_tx_prefix_hash(); + tx_prefix_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.tx_prefix_hash) +} +#if LANG_CXX11 +inline void MoneroTransactionAllOutSetAck::set_tx_prefix_hash(::std::string&& value) { + set_has_tx_prefix_hash(); + tx_prefix_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.tx_prefix_hash) +} +#endif +inline void MoneroTransactionAllOutSetAck::set_tx_prefix_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_prefix_hash(); + tx_prefix_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.tx_prefix_hash) +} +inline void MoneroTransactionAllOutSetAck::set_tx_prefix_hash(const void* value, size_t size) { + set_has_tx_prefix_hash(); + tx_prefix_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.tx_prefix_hash) +} +inline ::std::string* MoneroTransactionAllOutSetAck::mutable_tx_prefix_hash() { + set_has_tx_prefix_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.tx_prefix_hash) + return tx_prefix_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionAllOutSetAck::release_tx_prefix_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.tx_prefix_hash) + if (!has_tx_prefix_hash()) { + return NULL; + } + clear_has_tx_prefix_hash(); + return tx_prefix_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionAllOutSetAck::set_allocated_tx_prefix_hash(::std::string* tx_prefix_hash) { + if (tx_prefix_hash != NULL) { + set_has_tx_prefix_hash(); + } else { + clear_has_tx_prefix_hash(); + } + tx_prefix_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_prefix_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.tx_prefix_hash) +} + +// optional .hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.MoneroRingCtSig rv = 4; +inline bool MoneroTransactionAllOutSetAck::has_rv() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroTransactionAllOutSetAck::set_has_rv() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroTransactionAllOutSetAck::clear_has_rv() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroTransactionAllOutSetAck::clear_rv() { + if (rv_ != NULL) rv_->Clear(); + clear_has_rv(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig& MoneroTransactionAllOutSetAck::_internal_rv() const { + return *rv_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig& MoneroTransactionAllOutSetAck::rv() const { + const ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig* p = rv_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.rv) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionAllOutSetAck_MoneroRingCtSig_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig* MoneroTransactionAllOutSetAck::release_rv() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.rv) + clear_has_rv(); + ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig* temp = rv_; + rv_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig* MoneroTransactionAllOutSetAck::mutable_rv() { + set_has_rv(); + if (rv_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig>(GetArenaNoVirtual()); + rv_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.rv) + return rv_; +} +inline void MoneroTransactionAllOutSetAck::set_allocated_rv(::hw::trezor::messages::monero::MoneroTransactionAllOutSetAck_MoneroRingCtSig* rv) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete rv_; + } + if (rv) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + rv = ::google::protobuf::internal::GetOwnedMessage( + message_arena, rv, submessage_arena); + } + set_has_rv(); + } else { + clear_has_rv(); + } + rv_ = rv; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.rv) +} + +// optional bytes full_message_hash = 5; +inline bool MoneroTransactionAllOutSetAck::has_full_message_hash() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionAllOutSetAck::set_has_full_message_hash() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionAllOutSetAck::clear_has_full_message_hash() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionAllOutSetAck::clear_full_message_hash() { + full_message_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_full_message_hash(); +} +inline const ::std::string& MoneroTransactionAllOutSetAck::full_message_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.full_message_hash) + return full_message_hash_.GetNoArena(); +} +inline void MoneroTransactionAllOutSetAck::set_full_message_hash(const ::std::string& value) { + set_has_full_message_hash(); + full_message_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.full_message_hash) +} +#if LANG_CXX11 +inline void MoneroTransactionAllOutSetAck::set_full_message_hash(::std::string&& value) { + set_has_full_message_hash(); + full_message_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.full_message_hash) +} +#endif +inline void MoneroTransactionAllOutSetAck::set_full_message_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_full_message_hash(); + full_message_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.full_message_hash) +} +inline void MoneroTransactionAllOutSetAck::set_full_message_hash(const void* value, size_t size) { + set_has_full_message_hash(); + full_message_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.full_message_hash) +} +inline ::std::string* MoneroTransactionAllOutSetAck::mutable_full_message_hash() { + set_has_full_message_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.full_message_hash) + return full_message_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionAllOutSetAck::release_full_message_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.full_message_hash) + if (!has_full_message_hash()) { + return NULL; + } + clear_has_full_message_hash(); + return full_message_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionAllOutSetAck::set_allocated_full_message_hash(::std::string* full_message_hash) { + if (full_message_hash != NULL) { + set_has_full_message_hash(); + } else { + clear_has_full_message_hash(); + } + full_message_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), full_message_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionAllOutSetAck.full_message_hash) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionSignInputRequest + +// optional .hw.trezor.messages.monero.MoneroTransactionSourceEntry src_entr = 1; +inline bool MoneroTransactionSignInputRequest::has_src_entr() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void MoneroTransactionSignInputRequest::set_has_src_entr() { + _has_bits_[0] |= 0x00000040u; +} +inline void MoneroTransactionSignInputRequest::clear_has_src_entr() { + _has_bits_[0] &= ~0x00000040u; +} +inline void MoneroTransactionSignInputRequest::clear_src_entr() { + if (src_entr_ != NULL) src_entr_->Clear(); + clear_has_src_entr(); +} +inline const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& MoneroTransactionSignInputRequest::_internal_src_entr() const { + return *src_entr_; +} +inline const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry& MoneroTransactionSignInputRequest::src_entr() const { + const ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* p = src_entr_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.src_entr) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::monero::_MoneroTransactionSourceEntry_default_instance_); +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* MoneroTransactionSignInputRequest::release_src_entr() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.src_entr) + clear_has_src_entr(); + ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* temp = src_entr_; + src_entr_ = NULL; + return temp; +} +inline ::hw::trezor::messages::monero::MoneroTransactionSourceEntry* MoneroTransactionSignInputRequest::mutable_src_entr() { + set_has_src_entr(); + if (src_entr_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::monero::MoneroTransactionSourceEntry>(GetArenaNoVirtual()); + src_entr_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.src_entr) + return src_entr_; +} +inline void MoneroTransactionSignInputRequest::set_allocated_src_entr(::hw::trezor::messages::monero::MoneroTransactionSourceEntry* src_entr) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete src_entr_; + } + if (src_entr) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + src_entr = ::google::protobuf::internal::GetOwnedMessage( + message_arena, src_entr, submessage_arena); + } + set_has_src_entr(); + } else { + clear_has_src_entr(); + } + src_entr_ = src_entr; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.src_entr) +} + +// optional bytes vini = 2; +inline bool MoneroTransactionSignInputRequest::has_vini() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionSignInputRequest::set_has_vini() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionSignInputRequest::clear_has_vini() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionSignInputRequest::clear_vini() { + vini_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_vini(); +} +inline const ::std::string& MoneroTransactionSignInputRequest::vini() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini) + return vini_.GetNoArena(); +} +inline void MoneroTransactionSignInputRequest::set_vini(const ::std::string& value) { + set_has_vini(); + vini_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini) +} +#if LANG_CXX11 +inline void MoneroTransactionSignInputRequest::set_vini(::std::string&& value) { + set_has_vini(); + vini_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini) +} +#endif +inline void MoneroTransactionSignInputRequest::set_vini(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_vini(); + vini_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini) +} +inline void MoneroTransactionSignInputRequest::set_vini(const void* value, size_t size) { + set_has_vini(); + vini_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini) +} +inline ::std::string* MoneroTransactionSignInputRequest::mutable_vini() { + set_has_vini(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini) + return vini_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSignInputRequest::release_vini() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini) + if (!has_vini()) { + return NULL; + } + clear_has_vini(); + return vini_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSignInputRequest::set_allocated_vini(::std::string* vini) { + if (vini != NULL) { + set_has_vini(); + } else { + clear_has_vini(); + } + vini_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), vini); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini) +} + +// optional bytes vini_hmac = 3; +inline bool MoneroTransactionSignInputRequest::has_vini_hmac() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionSignInputRequest::set_has_vini_hmac() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionSignInputRequest::clear_has_vini_hmac() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionSignInputRequest::clear_vini_hmac() { + vini_hmac_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_vini_hmac(); +} +inline const ::std::string& MoneroTransactionSignInputRequest::vini_hmac() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini_hmac) + return vini_hmac_.GetNoArena(); +} +inline void MoneroTransactionSignInputRequest::set_vini_hmac(const ::std::string& value) { + set_has_vini_hmac(); + vini_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini_hmac) +} +#if LANG_CXX11 +inline void MoneroTransactionSignInputRequest::set_vini_hmac(::std::string&& value) { + set_has_vini_hmac(); + vini_hmac_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini_hmac) +} +#endif +inline void MoneroTransactionSignInputRequest::set_vini_hmac(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_vini_hmac(); + vini_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini_hmac) +} +inline void MoneroTransactionSignInputRequest::set_vini_hmac(const void* value, size_t size) { + set_has_vini_hmac(); + vini_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini_hmac) +} +inline ::std::string* MoneroTransactionSignInputRequest::mutable_vini_hmac() { + set_has_vini_hmac(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini_hmac) + return vini_hmac_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSignInputRequest::release_vini_hmac() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini_hmac) + if (!has_vini_hmac()) { + return NULL; + } + clear_has_vini_hmac(); + return vini_hmac_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSignInputRequest::set_allocated_vini_hmac(::std::string* vini_hmac) { + if (vini_hmac != NULL) { + set_has_vini_hmac(); + } else { + clear_has_vini_hmac(); + } + vini_hmac_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), vini_hmac); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.vini_hmac) +} + +// optional bytes pseudo_out = 4; +inline bool MoneroTransactionSignInputRequest::has_pseudo_out() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionSignInputRequest::set_has_pseudo_out() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionSignInputRequest::clear_has_pseudo_out() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionSignInputRequest::clear_pseudo_out() { + pseudo_out_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pseudo_out(); +} +inline const ::std::string& MoneroTransactionSignInputRequest::pseudo_out() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out) + return pseudo_out_.GetNoArena(); +} +inline void MoneroTransactionSignInputRequest::set_pseudo_out(const ::std::string& value) { + set_has_pseudo_out(); + pseudo_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out) +} +#if LANG_CXX11 +inline void MoneroTransactionSignInputRequest::set_pseudo_out(::std::string&& value) { + set_has_pseudo_out(); + pseudo_out_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out) +} +#endif +inline void MoneroTransactionSignInputRequest::set_pseudo_out(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pseudo_out(); + pseudo_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out) +} +inline void MoneroTransactionSignInputRequest::set_pseudo_out(const void* value, size_t size) { + set_has_pseudo_out(); + pseudo_out_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out) +} +inline ::std::string* MoneroTransactionSignInputRequest::mutable_pseudo_out() { + set_has_pseudo_out(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out) + return pseudo_out_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSignInputRequest::release_pseudo_out() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out) + if (!has_pseudo_out()) { + return NULL; + } + clear_has_pseudo_out(); + return pseudo_out_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSignInputRequest::set_allocated_pseudo_out(::std::string* pseudo_out) { + if (pseudo_out != NULL) { + set_has_pseudo_out(); + } else { + clear_has_pseudo_out(); + } + pseudo_out_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pseudo_out); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out) +} + +// optional bytes pseudo_out_hmac = 5; +inline bool MoneroTransactionSignInputRequest::has_pseudo_out_hmac() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroTransactionSignInputRequest::set_has_pseudo_out_hmac() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroTransactionSignInputRequest::clear_has_pseudo_out_hmac() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroTransactionSignInputRequest::clear_pseudo_out_hmac() { + pseudo_out_hmac_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pseudo_out_hmac(); +} +inline const ::std::string& MoneroTransactionSignInputRequest::pseudo_out_hmac() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_hmac) + return pseudo_out_hmac_.GetNoArena(); +} +inline void MoneroTransactionSignInputRequest::set_pseudo_out_hmac(const ::std::string& value) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_hmac) +} +#if LANG_CXX11 +inline void MoneroTransactionSignInputRequest::set_pseudo_out_hmac(::std::string&& value) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_hmac) +} +#endif +inline void MoneroTransactionSignInputRequest::set_pseudo_out_hmac(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_hmac) +} +inline void MoneroTransactionSignInputRequest::set_pseudo_out_hmac(const void* value, size_t size) { + set_has_pseudo_out_hmac(); + pseudo_out_hmac_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_hmac) +} +inline ::std::string* MoneroTransactionSignInputRequest::mutable_pseudo_out_hmac() { + set_has_pseudo_out_hmac(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_hmac) + return pseudo_out_hmac_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSignInputRequest::release_pseudo_out_hmac() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_hmac) + if (!has_pseudo_out_hmac()) { + return NULL; + } + clear_has_pseudo_out_hmac(); + return pseudo_out_hmac_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSignInputRequest::set_allocated_pseudo_out_hmac(::std::string* pseudo_out_hmac) { + if (pseudo_out_hmac != NULL) { + set_has_pseudo_out_hmac(); + } else { + clear_has_pseudo_out_hmac(); + } + pseudo_out_hmac_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pseudo_out_hmac); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_hmac) +} + +// optional bytes pseudo_out_alpha = 6; +inline bool MoneroTransactionSignInputRequest::has_pseudo_out_alpha() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void MoneroTransactionSignInputRequest::set_has_pseudo_out_alpha() { + _has_bits_[0] |= 0x00000010u; +} +inline void MoneroTransactionSignInputRequest::clear_has_pseudo_out_alpha() { + _has_bits_[0] &= ~0x00000010u; +} +inline void MoneroTransactionSignInputRequest::clear_pseudo_out_alpha() { + pseudo_out_alpha_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_pseudo_out_alpha(); +} +inline const ::std::string& MoneroTransactionSignInputRequest::pseudo_out_alpha() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_alpha) + return pseudo_out_alpha_.GetNoArena(); +} +inline void MoneroTransactionSignInputRequest::set_pseudo_out_alpha(const ::std::string& value) { + set_has_pseudo_out_alpha(); + pseudo_out_alpha_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_alpha) +} +#if LANG_CXX11 +inline void MoneroTransactionSignInputRequest::set_pseudo_out_alpha(::std::string&& value) { + set_has_pseudo_out_alpha(); + pseudo_out_alpha_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_alpha) +} +#endif +inline void MoneroTransactionSignInputRequest::set_pseudo_out_alpha(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_pseudo_out_alpha(); + pseudo_out_alpha_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_alpha) +} +inline void MoneroTransactionSignInputRequest::set_pseudo_out_alpha(const void* value, size_t size) { + set_has_pseudo_out_alpha(); + pseudo_out_alpha_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_alpha) +} +inline ::std::string* MoneroTransactionSignInputRequest::mutable_pseudo_out_alpha() { + set_has_pseudo_out_alpha(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_alpha) + return pseudo_out_alpha_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSignInputRequest::release_pseudo_out_alpha() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_alpha) + if (!has_pseudo_out_alpha()) { + return NULL; + } + clear_has_pseudo_out_alpha(); + return pseudo_out_alpha_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSignInputRequest::set_allocated_pseudo_out_alpha(::std::string* pseudo_out_alpha) { + if (pseudo_out_alpha != NULL) { + set_has_pseudo_out_alpha(); + } else { + clear_has_pseudo_out_alpha(); + } + pseudo_out_alpha_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pseudo_out_alpha); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.pseudo_out_alpha) +} + +// optional bytes spend_key = 7; +inline bool MoneroTransactionSignInputRequest::has_spend_key() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void MoneroTransactionSignInputRequest::set_has_spend_key() { + _has_bits_[0] |= 0x00000020u; +} +inline void MoneroTransactionSignInputRequest::clear_has_spend_key() { + _has_bits_[0] &= ~0x00000020u; +} +inline void MoneroTransactionSignInputRequest::clear_spend_key() { + spend_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_spend_key(); +} +inline const ::std::string& MoneroTransactionSignInputRequest::spend_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.spend_key) + return spend_key_.GetNoArena(); +} +inline void MoneroTransactionSignInputRequest::set_spend_key(const ::std::string& value) { + set_has_spend_key(); + spend_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.spend_key) +} +#if LANG_CXX11 +inline void MoneroTransactionSignInputRequest::set_spend_key(::std::string&& value) { + set_has_spend_key(); + spend_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.spend_key) +} +#endif +inline void MoneroTransactionSignInputRequest::set_spend_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_spend_key(); + spend_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.spend_key) +} +inline void MoneroTransactionSignInputRequest::set_spend_key(const void* value, size_t size) { + set_has_spend_key(); + spend_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.spend_key) +} +inline ::std::string* MoneroTransactionSignInputRequest::mutable_spend_key() { + set_has_spend_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.spend_key) + return spend_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSignInputRequest::release_spend_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.spend_key) + if (!has_spend_key()) { + return NULL; + } + clear_has_spend_key(); + return spend_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSignInputRequest::set_allocated_spend_key(::std::string* spend_key) { + if (spend_key != NULL) { + set_has_spend_key(); + } else { + clear_has_spend_key(); + } + spend_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), spend_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSignInputRequest.spend_key) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionSignInputAck + +// optional bytes signature = 1; +inline bool MoneroTransactionSignInputAck::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionSignInputAck::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionSignInputAck::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionSignInputAck::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& MoneroTransactionSignInputAck::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionSignInputAck.signature) + return signature_.GetNoArena(); +} +inline void MoneroTransactionSignInputAck::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionSignInputAck.signature) +} +#if LANG_CXX11 +inline void MoneroTransactionSignInputAck::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionSignInputAck.signature) +} +#endif +inline void MoneroTransactionSignInputAck::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionSignInputAck.signature) +} +inline void MoneroTransactionSignInputAck::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionSignInputAck.signature) +} +inline ::std::string* MoneroTransactionSignInputAck::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionSignInputAck.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionSignInputAck::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionSignInputAck.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionSignInputAck::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionSignInputAck.signature) +} + +// ------------------------------------------------------------------- + +// MoneroTransactionFinalRequest + +// ------------------------------------------------------------------- + +// MoneroTransactionFinalAck + +// optional bytes cout_key = 1; +inline bool MoneroTransactionFinalAck::has_cout_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroTransactionFinalAck::set_has_cout_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroTransactionFinalAck::clear_has_cout_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroTransactionFinalAck::clear_cout_key() { + cout_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_cout_key(); +} +inline const ::std::string& MoneroTransactionFinalAck::cout_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionFinalAck.cout_key) + return cout_key_.GetNoArena(); +} +inline void MoneroTransactionFinalAck::set_cout_key(const ::std::string& value) { + set_has_cout_key(); + cout_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionFinalAck.cout_key) +} +#if LANG_CXX11 +inline void MoneroTransactionFinalAck::set_cout_key(::std::string&& value) { + set_has_cout_key(); + cout_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionFinalAck.cout_key) +} +#endif +inline void MoneroTransactionFinalAck::set_cout_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_cout_key(); + cout_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionFinalAck.cout_key) +} +inline void MoneroTransactionFinalAck::set_cout_key(const void* value, size_t size) { + set_has_cout_key(); + cout_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionFinalAck.cout_key) +} +inline ::std::string* MoneroTransactionFinalAck::mutable_cout_key() { + set_has_cout_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionFinalAck.cout_key) + return cout_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionFinalAck::release_cout_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionFinalAck.cout_key) + if (!has_cout_key()) { + return NULL; + } + clear_has_cout_key(); + return cout_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionFinalAck::set_allocated_cout_key(::std::string* cout_key) { + if (cout_key != NULL) { + set_has_cout_key(); + } else { + clear_has_cout_key(); + } + cout_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cout_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionFinalAck.cout_key) +} + +// optional bytes salt = 2; +inline bool MoneroTransactionFinalAck::has_salt() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroTransactionFinalAck::set_has_salt() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroTransactionFinalAck::clear_has_salt() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroTransactionFinalAck::clear_salt() { + salt_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_salt(); +} +inline const ::std::string& MoneroTransactionFinalAck::salt() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionFinalAck.salt) + return salt_.GetNoArena(); +} +inline void MoneroTransactionFinalAck::set_salt(const ::std::string& value) { + set_has_salt(); + salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionFinalAck.salt) +} +#if LANG_CXX11 +inline void MoneroTransactionFinalAck::set_salt(::std::string&& value) { + set_has_salt(); + salt_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionFinalAck.salt) +} +#endif +inline void MoneroTransactionFinalAck::set_salt(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_salt(); + salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionFinalAck.salt) +} +inline void MoneroTransactionFinalAck::set_salt(const void* value, size_t size) { + set_has_salt(); + salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionFinalAck.salt) +} +inline ::std::string* MoneroTransactionFinalAck::mutable_salt() { + set_has_salt(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionFinalAck.salt) + return salt_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionFinalAck::release_salt() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionFinalAck.salt) + if (!has_salt()) { + return NULL; + } + clear_has_salt(); + return salt_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionFinalAck::set_allocated_salt(::std::string* salt) { + if (salt != NULL) { + set_has_salt(); + } else { + clear_has_salt(); + } + salt_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), salt); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionFinalAck.salt) +} + +// optional bytes rand_mult = 3; +inline bool MoneroTransactionFinalAck::has_rand_mult() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroTransactionFinalAck::set_has_rand_mult() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroTransactionFinalAck::clear_has_rand_mult() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroTransactionFinalAck::clear_rand_mult() { + rand_mult_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_rand_mult(); +} +inline const ::std::string& MoneroTransactionFinalAck::rand_mult() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionFinalAck.rand_mult) + return rand_mult_.GetNoArena(); +} +inline void MoneroTransactionFinalAck::set_rand_mult(const ::std::string& value) { + set_has_rand_mult(); + rand_mult_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionFinalAck.rand_mult) +} +#if LANG_CXX11 +inline void MoneroTransactionFinalAck::set_rand_mult(::std::string&& value) { + set_has_rand_mult(); + rand_mult_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionFinalAck.rand_mult) +} +#endif +inline void MoneroTransactionFinalAck::set_rand_mult(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_rand_mult(); + rand_mult_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionFinalAck.rand_mult) +} +inline void MoneroTransactionFinalAck::set_rand_mult(const void* value, size_t size) { + set_has_rand_mult(); + rand_mult_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionFinalAck.rand_mult) +} +inline ::std::string* MoneroTransactionFinalAck::mutable_rand_mult() { + set_has_rand_mult(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionFinalAck.rand_mult) + return rand_mult_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionFinalAck::release_rand_mult() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionFinalAck.rand_mult) + if (!has_rand_mult()) { + return NULL; + } + clear_has_rand_mult(); + return rand_mult_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionFinalAck::set_allocated_rand_mult(::std::string* rand_mult) { + if (rand_mult != NULL) { + set_has_rand_mult(); + } else { + clear_has_rand_mult(); + } + rand_mult_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rand_mult); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionFinalAck.rand_mult) +} + +// optional bytes tx_enc_keys = 4; +inline bool MoneroTransactionFinalAck::has_tx_enc_keys() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroTransactionFinalAck::set_has_tx_enc_keys() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroTransactionFinalAck::clear_has_tx_enc_keys() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroTransactionFinalAck::clear_tx_enc_keys() { + tx_enc_keys_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_enc_keys(); +} +inline const ::std::string& MoneroTransactionFinalAck::tx_enc_keys() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroTransactionFinalAck.tx_enc_keys) + return tx_enc_keys_.GetNoArena(); +} +inline void MoneroTransactionFinalAck::set_tx_enc_keys(const ::std::string& value) { + set_has_tx_enc_keys(); + tx_enc_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroTransactionFinalAck.tx_enc_keys) +} +#if LANG_CXX11 +inline void MoneroTransactionFinalAck::set_tx_enc_keys(::std::string&& value) { + set_has_tx_enc_keys(); + tx_enc_keys_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroTransactionFinalAck.tx_enc_keys) +} +#endif +inline void MoneroTransactionFinalAck::set_tx_enc_keys(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_enc_keys(); + tx_enc_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroTransactionFinalAck.tx_enc_keys) +} +inline void MoneroTransactionFinalAck::set_tx_enc_keys(const void* value, size_t size) { + set_has_tx_enc_keys(); + tx_enc_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroTransactionFinalAck.tx_enc_keys) +} +inline ::std::string* MoneroTransactionFinalAck::mutable_tx_enc_keys() { + set_has_tx_enc_keys(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroTransactionFinalAck.tx_enc_keys) + return tx_enc_keys_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroTransactionFinalAck::release_tx_enc_keys() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroTransactionFinalAck.tx_enc_keys) + if (!has_tx_enc_keys()) { + return NULL; + } + clear_has_tx_enc_keys(); + return tx_enc_keys_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroTransactionFinalAck::set_allocated_tx_enc_keys(::std::string* tx_enc_keys) { + if (tx_enc_keys != NULL) { + set_has_tx_enc_keys(); + } else { + clear_has_tx_enc_keys(); + } + tx_enc_keys_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_enc_keys); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroTransactionFinalAck.tx_enc_keys) +} + +// ------------------------------------------------------------------- + +// MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList + +// optional uint32 account = 1; +inline bool MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::has_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::set_has_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::clear_has_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::clear_account() { + account_ = 0u; + clear_has_account(); +} +inline ::google::protobuf::uint32 MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList.account) + return account_; +} +inline void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::set_account(::google::protobuf::uint32 value) { + set_has_account(); + account_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList.account) +} + +// repeated uint32 minor_indices = 2; +inline int MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::minor_indices_size() const { + return minor_indices_.size(); +} +inline void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::clear_minor_indices() { + minor_indices_.Clear(); +} +inline ::google::protobuf::uint32 MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::minor_indices(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList.minor_indices) + return minor_indices_.Get(index); +} +inline void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::set_minor_indices(int index, ::google::protobuf::uint32 value) { + minor_indices_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList.minor_indices) +} +inline void MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::add_minor_indices(::google::protobuf::uint32 value) { + minor_indices_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList.minor_indices) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::minor_indices() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList.minor_indices) + return minor_indices_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList::mutable_minor_indices() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList.minor_indices) + return &minor_indices_; +} + +// ------------------------------------------------------------------- + +// MoneroKeyImageExportInitRequest + +// optional uint64 num = 1; +inline bool MoneroKeyImageExportInitRequest::has_num() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroKeyImageExportInitRequest::set_has_num() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroKeyImageExportInitRequest::clear_has_num() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroKeyImageExportInitRequest::clear_num() { + num_ = GOOGLE_ULONGLONG(0); + clear_has_num(); +} +inline ::google::protobuf::uint64 MoneroKeyImageExportInitRequest::num() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.num) + return num_; +} +inline void MoneroKeyImageExportInitRequest::set_num(::google::protobuf::uint64 value) { + set_has_num(); + num_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.num) +} + +// optional bytes hash = 2; +inline bool MoneroKeyImageExportInitRequest::has_hash() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroKeyImageExportInitRequest::set_has_hash() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroKeyImageExportInitRequest::clear_has_hash() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroKeyImageExportInitRequest::clear_hash() { + hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_hash(); +} +inline const ::std::string& MoneroKeyImageExportInitRequest::hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.hash) + return hash_.GetNoArena(); +} +inline void MoneroKeyImageExportInitRequest::set_hash(const ::std::string& value) { + set_has_hash(); + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.hash) +} +#if LANG_CXX11 +inline void MoneroKeyImageExportInitRequest::set_hash(::std::string&& value) { + set_has_hash(); + hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.hash) +} +#endif +inline void MoneroKeyImageExportInitRequest::set_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_hash(); + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.hash) +} +inline void MoneroKeyImageExportInitRequest::set_hash(const void* value, size_t size) { + set_has_hash(); + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.hash) +} +inline ::std::string* MoneroKeyImageExportInitRequest::mutable_hash() { + set_has_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.hash) + return hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroKeyImageExportInitRequest::release_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.hash) + if (!has_hash()) { + return NULL; + } + clear_has_hash(); + return hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroKeyImageExportInitRequest::set_allocated_hash(::std::string* hash) { + if (hash != NULL) { + set_has_hash(); + } else { + clear_has_hash(); + } + hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.hash) +} + +// repeated uint32 address_n = 3; +inline int MoneroKeyImageExportInitRequest::address_n_size() const { + return address_n_.size(); +} +inline void MoneroKeyImageExportInitRequest::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 MoneroKeyImageExportInitRequest::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.address_n) + return address_n_.Get(index); +} +inline void MoneroKeyImageExportInitRequest::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.address_n) +} +inline void MoneroKeyImageExportInitRequest::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MoneroKeyImageExportInitRequest::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MoneroKeyImageExportInitRequest::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.address_n) + return &address_n_; +} + +// optional uint32 network_type = 4; +inline bool MoneroKeyImageExportInitRequest::has_network_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroKeyImageExportInitRequest::set_has_network_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroKeyImageExportInitRequest::clear_has_network_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroKeyImageExportInitRequest::clear_network_type() { + network_type_ = 0u; + clear_has_network_type(); +} +inline ::google::protobuf::uint32 MoneroKeyImageExportInitRequest::network_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.network_type) + return network_type_; +} +inline void MoneroKeyImageExportInitRequest::set_network_type(::google::protobuf::uint32 value) { + set_has_network_type(); + network_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.network_type) +} + +// repeated .hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.MoneroSubAddressIndicesList subs = 5; +inline int MoneroKeyImageExportInitRequest::subs_size() const { + return subs_.size(); +} +inline void MoneroKeyImageExportInitRequest::clear_subs() { + subs_.Clear(); +} +inline ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* MoneroKeyImageExportInitRequest::mutable_subs(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.subs) + return subs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList >* +MoneroKeyImageExportInitRequest::mutable_subs() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.subs) + return &subs_; +} +inline const ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList& MoneroKeyImageExportInitRequest::subs(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.subs) + return subs_.Get(index); +} +inline ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList* MoneroKeyImageExportInitRequest::add_subs() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.subs) + return subs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageExportInitRequest_MoneroSubAddressIndicesList >& +MoneroKeyImageExportInitRequest::subs() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroKeyImageExportInitRequest.subs) + return subs_; +} + +// ------------------------------------------------------------------- + +// MoneroKeyImageExportInitAck + +// ------------------------------------------------------------------- + +// MoneroKeyImageSyncStepRequest_MoneroTransferDetails + +// optional bytes out_key = 1; +inline bool MoneroKeyImageSyncStepRequest_MoneroTransferDetails::has_out_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_has_out_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::clear_has_out_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::clear_out_key() { + out_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_out_key(); +} +inline const ::std::string& MoneroKeyImageSyncStepRequest_MoneroTransferDetails::out_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.out_key) + return out_key_.GetNoArena(); +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_out_key(const ::std::string& value) { + set_has_out_key(); + out_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.out_key) +} +#if LANG_CXX11 +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_out_key(::std::string&& value) { + set_has_out_key(); + out_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.out_key) +} +#endif +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_out_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_out_key(); + out_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.out_key) +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_out_key(const void* value, size_t size) { + set_has_out_key(); + out_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.out_key) +} +inline ::std::string* MoneroKeyImageSyncStepRequest_MoneroTransferDetails::mutable_out_key() { + set_has_out_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.out_key) + return out_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroKeyImageSyncStepRequest_MoneroTransferDetails::release_out_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.out_key) + if (!has_out_key()) { + return NULL; + } + clear_has_out_key(); + return out_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_allocated_out_key(::std::string* out_key) { + if (out_key != NULL) { + set_has_out_key(); + } else { + clear_has_out_key(); + } + out_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), out_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.out_key) +} + +// optional bytes tx_pub_key = 2; +inline bool MoneroKeyImageSyncStepRequest_MoneroTransferDetails::has_tx_pub_key() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_has_tx_pub_key() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::clear_has_tx_pub_key() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::clear_tx_pub_key() { + tx_pub_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_pub_key(); +} +inline const ::std::string& MoneroKeyImageSyncStepRequest_MoneroTransferDetails::tx_pub_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.tx_pub_key) + return tx_pub_key_.GetNoArena(); +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_tx_pub_key(const ::std::string& value) { + set_has_tx_pub_key(); + tx_pub_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.tx_pub_key) +} +#if LANG_CXX11 +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_tx_pub_key(::std::string&& value) { + set_has_tx_pub_key(); + tx_pub_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.tx_pub_key) +} +#endif +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_tx_pub_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_pub_key(); + tx_pub_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.tx_pub_key) +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_tx_pub_key(const void* value, size_t size) { + set_has_tx_pub_key(); + tx_pub_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.tx_pub_key) +} +inline ::std::string* MoneroKeyImageSyncStepRequest_MoneroTransferDetails::mutable_tx_pub_key() { + set_has_tx_pub_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.tx_pub_key) + return tx_pub_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroKeyImageSyncStepRequest_MoneroTransferDetails::release_tx_pub_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.tx_pub_key) + if (!has_tx_pub_key()) { + return NULL; + } + clear_has_tx_pub_key(); + return tx_pub_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_allocated_tx_pub_key(::std::string* tx_pub_key) { + if (tx_pub_key != NULL) { + set_has_tx_pub_key(); + } else { + clear_has_tx_pub_key(); + } + tx_pub_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_pub_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.tx_pub_key) +} + +// repeated bytes additional_tx_pub_keys = 3; +inline int MoneroKeyImageSyncStepRequest_MoneroTransferDetails::additional_tx_pub_keys_size() const { + return additional_tx_pub_keys_.size(); +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::clear_additional_tx_pub_keys() { + additional_tx_pub_keys_.Clear(); +} +inline const ::std::string& MoneroKeyImageSyncStepRequest_MoneroTransferDetails::additional_tx_pub_keys(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) + return additional_tx_pub_keys_.Get(index); +} +inline ::std::string* MoneroKeyImageSyncStepRequest_MoneroTransferDetails::mutable_additional_tx_pub_keys(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) + return additional_tx_pub_keys_.Mutable(index); +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_additional_tx_pub_keys(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) + additional_tx_pub_keys_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_additional_tx_pub_keys(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) + additional_tx_pub_keys_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_additional_tx_pub_keys(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + additional_tx_pub_keys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_additional_tx_pub_keys(int index, const void* value, size_t size) { + additional_tx_pub_keys_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) +} +inline ::std::string* MoneroKeyImageSyncStepRequest_MoneroTransferDetails::add_additional_tx_pub_keys() { + // @@protoc_insertion_point(field_add_mutable:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) + return additional_tx_pub_keys_.Add(); +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::add_additional_tx_pub_keys(const ::std::string& value) { + additional_tx_pub_keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) +} +#if LANG_CXX11 +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::add_additional_tx_pub_keys(::std::string&& value) { + additional_tx_pub_keys_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) +} +#endif +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::add_additional_tx_pub_keys(const char* value) { + GOOGLE_DCHECK(value != NULL); + additional_tx_pub_keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::add_additional_tx_pub_keys(const void* value, size_t size) { + additional_tx_pub_keys_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +MoneroKeyImageSyncStepRequest_MoneroTransferDetails::additional_tx_pub_keys() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) + return additional_tx_pub_keys_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +MoneroKeyImageSyncStepRequest_MoneroTransferDetails::mutable_additional_tx_pub_keys() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.additional_tx_pub_keys) + return &additional_tx_pub_keys_; +} + +// optional uint64 internal_output_index = 4; +inline bool MoneroKeyImageSyncStepRequest_MoneroTransferDetails::has_internal_output_index() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_has_internal_output_index() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::clear_has_internal_output_index() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::clear_internal_output_index() { + internal_output_index_ = GOOGLE_ULONGLONG(0); + clear_has_internal_output_index(); +} +inline ::google::protobuf::uint64 MoneroKeyImageSyncStepRequest_MoneroTransferDetails::internal_output_index() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.internal_output_index) + return internal_output_index_; +} +inline void MoneroKeyImageSyncStepRequest_MoneroTransferDetails::set_internal_output_index(::google::protobuf::uint64 value) { + set_has_internal_output_index(); + internal_output_index_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails.internal_output_index) +} + +// ------------------------------------------------------------------- + +// MoneroKeyImageSyncStepRequest + +// repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.MoneroTransferDetails tdis = 1; +inline int MoneroKeyImageSyncStepRequest::tdis_size() const { + return tdis_.size(); +} +inline void MoneroKeyImageSyncStepRequest::clear_tdis() { + tdis_.Clear(); +} +inline ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails* MoneroKeyImageSyncStepRequest::mutable_tdis(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.tdis) + return tdis_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails >* +MoneroKeyImageSyncStepRequest::mutable_tdis() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.tdis) + return &tdis_; +} +inline const ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails& MoneroKeyImageSyncStepRequest::tdis(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.tdis) + return tdis_.Get(index); +} +inline ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails* MoneroKeyImageSyncStepRequest::add_tdis() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.tdis) + return tdis_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepRequest_MoneroTransferDetails >& +MoneroKeyImageSyncStepRequest::tdis() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroKeyImageSyncStepRequest.tdis) + return tdis_; +} + +// ------------------------------------------------------------------- + +// MoneroKeyImageSyncStepAck_MoneroExportedKeyImage + +// optional bytes iv = 1; +inline bool MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::has_iv() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_has_iv() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::clear_has_iv() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::clear_iv() { + iv_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_iv(); +} +inline const ::std::string& MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::iv() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.iv) + return iv_.GetNoArena(); +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_iv(const ::std::string& value) { + set_has_iv(); + iv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.iv) +} +#if LANG_CXX11 +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_iv(::std::string&& value) { + set_has_iv(); + iv_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.iv) +} +#endif +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_iv(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_iv(); + iv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.iv) +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_iv(const void* value, size_t size) { + set_has_iv(); + iv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.iv) +} +inline ::std::string* MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::mutable_iv() { + set_has_iv(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.iv) + return iv_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::release_iv() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.iv) + if (!has_iv()) { + return NULL; + } + clear_has_iv(); + return iv_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_allocated_iv(::std::string* iv) { + if (iv != NULL) { + set_has_iv(); + } else { + clear_has_iv(); + } + iv_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), iv); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.iv) +} + +// optional bytes blob = 3; +inline bool MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::has_blob() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_has_blob() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::clear_has_blob() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::clear_blob() { + blob_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_blob(); +} +inline const ::std::string& MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::blob() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.blob) + return blob_.GetNoArena(); +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_blob(const ::std::string& value) { + set_has_blob(); + blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.blob) +} +#if LANG_CXX11 +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_blob(::std::string&& value) { + set_has_blob(); + blob_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.blob) +} +#endif +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_blob(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_blob(); + blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.blob) +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_blob(const void* value, size_t size) { + set_has_blob(); + blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.blob) +} +inline ::std::string* MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::mutable_blob() { + set_has_blob(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.blob) + return blob_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::release_blob() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.blob) + if (!has_blob()) { + return NULL; + } + clear_has_blob(); + return blob_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroKeyImageSyncStepAck_MoneroExportedKeyImage::set_allocated_blob(::std::string* blob) { + if (blob != NULL) { + set_has_blob(); + } else { + clear_has_blob(); + } + blob_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), blob); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage.blob) +} + +// ------------------------------------------------------------------- + +// MoneroKeyImageSyncStepAck + +// repeated .hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.MoneroExportedKeyImage kis = 1; +inline int MoneroKeyImageSyncStepAck::kis_size() const { + return kis_.size(); +} +inline void MoneroKeyImageSyncStepAck::clear_kis() { + kis_.Clear(); +} +inline ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* MoneroKeyImageSyncStepAck::mutable_kis(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.kis) + return kis_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage >* +MoneroKeyImageSyncStepAck::mutable_kis() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.kis) + return &kis_; +} +inline const ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage& MoneroKeyImageSyncStepAck::kis(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.kis) + return kis_.Get(index); +} +inline ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage* MoneroKeyImageSyncStepAck::add_kis() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.kis) + return kis_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::monero::MoneroKeyImageSyncStepAck_MoneroExportedKeyImage >& +MoneroKeyImageSyncStepAck::kis() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroKeyImageSyncStepAck.kis) + return kis_; +} + +// ------------------------------------------------------------------- + +// MoneroKeyImageSyncFinalRequest + +// ------------------------------------------------------------------- + +// MoneroKeyImageSyncFinalAck + +// optional bytes enc_key = 1; +inline bool MoneroKeyImageSyncFinalAck::has_enc_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroKeyImageSyncFinalAck::set_has_enc_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroKeyImageSyncFinalAck::clear_has_enc_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroKeyImageSyncFinalAck::clear_enc_key() { + enc_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_enc_key(); +} +inline const ::std::string& MoneroKeyImageSyncFinalAck::enc_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck.enc_key) + return enc_key_.GetNoArena(); +} +inline void MoneroKeyImageSyncFinalAck::set_enc_key(const ::std::string& value) { + set_has_enc_key(); + enc_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck.enc_key) +} +#if LANG_CXX11 +inline void MoneroKeyImageSyncFinalAck::set_enc_key(::std::string&& value) { + set_has_enc_key(); + enc_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck.enc_key) +} +#endif +inline void MoneroKeyImageSyncFinalAck::set_enc_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_enc_key(); + enc_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck.enc_key) +} +inline void MoneroKeyImageSyncFinalAck::set_enc_key(const void* value, size_t size) { + set_has_enc_key(); + enc_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck.enc_key) +} +inline ::std::string* MoneroKeyImageSyncFinalAck::mutable_enc_key() { + set_has_enc_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck.enc_key) + return enc_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroKeyImageSyncFinalAck::release_enc_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck.enc_key) + if (!has_enc_key()) { + return NULL; + } + clear_has_enc_key(); + return enc_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroKeyImageSyncFinalAck::set_allocated_enc_key(::std::string* enc_key) { + if (enc_key != NULL) { + set_has_enc_key(); + } else { + clear_has_enc_key(); + } + enc_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), enc_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroKeyImageSyncFinalAck.enc_key) +} + +// ------------------------------------------------------------------- + +// MoneroGetTxKeyRequest + +// repeated uint32 address_n = 1; +inline int MoneroGetTxKeyRequest::address_n_size() const { + return address_n_.size(); +} +inline void MoneroGetTxKeyRequest::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 MoneroGetTxKeyRequest::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetTxKeyRequest.address_n) + return address_n_.Get(index); +} +inline void MoneroGetTxKeyRequest::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetTxKeyRequest.address_n) +} +inline void MoneroGetTxKeyRequest::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroGetTxKeyRequest.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MoneroGetTxKeyRequest::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroGetTxKeyRequest.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MoneroGetTxKeyRequest::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroGetTxKeyRequest.address_n) + return &address_n_; +} + +// optional uint32 network_type = 2; +inline bool MoneroGetTxKeyRequest::has_network_type() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void MoneroGetTxKeyRequest::set_has_network_type() { + _has_bits_[0] |= 0x00000020u; +} +inline void MoneroGetTxKeyRequest::clear_has_network_type() { + _has_bits_[0] &= ~0x00000020u; +} +inline void MoneroGetTxKeyRequest::clear_network_type() { + network_type_ = 0u; + clear_has_network_type(); +} +inline ::google::protobuf::uint32 MoneroGetTxKeyRequest::network_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetTxKeyRequest.network_type) + return network_type_; +} +inline void MoneroGetTxKeyRequest::set_network_type(::google::protobuf::uint32 value) { + set_has_network_type(); + network_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetTxKeyRequest.network_type) +} + +// optional bytes salt1 = 3; +inline bool MoneroGetTxKeyRequest::has_salt1() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroGetTxKeyRequest::set_has_salt1() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroGetTxKeyRequest::clear_has_salt1() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroGetTxKeyRequest::clear_salt1() { + salt1_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_salt1(); +} +inline const ::std::string& MoneroGetTxKeyRequest::salt1() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt1) + return salt1_.GetNoArena(); +} +inline void MoneroGetTxKeyRequest::set_salt1(const ::std::string& value) { + set_has_salt1(); + salt1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt1) +} +#if LANG_CXX11 +inline void MoneroGetTxKeyRequest::set_salt1(::std::string&& value) { + set_has_salt1(); + salt1_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt1) +} +#endif +inline void MoneroGetTxKeyRequest::set_salt1(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_salt1(); + salt1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt1) +} +inline void MoneroGetTxKeyRequest::set_salt1(const void* value, size_t size) { + set_has_salt1(); + salt1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt1) +} +inline ::std::string* MoneroGetTxKeyRequest::mutable_salt1() { + set_has_salt1(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt1) + return salt1_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroGetTxKeyRequest::release_salt1() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt1) + if (!has_salt1()) { + return NULL; + } + clear_has_salt1(); + return salt1_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroGetTxKeyRequest::set_allocated_salt1(::std::string* salt1) { + if (salt1 != NULL) { + set_has_salt1(); + } else { + clear_has_salt1(); + } + salt1_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), salt1); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt1) +} + +// optional bytes salt2 = 4; +inline bool MoneroGetTxKeyRequest::has_salt2() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroGetTxKeyRequest::set_has_salt2() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroGetTxKeyRequest::clear_has_salt2() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroGetTxKeyRequest::clear_salt2() { + salt2_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_salt2(); +} +inline const ::std::string& MoneroGetTxKeyRequest::salt2() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt2) + return salt2_.GetNoArena(); +} +inline void MoneroGetTxKeyRequest::set_salt2(const ::std::string& value) { + set_has_salt2(); + salt2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt2) +} +#if LANG_CXX11 +inline void MoneroGetTxKeyRequest::set_salt2(::std::string&& value) { + set_has_salt2(); + salt2_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt2) +} +#endif +inline void MoneroGetTxKeyRequest::set_salt2(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_salt2(); + salt2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt2) +} +inline void MoneroGetTxKeyRequest::set_salt2(const void* value, size_t size) { + set_has_salt2(); + salt2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt2) +} +inline ::std::string* MoneroGetTxKeyRequest::mutable_salt2() { + set_has_salt2(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt2) + return salt2_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroGetTxKeyRequest::release_salt2() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt2) + if (!has_salt2()) { + return NULL; + } + clear_has_salt2(); + return salt2_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroGetTxKeyRequest::set_allocated_salt2(::std::string* salt2) { + if (salt2 != NULL) { + set_has_salt2(); + } else { + clear_has_salt2(); + } + salt2_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), salt2); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroGetTxKeyRequest.salt2) +} + +// optional bytes tx_enc_keys = 5; +inline bool MoneroGetTxKeyRequest::has_tx_enc_keys() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroGetTxKeyRequest::set_has_tx_enc_keys() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroGetTxKeyRequest::clear_has_tx_enc_keys() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroGetTxKeyRequest::clear_tx_enc_keys() { + tx_enc_keys_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_enc_keys(); +} +inline const ::std::string& MoneroGetTxKeyRequest::tx_enc_keys() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_enc_keys) + return tx_enc_keys_.GetNoArena(); +} +inline void MoneroGetTxKeyRequest::set_tx_enc_keys(const ::std::string& value) { + set_has_tx_enc_keys(); + tx_enc_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_enc_keys) +} +#if LANG_CXX11 +inline void MoneroGetTxKeyRequest::set_tx_enc_keys(::std::string&& value) { + set_has_tx_enc_keys(); + tx_enc_keys_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_enc_keys) +} +#endif +inline void MoneroGetTxKeyRequest::set_tx_enc_keys(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_enc_keys(); + tx_enc_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_enc_keys) +} +inline void MoneroGetTxKeyRequest::set_tx_enc_keys(const void* value, size_t size) { + set_has_tx_enc_keys(); + tx_enc_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_enc_keys) +} +inline ::std::string* MoneroGetTxKeyRequest::mutable_tx_enc_keys() { + set_has_tx_enc_keys(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_enc_keys) + return tx_enc_keys_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroGetTxKeyRequest::release_tx_enc_keys() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_enc_keys) + if (!has_tx_enc_keys()) { + return NULL; + } + clear_has_tx_enc_keys(); + return tx_enc_keys_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroGetTxKeyRequest::set_allocated_tx_enc_keys(::std::string* tx_enc_keys) { + if (tx_enc_keys != NULL) { + set_has_tx_enc_keys(); + } else { + clear_has_tx_enc_keys(); + } + tx_enc_keys_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_enc_keys); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_enc_keys) +} + +// optional bytes tx_prefix_hash = 6; +inline bool MoneroGetTxKeyRequest::has_tx_prefix_hash() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroGetTxKeyRequest::set_has_tx_prefix_hash() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroGetTxKeyRequest::clear_has_tx_prefix_hash() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroGetTxKeyRequest::clear_tx_prefix_hash() { + tx_prefix_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_prefix_hash(); +} +inline const ::std::string& MoneroGetTxKeyRequest::tx_prefix_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_prefix_hash) + return tx_prefix_hash_.GetNoArena(); +} +inline void MoneroGetTxKeyRequest::set_tx_prefix_hash(const ::std::string& value) { + set_has_tx_prefix_hash(); + tx_prefix_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_prefix_hash) +} +#if LANG_CXX11 +inline void MoneroGetTxKeyRequest::set_tx_prefix_hash(::std::string&& value) { + set_has_tx_prefix_hash(); + tx_prefix_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_prefix_hash) +} +#endif +inline void MoneroGetTxKeyRequest::set_tx_prefix_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_prefix_hash(); + tx_prefix_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_prefix_hash) +} +inline void MoneroGetTxKeyRequest::set_tx_prefix_hash(const void* value, size_t size) { + set_has_tx_prefix_hash(); + tx_prefix_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_prefix_hash) +} +inline ::std::string* MoneroGetTxKeyRequest::mutable_tx_prefix_hash() { + set_has_tx_prefix_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_prefix_hash) + return tx_prefix_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroGetTxKeyRequest::release_tx_prefix_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_prefix_hash) + if (!has_tx_prefix_hash()) { + return NULL; + } + clear_has_tx_prefix_hash(); + return tx_prefix_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroGetTxKeyRequest::set_allocated_tx_prefix_hash(::std::string* tx_prefix_hash) { + if (tx_prefix_hash != NULL) { + set_has_tx_prefix_hash(); + } else { + clear_has_tx_prefix_hash(); + } + tx_prefix_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_prefix_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroGetTxKeyRequest.tx_prefix_hash) +} + +// optional uint32 reason = 7; +inline bool MoneroGetTxKeyRequest::has_reason() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void MoneroGetTxKeyRequest::set_has_reason() { + _has_bits_[0] |= 0x00000040u; +} +inline void MoneroGetTxKeyRequest::clear_has_reason() { + _has_bits_[0] &= ~0x00000040u; +} +inline void MoneroGetTxKeyRequest::clear_reason() { + reason_ = 0u; + clear_has_reason(); +} +inline ::google::protobuf::uint32 MoneroGetTxKeyRequest::reason() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetTxKeyRequest.reason) + return reason_; +} +inline void MoneroGetTxKeyRequest::set_reason(::google::protobuf::uint32 value) { + set_has_reason(); + reason_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetTxKeyRequest.reason) +} + +// optional bytes view_public_key = 8; +inline bool MoneroGetTxKeyRequest::has_view_public_key() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void MoneroGetTxKeyRequest::set_has_view_public_key() { + _has_bits_[0] |= 0x00000010u; +} +inline void MoneroGetTxKeyRequest::clear_has_view_public_key() { + _has_bits_[0] &= ~0x00000010u; +} +inline void MoneroGetTxKeyRequest::clear_view_public_key() { + view_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_view_public_key(); +} +inline const ::std::string& MoneroGetTxKeyRequest::view_public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetTxKeyRequest.view_public_key) + return view_public_key_.GetNoArena(); +} +inline void MoneroGetTxKeyRequest::set_view_public_key(const ::std::string& value) { + set_has_view_public_key(); + view_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetTxKeyRequest.view_public_key) +} +#if LANG_CXX11 +inline void MoneroGetTxKeyRequest::set_view_public_key(::std::string&& value) { + set_has_view_public_key(); + view_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroGetTxKeyRequest.view_public_key) +} +#endif +inline void MoneroGetTxKeyRequest::set_view_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_view_public_key(); + view_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroGetTxKeyRequest.view_public_key) +} +inline void MoneroGetTxKeyRequest::set_view_public_key(const void* value, size_t size) { + set_has_view_public_key(); + view_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroGetTxKeyRequest.view_public_key) +} +inline ::std::string* MoneroGetTxKeyRequest::mutable_view_public_key() { + set_has_view_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroGetTxKeyRequest.view_public_key) + return view_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroGetTxKeyRequest::release_view_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroGetTxKeyRequest.view_public_key) + if (!has_view_public_key()) { + return NULL; + } + clear_has_view_public_key(); + return view_public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroGetTxKeyRequest::set_allocated_view_public_key(::std::string* view_public_key) { + if (view_public_key != NULL) { + set_has_view_public_key(); + } else { + clear_has_view_public_key(); + } + view_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), view_public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroGetTxKeyRequest.view_public_key) +} + +// ------------------------------------------------------------------- + +// MoneroGetTxKeyAck + +// optional bytes salt = 1; +inline bool MoneroGetTxKeyAck::has_salt() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroGetTxKeyAck::set_has_salt() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroGetTxKeyAck::clear_has_salt() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroGetTxKeyAck::clear_salt() { + salt_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_salt(); +} +inline const ::std::string& MoneroGetTxKeyAck::salt() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetTxKeyAck.salt) + return salt_.GetNoArena(); +} +inline void MoneroGetTxKeyAck::set_salt(const ::std::string& value) { + set_has_salt(); + salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetTxKeyAck.salt) +} +#if LANG_CXX11 +inline void MoneroGetTxKeyAck::set_salt(::std::string&& value) { + set_has_salt(); + salt_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroGetTxKeyAck.salt) +} +#endif +inline void MoneroGetTxKeyAck::set_salt(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_salt(); + salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroGetTxKeyAck.salt) +} +inline void MoneroGetTxKeyAck::set_salt(const void* value, size_t size) { + set_has_salt(); + salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroGetTxKeyAck.salt) +} +inline ::std::string* MoneroGetTxKeyAck::mutable_salt() { + set_has_salt(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroGetTxKeyAck.salt) + return salt_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroGetTxKeyAck::release_salt() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroGetTxKeyAck.salt) + if (!has_salt()) { + return NULL; + } + clear_has_salt(); + return salt_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroGetTxKeyAck::set_allocated_salt(::std::string* salt) { + if (salt != NULL) { + set_has_salt(); + } else { + clear_has_salt(); + } + salt_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), salt); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroGetTxKeyAck.salt) +} + +// optional bytes tx_keys = 2; +inline bool MoneroGetTxKeyAck::has_tx_keys() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroGetTxKeyAck::set_has_tx_keys() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroGetTxKeyAck::clear_has_tx_keys() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroGetTxKeyAck::clear_tx_keys() { + tx_keys_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_keys(); +} +inline const ::std::string& MoneroGetTxKeyAck::tx_keys() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_keys) + return tx_keys_.GetNoArena(); +} +inline void MoneroGetTxKeyAck::set_tx_keys(const ::std::string& value) { + set_has_tx_keys(); + tx_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_keys) +} +#if LANG_CXX11 +inline void MoneroGetTxKeyAck::set_tx_keys(::std::string&& value) { + set_has_tx_keys(); + tx_keys_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_keys) +} +#endif +inline void MoneroGetTxKeyAck::set_tx_keys(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_keys(); + tx_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_keys) +} +inline void MoneroGetTxKeyAck::set_tx_keys(const void* value, size_t size) { + set_has_tx_keys(); + tx_keys_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_keys) +} +inline ::std::string* MoneroGetTxKeyAck::mutable_tx_keys() { + set_has_tx_keys(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_keys) + return tx_keys_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroGetTxKeyAck::release_tx_keys() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_keys) + if (!has_tx_keys()) { + return NULL; + } + clear_has_tx_keys(); + return tx_keys_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroGetTxKeyAck::set_allocated_tx_keys(::std::string* tx_keys) { + if (tx_keys != NULL) { + set_has_tx_keys(); + } else { + clear_has_tx_keys(); + } + tx_keys_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_keys); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_keys) +} + +// optional bytes tx_derivations = 3; +inline bool MoneroGetTxKeyAck::has_tx_derivations() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroGetTxKeyAck::set_has_tx_derivations() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroGetTxKeyAck::clear_has_tx_derivations() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroGetTxKeyAck::clear_tx_derivations() { + tx_derivations_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_tx_derivations(); +} +inline const ::std::string& MoneroGetTxKeyAck::tx_derivations() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_derivations) + return tx_derivations_.GetNoArena(); +} +inline void MoneroGetTxKeyAck::set_tx_derivations(const ::std::string& value) { + set_has_tx_derivations(); + tx_derivations_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_derivations) +} +#if LANG_CXX11 +inline void MoneroGetTxKeyAck::set_tx_derivations(::std::string&& value) { + set_has_tx_derivations(); + tx_derivations_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_derivations) +} +#endif +inline void MoneroGetTxKeyAck::set_tx_derivations(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_tx_derivations(); + tx_derivations_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_derivations) +} +inline void MoneroGetTxKeyAck::set_tx_derivations(const void* value, size_t size) { + set_has_tx_derivations(); + tx_derivations_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_derivations) +} +inline ::std::string* MoneroGetTxKeyAck::mutable_tx_derivations() { + set_has_tx_derivations(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_derivations) + return tx_derivations_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroGetTxKeyAck::release_tx_derivations() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_derivations) + if (!has_tx_derivations()) { + return NULL; + } + clear_has_tx_derivations(); + return tx_derivations_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroGetTxKeyAck::set_allocated_tx_derivations(::std::string* tx_derivations) { + if (tx_derivations != NULL) { + set_has_tx_derivations(); + } else { + clear_has_tx_derivations(); + } + tx_derivations_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tx_derivations); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroGetTxKeyAck.tx_derivations) +} + +// ------------------------------------------------------------------- + +// MoneroLiveRefreshStartRequest + +// repeated uint32 address_n = 1; +inline int MoneroLiveRefreshStartRequest::address_n_size() const { + return address_n_.size(); +} +inline void MoneroLiveRefreshStartRequest::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 MoneroLiveRefreshStartRequest::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest.address_n) + return address_n_.Get(index); +} +inline void MoneroLiveRefreshStartRequest::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest.address_n) +} +inline void MoneroLiveRefreshStartRequest::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +MoneroLiveRefreshStartRequest::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +MoneroLiveRefreshStartRequest::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest.address_n) + return &address_n_; +} + +// optional uint32 network_type = 2; +inline bool MoneroLiveRefreshStartRequest::has_network_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroLiveRefreshStartRequest::set_has_network_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroLiveRefreshStartRequest::clear_has_network_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroLiveRefreshStartRequest::clear_network_type() { + network_type_ = 0u; + clear_has_network_type(); +} +inline ::google::protobuf::uint32 MoneroLiveRefreshStartRequest::network_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest.network_type) + return network_type_; +} +inline void MoneroLiveRefreshStartRequest::set_network_type(::google::protobuf::uint32 value) { + set_has_network_type(); + network_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroLiveRefreshStartRequest.network_type) +} + +// ------------------------------------------------------------------- + +// MoneroLiveRefreshStartAck + +// ------------------------------------------------------------------- + +// MoneroLiveRefreshStepRequest + +// optional bytes out_key = 1; +inline bool MoneroLiveRefreshStepRequest::has_out_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroLiveRefreshStepRequest::set_has_out_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroLiveRefreshStepRequest::clear_has_out_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroLiveRefreshStepRequest::clear_out_key() { + out_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_out_key(); +} +inline const ::std::string& MoneroLiveRefreshStepRequest::out_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.out_key) + return out_key_.GetNoArena(); +} +inline void MoneroLiveRefreshStepRequest::set_out_key(const ::std::string& value) { + set_has_out_key(); + out_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.out_key) +} +#if LANG_CXX11 +inline void MoneroLiveRefreshStepRequest::set_out_key(::std::string&& value) { + set_has_out_key(); + out_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.out_key) +} +#endif +inline void MoneroLiveRefreshStepRequest::set_out_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_out_key(); + out_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.out_key) +} +inline void MoneroLiveRefreshStepRequest::set_out_key(const void* value, size_t size) { + set_has_out_key(); + out_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.out_key) +} +inline ::std::string* MoneroLiveRefreshStepRequest::mutable_out_key() { + set_has_out_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.out_key) + return out_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroLiveRefreshStepRequest::release_out_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.out_key) + if (!has_out_key()) { + return NULL; + } + clear_has_out_key(); + return out_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroLiveRefreshStepRequest::set_allocated_out_key(::std::string* out_key) { + if (out_key != NULL) { + set_has_out_key(); + } else { + clear_has_out_key(); + } + out_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), out_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.out_key) +} + +// optional bytes recv_deriv = 2; +inline bool MoneroLiveRefreshStepRequest::has_recv_deriv() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroLiveRefreshStepRequest::set_has_recv_deriv() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroLiveRefreshStepRequest::clear_has_recv_deriv() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroLiveRefreshStepRequest::clear_recv_deriv() { + recv_deriv_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_recv_deriv(); +} +inline const ::std::string& MoneroLiveRefreshStepRequest::recv_deriv() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.recv_deriv) + return recv_deriv_.GetNoArena(); +} +inline void MoneroLiveRefreshStepRequest::set_recv_deriv(const ::std::string& value) { + set_has_recv_deriv(); + recv_deriv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.recv_deriv) +} +#if LANG_CXX11 +inline void MoneroLiveRefreshStepRequest::set_recv_deriv(::std::string&& value) { + set_has_recv_deriv(); + recv_deriv_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.recv_deriv) +} +#endif +inline void MoneroLiveRefreshStepRequest::set_recv_deriv(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_recv_deriv(); + recv_deriv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.recv_deriv) +} +inline void MoneroLiveRefreshStepRequest::set_recv_deriv(const void* value, size_t size) { + set_has_recv_deriv(); + recv_deriv_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.recv_deriv) +} +inline ::std::string* MoneroLiveRefreshStepRequest::mutable_recv_deriv() { + set_has_recv_deriv(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.recv_deriv) + return recv_deriv_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroLiveRefreshStepRequest::release_recv_deriv() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.recv_deriv) + if (!has_recv_deriv()) { + return NULL; + } + clear_has_recv_deriv(); + return recv_deriv_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroLiveRefreshStepRequest::set_allocated_recv_deriv(::std::string* recv_deriv) { + if (recv_deriv != NULL) { + set_has_recv_deriv(); + } else { + clear_has_recv_deriv(); + } + recv_deriv_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), recv_deriv); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.recv_deriv) +} + +// optional uint64 real_out_idx = 3; +inline bool MoneroLiveRefreshStepRequest::has_real_out_idx() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MoneroLiveRefreshStepRequest::set_has_real_out_idx() { + _has_bits_[0] |= 0x00000004u; +} +inline void MoneroLiveRefreshStepRequest::clear_has_real_out_idx() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MoneroLiveRefreshStepRequest::clear_real_out_idx() { + real_out_idx_ = GOOGLE_ULONGLONG(0); + clear_has_real_out_idx(); +} +inline ::google::protobuf::uint64 MoneroLiveRefreshStepRequest::real_out_idx() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.real_out_idx) + return real_out_idx_; +} +inline void MoneroLiveRefreshStepRequest::set_real_out_idx(::google::protobuf::uint64 value) { + set_has_real_out_idx(); + real_out_idx_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.real_out_idx) +} + +// optional uint32 sub_addr_major = 4; +inline bool MoneroLiveRefreshStepRequest::has_sub_addr_major() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MoneroLiveRefreshStepRequest::set_has_sub_addr_major() { + _has_bits_[0] |= 0x00000008u; +} +inline void MoneroLiveRefreshStepRequest::clear_has_sub_addr_major() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MoneroLiveRefreshStepRequest::clear_sub_addr_major() { + sub_addr_major_ = 0u; + clear_has_sub_addr_major(); +} +inline ::google::protobuf::uint32 MoneroLiveRefreshStepRequest::sub_addr_major() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.sub_addr_major) + return sub_addr_major_; +} +inline void MoneroLiveRefreshStepRequest::set_sub_addr_major(::google::protobuf::uint32 value) { + set_has_sub_addr_major(); + sub_addr_major_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.sub_addr_major) +} + +// optional uint32 sub_addr_minor = 5; +inline bool MoneroLiveRefreshStepRequest::has_sub_addr_minor() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void MoneroLiveRefreshStepRequest::set_has_sub_addr_minor() { + _has_bits_[0] |= 0x00000010u; +} +inline void MoneroLiveRefreshStepRequest::clear_has_sub_addr_minor() { + _has_bits_[0] &= ~0x00000010u; +} +inline void MoneroLiveRefreshStepRequest::clear_sub_addr_minor() { + sub_addr_minor_ = 0u; + clear_has_sub_addr_minor(); +} +inline ::google::protobuf::uint32 MoneroLiveRefreshStepRequest::sub_addr_minor() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.sub_addr_minor) + return sub_addr_minor_; +} +inline void MoneroLiveRefreshStepRequest::set_sub_addr_minor(::google::protobuf::uint32 value) { + set_has_sub_addr_minor(); + sub_addr_minor_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroLiveRefreshStepRequest.sub_addr_minor) +} + +// ------------------------------------------------------------------- + +// MoneroLiveRefreshStepAck + +// optional bytes salt = 1; +inline bool MoneroLiveRefreshStepAck::has_salt() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoneroLiveRefreshStepAck::set_has_salt() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoneroLiveRefreshStepAck::clear_has_salt() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoneroLiveRefreshStepAck::clear_salt() { + salt_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_salt(); +} +inline const ::std::string& MoneroLiveRefreshStepAck::salt() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.salt) + return salt_.GetNoArena(); +} +inline void MoneroLiveRefreshStepAck::set_salt(const ::std::string& value) { + set_has_salt(); + salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.salt) +} +#if LANG_CXX11 +inline void MoneroLiveRefreshStepAck::set_salt(::std::string&& value) { + set_has_salt(); + salt_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.salt) +} +#endif +inline void MoneroLiveRefreshStepAck::set_salt(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_salt(); + salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.salt) +} +inline void MoneroLiveRefreshStepAck::set_salt(const void* value, size_t size) { + set_has_salt(); + salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.salt) +} +inline ::std::string* MoneroLiveRefreshStepAck::mutable_salt() { + set_has_salt(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.salt) + return salt_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroLiveRefreshStepAck::release_salt() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.salt) + if (!has_salt()) { + return NULL; + } + clear_has_salt(); + return salt_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroLiveRefreshStepAck::set_allocated_salt(::std::string* salt) { + if (salt != NULL) { + set_has_salt(); + } else { + clear_has_salt(); + } + salt_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), salt); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.salt) +} + +// optional bytes key_image = 2; +inline bool MoneroLiveRefreshStepAck::has_key_image() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoneroLiveRefreshStepAck::set_has_key_image() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoneroLiveRefreshStepAck::clear_has_key_image() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoneroLiveRefreshStepAck::clear_key_image() { + key_image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_key_image(); +} +inline const ::std::string& MoneroLiveRefreshStepAck::key_image() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.key_image) + return key_image_.GetNoArena(); +} +inline void MoneroLiveRefreshStepAck::set_key_image(const ::std::string& value) { + set_has_key_image(); + key_image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.key_image) +} +#if LANG_CXX11 +inline void MoneroLiveRefreshStepAck::set_key_image(::std::string&& value) { + set_has_key_image(); + key_image_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.key_image) +} +#endif +inline void MoneroLiveRefreshStepAck::set_key_image(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_key_image(); + key_image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.key_image) +} +inline void MoneroLiveRefreshStepAck::set_key_image(const void* value, size_t size) { + set_has_key_image(); + key_image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.key_image) +} +inline ::std::string* MoneroLiveRefreshStepAck::mutable_key_image() { + set_has_key_image(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.key_image) + return key_image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MoneroLiveRefreshStepAck::release_key_image() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.key_image) + if (!has_key_image()) { + return NULL; + } + clear_has_key_image(); + return key_image_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MoneroLiveRefreshStepAck::set_allocated_key_image(::std::string* key_image) { + if (key_image != NULL) { + set_has_key_image(); + } else { + clear_has_key_image(); + } + key_image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key_image); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.MoneroLiveRefreshStepAck.key_image) +} + +// ------------------------------------------------------------------- + +// MoneroLiveRefreshFinalRequest + +// ------------------------------------------------------------------- + +// MoneroLiveRefreshFinalAck + +// ------------------------------------------------------------------- + +// DebugMoneroDiagRequest + +// optional uint64 ins = 1; +inline bool DebugMoneroDiagRequest::has_ins() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DebugMoneroDiagRequest::set_has_ins() { + _has_bits_[0] |= 0x00000004u; +} +inline void DebugMoneroDiagRequest::clear_has_ins() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DebugMoneroDiagRequest::clear_ins() { + ins_ = GOOGLE_ULONGLONG(0); + clear_has_ins(); +} +inline ::google::protobuf::uint64 DebugMoneroDiagRequest::ins() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagRequest.ins) + return ins_; +} +inline void DebugMoneroDiagRequest::set_ins(::google::protobuf::uint64 value) { + set_has_ins(); + ins_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagRequest.ins) +} + +// optional uint64 p1 = 2; +inline bool DebugMoneroDiagRequest::has_p1() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void DebugMoneroDiagRequest::set_has_p1() { + _has_bits_[0] |= 0x00000008u; +} +inline void DebugMoneroDiagRequest::clear_has_p1() { + _has_bits_[0] &= ~0x00000008u; +} +inline void DebugMoneroDiagRequest::clear_p1() { + p1_ = GOOGLE_ULONGLONG(0); + clear_has_p1(); +} +inline ::google::protobuf::uint64 DebugMoneroDiagRequest::p1() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagRequest.p1) + return p1_; +} +inline void DebugMoneroDiagRequest::set_p1(::google::protobuf::uint64 value) { + set_has_p1(); + p1_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagRequest.p1) +} + +// optional uint64 p2 = 3; +inline bool DebugMoneroDiagRequest::has_p2() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void DebugMoneroDiagRequest::set_has_p2() { + _has_bits_[0] |= 0x00000010u; +} +inline void DebugMoneroDiagRequest::clear_has_p2() { + _has_bits_[0] &= ~0x00000010u; +} +inline void DebugMoneroDiagRequest::clear_p2() { + p2_ = GOOGLE_ULONGLONG(0); + clear_has_p2(); +} +inline ::google::protobuf::uint64 DebugMoneroDiagRequest::p2() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagRequest.p2) + return p2_; +} +inline void DebugMoneroDiagRequest::set_p2(::google::protobuf::uint64 value) { + set_has_p2(); + p2_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagRequest.p2) +} + +// repeated uint64 pd = 4; +inline int DebugMoneroDiagRequest::pd_size() const { + return pd_.size(); +} +inline void DebugMoneroDiagRequest::clear_pd() { + pd_.Clear(); +} +inline ::google::protobuf::uint64 DebugMoneroDiagRequest::pd(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagRequest.pd) + return pd_.Get(index); +} +inline void DebugMoneroDiagRequest::set_pd(int index, ::google::protobuf::uint64 value) { + pd_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagRequest.pd) +} +inline void DebugMoneroDiagRequest::add_pd(::google::protobuf::uint64 value) { + pd_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.DebugMoneroDiagRequest.pd) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& +DebugMoneroDiagRequest::pd() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.DebugMoneroDiagRequest.pd) + return pd_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* +DebugMoneroDiagRequest::mutable_pd() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.DebugMoneroDiagRequest.pd) + return &pd_; +} + +// optional bytes data1 = 5; +inline bool DebugMoneroDiagRequest::has_data1() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DebugMoneroDiagRequest::set_has_data1() { + _has_bits_[0] |= 0x00000001u; +} +inline void DebugMoneroDiagRequest::clear_has_data1() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DebugMoneroDiagRequest::clear_data1() { + data1_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data1(); +} +inline const ::std::string& DebugMoneroDiagRequest::data1() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagRequest.data1) + return data1_.GetNoArena(); +} +inline void DebugMoneroDiagRequest::set_data1(const ::std::string& value) { + set_has_data1(); + data1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagRequest.data1) +} +#if LANG_CXX11 +inline void DebugMoneroDiagRequest::set_data1(::std::string&& value) { + set_has_data1(); + data1_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.DebugMoneroDiagRequest.data1) +} +#endif +inline void DebugMoneroDiagRequest::set_data1(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data1(); + data1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.DebugMoneroDiagRequest.data1) +} +inline void DebugMoneroDiagRequest::set_data1(const void* value, size_t size) { + set_has_data1(); + data1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.DebugMoneroDiagRequest.data1) +} +inline ::std::string* DebugMoneroDiagRequest::mutable_data1() { + set_has_data1(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.DebugMoneroDiagRequest.data1) + return data1_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugMoneroDiagRequest::release_data1() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.DebugMoneroDiagRequest.data1) + if (!has_data1()) { + return NULL; + } + clear_has_data1(); + return data1_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugMoneroDiagRequest::set_allocated_data1(::std::string* data1) { + if (data1 != NULL) { + set_has_data1(); + } else { + clear_has_data1(); + } + data1_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data1); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.DebugMoneroDiagRequest.data1) +} + +// optional bytes data2 = 6; +inline bool DebugMoneroDiagRequest::has_data2() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DebugMoneroDiagRequest::set_has_data2() { + _has_bits_[0] |= 0x00000002u; +} +inline void DebugMoneroDiagRequest::clear_has_data2() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DebugMoneroDiagRequest::clear_data2() { + data2_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data2(); +} +inline const ::std::string& DebugMoneroDiagRequest::data2() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagRequest.data2) + return data2_.GetNoArena(); +} +inline void DebugMoneroDiagRequest::set_data2(const ::std::string& value) { + set_has_data2(); + data2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagRequest.data2) +} +#if LANG_CXX11 +inline void DebugMoneroDiagRequest::set_data2(::std::string&& value) { + set_has_data2(); + data2_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.DebugMoneroDiagRequest.data2) +} +#endif +inline void DebugMoneroDiagRequest::set_data2(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data2(); + data2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.DebugMoneroDiagRequest.data2) +} +inline void DebugMoneroDiagRequest::set_data2(const void* value, size_t size) { + set_has_data2(); + data2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.DebugMoneroDiagRequest.data2) +} +inline ::std::string* DebugMoneroDiagRequest::mutable_data2() { + set_has_data2(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.DebugMoneroDiagRequest.data2) + return data2_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugMoneroDiagRequest::release_data2() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.DebugMoneroDiagRequest.data2) + if (!has_data2()) { + return NULL; + } + clear_has_data2(); + return data2_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugMoneroDiagRequest::set_allocated_data2(::std::string* data2) { + if (data2 != NULL) { + set_has_data2(); + } else { + clear_has_data2(); + } + data2_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data2); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.DebugMoneroDiagRequest.data2) +} + +// ------------------------------------------------------------------- + +// DebugMoneroDiagAck + +// optional uint64 ins = 1; +inline bool DebugMoneroDiagAck::has_ins() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DebugMoneroDiagAck::set_has_ins() { + _has_bits_[0] |= 0x00000004u; +} +inline void DebugMoneroDiagAck::clear_has_ins() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DebugMoneroDiagAck::clear_ins() { + ins_ = GOOGLE_ULONGLONG(0); + clear_has_ins(); +} +inline ::google::protobuf::uint64 DebugMoneroDiagAck::ins() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagAck.ins) + return ins_; +} +inline void DebugMoneroDiagAck::set_ins(::google::protobuf::uint64 value) { + set_has_ins(); + ins_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagAck.ins) +} + +// optional uint64 p1 = 2; +inline bool DebugMoneroDiagAck::has_p1() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void DebugMoneroDiagAck::set_has_p1() { + _has_bits_[0] |= 0x00000008u; +} +inline void DebugMoneroDiagAck::clear_has_p1() { + _has_bits_[0] &= ~0x00000008u; +} +inline void DebugMoneroDiagAck::clear_p1() { + p1_ = GOOGLE_ULONGLONG(0); + clear_has_p1(); +} +inline ::google::protobuf::uint64 DebugMoneroDiagAck::p1() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagAck.p1) + return p1_; +} +inline void DebugMoneroDiagAck::set_p1(::google::protobuf::uint64 value) { + set_has_p1(); + p1_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagAck.p1) +} + +// optional uint64 p2 = 3; +inline bool DebugMoneroDiagAck::has_p2() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void DebugMoneroDiagAck::set_has_p2() { + _has_bits_[0] |= 0x00000010u; +} +inline void DebugMoneroDiagAck::clear_has_p2() { + _has_bits_[0] &= ~0x00000010u; +} +inline void DebugMoneroDiagAck::clear_p2() { + p2_ = GOOGLE_ULONGLONG(0); + clear_has_p2(); +} +inline ::google::protobuf::uint64 DebugMoneroDiagAck::p2() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagAck.p2) + return p2_; +} +inline void DebugMoneroDiagAck::set_p2(::google::protobuf::uint64 value) { + set_has_p2(); + p2_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagAck.p2) +} + +// repeated uint64 pd = 4; +inline int DebugMoneroDiagAck::pd_size() const { + return pd_.size(); +} +inline void DebugMoneroDiagAck::clear_pd() { + pd_.Clear(); +} +inline ::google::protobuf::uint64 DebugMoneroDiagAck::pd(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagAck.pd) + return pd_.Get(index); +} +inline void DebugMoneroDiagAck::set_pd(int index, ::google::protobuf::uint64 value) { + pd_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagAck.pd) +} +inline void DebugMoneroDiagAck::add_pd(::google::protobuf::uint64 value) { + pd_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.monero.DebugMoneroDiagAck.pd) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& +DebugMoneroDiagAck::pd() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.monero.DebugMoneroDiagAck.pd) + return pd_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* +DebugMoneroDiagAck::mutable_pd() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.monero.DebugMoneroDiagAck.pd) + return &pd_; +} + +// optional bytes data1 = 5; +inline bool DebugMoneroDiagAck::has_data1() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DebugMoneroDiagAck::set_has_data1() { + _has_bits_[0] |= 0x00000001u; +} +inline void DebugMoneroDiagAck::clear_has_data1() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DebugMoneroDiagAck::clear_data1() { + data1_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data1(); +} +inline const ::std::string& DebugMoneroDiagAck::data1() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagAck.data1) + return data1_.GetNoArena(); +} +inline void DebugMoneroDiagAck::set_data1(const ::std::string& value) { + set_has_data1(); + data1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagAck.data1) +} +#if LANG_CXX11 +inline void DebugMoneroDiagAck::set_data1(::std::string&& value) { + set_has_data1(); + data1_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.DebugMoneroDiagAck.data1) +} +#endif +inline void DebugMoneroDiagAck::set_data1(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data1(); + data1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.DebugMoneroDiagAck.data1) +} +inline void DebugMoneroDiagAck::set_data1(const void* value, size_t size) { + set_has_data1(); + data1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.DebugMoneroDiagAck.data1) +} +inline ::std::string* DebugMoneroDiagAck::mutable_data1() { + set_has_data1(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.DebugMoneroDiagAck.data1) + return data1_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugMoneroDiagAck::release_data1() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.DebugMoneroDiagAck.data1) + if (!has_data1()) { + return NULL; + } + clear_has_data1(); + return data1_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugMoneroDiagAck::set_allocated_data1(::std::string* data1) { + if (data1 != NULL) { + set_has_data1(); + } else { + clear_has_data1(); + } + data1_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data1); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.DebugMoneroDiagAck.data1) +} + +// optional bytes data2 = 6; +inline bool DebugMoneroDiagAck::has_data2() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DebugMoneroDiagAck::set_has_data2() { + _has_bits_[0] |= 0x00000002u; +} +inline void DebugMoneroDiagAck::clear_has_data2() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DebugMoneroDiagAck::clear_data2() { + data2_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data2(); +} +inline const ::std::string& DebugMoneroDiagAck::data2() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.monero.DebugMoneroDiagAck.data2) + return data2_.GetNoArena(); +} +inline void DebugMoneroDiagAck::set_data2(const ::std::string& value) { + set_has_data2(); + data2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.monero.DebugMoneroDiagAck.data2) +} +#if LANG_CXX11 +inline void DebugMoneroDiagAck::set_data2(::std::string&& value) { + set_has_data2(); + data2_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.monero.DebugMoneroDiagAck.data2) +} +#endif +inline void DebugMoneroDiagAck::set_data2(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data2(); + data2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.monero.DebugMoneroDiagAck.data2) +} +inline void DebugMoneroDiagAck::set_data2(const void* value, size_t size) { + set_has_data2(); + data2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.monero.DebugMoneroDiagAck.data2) +} +inline ::std::string* DebugMoneroDiagAck::mutable_data2() { + set_has_data2(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.monero.DebugMoneroDiagAck.data2) + return data2_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DebugMoneroDiagAck::release_data2() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.monero.DebugMoneroDiagAck.data2) + if (!has_data2()) { + return NULL; + } + clear_has_data2(); + return data2_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DebugMoneroDiagAck::set_allocated_data2(::std::string* data2) { + if (data2 != NULL) { + set_has_data2(); + } else { + clear_has_data2(); + } + data2_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data2); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.monero.DebugMoneroDiagAck.data2) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace monero +} // namespace messages +} // namespace trezor +} // namespace hw + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dmonero_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-nem.pb.cc b/src/Core/hardware/trezor/protob/messages-nem.pb.cc new file mode 100644 index 00000000..4020af57 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-nem.pb.cc @@ -0,0 +1,7220 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-nem.proto + +#include "messages-nem.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dnem_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dnem_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMAggregateModification_NEMCosignatoryModification; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dnem_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMImportanceTransfer; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dnem_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dnem_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMMosaicSupplyChange; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dnem_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMProvisionNamespace; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dnem_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMTransactionCommon; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dnem_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMTransfer_NEMMosaic; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dnem_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NEMSignTx_NEMAggregateModification; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dnem_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NEMSignTx_NEMMosaicCreation; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dnem_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NEMSignTx_NEMTransfer; +} // namespace protobuf_messages_2dnem_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace nem { +class NEMGetAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMGetAddress_default_instance_; +class NEMAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMAddress_default_instance_; +class NEMSignTx_NEMTransactionCommonDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignTx_NEMTransactionCommon_default_instance_; +class NEMSignTx_NEMTransfer_NEMMosaicDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignTx_NEMTransfer_NEMMosaic_default_instance_; +class NEMSignTx_NEMTransferDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignTx_NEMTransfer_default_instance_; +class NEMSignTx_NEMProvisionNamespaceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignTx_NEMProvisionNamespace_default_instance_; +class NEMSignTx_NEMMosaicCreation_NEMMosaicDefinitionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_default_instance_; +class NEMSignTx_NEMMosaicCreationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignTx_NEMMosaicCreation_default_instance_; +class NEMSignTx_NEMMosaicSupplyChangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignTx_NEMMosaicSupplyChange_default_instance_; +class NEMSignTx_NEMAggregateModification_NEMCosignatoryModificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_default_instance_; +class NEMSignTx_NEMAggregateModificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignTx_NEMAggregateModification_default_instance_; +class NEMSignTx_NEMImportanceTransferDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignTx_NEMImportanceTransfer_default_instance_; +class NEMSignTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignTx_default_instance_; +class NEMSignedTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMSignedTx_default_instance_; +class NEMDecryptMessageDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMDecryptMessage_default_instance_; +class NEMDecryptedMessageDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NEMDecryptedMessage_default_instance_; +} // namespace nem +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dnem_2eproto { +static void InitDefaultsNEMGetAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMGetAddress_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMGetAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMGetAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMGetAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMGetAddress}, {}}; + +static void InitDefaultsNEMAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMAddress_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMAddress}, {}}; + +static void InitDefaultsNEMSignTx_NEMTransactionCommon() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignTx_NEMTransactionCommon_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMTransactionCommon = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMSignTx_NEMTransactionCommon}, {}}; + +static void InitDefaultsNEMSignTx_NEMTransfer_NEMMosaic() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignTx_NEMTransfer_NEMMosaic_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMTransfer_NEMMosaic = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMSignTx_NEMTransfer_NEMMosaic}, {}}; + +static void InitDefaultsNEMSignTx_NEMTransfer() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignTx_NEMTransfer_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NEMSignTx_NEMTransfer = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNEMSignTx_NEMTransfer}, { + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMTransfer_NEMMosaic.base,}}; + +static void InitDefaultsNEMSignTx_NEMProvisionNamespace() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignTx_NEMProvisionNamespace_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMProvisionNamespace = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMSignTx_NEMProvisionNamespace}, {}}; + +static void InitDefaultsNEMSignTx_NEMMosaicCreation_NEMMosaicDefinition() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMSignTx_NEMMosaicCreation_NEMMosaicDefinition}, {}}; + +static void InitDefaultsNEMSignTx_NEMMosaicCreation() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignTx_NEMMosaicCreation_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NEMSignTx_NEMMosaicCreation = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNEMSignTx_NEMMosaicCreation}, { + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition.base,}}; + +static void InitDefaultsNEMSignTx_NEMMosaicSupplyChange() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignTx_NEMMosaicSupplyChange_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMMosaicSupplyChange = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMSignTx_NEMMosaicSupplyChange}, {}}; + +static void InitDefaultsNEMSignTx_NEMAggregateModification_NEMCosignatoryModification() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMAggregateModification_NEMCosignatoryModification = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMSignTx_NEMAggregateModification_NEMCosignatoryModification}, {}}; + +static void InitDefaultsNEMSignTx_NEMAggregateModification() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignTx_NEMAggregateModification_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NEMSignTx_NEMAggregateModification = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNEMSignTx_NEMAggregateModification}, { + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMAggregateModification_NEMCosignatoryModification.base,}}; + +static void InitDefaultsNEMSignTx_NEMImportanceTransfer() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignTx_NEMImportanceTransfer_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignTx_NEMImportanceTransfer = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMSignTx_NEMImportanceTransfer}, {}}; + +static void InitDefaultsNEMSignTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignTx_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<7> scc_info_NEMSignTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 7, InitDefaultsNEMSignTx}, { + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMTransactionCommon.base, + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMTransfer.base, + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMProvisionNamespace.base, + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMMosaicCreation.base, + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMMosaicSupplyChange.base, + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMAggregateModification.base, + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMImportanceTransfer.base,}}; + +static void InitDefaultsNEMSignedTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMSignedTx_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMSignedTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMSignedTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMSignedTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMSignedTx}, {}}; + +static void InitDefaultsNEMDecryptMessage() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMDecryptMessage_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMDecryptMessage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMDecryptMessage::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMDecryptMessage = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMDecryptMessage}, {}}; + +static void InitDefaultsNEMDecryptedMessage() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::nem::_NEMDecryptedMessage_default_instance_; + new (ptr) ::hw::trezor::messages::nem::NEMDecryptedMessage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::nem::NEMDecryptedMessage::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NEMDecryptedMessage = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNEMDecryptedMessage}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_NEMGetAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignTx_NEMTransactionCommon.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignTx_NEMTransfer_NEMMosaic.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignTx_NEMTransfer.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignTx_NEMProvisionNamespace.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignTx_NEMMosaicCreation.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignTx_NEMMosaicSupplyChange.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignTx_NEMAggregateModification_NEMCosignatoryModification.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignTx_NEMAggregateModification.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignTx_NEMImportanceTransfer.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMSignedTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMDecryptMessage.base); + ::google::protobuf::internal::InitSCC(&scc_info_NEMDecryptedMessage.base); +} + +::google::protobuf::Metadata file_level_metadata[16]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[4]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMGetAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMGetAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMGetAddress, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMGetAddress, network_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMGetAddress, show_display_), + ~0u, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMAddress, address_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon, network_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon, timestamp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon, fee_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon, deadline_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon, signer_), + ~0u, + 1, + 2, + 3, + 4, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic, namespace__), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic, mosaic_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic, quantity_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer, recipient_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer, payload_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer, mosaics_), + 0, + 3, + 1, + 2, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace, namespace__), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace, parent_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace, sink_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace, fee_), + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, ticker_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, namespace__), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, mosaic_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, divisibility_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, levy_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, fee_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, levy_address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, levy_namespace_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, levy_mosaic_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, supply_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, mutable_supply_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, transferable_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, description_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition, networks_), + 0, + 1, + 2, + 3, + 9, + 13, + 8, + 4, + 5, + 6, + 12, + 10, + 11, + 7, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation, definition_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation, sink_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation, fee_), + 1, + 0, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange, namespace__), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange, mosaic_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange, delta_), + 0, + 1, + 3, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification, public_key_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification, modifications_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification, relative_change_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer, mode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer, public_key_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx, transaction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx, multisig_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx, transfer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx, cosigning_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx, provision_namespace_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx, mosaic_creation_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx, supply_change_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx, aggregate_modification_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignTx, importance_transfer_), + 0, + 1, + 2, + 8, + 3, + 4, + 5, + 6, + 7, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignedTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignedTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignedTx, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMSignedTx, signature_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMDecryptMessage, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMDecryptMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMDecryptMessage, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMDecryptMessage, network_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMDecryptMessage, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMDecryptMessage, payload_), + ~0u, + 2, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMDecryptedMessage, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMDecryptedMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::nem::NEMDecryptedMessage, payload_), + 0, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, sizeof(::hw::trezor::messages::nem::NEMGetAddress)}, + { 11, 17, sizeof(::hw::trezor::messages::nem::NEMAddress)}, + { 18, 29, sizeof(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon)}, + { 35, 43, sizeof(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic)}, + { 46, 56, sizeof(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer)}, + { 61, 70, sizeof(::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace)}, + { 74, 94, sizeof(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition)}, + { 109, 117, sizeof(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation)}, + { 120, 129, sizeof(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange)}, + { 133, 140, sizeof(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification)}, + { 142, 149, sizeof(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification)}, + { 151, 158, sizeof(::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer)}, + { 160, 174, sizeof(::hw::trezor::messages::nem::NEMSignTx)}, + { 183, 190, sizeof(::hw::trezor::messages::nem::NEMSignedTx)}, + { 192, 201, sizeof(::hw::trezor::messages::nem::NEMDecryptMessage)}, + { 205, 211, sizeof(::hw::trezor::messages::nem::NEMDecryptedMessage)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::nem::_NEMGetAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignTx_NEMTransactionCommon_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignTx_NEMTransfer_NEMMosaic_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignTx_NEMTransfer_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignTx_NEMProvisionNamespace_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignTx_NEMMosaicCreation_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignTx_NEMMosaicSupplyChange_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignTx_NEMAggregateModification_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignTx_NEMImportanceTransfer_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignTx_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMSignedTx_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMDecryptMessage_default_instance_), + reinterpret_cast(&::hw::trezor::messages::nem::_NEMDecryptedMessage_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-nem.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 16); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\022messages-nem.proto\022\026hw.trezor.messages" + ".nem\"I\n\rNEMGetAddress\022\021\n\taddress_n\030\001 \003(\r" + "\022\017\n\007network\030\002 \001(\r\022\024\n\014show_display\030\003 \001(\010\"" + "\035\n\nNEMAddress\022\017\n\007address\030\001 \002(\t\"\301\024\n\tNEMSi" + "gnTx\022K\n\013transaction\030\001 \001(\01326.hw.trezor.me" + "ssages.nem.NEMSignTx.NEMTransactionCommo" + "n\022H\n\010multisig\030\002 \001(\01326.hw.trezor.messages" + ".nem.NEMSignTx.NEMTransactionCommon\022\?\n\010t" + "ransfer\030\003 \001(\0132-.hw.trezor.messages.nem.N" + "EMSignTx.NEMTransfer\022\021\n\tcosigning\030\004 \001(\010\022" + "T\n\023provision_namespace\030\005 \001(\01327.hw.trezor" + ".messages.nem.NEMSignTx.NEMProvisionName" + "space\022L\n\017mosaic_creation\030\006 \001(\01323.hw.trez" + "or.messages.nem.NEMSignTx.NEMMosaicCreat" + "ion\022N\n\rsupply_change\030\007 \001(\01327.hw.trezor.m" + "essages.nem.NEMSignTx.NEMMosaicSupplyCha" + "nge\022Z\n\026aggregate_modification\030\010 \001(\0132:.hw" + ".trezor.messages.nem.NEMSignTx.NEMAggreg" + "ateModification\022T\n\023importance_transfer\030\t" + " \001(\01327.hw.trezor.messages.nem.NEMSignTx." + "NEMImportanceTransfer\032|\n\024NEMTransactionC" + "ommon\022\021\n\taddress_n\030\001 \003(\r\022\017\n\007network\030\002 \001(" + "\r\022\021\n\ttimestamp\030\003 \001(\r\022\013\n\003fee\030\004 \001(\004\022\020\n\010dea" + "dline\030\005 \001(\r\022\016\n\006signer\030\006 \001(\014\032\341\001\n\013NEMTrans" + "fer\022\021\n\trecipient\030\001 \001(\t\022\016\n\006amount\030\002 \001(\004\022\017" + "\n\007payload\030\003 \001(\014\022\022\n\npublic_key\030\004 \001(\014\022H\n\007m" + "osaics\030\005 \003(\01327.hw.trezor.messages.nem.NE" + "MSignTx.NEMTransfer.NEMMosaic\032@\n\tNEMMosa" + "ic\022\021\n\tnamespace\030\001 \001(\t\022\016\n\006mosaic\030\002 \001(\t\022\020\n" + "\010quantity\030\003 \001(\004\032U\n\025NEMProvisionNamespace" + "\022\021\n\tnamespace\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\014\n\004s" + "ink\030\003 \001(\t\022\013\n\003fee\030\004 \001(\004\032\331\004\n\021NEMMosaicCrea" + "tion\022[\n\ndefinition\030\001 \001(\0132G.hw.trezor.mes" + "sages.nem.NEMSignTx.NEMMosaicCreation.NE" + "MMosaicDefinition\022\014\n\004sink\030\002 \001(\t\022\013\n\003fee\030\003" + " \001(\004\032\313\003\n\023NEMMosaicDefinition\022\014\n\004name\030\001 \001" + "(\t\022\016\n\006ticker\030\002 \001(\t\022\021\n\tnamespace\030\003 \001(\t\022\016\n" + "\006mosaic\030\004 \001(\t\022\024\n\014divisibility\030\005 \001(\r\022c\n\004l" + "evy\030\006 \001(\0162U.hw.trezor.messages.nem.NEMSi" + "gnTx.NEMMosaicCreation.NEMMosaicDefiniti" + "on.NEMMosaicLevy\022\013\n\003fee\030\007 \001(\004\022\024\n\014levy_ad" + "dress\030\010 \001(\t\022\026\n\016levy_namespace\030\t \001(\t\022\023\n\013l" + "evy_mosaic\030\n \001(\t\022\016\n\006supply\030\013 \001(\004\022\026\n\016muta" + "ble_supply\030\014 \001(\010\022\024\n\014transferable\030\r \001(\010\022\023" + "\n\013description\030\016 \001(\t\022\020\n\010networks\030\017 \003(\r\"C\n" + "\rNEMMosaicLevy\022\027\n\023MosaicLevy_Absolute\020\001\022" + "\031\n\025MosaicLevy_Percentile\020\002\032\361\001\n\025NEMMosaic" + "SupplyChange\022\021\n\tnamespace\030\001 \001(\t\022\016\n\006mosai" + "c\030\002 \001(\t\022Y\n\004type\030\003 \001(\0162K.hw.trezor.messag" + "es.nem.NEMSignTx.NEMMosaicSupplyChange.N" + "EMSupplyChangeType\022\r\n\005delta\030\004 \001(\004\"K\n\023NEM" + "SupplyChangeType\022\031\n\025SupplyChange_Increas" + "e\020\001\022\031\n\025SupplyChange_Decrease\020\002\032\251\003\n\030NEMAg" + "gregateModification\022l\n\rmodifications\030\001 \003" + "(\0132U.hw.trezor.messages.nem.NEMSignTx.NE" + "MAggregateModification.NEMCosignatoryMod" + "ification\022\027\n\017relative_change\030\002 \001(\021\032\205\002\n\032N" + "EMCosignatoryModification\022w\n\004type\030\001 \001(\0162" + "i.hw.trezor.messages.nem.NEMSignTx.NEMAg" + "gregateModification.NEMCosignatoryModifi" + "cation.NEMModificationType\022\022\n\npublic_key" + "\030\002 \001(\014\"Z\n\023NEMModificationType\022\037\n\033Cosigna" + "toryModification_Add\020\001\022\"\n\036CosignatoryMod" + "ification_Delete\020\002\032\355\001\n\025NEMImportanceTran" + "sfer\022_\n\004mode\030\001 \001(\0162Q.hw.trezor.messages." + "nem.NEMSignTx.NEMImportanceTransfer.NEMI" + "mportanceTransferMode\022\022\n\npublic_key\030\002 \001(" + "\014\"_\n\031NEMImportanceTransferMode\022\037\n\033Import" + "anceTransfer_Activate\020\001\022!\n\035ImportanceTra" + "nsfer_Deactivate\020\002\".\n\013NEMSignedTx\022\014\n\004dat" + "a\030\001 \001(\014\022\021\n\tsignature\030\002 \001(\014\"\\\n\021NEMDecrypt" + "Message\022\021\n\taddress_n\030\001 \003(\r\022\017\n\007network\030\002 " + "\001(\r\022\022\n\npublic_key\030\003 \001(\014\022\017\n\007payload\030\004 \001(\014" + "\"&\n\023NEMDecryptedMessage\022\017\n\007payload\030\001 \001(\014" + "B7\n#com.satoshilabs.trezor.lib.protobufB" + "\020TrezorMessageNem" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 3017); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-nem.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dnem_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace nem { +const ::google::protobuf::EnumDescriptor* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_descriptor() { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dnem_2eproto::file_level_enum_descriptors[0]; +} +bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_IsValid(int value) { + switch (value) { + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::MosaicLevy_Absolute; +const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::MosaicLevy_Percentile; +const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::NEMMosaicLevy_MIN; +const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::NEMMosaicLevy_MAX; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::NEMMosaicLevy_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_descriptor() { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dnem_2eproto::file_level_enum_descriptors[1]; +} +bool NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_IsValid(int value) { + switch (value) { + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType NEMSignTx_NEMMosaicSupplyChange::SupplyChange_Increase; +const NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType NEMSignTx_NEMMosaicSupplyChange::SupplyChange_Decrease; +const NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType NEMSignTx_NEMMosaicSupplyChange::NEMSupplyChangeType_MIN; +const NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType NEMSignTx_NEMMosaicSupplyChange::NEMSupplyChangeType_MAX; +const int NEMSignTx_NEMMosaicSupplyChange::NEMSupplyChangeType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_descriptor() { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dnem_2eproto::file_level_enum_descriptors[2]; +} +bool NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_IsValid(int value) { + switch (value) { + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::CosignatoryModification_Add; +const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::CosignatoryModification_Delete; +const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::NEMModificationType_MIN; +const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::NEMModificationType_MAX; +const int NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::NEMModificationType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_descriptor() { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dnem_2eproto::file_level_enum_descriptors[3]; +} +bool NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_IsValid(int value) { + switch (value) { + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode NEMSignTx_NEMImportanceTransfer::ImportanceTransfer_Activate; +const NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode NEMSignTx_NEMImportanceTransfer::ImportanceTransfer_Deactivate; +const NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode NEMSignTx_NEMImportanceTransfer::NEMImportanceTransferMode_MIN; +const NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode NEMSignTx_NEMImportanceTransfer::NEMImportanceTransferMode_MAX; +const int NEMSignTx_NEMImportanceTransfer::NEMImportanceTransferMode_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void NEMGetAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMGetAddress::kAddressNFieldNumber; +const int NEMGetAddress::kNetworkFieldNumber; +const int NEMGetAddress::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMGetAddress::NEMGetAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMGetAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMGetAddress) +} +NEMGetAddress::NEMGetAddress(const NEMGetAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&network_, &from.network_, + static_cast(reinterpret_cast(&show_display_) - + reinterpret_cast(&network_)) + sizeof(show_display_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMGetAddress) +} + +void NEMGetAddress::SharedCtor() { + ::memset(&network_, 0, static_cast( + reinterpret_cast(&show_display_) - + reinterpret_cast(&network_)) + sizeof(show_display_)); +} + +NEMGetAddress::~NEMGetAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMGetAddress) + SharedDtor(); +} + +void NEMGetAddress::SharedDtor() { +} + +void NEMGetAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMGetAddress::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMGetAddress& NEMGetAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMGetAddress.base); + return *internal_default_instance(); +} + + +void NEMGetAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&network_, 0, static_cast( + reinterpret_cast(&show_display_) - + reinterpret_cast(&network_)) + sizeof(show_display_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMGetAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMGetAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 network = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_network(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &network_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMGetAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMGetAddress) + return false; +#undef DO_ +} + +void NEMGetAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional uint32 network = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->network(), output); + } + + // optional bool show_display = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMGetAddress) +} + +::google::protobuf::uint8* NEMGetAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional uint32 network = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->network(), target); + } + + // optional bool show_display = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMGetAddress) + return target; +} + +size_t NEMGetAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMGetAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 3u) { + // optional uint32 network = 2; + if (has_network()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->network()); + } + + // optional bool show_display = 3; + if (has_show_display()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMGetAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMGetAddress) + GOOGLE_DCHECK_NE(&from, this); + const NEMGetAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMGetAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMGetAddress) + MergeFrom(*source); + } +} + +void NEMGetAddress::MergeFrom(const NEMGetAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMGetAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + network_ = from.network_; + } + if (cached_has_bits & 0x00000002u) { + show_display_ = from.show_display_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NEMGetAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMGetAddress::CopyFrom(const NEMGetAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMGetAddress::IsInitialized() const { + return true; +} + +void NEMGetAddress::Swap(NEMGetAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMGetAddress::InternalSwap(NEMGetAddress* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(network_, other->network_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMGetAddress::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMAddress::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMAddress::NEMAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMAddress) +} +NEMAddress::NEMAddress(const NEMAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMAddress) +} + +void NEMAddress::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +NEMAddress::~NEMAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMAddress) + SharedDtor(); +} + +void NEMAddress::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMAddress::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMAddress& NEMAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMAddress.base); + return *internal_default_instance(); +} + + +void NEMAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMAddress.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMAddress) + return false; +#undef DO_ +} + +void NEMAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMAddress.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMAddress) +} + +::google::protobuf::uint8* NEMAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMAddress.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMAddress) + return target; +} + +size_t NEMAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // required string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMAddress) + GOOGLE_DCHECK_NE(&from, this); + const NEMAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMAddress) + MergeFrom(*source); + } +} + +void NEMAddress::MergeFrom(const NEMAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_address()) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } +} + +void NEMAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMAddress::CopyFrom(const NEMAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMAddress::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + return true; +} + +void NEMAddress::Swap(NEMAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMAddress::InternalSwap(NEMAddress* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMAddress::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignTx_NEMTransactionCommon::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignTx_NEMTransactionCommon::kAddressNFieldNumber; +const int NEMSignTx_NEMTransactionCommon::kNetworkFieldNumber; +const int NEMSignTx_NEMTransactionCommon::kTimestampFieldNumber; +const int NEMSignTx_NEMTransactionCommon::kFeeFieldNumber; +const int NEMSignTx_NEMTransactionCommon::kDeadlineFieldNumber; +const int NEMSignTx_NEMTransactionCommon::kSignerFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignTx_NEMTransactionCommon::NEMSignTx_NEMTransactionCommon() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMTransactionCommon.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) +} +NEMSignTx_NEMTransactionCommon::NEMSignTx_NEMTransactionCommon(const NEMSignTx_NEMTransactionCommon& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signer()) { + signer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signer_); + } + ::memcpy(&network_, &from.network_, + static_cast(reinterpret_cast(&deadline_) - + reinterpret_cast(&network_)) + sizeof(deadline_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) +} + +void NEMSignTx_NEMTransactionCommon::SharedCtor() { + signer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&network_, 0, static_cast( + reinterpret_cast(&deadline_) - + reinterpret_cast(&network_)) + sizeof(deadline_)); +} + +NEMSignTx_NEMTransactionCommon::~NEMSignTx_NEMTransactionCommon() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + SharedDtor(); +} + +void NEMSignTx_NEMTransactionCommon::SharedDtor() { + signer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMSignTx_NEMTransactionCommon::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignTx_NEMTransactionCommon::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignTx_NEMTransactionCommon& NEMSignTx_NEMTransactionCommon::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMTransactionCommon.base); + return *internal_default_instance(); +} + + +void NEMSignTx_NEMTransactionCommon::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + signer_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 30u) { + ::memset(&network_, 0, static_cast( + reinterpret_cast(&deadline_) - + reinterpret_cast(&network_)) + sizeof(deadline_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignTx_NEMTransactionCommon::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 network = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_network(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &network_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 timestamp = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_timestamp(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, ×tamp_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 fee = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 deadline = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_deadline(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &deadline_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signer = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signer())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + return false; +#undef DO_ +} + +void NEMSignTx_NEMTransactionCommon::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional uint32 network = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->network(), output); + } + + // optional uint32 timestamp = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->timestamp(), output); + } + + // optional uint64 fee = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->fee(), output); + } + + // optional uint32 deadline = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->deadline(), output); + } + + // optional bytes signer = 6; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->signer(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) +} + +::google::protobuf::uint8* NEMSignTx_NEMTransactionCommon::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional uint32 network = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->network(), target); + } + + // optional uint32 timestamp = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->timestamp(), target); + } + + // optional uint64 fee = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->fee(), target); + } + + // optional uint32 deadline = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->deadline(), target); + } + + // optional bytes signer = 6; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->signer(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + return target; +} + +size_t NEMSignTx_NEMTransactionCommon::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 31u) { + // optional bytes signer = 6; + if (has_signer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signer()); + } + + // optional uint32 network = 2; + if (has_network()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->network()); + } + + // optional uint32 timestamp = 3; + if (has_timestamp()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->timestamp()); + } + + // optional uint64 fee = 4; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->fee()); + } + + // optional uint32 deadline = 5; + if (has_deadline()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->deadline()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignTx_NEMTransactionCommon::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignTx_NEMTransactionCommon* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + MergeFrom(*source); + } +} + +void NEMSignTx_NEMTransactionCommon::MergeFrom(const NEMSignTx_NEMTransactionCommon& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + set_has_signer(); + signer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signer_); + } + if (cached_has_bits & 0x00000002u) { + network_ = from.network_; + } + if (cached_has_bits & 0x00000004u) { + timestamp_ = from.timestamp_; + } + if (cached_has_bits & 0x00000008u) { + fee_ = from.fee_; + } + if (cached_has_bits & 0x00000010u) { + deadline_ = from.deadline_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NEMSignTx_NEMTransactionCommon::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignTx_NEMTransactionCommon::CopyFrom(const NEMSignTx_NEMTransactionCommon& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignTx_NEMTransactionCommon::IsInitialized() const { + return true; +} + +void NEMSignTx_NEMTransactionCommon::Swap(NEMSignTx_NEMTransactionCommon* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignTx_NEMTransactionCommon::InternalSwap(NEMSignTx_NEMTransactionCommon* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + signer_.Swap(&other->signer_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(network_, other->network_); + swap(timestamp_, other->timestamp_); + swap(fee_, other->fee_); + swap(deadline_, other->deadline_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignTx_NEMTransactionCommon::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignTx_NEMTransfer_NEMMosaic::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignTx_NEMTransfer_NEMMosaic::kNamespaceFieldNumber; +const int NEMSignTx_NEMTransfer_NEMMosaic::kMosaicFieldNumber; +const int NEMSignTx_NEMTransfer_NEMMosaic::kQuantityFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignTx_NEMTransfer_NEMMosaic::NEMSignTx_NEMTransfer_NEMMosaic() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMTransfer_NEMMosaic.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) +} +NEMSignTx_NEMTransfer_NEMMosaic::NEMSignTx_NEMTransfer_NEMMosaic(const NEMSignTx_NEMTransfer_NEMMosaic& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_namespace_()) { + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + mosaic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_mosaic()) { + mosaic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mosaic_); + } + quantity_ = from.quantity_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) +} + +void NEMSignTx_NEMTransfer_NEMMosaic::SharedCtor() { + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mosaic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + quantity_ = GOOGLE_ULONGLONG(0); +} + +NEMSignTx_NEMTransfer_NEMMosaic::~NEMSignTx_NEMTransfer_NEMMosaic() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + SharedDtor(); +} + +void NEMSignTx_NEMTransfer_NEMMosaic::SharedDtor() { + namespace__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mosaic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMSignTx_NEMTransfer_NEMMosaic::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignTx_NEMTransfer_NEMMosaic::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignTx_NEMTransfer_NEMMosaic& NEMSignTx_NEMTransfer_NEMMosaic::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMTransfer_NEMMosaic.base); + return *internal_default_instance(); +} + + +void NEMSignTx_NEMTransfer_NEMMosaic::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + namespace__.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + mosaic_.ClearNonDefaultToEmptyNoArena(); + } + } + quantity_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignTx_NEMTransfer_NEMMosaic::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string namespace = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespace_())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.namespace"); + } else { + goto handle_unusual; + } + break; + } + + // optional string mosaic = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mosaic())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mosaic().data(), static_cast(this->mosaic().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.mosaic"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 quantity = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_quantity(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &quantity_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + return false; +#undef DO_ +} + +void NEMSignTx_NEMTransfer_NEMMosaic::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string namespace = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.namespace"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->namespace_(), output); + } + + // optional string mosaic = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mosaic().data(), static_cast(this->mosaic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.mosaic"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->mosaic(), output); + } + + // optional uint64 quantity = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->quantity(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) +} + +::google::protobuf::uint8* NEMSignTx_NEMTransfer_NEMMosaic::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string namespace = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.namespace"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->namespace_(), target); + } + + // optional string mosaic = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mosaic().data(), static_cast(this->mosaic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.mosaic"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->mosaic(), target); + } + + // optional uint64 quantity = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->quantity(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + return target; +} + +size_t NEMSignTx_NEMTransfer_NEMMosaic::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string namespace = 1; + if (has_namespace_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespace_()); + } + + // optional string mosaic = 2; + if (has_mosaic()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mosaic()); + } + + // optional uint64 quantity = 3; + if (has_quantity()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->quantity()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignTx_NEMTransfer_NEMMosaic::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignTx_NEMTransfer_NEMMosaic* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + MergeFrom(*source); + } +} + +void NEMSignTx_NEMTransfer_NEMMosaic::MergeFrom(const NEMSignTx_NEMTransfer_NEMMosaic& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_namespace_(); + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + if (cached_has_bits & 0x00000002u) { + set_has_mosaic(); + mosaic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mosaic_); + } + if (cached_has_bits & 0x00000004u) { + quantity_ = from.quantity_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NEMSignTx_NEMTransfer_NEMMosaic::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignTx_NEMTransfer_NEMMosaic::CopyFrom(const NEMSignTx_NEMTransfer_NEMMosaic& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignTx_NEMTransfer_NEMMosaic::IsInitialized() const { + return true; +} + +void NEMSignTx_NEMTransfer_NEMMosaic::Swap(NEMSignTx_NEMTransfer_NEMMosaic* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignTx_NEMTransfer_NEMMosaic::InternalSwap(NEMSignTx_NEMTransfer_NEMMosaic* other) { + using std::swap; + namespace__.Swap(&other->namespace__, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + mosaic_.Swap(&other->mosaic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(quantity_, other->quantity_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignTx_NEMTransfer_NEMMosaic::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignTx_NEMTransfer::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignTx_NEMTransfer::kRecipientFieldNumber; +const int NEMSignTx_NEMTransfer::kAmountFieldNumber; +const int NEMSignTx_NEMTransfer::kPayloadFieldNumber; +const int NEMSignTx_NEMTransfer::kPublicKeyFieldNumber; +const int NEMSignTx_NEMTransfer::kMosaicsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignTx_NEMTransfer::NEMSignTx_NEMTransfer() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMTransfer.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) +} +NEMSignTx_NEMTransfer::NEMSignTx_NEMTransfer(const NEMSignTx_NEMTransfer& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + mosaics_(from.mosaics_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + recipient_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_recipient()) { + recipient_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.recipient_); + } + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_payload()) { + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + amount_ = from.amount_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) +} + +void NEMSignTx_NEMTransfer::SharedCtor() { + recipient_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_ = GOOGLE_ULONGLONG(0); +} + +NEMSignTx_NEMTransfer::~NEMSignTx_NEMTransfer() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + SharedDtor(); +} + +void NEMSignTx_NEMTransfer::SharedDtor() { + recipient_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMSignTx_NEMTransfer::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignTx_NEMTransfer::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignTx_NEMTransfer& NEMSignTx_NEMTransfer::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMTransfer.base); + return *internal_default_instance(); +} + + +void NEMSignTx_NEMTransfer::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + mosaics_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + recipient_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + payload_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + } + amount_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignTx_NEMTransfer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string recipient = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_recipient())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->recipient().data(), static_cast(this->recipient().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMTransfer.recipient"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 amount = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes payload = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_payload())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes public_key = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic mosaics = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_mosaics())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + return false; +#undef DO_ +} + +void NEMSignTx_NEMTransfer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string recipient = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->recipient().data(), static_cast(this->recipient().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMTransfer.recipient"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->recipient(), output); + } + + // optional uint64 amount = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->amount(), output); + } + + // optional bytes payload = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->payload(), output); + } + + // optional bytes public_key = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->public_key(), output); + } + + // repeated .hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic mosaics = 5; + for (unsigned int i = 0, + n = static_cast(this->mosaics_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->mosaics(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) +} + +::google::protobuf::uint8* NEMSignTx_NEMTransfer::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string recipient = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->recipient().data(), static_cast(this->recipient().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMTransfer.recipient"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->recipient(), target); + } + + // optional uint64 amount = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->amount(), target); + } + + // optional bytes payload = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->payload(), target); + } + + // optional bytes public_key = 4; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->public_key(), target); + } + + // repeated .hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic mosaics = 5; + for (unsigned int i = 0, + n = static_cast(this->mosaics_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->mosaics(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + return target; +} + +size_t NEMSignTx_NEMTransfer::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic mosaics = 5; + { + unsigned int count = static_cast(this->mosaics_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->mosaics(static_cast(i))); + } + } + + if (_has_bits_[0 / 32] & 15u) { + // optional string recipient = 1; + if (has_recipient()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->recipient()); + } + + // optional bytes payload = 3; + if (has_payload()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->payload()); + } + + // optional bytes public_key = 4; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + // optional uint64 amount = 2; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignTx_NEMTransfer::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignTx_NEMTransfer* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + MergeFrom(*source); + } +} + +void NEMSignTx_NEMTransfer::MergeFrom(const NEMSignTx_NEMTransfer& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + mosaics_.MergeFrom(from.mosaics_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_recipient(); + recipient_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.recipient_); + } + if (cached_has_bits & 0x00000002u) { + set_has_payload(); + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + if (cached_has_bits & 0x00000004u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (cached_has_bits & 0x00000008u) { + amount_ = from.amount_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NEMSignTx_NEMTransfer::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignTx_NEMTransfer::CopyFrom(const NEMSignTx_NEMTransfer& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignTx_NEMTransfer::IsInitialized() const { + return true; +} + +void NEMSignTx_NEMTransfer::Swap(NEMSignTx_NEMTransfer* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignTx_NEMTransfer::InternalSwap(NEMSignTx_NEMTransfer* other) { + using std::swap; + CastToBase(&mosaics_)->InternalSwap(CastToBase(&other->mosaics_)); + recipient_.Swap(&other->recipient_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + payload_.Swap(&other->payload_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(amount_, other->amount_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignTx_NEMTransfer::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignTx_NEMProvisionNamespace::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignTx_NEMProvisionNamespace::kNamespaceFieldNumber; +const int NEMSignTx_NEMProvisionNamespace::kParentFieldNumber; +const int NEMSignTx_NEMProvisionNamespace::kSinkFieldNumber; +const int NEMSignTx_NEMProvisionNamespace::kFeeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignTx_NEMProvisionNamespace::NEMSignTx_NEMProvisionNamespace() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMProvisionNamespace.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) +} +NEMSignTx_NEMProvisionNamespace::NEMSignTx_NEMProvisionNamespace(const NEMSignTx_NEMProvisionNamespace& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_namespace_()) { + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_parent()) { + parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_); + } + sink_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_sink()) { + sink_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sink_); + } + fee_ = from.fee_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) +} + +void NEMSignTx_NEMProvisionNamespace::SharedCtor() { + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sink_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + fee_ = GOOGLE_ULONGLONG(0); +} + +NEMSignTx_NEMProvisionNamespace::~NEMSignTx_NEMProvisionNamespace() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + SharedDtor(); +} + +void NEMSignTx_NEMProvisionNamespace::SharedDtor() { + namespace__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + parent_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sink_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMSignTx_NEMProvisionNamespace::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignTx_NEMProvisionNamespace::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignTx_NEMProvisionNamespace& NEMSignTx_NEMProvisionNamespace::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMProvisionNamespace.base); + return *internal_default_instance(); +} + + +void NEMSignTx_NEMProvisionNamespace::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + namespace__.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + parent_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + sink_.ClearNonDefaultToEmptyNoArena(); + } + } + fee_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignTx_NEMProvisionNamespace::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string namespace = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespace_())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.namespace"); + } else { + goto handle_unusual; + } + break; + } + + // optional string parent = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_parent())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->parent().data(), static_cast(this->parent().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.parent"); + } else { + goto handle_unusual; + } + break; + } + + // optional string sink = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_sink())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->sink().data(), static_cast(this->sink().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.sink"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 fee = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + return false; +#undef DO_ +} + +void NEMSignTx_NEMProvisionNamespace::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string namespace = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.namespace"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->namespace_(), output); + } + + // optional string parent = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->parent().data(), static_cast(this->parent().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.parent"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->parent(), output); + } + + // optional string sink = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->sink().data(), static_cast(this->sink().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.sink"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->sink(), output); + } + + // optional uint64 fee = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->fee(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) +} + +::google::protobuf::uint8* NEMSignTx_NEMProvisionNamespace::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string namespace = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.namespace"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->namespace_(), target); + } + + // optional string parent = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->parent().data(), static_cast(this->parent().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.parent"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->parent(), target); + } + + // optional string sink = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->sink().data(), static_cast(this->sink().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.sink"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->sink(), target); + } + + // optional uint64 fee = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->fee(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + return target; +} + +size_t NEMSignTx_NEMProvisionNamespace::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional string namespace = 1; + if (has_namespace_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespace_()); + } + + // optional string parent = 2; + if (has_parent()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->parent()); + } + + // optional string sink = 3; + if (has_sink()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->sink()); + } + + // optional uint64 fee = 4; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->fee()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignTx_NEMProvisionNamespace::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignTx_NEMProvisionNamespace* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + MergeFrom(*source); + } +} + +void NEMSignTx_NEMProvisionNamespace::MergeFrom(const NEMSignTx_NEMProvisionNamespace& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_namespace_(); + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + if (cached_has_bits & 0x00000002u) { + set_has_parent(); + parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_); + } + if (cached_has_bits & 0x00000004u) { + set_has_sink(); + sink_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sink_); + } + if (cached_has_bits & 0x00000008u) { + fee_ = from.fee_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NEMSignTx_NEMProvisionNamespace::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignTx_NEMProvisionNamespace::CopyFrom(const NEMSignTx_NEMProvisionNamespace& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignTx_NEMProvisionNamespace::IsInitialized() const { + return true; +} + +void NEMSignTx_NEMProvisionNamespace::Swap(NEMSignTx_NEMProvisionNamespace* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignTx_NEMProvisionNamespace::InternalSwap(NEMSignTx_NEMProvisionNamespace* other) { + using std::swap; + namespace__.Swap(&other->namespace__, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + parent_.Swap(&other->parent_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + sink_.Swap(&other->sink_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(fee_, other->fee_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignTx_NEMProvisionNamespace::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kNameFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kTickerFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kNamespaceFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kMosaicFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kDivisibilityFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kLevyFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kFeeFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kLevyAddressFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kLevyNamespaceFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kLevyMosaicFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kSupplyFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kMutableSupplyFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kTransferableFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kDescriptionFieldNumber; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::kNetworksFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) +} +NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition(const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + networks_(from.networks_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_name()) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + ticker_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_ticker()) { + ticker_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ticker_); + } + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_namespace_()) { + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + mosaic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_mosaic()) { + mosaic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mosaic_); + } + levy_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_levy_address()) { + levy_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.levy_address_); + } + levy_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_levy_namespace()) { + levy_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.levy_namespace_); + } + levy_mosaic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_levy_mosaic()) { + levy_mosaic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.levy_mosaic_); + } + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_description()) { + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + ::memcpy(&fee_, &from.fee_, + static_cast(reinterpret_cast(&levy_) - + reinterpret_cast(&fee_)) + sizeof(levy_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) +} + +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::SharedCtor() { + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ticker_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mosaic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + levy_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + levy_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + levy_mosaic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&fee_, 0, static_cast( + reinterpret_cast(&supply_) - + reinterpret_cast(&fee_)) + sizeof(supply_)); + levy_ = 1; +} + +NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::~NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + SharedDtor(); +} + +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ticker_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + namespace__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mosaic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + levy_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + levy_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + levy_mosaic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition.base); + return *internal_default_instance(); +} + + +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + networks_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + name_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + ticker_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + namespace__.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + mosaic_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000010u) { + levy_address_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000020u) { + levy_namespace_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000040u) { + levy_mosaic_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000080u) { + description_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 16128u) { + ::memset(&fee_, 0, static_cast( + reinterpret_cast(&supply_) - + reinterpret_cast(&fee_)) + sizeof(supply_)); + levy_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.name"); + } else { + goto handle_unusual; + } + break; + } + + // optional string ticker = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_ticker())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ticker().data(), static_cast(this->ticker().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.ticker"); + } else { + goto handle_unusual; + } + break; + } + + // optional string namespace = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespace_())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.namespace"); + } else { + goto handle_unusual; + } + break; + } + + // optional string mosaic = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mosaic())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mosaic().data(), static_cast(this->mosaic().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mosaic"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 divisibility = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_divisibility(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &divisibility_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.NEMMosaicLevy levy = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_IsValid(value)) { + set_levy(static_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 6, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 fee = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string levy_address = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_levy_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->levy_address().data(), static_cast(this->levy_address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_address"); + } else { + goto handle_unusual; + } + break; + } + + // optional string levy_namespace = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_levy_namespace())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->levy_namespace().data(), static_cast(this->levy_namespace().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_namespace"); + } else { + goto handle_unusual; + } + break; + } + + // optional string levy_mosaic = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_levy_mosaic())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->levy_mosaic().data(), static_cast(this->levy_mosaic().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_mosaic"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 supply = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { + set_has_supply(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &supply_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool mutable_supply = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { + set_has_mutable_supply(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &mutable_supply_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool transferable = 13; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { + set_has_transferable(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &transferable_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string description = 14; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_description())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.description"); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 networks = 15; + case 15: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 120u, input, this->mutable_networks()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_networks()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + return false; +#undef DO_ +} + +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // optional string ticker = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ticker().data(), static_cast(this->ticker().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.ticker"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->ticker(), output); + } + + // optional string namespace = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.namespace"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->namespace_(), output); + } + + // optional string mosaic = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mosaic().data(), static_cast(this->mosaic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mosaic"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->mosaic(), output); + } + + // optional uint32 divisibility = 5; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->divisibility(), output); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.NEMMosaicLevy levy = 6; + if (cached_has_bits & 0x00002000u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 6, this->levy(), output); + } + + // optional uint64 fee = 7; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->fee(), output); + } + + // optional string levy_address = 8; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->levy_address().data(), static_cast(this->levy_address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 8, this->levy_address(), output); + } + + // optional string levy_namespace = 9; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->levy_namespace().data(), static_cast(this->levy_namespace().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_namespace"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 9, this->levy_namespace(), output); + } + + // optional string levy_mosaic = 10; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->levy_mosaic().data(), static_cast(this->levy_mosaic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_mosaic"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 10, this->levy_mosaic(), output); + } + + // optional uint64 supply = 11; + if (cached_has_bits & 0x00001000u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->supply(), output); + } + + // optional bool mutable_supply = 12; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->mutable_supply(), output); + } + + // optional bool transferable = 13; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->transferable(), output); + } + + // optional string description = 14; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.description"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 14, this->description(), output); + } + + // repeated uint32 networks = 15; + for (int i = 0, n = this->networks_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 15, this->networks(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) +} + +::google::protobuf::uint8* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // optional string ticker = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ticker().data(), static_cast(this->ticker().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.ticker"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->ticker(), target); + } + + // optional string namespace = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.namespace"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->namespace_(), target); + } + + // optional string mosaic = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mosaic().data(), static_cast(this->mosaic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mosaic"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->mosaic(), target); + } + + // optional uint32 divisibility = 5; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->divisibility(), target); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.NEMMosaicLevy levy = 6; + if (cached_has_bits & 0x00002000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 6, this->levy(), target); + } + + // optional uint64 fee = 7; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->fee(), target); + } + + // optional string levy_address = 8; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->levy_address().data(), static_cast(this->levy_address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 8, this->levy_address(), target); + } + + // optional string levy_namespace = 9; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->levy_namespace().data(), static_cast(this->levy_namespace().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_namespace"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 9, this->levy_namespace(), target); + } + + // optional string levy_mosaic = 10; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->levy_mosaic().data(), static_cast(this->levy_mosaic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_mosaic"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 10, this->levy_mosaic(), target); + } + + // optional uint64 supply = 11; + if (cached_has_bits & 0x00001000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->supply(), target); + } + + // optional bool mutable_supply = 12; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->mutable_supply(), target); + } + + // optional bool transferable = 13; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->transferable(), target); + } + + // optional string description = 14; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.description"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 14, this->description(), target); + } + + // repeated uint32 networks = 15; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(15, this->networks_, target); + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + return target; +} + +size_t NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 networks = 15; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->networks_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->networks_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 255u) { + // optional string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional string ticker = 2; + if (has_ticker()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->ticker()); + } + + // optional string namespace = 3; + if (has_namespace_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespace_()); + } + + // optional string mosaic = 4; + if (has_mosaic()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mosaic()); + } + + // optional string levy_address = 8; + if (has_levy_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->levy_address()); + } + + // optional string levy_namespace = 9; + if (has_levy_namespace()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->levy_namespace()); + } + + // optional string levy_mosaic = 10; + if (has_levy_mosaic()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->levy_mosaic()); + } + + // optional string description = 14; + if (has_description()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->description()); + } + + } + if (_has_bits_[8 / 32] & 16128u) { + // optional uint64 fee = 7; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->fee()); + } + + // optional uint32 divisibility = 5; + if (has_divisibility()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->divisibility()); + } + + // optional bool mutable_supply = 12; + if (has_mutable_supply()) { + total_size += 1 + 1; + } + + // optional bool transferable = 13; + if (has_transferable()) { + total_size += 1 + 1; + } + + // optional uint64 supply = 11; + if (has_supply()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->supply()); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.NEMMosaicLevy levy = 6; + if (has_levy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->levy()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + MergeFrom(*source); + } +} + +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::MergeFrom(const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + networks_.MergeFrom(from.networks_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_name(); + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (cached_has_bits & 0x00000002u) { + set_has_ticker(); + ticker_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ticker_); + } + if (cached_has_bits & 0x00000004u) { + set_has_namespace_(); + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + if (cached_has_bits & 0x00000008u) { + set_has_mosaic(); + mosaic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mosaic_); + } + if (cached_has_bits & 0x00000010u) { + set_has_levy_address(); + levy_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.levy_address_); + } + if (cached_has_bits & 0x00000020u) { + set_has_levy_namespace(); + levy_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.levy_namespace_); + } + if (cached_has_bits & 0x00000040u) { + set_has_levy_mosaic(); + levy_mosaic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.levy_mosaic_); + } + if (cached_has_bits & 0x00000080u) { + set_has_description(); + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + } + if (cached_has_bits & 16128u) { + if (cached_has_bits & 0x00000100u) { + fee_ = from.fee_; + } + if (cached_has_bits & 0x00000200u) { + divisibility_ = from.divisibility_; + } + if (cached_has_bits & 0x00000400u) { + mutable_supply_ = from.mutable_supply_; + } + if (cached_has_bits & 0x00000800u) { + transferable_ = from.transferable_; + } + if (cached_has_bits & 0x00001000u) { + supply_ = from.supply_; + } + if (cached_has_bits & 0x00002000u) { + levy_ = from.levy_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::CopyFrom(const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::IsInitialized() const { + return true; +} + +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::Swap(NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::InternalSwap(NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* other) { + using std::swap; + networks_.InternalSwap(&other->networks_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + ticker_.Swap(&other->ticker_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + namespace__.Swap(&other->namespace__, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + mosaic_.Swap(&other->mosaic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + levy_address_.Swap(&other->levy_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + levy_namespace_.Swap(&other->levy_namespace_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + levy_mosaic_.Swap(&other->levy_mosaic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(fee_, other->fee_); + swap(divisibility_, other->divisibility_); + swap(mutable_supply_, other->mutable_supply_); + swap(transferable_, other->transferable_); + swap(supply_, other->supply_); + swap(levy_, other->levy_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignTx_NEMMosaicCreation::InitAsDefaultInstance() { + ::hw::trezor::messages::nem::_NEMSignTx_NEMMosaicCreation_default_instance_._instance.get_mutable()->definition_ = const_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition*>( + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignTx_NEMMosaicCreation::kDefinitionFieldNumber; +const int NEMSignTx_NEMMosaicCreation::kSinkFieldNumber; +const int NEMSignTx_NEMMosaicCreation::kFeeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignTx_NEMMosaicCreation::NEMSignTx_NEMMosaicCreation() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMMosaicCreation.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) +} +NEMSignTx_NEMMosaicCreation::NEMSignTx_NEMMosaicCreation(const NEMSignTx_NEMMosaicCreation& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + sink_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_sink()) { + sink_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sink_); + } + if (from.has_definition()) { + definition_ = new ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition(*from.definition_); + } else { + definition_ = NULL; + } + fee_ = from.fee_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) +} + +void NEMSignTx_NEMMosaicCreation::SharedCtor() { + sink_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&definition_, 0, static_cast( + reinterpret_cast(&fee_) - + reinterpret_cast(&definition_)) + sizeof(fee_)); +} + +NEMSignTx_NEMMosaicCreation::~NEMSignTx_NEMMosaicCreation() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + SharedDtor(); +} + +void NEMSignTx_NEMMosaicCreation::SharedDtor() { + sink_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete definition_; +} + +void NEMSignTx_NEMMosaicCreation::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignTx_NEMMosaicCreation::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignTx_NEMMosaicCreation& NEMSignTx_NEMMosaicCreation::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMMosaicCreation.base); + return *internal_default_instance(); +} + + +void NEMSignTx_NEMMosaicCreation::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + sink_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(definition_ != NULL); + definition_->Clear(); + } + } + fee_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignTx_NEMMosaicCreation::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition definition = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_definition())); + } else { + goto handle_unusual; + } + break; + } + + // optional string sink = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_sink())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->sink().data(), static_cast(this->sink().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.sink"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 fee = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + return false; +#undef DO_ +} + +void NEMSignTx_NEMMosaicCreation::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition definition = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_definition(), output); + } + + // optional string sink = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->sink().data(), static_cast(this->sink().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.sink"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->sink(), output); + } + + // optional uint64 fee = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->fee(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) +} + +::google::protobuf::uint8* NEMSignTx_NEMMosaicCreation::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition definition = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_definition(), deterministic, target); + } + + // optional string sink = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->sink().data(), static_cast(this->sink().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.sink"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->sink(), target); + } + + // optional uint64 fee = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->fee(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + return target; +} + +size_t NEMSignTx_NEMMosaicCreation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string sink = 2; + if (has_sink()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->sink()); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition definition = 1; + if (has_definition()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *definition_); + } + + // optional uint64 fee = 3; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->fee()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignTx_NEMMosaicCreation::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignTx_NEMMosaicCreation* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + MergeFrom(*source); + } +} + +void NEMSignTx_NEMMosaicCreation::MergeFrom(const NEMSignTx_NEMMosaicCreation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_sink(); + sink_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sink_); + } + if (cached_has_bits & 0x00000002u) { + mutable_definition()->::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::MergeFrom(from.definition()); + } + if (cached_has_bits & 0x00000004u) { + fee_ = from.fee_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NEMSignTx_NEMMosaicCreation::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignTx_NEMMosaicCreation::CopyFrom(const NEMSignTx_NEMMosaicCreation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignTx_NEMMosaicCreation::IsInitialized() const { + return true; +} + +void NEMSignTx_NEMMosaicCreation::Swap(NEMSignTx_NEMMosaicCreation* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignTx_NEMMosaicCreation::InternalSwap(NEMSignTx_NEMMosaicCreation* other) { + using std::swap; + sink_.Swap(&other->sink_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(definition_, other->definition_); + swap(fee_, other->fee_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignTx_NEMMosaicCreation::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignTx_NEMMosaicSupplyChange::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignTx_NEMMosaicSupplyChange::kNamespaceFieldNumber; +const int NEMSignTx_NEMMosaicSupplyChange::kMosaicFieldNumber; +const int NEMSignTx_NEMMosaicSupplyChange::kTypeFieldNumber; +const int NEMSignTx_NEMMosaicSupplyChange::kDeltaFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignTx_NEMMosaicSupplyChange::NEMSignTx_NEMMosaicSupplyChange() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMMosaicSupplyChange.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) +} +NEMSignTx_NEMMosaicSupplyChange::NEMSignTx_NEMMosaicSupplyChange(const NEMSignTx_NEMMosaicSupplyChange& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_namespace_()) { + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + mosaic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_mosaic()) { + mosaic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mosaic_); + } + ::memcpy(&delta_, &from.delta_, + static_cast(reinterpret_cast(&type_) - + reinterpret_cast(&delta_)) + sizeof(type_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) +} + +void NEMSignTx_NEMMosaicSupplyChange::SharedCtor() { + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mosaic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + delta_ = GOOGLE_ULONGLONG(0); + type_ = 1; +} + +NEMSignTx_NEMMosaicSupplyChange::~NEMSignTx_NEMMosaicSupplyChange() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + SharedDtor(); +} + +void NEMSignTx_NEMMosaicSupplyChange::SharedDtor() { + namespace__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mosaic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMSignTx_NEMMosaicSupplyChange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignTx_NEMMosaicSupplyChange::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignTx_NEMMosaicSupplyChange& NEMSignTx_NEMMosaicSupplyChange::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMMosaicSupplyChange.base); + return *internal_default_instance(); +} + + +void NEMSignTx_NEMMosaicSupplyChange::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + namespace__.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + mosaic_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 12u) { + delta_ = GOOGLE_ULONGLONG(0); + type_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignTx_NEMMosaicSupplyChange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string namespace = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespace_())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.namespace"); + } else { + goto handle_unusual; + } + break; + } + + // optional string mosaic = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mosaic())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mosaic().data(), static_cast(this->mosaic().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.mosaic"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.NEMSupplyChangeType type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_IsValid(value)) { + set_type(static_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 3, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 delta = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_delta(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &delta_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + return false; +#undef DO_ +} + +void NEMSignTx_NEMMosaicSupplyChange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string namespace = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.namespace"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->namespace_(), output); + } + + // optional string mosaic = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mosaic().data(), static_cast(this->mosaic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.mosaic"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->mosaic(), output); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.NEMSupplyChangeType type = 3; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->type(), output); + } + + // optional uint64 delta = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->delta(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) +} + +::google::protobuf::uint8* NEMSignTx_NEMMosaicSupplyChange::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string namespace = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.namespace"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->namespace_(), target); + } + + // optional string mosaic = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mosaic().data(), static_cast(this->mosaic().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.mosaic"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->mosaic(), target); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.NEMSupplyChangeType type = 3; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->type(), target); + } + + // optional uint64 delta = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->delta(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + return target; +} + +size_t NEMSignTx_NEMMosaicSupplyChange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional string namespace = 1; + if (has_namespace_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespace_()); + } + + // optional string mosaic = 2; + if (has_mosaic()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mosaic()); + } + + // optional uint64 delta = 4; + if (has_delta()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->delta()); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.NEMSupplyChangeType type = 3; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignTx_NEMMosaicSupplyChange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignTx_NEMMosaicSupplyChange* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + MergeFrom(*source); + } +} + +void NEMSignTx_NEMMosaicSupplyChange::MergeFrom(const NEMSignTx_NEMMosaicSupplyChange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_namespace_(); + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + if (cached_has_bits & 0x00000002u) { + set_has_mosaic(); + mosaic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mosaic_); + } + if (cached_has_bits & 0x00000004u) { + delta_ = from.delta_; + } + if (cached_has_bits & 0x00000008u) { + type_ = from.type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NEMSignTx_NEMMosaicSupplyChange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignTx_NEMMosaicSupplyChange::CopyFrom(const NEMSignTx_NEMMosaicSupplyChange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignTx_NEMMosaicSupplyChange::IsInitialized() const { + return true; +} + +void NEMSignTx_NEMMosaicSupplyChange::Swap(NEMSignTx_NEMMosaicSupplyChange* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignTx_NEMMosaicSupplyChange::InternalSwap(NEMSignTx_NEMMosaicSupplyChange* other) { + using std::swap; + namespace__.Swap(&other->namespace__, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + mosaic_.Swap(&other->mosaic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(delta_, other->delta_); + swap(type_, other->type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignTx_NEMMosaicSupplyChange::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::kTypeFieldNumber; +const int NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::kPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMAggregateModification_NEMCosignatoryModification.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) +} +NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification(const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) +} + +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 1; +} + +NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::~NEMSignTx_NEMAggregateModification_NEMCosignatoryModification() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + SharedDtor(); +} + +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMAggregateModification_NEMCosignatoryModification.base); + return *internal_default_instance(); +} + + +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + type_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.NEMModificationType type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_IsValid(value)) { + set_type(static_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional bytes public_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + return false; +#undef DO_ +} + +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.NEMModificationType type = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // optional bytes public_key = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) +} + +::google::protobuf::uint8* NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.NEMModificationType type = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // optional bytes public_key = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + return target; +} + +size_t NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes public_key = 2; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.NEMModificationType type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + MergeFrom(*source); + } +} + +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::MergeFrom(const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (cached_has_bits & 0x00000002u) { + type_ = from.type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::CopyFrom(const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::IsInitialized() const { + return true; +} + +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::Swap(NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::InternalSwap(NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* other) { + using std::swap; + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignTx_NEMAggregateModification::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignTx_NEMAggregateModification::kModificationsFieldNumber; +const int NEMSignTx_NEMAggregateModification::kRelativeChangeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignTx_NEMAggregateModification::NEMSignTx_NEMAggregateModification() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMAggregateModification.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) +} +NEMSignTx_NEMAggregateModification::NEMSignTx_NEMAggregateModification(const NEMSignTx_NEMAggregateModification& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + modifications_(from.modifications_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + relative_change_ = from.relative_change_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) +} + +void NEMSignTx_NEMAggregateModification::SharedCtor() { + relative_change_ = 0; +} + +NEMSignTx_NEMAggregateModification::~NEMSignTx_NEMAggregateModification() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + SharedDtor(); +} + +void NEMSignTx_NEMAggregateModification::SharedDtor() { +} + +void NEMSignTx_NEMAggregateModification::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignTx_NEMAggregateModification::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignTx_NEMAggregateModification& NEMSignTx_NEMAggregateModification::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMAggregateModification.base); + return *internal_default_instance(); +} + + +void NEMSignTx_NEMAggregateModification::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + modifications_.Clear(); + relative_change_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignTx_NEMAggregateModification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification modifications = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_modifications())); + } else { + goto handle_unusual; + } + break; + } + + // optional sint32 relative_change = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_relative_change(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>( + input, &relative_change_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + return false; +#undef DO_ +} + +void NEMSignTx_NEMAggregateModification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification modifications = 1; + for (unsigned int i = 0, + n = static_cast(this->modifications_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->modifications(static_cast(i)), + output); + } + + cached_has_bits = _has_bits_[0]; + // optional sint32 relative_change = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteSInt32(2, this->relative_change(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) +} + +::google::protobuf::uint8* NEMSignTx_NEMAggregateModification::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification modifications = 1; + for (unsigned int i = 0, + n = static_cast(this->modifications_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->modifications(static_cast(i)), deterministic, target); + } + + cached_has_bits = _has_bits_[0]; + // optional sint32 relative_change = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(2, this->relative_change(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + return target; +} + +size_t NEMSignTx_NEMAggregateModification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification modifications = 1; + { + unsigned int count = static_cast(this->modifications_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->modifications(static_cast(i))); + } + } + + // optional sint32 relative_change = 2; + if (has_relative_change()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::SInt32Size( + this->relative_change()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignTx_NEMAggregateModification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignTx_NEMAggregateModification* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + MergeFrom(*source); + } +} + +void NEMSignTx_NEMAggregateModification::MergeFrom(const NEMSignTx_NEMAggregateModification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + modifications_.MergeFrom(from.modifications_); + if (from.has_relative_change()) { + set_relative_change(from.relative_change()); + } +} + +void NEMSignTx_NEMAggregateModification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignTx_NEMAggregateModification::CopyFrom(const NEMSignTx_NEMAggregateModification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignTx_NEMAggregateModification::IsInitialized() const { + return true; +} + +void NEMSignTx_NEMAggregateModification::Swap(NEMSignTx_NEMAggregateModification* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignTx_NEMAggregateModification::InternalSwap(NEMSignTx_NEMAggregateModification* other) { + using std::swap; + CastToBase(&modifications_)->InternalSwap(CastToBase(&other->modifications_)); + swap(relative_change_, other->relative_change_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignTx_NEMAggregateModification::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignTx_NEMImportanceTransfer::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignTx_NEMImportanceTransfer::kModeFieldNumber; +const int NEMSignTx_NEMImportanceTransfer::kPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignTx_NEMImportanceTransfer::NEMSignTx_NEMImportanceTransfer() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMImportanceTransfer.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) +} +NEMSignTx_NEMImportanceTransfer::NEMSignTx_NEMImportanceTransfer(const NEMSignTx_NEMImportanceTransfer& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + mode_ = from.mode_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) +} + +void NEMSignTx_NEMImportanceTransfer::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mode_ = 1; +} + +NEMSignTx_NEMImportanceTransfer::~NEMSignTx_NEMImportanceTransfer() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + SharedDtor(); +} + +void NEMSignTx_NEMImportanceTransfer::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMSignTx_NEMImportanceTransfer::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignTx_NEMImportanceTransfer::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignTx_NEMImportanceTransfer& NEMSignTx_NEMImportanceTransfer::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx_NEMImportanceTransfer.base); + return *internal_default_instance(); +} + + +void NEMSignTx_NEMImportanceTransfer::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + mode_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignTx_NEMImportanceTransfer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.NEMImportanceTransferMode mode = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_IsValid(value)) { + set_mode(static_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional bytes public_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + return false; +#undef DO_ +} + +void NEMSignTx_NEMImportanceTransfer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.NEMImportanceTransferMode mode = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->mode(), output); + } + + // optional bytes public_key = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) +} + +::google::protobuf::uint8* NEMSignTx_NEMImportanceTransfer::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.NEMImportanceTransferMode mode = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->mode(), target); + } + + // optional bytes public_key = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + return target; +} + +size_t NEMSignTx_NEMImportanceTransfer::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes public_key = 2; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.NEMImportanceTransferMode mode = 1; + if (has_mode()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->mode()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignTx_NEMImportanceTransfer::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignTx_NEMImportanceTransfer* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + MergeFrom(*source); + } +} + +void NEMSignTx_NEMImportanceTransfer::MergeFrom(const NEMSignTx_NEMImportanceTransfer& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (cached_has_bits & 0x00000002u) { + mode_ = from.mode_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NEMSignTx_NEMImportanceTransfer::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignTx_NEMImportanceTransfer::CopyFrom(const NEMSignTx_NEMImportanceTransfer& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignTx_NEMImportanceTransfer::IsInitialized() const { + return true; +} + +void NEMSignTx_NEMImportanceTransfer::Swap(NEMSignTx_NEMImportanceTransfer* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignTx_NEMImportanceTransfer::InternalSwap(NEMSignTx_NEMImportanceTransfer* other) { + using std::swap; + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(mode_, other->mode_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignTx_NEMImportanceTransfer::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignTx::InitAsDefaultInstance() { + ::hw::trezor::messages::nem::_NEMSignTx_default_instance_._instance.get_mutable()->transaction_ = const_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon*>( + ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon::internal_default_instance()); + ::hw::trezor::messages::nem::_NEMSignTx_default_instance_._instance.get_mutable()->multisig_ = const_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon*>( + ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon::internal_default_instance()); + ::hw::trezor::messages::nem::_NEMSignTx_default_instance_._instance.get_mutable()->transfer_ = const_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer*>( + ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer::internal_default_instance()); + ::hw::trezor::messages::nem::_NEMSignTx_default_instance_._instance.get_mutable()->provision_namespace_ = const_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace*>( + ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace::internal_default_instance()); + ::hw::trezor::messages::nem::_NEMSignTx_default_instance_._instance.get_mutable()->mosaic_creation_ = const_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation*>( + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation::internal_default_instance()); + ::hw::trezor::messages::nem::_NEMSignTx_default_instance_._instance.get_mutable()->supply_change_ = const_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange*>( + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange::internal_default_instance()); + ::hw::trezor::messages::nem::_NEMSignTx_default_instance_._instance.get_mutable()->aggregate_modification_ = const_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification*>( + ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification::internal_default_instance()); + ::hw::trezor::messages::nem::_NEMSignTx_default_instance_._instance.get_mutable()->importance_transfer_ = const_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer*>( + ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignTx::kTransactionFieldNumber; +const int NEMSignTx::kMultisigFieldNumber; +const int NEMSignTx::kTransferFieldNumber; +const int NEMSignTx::kCosigningFieldNumber; +const int NEMSignTx::kProvisionNamespaceFieldNumber; +const int NEMSignTx::kMosaicCreationFieldNumber; +const int NEMSignTx::kSupplyChangeFieldNumber; +const int NEMSignTx::kAggregateModificationFieldNumber; +const int NEMSignTx::kImportanceTransferFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignTx::NEMSignTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignTx) +} +NEMSignTx::NEMSignTx(const NEMSignTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_transaction()) { + transaction_ = new ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon(*from.transaction_); + } else { + transaction_ = NULL; + } + if (from.has_multisig()) { + multisig_ = new ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon(*from.multisig_); + } else { + multisig_ = NULL; + } + if (from.has_transfer()) { + transfer_ = new ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer(*from.transfer_); + } else { + transfer_ = NULL; + } + if (from.has_provision_namespace()) { + provision_namespace_ = new ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace(*from.provision_namespace_); + } else { + provision_namespace_ = NULL; + } + if (from.has_mosaic_creation()) { + mosaic_creation_ = new ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation(*from.mosaic_creation_); + } else { + mosaic_creation_ = NULL; + } + if (from.has_supply_change()) { + supply_change_ = new ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange(*from.supply_change_); + } else { + supply_change_ = NULL; + } + if (from.has_aggregate_modification()) { + aggregate_modification_ = new ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification(*from.aggregate_modification_); + } else { + aggregate_modification_ = NULL; + } + if (from.has_importance_transfer()) { + importance_transfer_ = new ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer(*from.importance_transfer_); + } else { + importance_transfer_ = NULL; + } + cosigning_ = from.cosigning_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignTx) +} + +void NEMSignTx::SharedCtor() { + ::memset(&transaction_, 0, static_cast( + reinterpret_cast(&cosigning_) - + reinterpret_cast(&transaction_)) + sizeof(cosigning_)); +} + +NEMSignTx::~NEMSignTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignTx) + SharedDtor(); +} + +void NEMSignTx::SharedDtor() { + if (this != internal_default_instance()) delete transaction_; + if (this != internal_default_instance()) delete multisig_; + if (this != internal_default_instance()) delete transfer_; + if (this != internal_default_instance()) delete provision_namespace_; + if (this != internal_default_instance()) delete mosaic_creation_; + if (this != internal_default_instance()) delete supply_change_; + if (this != internal_default_instance()) delete aggregate_modification_; + if (this != internal_default_instance()) delete importance_transfer_; +} + +void NEMSignTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignTx::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignTx& NEMSignTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignTx.base); + return *internal_default_instance(); +} + + +void NEMSignTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(transaction_ != NULL); + transaction_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(multisig_ != NULL); + multisig_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(transfer_ != NULL); + transfer_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(provision_namespace_ != NULL); + provision_namespace_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(mosaic_creation_ != NULL); + mosaic_creation_->Clear(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(supply_change_ != NULL); + supply_change_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(aggregate_modification_ != NULL); + aggregate_modification_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(importance_transfer_ != NULL); + importance_transfer_->Clear(); + } + } + cosigning_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon transaction = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transaction())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon multisig = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_multisig())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransfer transfer = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transfer())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool cosigning = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_cosigning(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &cosigning_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace provision_namespace = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_provision_namespace())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation mosaic_creation = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_mosaic_creation())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange supply_change = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_supply_change())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification aggregate_modification = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_aggregate_modification())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer importance_transfer = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_importance_transfer())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignTx) + return false; +#undef DO_ +} + +void NEMSignTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon transaction = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_transaction(), output); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon multisig = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_multisig(), output); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransfer transfer = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_transfer(), output); + } + + // optional bool cosigning = 4; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->cosigning(), output); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace provision_namespace = 5; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->_internal_provision_namespace(), output); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation mosaic_creation = 6; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->_internal_mosaic_creation(), output); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange supply_change = 7; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->_internal_supply_change(), output); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification aggregate_modification = 8; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, this->_internal_aggregate_modification(), output); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer importance_transfer = 9; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, this->_internal_importance_transfer(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignTx) +} + +::google::protobuf::uint8* NEMSignTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon transaction = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_transaction(), deterministic, target); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon multisig = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_multisig(), deterministic, target); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransfer transfer = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_transfer(), deterministic, target); + } + + // optional bool cosigning = 4; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->cosigning(), target); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace provision_namespace = 5; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->_internal_provision_namespace(), deterministic, target); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation mosaic_creation = 6; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->_internal_mosaic_creation(), deterministic, target); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange supply_change = 7; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->_internal_supply_change(), deterministic, target); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification aggregate_modification = 8; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, this->_internal_aggregate_modification(), deterministic, target); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer importance_transfer = 9; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, this->_internal_importance_transfer(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignTx) + return target; +} + +size_t NEMSignTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon transaction = 1; + if (has_transaction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transaction_); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon multisig = 2; + if (has_multisig()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *multisig_); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransfer transfer = 3; + if (has_transfer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transfer_); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace provision_namespace = 5; + if (has_provision_namespace()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *provision_namespace_); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation mosaic_creation = 6; + if (has_mosaic_creation()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *mosaic_creation_); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange supply_change = 7; + if (has_supply_change()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *supply_change_); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification aggregate_modification = 8; + if (has_aggregate_modification()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *aggregate_modification_); + } + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer importance_transfer = 9; + if (has_importance_transfer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *importance_transfer_); + } + + } + // optional bool cosigning = 4; + if (has_cosigning()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignTx) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignTx) + MergeFrom(*source); + } +} + +void NEMSignTx::MergeFrom(const NEMSignTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + mutable_transaction()->::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon::MergeFrom(from.transaction()); + } + if (cached_has_bits & 0x00000002u) { + mutable_multisig()->::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon::MergeFrom(from.multisig()); + } + if (cached_has_bits & 0x00000004u) { + mutable_transfer()->::hw::trezor::messages::nem::NEMSignTx_NEMTransfer::MergeFrom(from.transfer()); + } + if (cached_has_bits & 0x00000008u) { + mutable_provision_namespace()->::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace::MergeFrom(from.provision_namespace()); + } + if (cached_has_bits & 0x00000010u) { + mutable_mosaic_creation()->::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation::MergeFrom(from.mosaic_creation()); + } + if (cached_has_bits & 0x00000020u) { + mutable_supply_change()->::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange::MergeFrom(from.supply_change()); + } + if (cached_has_bits & 0x00000040u) { + mutable_aggregate_modification()->::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification::MergeFrom(from.aggregate_modification()); + } + if (cached_has_bits & 0x00000080u) { + mutable_importance_transfer()->::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer::MergeFrom(from.importance_transfer()); + } + } + if (cached_has_bits & 0x00000100u) { + set_cosigning(from.cosigning()); + } +} + +void NEMSignTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignTx::CopyFrom(const NEMSignTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignTx::IsInitialized() const { + return true; +} + +void NEMSignTx::Swap(NEMSignTx* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignTx::InternalSwap(NEMSignTx* other) { + using std::swap; + swap(transaction_, other->transaction_); + swap(multisig_, other->multisig_); + swap(transfer_, other->transfer_); + swap(provision_namespace_, other->provision_namespace_); + swap(mosaic_creation_, other->mosaic_creation_); + swap(supply_change_, other->supply_change_); + swap(aggregate_modification_, other->aggregate_modification_); + swap(importance_transfer_, other->importance_transfer_); + swap(cosigning_, other->cosigning_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignTx::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMSignedTx::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMSignedTx::kDataFieldNumber; +const int NEMSignedTx::kSignatureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMSignedTx::NEMSignedTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMSignedTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMSignedTx) +} +NEMSignedTx::NEMSignedTx(const NEMSignedTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data()) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMSignedTx) +} + +void NEMSignedTx::SharedCtor() { + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +NEMSignedTx::~NEMSignedTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMSignedTx) + SharedDtor(); +} + +void NEMSignedTx::SharedDtor() { + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMSignedTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMSignedTx::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMSignedTx& NEMSignedTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMSignedTx.base); + return *internal_default_instance(); +} + + +void NEMSignedTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + data_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMSignedTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMSignedTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes data = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMSignedTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMSignedTx) + return false; +#undef DO_ +} + +void NEMSignedTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes data = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->data(), output); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->signature(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMSignedTx) +} + +::google::protobuf::uint8* NEMSignedTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes data = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->data(), target); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->signature(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMSignedTx) + return target; +} + +size_t NEMSignedTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMSignedTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes data = 1; + if (has_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + // optional bytes signature = 2; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMSignedTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMSignedTx) + GOOGLE_DCHECK_NE(&from, this); + const NEMSignedTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMSignedTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMSignedTx) + MergeFrom(*source); + } +} + +void NEMSignedTx::MergeFrom(const NEMSignedTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMSignedTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_data(); + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + if (cached_has_bits & 0x00000002u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + } +} + +void NEMSignedTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMSignedTx::CopyFrom(const NEMSignedTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMSignedTx::IsInitialized() const { + return true; +} + +void NEMSignedTx::Swap(NEMSignedTx* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMSignedTx::InternalSwap(NEMSignedTx* other) { + using std::swap; + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMSignedTx::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMDecryptMessage::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMDecryptMessage::kAddressNFieldNumber; +const int NEMDecryptMessage::kNetworkFieldNumber; +const int NEMDecryptMessage::kPublicKeyFieldNumber; +const int NEMDecryptMessage::kPayloadFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMDecryptMessage::NEMDecryptMessage() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMDecryptMessage.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMDecryptMessage) +} +NEMDecryptMessage::NEMDecryptMessage(const NEMDecryptMessage& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_payload()) { + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + network_ = from.network_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMDecryptMessage) +} + +void NEMDecryptMessage::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + network_ = 0u; +} + +NEMDecryptMessage::~NEMDecryptMessage() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMDecryptMessage) + SharedDtor(); +} + +void NEMDecryptMessage::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMDecryptMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMDecryptMessage::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMDecryptMessage& NEMDecryptMessage::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMDecryptMessage.base); + return *internal_default_instance(); +} + + +void NEMDecryptMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMDecryptMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + payload_.ClearNonDefaultToEmptyNoArena(); + } + } + network_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMDecryptMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMDecryptMessage) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 network = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_network(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &network_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes public_key = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes payload = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_payload())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMDecryptMessage) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMDecryptMessage) + return false; +#undef DO_ +} + +void NEMDecryptMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMDecryptMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional uint32 network = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->network(), output); + } + + // optional bytes public_key = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->public_key(), output); + } + + // optional bytes payload = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->payload(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMDecryptMessage) +} + +::google::protobuf::uint8* NEMDecryptMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMDecryptMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional uint32 network = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->network(), target); + } + + // optional bytes public_key = 3; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->public_key(), target); + } + + // optional bytes payload = 4; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->payload(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMDecryptMessage) + return target; +} + +size_t NEMDecryptMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMDecryptMessage) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 7u) { + // optional bytes public_key = 3; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + // optional bytes payload = 4; + if (has_payload()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->payload()); + } + + // optional uint32 network = 2; + if (has_network()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->network()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMDecryptMessage::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMDecryptMessage) + GOOGLE_DCHECK_NE(&from, this); + const NEMDecryptMessage* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMDecryptMessage) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMDecryptMessage) + MergeFrom(*source); + } +} + +void NEMDecryptMessage::MergeFrom(const NEMDecryptMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMDecryptMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_payload(); + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + if (cached_has_bits & 0x00000004u) { + network_ = from.network_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NEMDecryptMessage::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMDecryptMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMDecryptMessage::CopyFrom(const NEMDecryptMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMDecryptMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMDecryptMessage::IsInitialized() const { + return true; +} + +void NEMDecryptMessage::Swap(NEMDecryptMessage* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMDecryptMessage::InternalSwap(NEMDecryptMessage* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + payload_.Swap(&other->payload_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(network_, other->network_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMDecryptMessage::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NEMDecryptedMessage::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NEMDecryptedMessage::kPayloadFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NEMDecryptedMessage::NEMDecryptedMessage() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dnem_2eproto::scc_info_NEMDecryptedMessage.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.nem.NEMDecryptedMessage) +} +NEMDecryptedMessage::NEMDecryptedMessage(const NEMDecryptedMessage& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_payload()) { + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.nem.NEMDecryptedMessage) +} + +void NEMDecryptedMessage::SharedCtor() { + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +NEMDecryptedMessage::~NEMDecryptedMessage() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.nem.NEMDecryptedMessage) + SharedDtor(); +} + +void NEMDecryptedMessage::SharedDtor() { + payload_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NEMDecryptedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* NEMDecryptedMessage::descriptor() { + ::protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NEMDecryptedMessage& NEMDecryptedMessage::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dnem_2eproto::scc_info_NEMDecryptedMessage.base); + return *internal_default_instance(); +} + + +void NEMDecryptedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.nem.NEMDecryptedMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + payload_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NEMDecryptedMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.nem.NEMDecryptedMessage) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes payload = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_payload())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.nem.NEMDecryptedMessage) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.nem.NEMDecryptedMessage) + return false; +#undef DO_ +} + +void NEMDecryptedMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.nem.NEMDecryptedMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes payload = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->payload(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.nem.NEMDecryptedMessage) +} + +::google::protobuf::uint8* NEMDecryptedMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.nem.NEMDecryptedMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes payload = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->payload(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.nem.NEMDecryptedMessage) + return target; +} + +size_t NEMDecryptedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.nem.NEMDecryptedMessage) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes payload = 1; + if (has_payload()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->payload()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NEMDecryptedMessage::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.nem.NEMDecryptedMessage) + GOOGLE_DCHECK_NE(&from, this); + const NEMDecryptedMessage* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.nem.NEMDecryptedMessage) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.nem.NEMDecryptedMessage) + MergeFrom(*source); + } +} + +void NEMDecryptedMessage::MergeFrom(const NEMDecryptedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.nem.NEMDecryptedMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_payload()) { + set_has_payload(); + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } +} + +void NEMDecryptedMessage::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.nem.NEMDecryptedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NEMDecryptedMessage::CopyFrom(const NEMDecryptedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.nem.NEMDecryptedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NEMDecryptedMessage::IsInitialized() const { + return true; +} + +void NEMDecryptedMessage::Swap(NEMDecryptedMessage* other) { + if (other == this) return; + InternalSwap(other); +} +void NEMDecryptedMessage::InternalSwap(NEMDecryptedMessage* other) { + using std::swap; + payload_.Swap(&other->payload_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NEMDecryptedMessage::GetMetadata() const { + protobuf_messages_2dnem_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dnem_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace nem +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMGetAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMGetAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMGetAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMSignedTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMSignedTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMSignedTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMDecryptMessage* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMDecryptMessage >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMDecryptMessage >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::nem::NEMDecryptedMessage* Arena::CreateMaybeMessage< ::hw::trezor::messages::nem::NEMDecryptedMessage >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::nem::NEMDecryptedMessage >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-nem.pb.h b/src/Core/hardware/trezor/protob/messages-nem.pb.h new file mode 100644 index 00000000..38c0b724 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-nem.pb.h @@ -0,0 +1,6182 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-nem.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dnem_2eproto +#define PROTOBUF_INCLUDED_messages_2dnem_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dnem_2eproto + +namespace protobuf_messages_2dnem_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[16]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dnem_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace nem { +class NEMAddress; +class NEMAddressDefaultTypeInternal; +extern NEMAddressDefaultTypeInternal _NEMAddress_default_instance_; +class NEMDecryptMessage; +class NEMDecryptMessageDefaultTypeInternal; +extern NEMDecryptMessageDefaultTypeInternal _NEMDecryptMessage_default_instance_; +class NEMDecryptedMessage; +class NEMDecryptedMessageDefaultTypeInternal; +extern NEMDecryptedMessageDefaultTypeInternal _NEMDecryptedMessage_default_instance_; +class NEMGetAddress; +class NEMGetAddressDefaultTypeInternal; +extern NEMGetAddressDefaultTypeInternal _NEMGetAddress_default_instance_; +class NEMSignTx; +class NEMSignTxDefaultTypeInternal; +extern NEMSignTxDefaultTypeInternal _NEMSignTx_default_instance_; +class NEMSignTx_NEMAggregateModification; +class NEMSignTx_NEMAggregateModificationDefaultTypeInternal; +extern NEMSignTx_NEMAggregateModificationDefaultTypeInternal _NEMSignTx_NEMAggregateModification_default_instance_; +class NEMSignTx_NEMAggregateModification_NEMCosignatoryModification; +class NEMSignTx_NEMAggregateModification_NEMCosignatoryModificationDefaultTypeInternal; +extern NEMSignTx_NEMAggregateModification_NEMCosignatoryModificationDefaultTypeInternal _NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_default_instance_; +class NEMSignTx_NEMImportanceTransfer; +class NEMSignTx_NEMImportanceTransferDefaultTypeInternal; +extern NEMSignTx_NEMImportanceTransferDefaultTypeInternal _NEMSignTx_NEMImportanceTransfer_default_instance_; +class NEMSignTx_NEMMosaicCreation; +class NEMSignTx_NEMMosaicCreationDefaultTypeInternal; +extern NEMSignTx_NEMMosaicCreationDefaultTypeInternal _NEMSignTx_NEMMosaicCreation_default_instance_; +class NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition; +class NEMSignTx_NEMMosaicCreation_NEMMosaicDefinitionDefaultTypeInternal; +extern NEMSignTx_NEMMosaicCreation_NEMMosaicDefinitionDefaultTypeInternal _NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_default_instance_; +class NEMSignTx_NEMMosaicSupplyChange; +class NEMSignTx_NEMMosaicSupplyChangeDefaultTypeInternal; +extern NEMSignTx_NEMMosaicSupplyChangeDefaultTypeInternal _NEMSignTx_NEMMosaicSupplyChange_default_instance_; +class NEMSignTx_NEMProvisionNamespace; +class NEMSignTx_NEMProvisionNamespaceDefaultTypeInternal; +extern NEMSignTx_NEMProvisionNamespaceDefaultTypeInternal _NEMSignTx_NEMProvisionNamespace_default_instance_; +class NEMSignTx_NEMTransactionCommon; +class NEMSignTx_NEMTransactionCommonDefaultTypeInternal; +extern NEMSignTx_NEMTransactionCommonDefaultTypeInternal _NEMSignTx_NEMTransactionCommon_default_instance_; +class NEMSignTx_NEMTransfer; +class NEMSignTx_NEMTransferDefaultTypeInternal; +extern NEMSignTx_NEMTransferDefaultTypeInternal _NEMSignTx_NEMTransfer_default_instance_; +class NEMSignTx_NEMTransfer_NEMMosaic; +class NEMSignTx_NEMTransfer_NEMMosaicDefaultTypeInternal; +extern NEMSignTx_NEMTransfer_NEMMosaicDefaultTypeInternal _NEMSignTx_NEMTransfer_NEMMosaic_default_instance_; +class NEMSignedTx; +class NEMSignedTxDefaultTypeInternal; +extern NEMSignedTxDefaultTypeInternal _NEMSignedTx_default_instance_; +} // namespace nem +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::nem::NEMAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMAddress>(Arena*); +template<> ::hw::trezor::messages::nem::NEMDecryptMessage* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMDecryptMessage>(Arena*); +template<> ::hw::trezor::messages::nem::NEMDecryptedMessage* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMDecryptedMessage>(Arena*); +template<> ::hw::trezor::messages::nem::NEMGetAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMGetAddress>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignTx* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMTransfer>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic>(Arena*); +template<> ::hw::trezor::messages::nem::NEMSignedTx* Arena::CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignedTx>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace nem { + +enum NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy { + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_MosaicLevy_Absolute = 1, + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_MosaicLevy_Percentile = 2 +}; +bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_IsValid(int value); +const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_NEMMosaicLevy_MIN = NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_MosaicLevy_Absolute; +const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_NEMMosaicLevy_MAX = NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_MosaicLevy_Percentile; +const int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_NEMMosaicLevy_ARRAYSIZE = NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_NEMMosaicLevy_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_descriptor(); +inline const ::std::string& NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_Name(NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy value) { + return ::google::protobuf::internal::NameOfEnum( + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_descriptor(), value); +} +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_Parse( + const ::std::string& name, NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_descriptor(), name, value); +} +enum NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType { + NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_SupplyChange_Increase = 1, + NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_SupplyChange_Decrease = 2 +}; +bool NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_IsValid(int value); +const NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_NEMSupplyChangeType_MIN = NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_SupplyChange_Increase; +const NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_NEMSupplyChangeType_MAX = NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_SupplyChange_Decrease; +const int NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_NEMSupplyChangeType_ARRAYSIZE = NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_NEMSupplyChangeType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_descriptor(); +inline const ::std::string& NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_Name(NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType value) { + return ::google::protobuf::internal::NameOfEnum( + NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_descriptor(), value); +} +inline bool NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_Parse( + const ::std::string& name, NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_descriptor(), name, value); +} +enum NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType { + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_CosignatoryModification_Add = 1, + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_CosignatoryModification_Delete = 2 +}; +bool NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_IsValid(int value); +const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_NEMModificationType_MIN = NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_CosignatoryModification_Add; +const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_NEMModificationType_MAX = NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_CosignatoryModification_Delete; +const int NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_NEMModificationType_ARRAYSIZE = NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_NEMModificationType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_descriptor(); +inline const ::std::string& NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_Name(NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType value) { + return ::google::protobuf::internal::NameOfEnum( + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_descriptor(), value); +} +inline bool NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_Parse( + const ::std::string& name, NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_descriptor(), name, value); +} +enum NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode { + NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_ImportanceTransfer_Activate = 1, + NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_ImportanceTransfer_Deactivate = 2 +}; +bool NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_IsValid(int value); +const NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_NEMImportanceTransferMode_MIN = NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_ImportanceTransfer_Activate; +const NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_NEMImportanceTransferMode_MAX = NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_ImportanceTransfer_Deactivate; +const int NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_NEMImportanceTransferMode_ARRAYSIZE = NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_NEMImportanceTransferMode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_descriptor(); +inline const ::std::string& NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_Name(NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode value) { + return ::google::protobuf::internal::NameOfEnum( + NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_descriptor(), value); +} +inline bool NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_Parse( + const ::std::string& name, NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_descriptor(), name, value); +} +// =================================================================== + +class NEMGetAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMGetAddress) */ { + public: + NEMGetAddress(); + virtual ~NEMGetAddress(); + + NEMGetAddress(const NEMGetAddress& from); + + inline NEMGetAddress& operator=(const NEMGetAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMGetAddress(NEMGetAddress&& from) noexcept + : NEMGetAddress() { + *this = ::std::move(from); + } + + inline NEMGetAddress& operator=(NEMGetAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMGetAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMGetAddress* internal_default_instance() { + return reinterpret_cast( + &_NEMGetAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(NEMGetAddress* other); + friend void swap(NEMGetAddress& a, NEMGetAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMGetAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMGetAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMGetAddress& from); + void MergeFrom(const NEMGetAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMGetAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional uint32 network = 2; + bool has_network() const; + void clear_network(); + static const int kNetworkFieldNumber = 2; + ::google::protobuf::uint32 network() const; + void set_network(::google::protobuf::uint32 value); + + // optional bool show_display = 3; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 3; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMGetAddress) + private: + void set_has_network(); + void clear_has_network(); + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::uint32 network_; + bool show_display_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMAddress) */ { + public: + NEMAddress(); + virtual ~NEMAddress(); + + NEMAddress(const NEMAddress& from); + + inline NEMAddress& operator=(const NEMAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMAddress(NEMAddress&& from) noexcept + : NEMAddress() { + *this = ::std::move(from); + } + + inline NEMAddress& operator=(NEMAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMAddress* internal_default_instance() { + return reinterpret_cast( + &_NEMAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(NEMAddress* other); + friend void swap(NEMAddress& a, NEMAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMAddress& from); + void MergeFrom(const NEMAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMAddress) + private: + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignTx_NEMTransactionCommon : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) */ { + public: + NEMSignTx_NEMTransactionCommon(); + virtual ~NEMSignTx_NEMTransactionCommon(); + + NEMSignTx_NEMTransactionCommon(const NEMSignTx_NEMTransactionCommon& from); + + inline NEMSignTx_NEMTransactionCommon& operator=(const NEMSignTx_NEMTransactionCommon& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignTx_NEMTransactionCommon(NEMSignTx_NEMTransactionCommon&& from) noexcept + : NEMSignTx_NEMTransactionCommon() { + *this = ::std::move(from); + } + + inline NEMSignTx_NEMTransactionCommon& operator=(NEMSignTx_NEMTransactionCommon&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignTx_NEMTransactionCommon& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignTx_NEMTransactionCommon* internal_default_instance() { + return reinterpret_cast( + &_NEMSignTx_NEMTransactionCommon_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(NEMSignTx_NEMTransactionCommon* other); + friend void swap(NEMSignTx_NEMTransactionCommon& a, NEMSignTx_NEMTransactionCommon& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignTx_NEMTransactionCommon* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignTx_NEMTransactionCommon* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignTx_NEMTransactionCommon& from); + void MergeFrom(const NEMSignTx_NEMTransactionCommon& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignTx_NEMTransactionCommon* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes signer = 6; + bool has_signer() const; + void clear_signer(); + static const int kSignerFieldNumber = 6; + const ::std::string& signer() const; + void set_signer(const ::std::string& value); + #if LANG_CXX11 + void set_signer(::std::string&& value); + #endif + void set_signer(const char* value); + void set_signer(const void* value, size_t size); + ::std::string* mutable_signer(); + ::std::string* release_signer(); + void set_allocated_signer(::std::string* signer); + + // optional uint32 network = 2; + bool has_network() const; + void clear_network(); + static const int kNetworkFieldNumber = 2; + ::google::protobuf::uint32 network() const; + void set_network(::google::protobuf::uint32 value); + + // optional uint32 timestamp = 3; + bool has_timestamp() const; + void clear_timestamp(); + static const int kTimestampFieldNumber = 3; + ::google::protobuf::uint32 timestamp() const; + void set_timestamp(::google::protobuf::uint32 value); + + // optional uint64 fee = 4; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 4; + ::google::protobuf::uint64 fee() const; + void set_fee(::google::protobuf::uint64 value); + + // optional uint32 deadline = 5; + bool has_deadline() const; + void clear_deadline(); + static const int kDeadlineFieldNumber = 5; + ::google::protobuf::uint32 deadline() const; + void set_deadline(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon) + private: + void set_has_network(); + void clear_has_network(); + void set_has_timestamp(); + void clear_has_timestamp(); + void set_has_fee(); + void clear_has_fee(); + void set_has_deadline(); + void clear_has_deadline(); + void set_has_signer(); + void clear_has_signer(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr signer_; + ::google::protobuf::uint32 network_; + ::google::protobuf::uint32 timestamp_; + ::google::protobuf::uint64 fee_; + ::google::protobuf::uint32 deadline_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignTx_NEMTransfer_NEMMosaic : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) */ { + public: + NEMSignTx_NEMTransfer_NEMMosaic(); + virtual ~NEMSignTx_NEMTransfer_NEMMosaic(); + + NEMSignTx_NEMTransfer_NEMMosaic(const NEMSignTx_NEMTransfer_NEMMosaic& from); + + inline NEMSignTx_NEMTransfer_NEMMosaic& operator=(const NEMSignTx_NEMTransfer_NEMMosaic& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignTx_NEMTransfer_NEMMosaic(NEMSignTx_NEMTransfer_NEMMosaic&& from) noexcept + : NEMSignTx_NEMTransfer_NEMMosaic() { + *this = ::std::move(from); + } + + inline NEMSignTx_NEMTransfer_NEMMosaic& operator=(NEMSignTx_NEMTransfer_NEMMosaic&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignTx_NEMTransfer_NEMMosaic& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignTx_NEMTransfer_NEMMosaic* internal_default_instance() { + return reinterpret_cast( + &_NEMSignTx_NEMTransfer_NEMMosaic_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(NEMSignTx_NEMTransfer_NEMMosaic* other); + friend void swap(NEMSignTx_NEMTransfer_NEMMosaic& a, NEMSignTx_NEMTransfer_NEMMosaic& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignTx_NEMTransfer_NEMMosaic* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignTx_NEMTransfer_NEMMosaic* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignTx_NEMTransfer_NEMMosaic& from); + void MergeFrom(const NEMSignTx_NEMTransfer_NEMMosaic& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignTx_NEMTransfer_NEMMosaic* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string namespace = 1; + bool has_namespace_() const; + void clear_namespace_(); + static const int kNamespaceFieldNumber = 1; + const ::std::string& namespace_() const; + void set_namespace_(const ::std::string& value); + #if LANG_CXX11 + void set_namespace_(::std::string&& value); + #endif + void set_namespace_(const char* value); + void set_namespace_(const char* value, size_t size); + ::std::string* mutable_namespace_(); + ::std::string* release_namespace_(); + void set_allocated_namespace_(::std::string* namespace_); + + // optional string mosaic = 2; + bool has_mosaic() const; + void clear_mosaic(); + static const int kMosaicFieldNumber = 2; + const ::std::string& mosaic() const; + void set_mosaic(const ::std::string& value); + #if LANG_CXX11 + void set_mosaic(::std::string&& value); + #endif + void set_mosaic(const char* value); + void set_mosaic(const char* value, size_t size); + ::std::string* mutable_mosaic(); + ::std::string* release_mosaic(); + void set_allocated_mosaic(::std::string* mosaic); + + // optional uint64 quantity = 3; + bool has_quantity() const; + void clear_quantity(); + static const int kQuantityFieldNumber = 3; + ::google::protobuf::uint64 quantity() const; + void set_quantity(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic) + private: + void set_has_namespace_(); + void clear_has_namespace_(); + void set_has_mosaic(); + void clear_has_mosaic(); + void set_has_quantity(); + void clear_has_quantity(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr namespace__; + ::google::protobuf::internal::ArenaStringPtr mosaic_; + ::google::protobuf::uint64 quantity_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignTx_NEMTransfer : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) */ { + public: + NEMSignTx_NEMTransfer(); + virtual ~NEMSignTx_NEMTransfer(); + + NEMSignTx_NEMTransfer(const NEMSignTx_NEMTransfer& from); + + inline NEMSignTx_NEMTransfer& operator=(const NEMSignTx_NEMTransfer& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignTx_NEMTransfer(NEMSignTx_NEMTransfer&& from) noexcept + : NEMSignTx_NEMTransfer() { + *this = ::std::move(from); + } + + inline NEMSignTx_NEMTransfer& operator=(NEMSignTx_NEMTransfer&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignTx_NEMTransfer& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignTx_NEMTransfer* internal_default_instance() { + return reinterpret_cast( + &_NEMSignTx_NEMTransfer_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(NEMSignTx_NEMTransfer* other); + friend void swap(NEMSignTx_NEMTransfer& a, NEMSignTx_NEMTransfer& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignTx_NEMTransfer* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignTx_NEMTransfer* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignTx_NEMTransfer& from); + void MergeFrom(const NEMSignTx_NEMTransfer& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignTx_NEMTransfer* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef NEMSignTx_NEMTransfer_NEMMosaic NEMMosaic; + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic mosaics = 5; + int mosaics_size() const; + void clear_mosaics(); + static const int kMosaicsFieldNumber = 5; + ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic* mutable_mosaics(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic >* + mutable_mosaics(); + const ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic& mosaics(int index) const; + ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic* add_mosaics(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic >& + mosaics() const; + + // optional string recipient = 1; + bool has_recipient() const; + void clear_recipient(); + static const int kRecipientFieldNumber = 1; + const ::std::string& recipient() const; + void set_recipient(const ::std::string& value); + #if LANG_CXX11 + void set_recipient(::std::string&& value); + #endif + void set_recipient(const char* value); + void set_recipient(const char* value, size_t size); + ::std::string* mutable_recipient(); + ::std::string* release_recipient(); + void set_allocated_recipient(::std::string* recipient); + + // optional bytes payload = 3; + bool has_payload() const; + void clear_payload(); + static const int kPayloadFieldNumber = 3; + const ::std::string& payload() const; + void set_payload(const ::std::string& value); + #if LANG_CXX11 + void set_payload(::std::string&& value); + #endif + void set_payload(const char* value); + void set_payload(const void* value, size_t size); + ::std::string* mutable_payload(); + ::std::string* release_payload(); + void set_allocated_payload(::std::string* payload); + + // optional bytes public_key = 4; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 4; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // optional uint64 amount = 2; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 2; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignTx.NEMTransfer) + private: + void set_has_recipient(); + void clear_has_recipient(); + void set_has_amount(); + void clear_has_amount(); + void set_has_payload(); + void clear_has_payload(); + void set_has_public_key(); + void clear_has_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic > mosaics_; + ::google::protobuf::internal::ArenaStringPtr recipient_; + ::google::protobuf::internal::ArenaStringPtr payload_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::uint64 amount_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignTx_NEMProvisionNamespace : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) */ { + public: + NEMSignTx_NEMProvisionNamespace(); + virtual ~NEMSignTx_NEMProvisionNamespace(); + + NEMSignTx_NEMProvisionNamespace(const NEMSignTx_NEMProvisionNamespace& from); + + inline NEMSignTx_NEMProvisionNamespace& operator=(const NEMSignTx_NEMProvisionNamespace& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignTx_NEMProvisionNamespace(NEMSignTx_NEMProvisionNamespace&& from) noexcept + : NEMSignTx_NEMProvisionNamespace() { + *this = ::std::move(from); + } + + inline NEMSignTx_NEMProvisionNamespace& operator=(NEMSignTx_NEMProvisionNamespace&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignTx_NEMProvisionNamespace& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignTx_NEMProvisionNamespace* internal_default_instance() { + return reinterpret_cast( + &_NEMSignTx_NEMProvisionNamespace_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(NEMSignTx_NEMProvisionNamespace* other); + friend void swap(NEMSignTx_NEMProvisionNamespace& a, NEMSignTx_NEMProvisionNamespace& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignTx_NEMProvisionNamespace* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignTx_NEMProvisionNamespace* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignTx_NEMProvisionNamespace& from); + void MergeFrom(const NEMSignTx_NEMProvisionNamespace& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignTx_NEMProvisionNamespace* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string namespace = 1; + bool has_namespace_() const; + void clear_namespace_(); + static const int kNamespaceFieldNumber = 1; + const ::std::string& namespace_() const; + void set_namespace_(const ::std::string& value); + #if LANG_CXX11 + void set_namespace_(::std::string&& value); + #endif + void set_namespace_(const char* value); + void set_namespace_(const char* value, size_t size); + ::std::string* mutable_namespace_(); + ::std::string* release_namespace_(); + void set_allocated_namespace_(::std::string* namespace_); + + // optional string parent = 2; + bool has_parent() const; + void clear_parent(); + static const int kParentFieldNumber = 2; + const ::std::string& parent() const; + void set_parent(const ::std::string& value); + #if LANG_CXX11 + void set_parent(::std::string&& value); + #endif + void set_parent(const char* value); + void set_parent(const char* value, size_t size); + ::std::string* mutable_parent(); + ::std::string* release_parent(); + void set_allocated_parent(::std::string* parent); + + // optional string sink = 3; + bool has_sink() const; + void clear_sink(); + static const int kSinkFieldNumber = 3; + const ::std::string& sink() const; + void set_sink(const ::std::string& value); + #if LANG_CXX11 + void set_sink(::std::string&& value); + #endif + void set_sink(const char* value); + void set_sink(const char* value, size_t size); + ::std::string* mutable_sink(); + ::std::string* release_sink(); + void set_allocated_sink(::std::string* sink); + + // optional uint64 fee = 4; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 4; + ::google::protobuf::uint64 fee() const; + void set_fee(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace) + private: + void set_has_namespace_(); + void clear_has_namespace_(); + void set_has_parent(); + void clear_has_parent(); + void set_has_sink(); + void clear_has_sink(); + void set_has_fee(); + void clear_has_fee(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr namespace__; + ::google::protobuf::internal::ArenaStringPtr parent_; + ::google::protobuf::internal::ArenaStringPtr sink_; + ::google::protobuf::uint64 fee_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) */ { + public: + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition(); + virtual ~NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition(); + + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition(const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& from); + + inline NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& operator=(const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition(NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition&& from) noexcept + : NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition() { + *this = ::std::move(from); + } + + inline NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& operator=(NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* internal_default_instance() { + return reinterpret_cast( + &_NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* other); + friend void swap(NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& a, NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& from); + void MergeFrom(const NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy NEMMosaicLevy; + static const NEMMosaicLevy MosaicLevy_Absolute = + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_MosaicLevy_Absolute; + static const NEMMosaicLevy MosaicLevy_Percentile = + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_MosaicLevy_Percentile; + static inline bool NEMMosaicLevy_IsValid(int value) { + return NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_IsValid(value); + } + static const NEMMosaicLevy NEMMosaicLevy_MIN = + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_NEMMosaicLevy_MIN; + static const NEMMosaicLevy NEMMosaicLevy_MAX = + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_NEMMosaicLevy_MAX; + static const int NEMMosaicLevy_ARRAYSIZE = + NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_NEMMosaicLevy_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + NEMMosaicLevy_descriptor() { + return NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_descriptor(); + } + static inline const ::std::string& NEMMosaicLevy_Name(NEMMosaicLevy value) { + return NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_Name(value); + } + static inline bool NEMMosaicLevy_Parse(const ::std::string& name, + NEMMosaicLevy* value) { + return NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // repeated uint32 networks = 15; + int networks_size() const; + void clear_networks(); + static const int kNetworksFieldNumber = 15; + ::google::protobuf::uint32 networks(int index) const; + void set_networks(int index, ::google::protobuf::uint32 value); + void add_networks(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + networks() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_networks(); + + // optional string name = 1; + bool has_name() const; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // optional string ticker = 2; + bool has_ticker() const; + void clear_ticker(); + static const int kTickerFieldNumber = 2; + const ::std::string& ticker() const; + void set_ticker(const ::std::string& value); + #if LANG_CXX11 + void set_ticker(::std::string&& value); + #endif + void set_ticker(const char* value); + void set_ticker(const char* value, size_t size); + ::std::string* mutable_ticker(); + ::std::string* release_ticker(); + void set_allocated_ticker(::std::string* ticker); + + // optional string namespace = 3; + bool has_namespace_() const; + void clear_namespace_(); + static const int kNamespaceFieldNumber = 3; + const ::std::string& namespace_() const; + void set_namespace_(const ::std::string& value); + #if LANG_CXX11 + void set_namespace_(::std::string&& value); + #endif + void set_namespace_(const char* value); + void set_namespace_(const char* value, size_t size); + ::std::string* mutable_namespace_(); + ::std::string* release_namespace_(); + void set_allocated_namespace_(::std::string* namespace_); + + // optional string mosaic = 4; + bool has_mosaic() const; + void clear_mosaic(); + static const int kMosaicFieldNumber = 4; + const ::std::string& mosaic() const; + void set_mosaic(const ::std::string& value); + #if LANG_CXX11 + void set_mosaic(::std::string&& value); + #endif + void set_mosaic(const char* value); + void set_mosaic(const char* value, size_t size); + ::std::string* mutable_mosaic(); + ::std::string* release_mosaic(); + void set_allocated_mosaic(::std::string* mosaic); + + // optional string levy_address = 8; + bool has_levy_address() const; + void clear_levy_address(); + static const int kLevyAddressFieldNumber = 8; + const ::std::string& levy_address() const; + void set_levy_address(const ::std::string& value); + #if LANG_CXX11 + void set_levy_address(::std::string&& value); + #endif + void set_levy_address(const char* value); + void set_levy_address(const char* value, size_t size); + ::std::string* mutable_levy_address(); + ::std::string* release_levy_address(); + void set_allocated_levy_address(::std::string* levy_address); + + // optional string levy_namespace = 9; + bool has_levy_namespace() const; + void clear_levy_namespace(); + static const int kLevyNamespaceFieldNumber = 9; + const ::std::string& levy_namespace() const; + void set_levy_namespace(const ::std::string& value); + #if LANG_CXX11 + void set_levy_namespace(::std::string&& value); + #endif + void set_levy_namespace(const char* value); + void set_levy_namespace(const char* value, size_t size); + ::std::string* mutable_levy_namespace(); + ::std::string* release_levy_namespace(); + void set_allocated_levy_namespace(::std::string* levy_namespace); + + // optional string levy_mosaic = 10; + bool has_levy_mosaic() const; + void clear_levy_mosaic(); + static const int kLevyMosaicFieldNumber = 10; + const ::std::string& levy_mosaic() const; + void set_levy_mosaic(const ::std::string& value); + #if LANG_CXX11 + void set_levy_mosaic(::std::string&& value); + #endif + void set_levy_mosaic(const char* value); + void set_levy_mosaic(const char* value, size_t size); + ::std::string* mutable_levy_mosaic(); + ::std::string* release_levy_mosaic(); + void set_allocated_levy_mosaic(::std::string* levy_mosaic); + + // optional string description = 14; + bool has_description() const; + void clear_description(); + static const int kDescriptionFieldNumber = 14; + const ::std::string& description() const; + void set_description(const ::std::string& value); + #if LANG_CXX11 + void set_description(::std::string&& value); + #endif + void set_description(const char* value); + void set_description(const char* value, size_t size); + ::std::string* mutable_description(); + ::std::string* release_description(); + void set_allocated_description(::std::string* description); + + // optional uint64 fee = 7; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 7; + ::google::protobuf::uint64 fee() const; + void set_fee(::google::protobuf::uint64 value); + + // optional uint32 divisibility = 5; + bool has_divisibility() const; + void clear_divisibility(); + static const int kDivisibilityFieldNumber = 5; + ::google::protobuf::uint32 divisibility() const; + void set_divisibility(::google::protobuf::uint32 value); + + // optional bool mutable_supply = 12; + bool has_mutable_supply() const; + void clear_mutable_supply(); + static const int kMutableSupplyFieldNumber = 12; + bool mutable_supply() const; + void set_mutable_supply(bool value); + + // optional bool transferable = 13; + bool has_transferable() const; + void clear_transferable(); + static const int kTransferableFieldNumber = 13; + bool transferable() const; + void set_transferable(bool value); + + // optional uint64 supply = 11; + bool has_supply() const; + void clear_supply(); + static const int kSupplyFieldNumber = 11; + ::google::protobuf::uint64 supply() const; + void set_supply(::google::protobuf::uint64 value); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.NEMMosaicLevy levy = 6; + bool has_levy() const; + void clear_levy(); + static const int kLevyFieldNumber = 6; + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy levy() const; + void set_levy(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition) + private: + void set_has_name(); + void clear_has_name(); + void set_has_ticker(); + void clear_has_ticker(); + void set_has_namespace_(); + void clear_has_namespace_(); + void set_has_mosaic(); + void clear_has_mosaic(); + void set_has_divisibility(); + void clear_has_divisibility(); + void set_has_levy(); + void clear_has_levy(); + void set_has_fee(); + void clear_has_fee(); + void set_has_levy_address(); + void clear_has_levy_address(); + void set_has_levy_namespace(); + void clear_has_levy_namespace(); + void set_has_levy_mosaic(); + void clear_has_levy_mosaic(); + void set_has_supply(); + void clear_has_supply(); + void set_has_mutable_supply(); + void clear_has_mutable_supply(); + void set_has_transferable(); + void clear_has_transferable(); + void set_has_description(); + void clear_has_description(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > networks_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr ticker_; + ::google::protobuf::internal::ArenaStringPtr namespace__; + ::google::protobuf::internal::ArenaStringPtr mosaic_; + ::google::protobuf::internal::ArenaStringPtr levy_address_; + ::google::protobuf::internal::ArenaStringPtr levy_namespace_; + ::google::protobuf::internal::ArenaStringPtr levy_mosaic_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::google::protobuf::uint64 fee_; + ::google::protobuf::uint32 divisibility_; + bool mutable_supply_; + bool transferable_; + ::google::protobuf::uint64 supply_; + int levy_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignTx_NEMMosaicCreation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) */ { + public: + NEMSignTx_NEMMosaicCreation(); + virtual ~NEMSignTx_NEMMosaicCreation(); + + NEMSignTx_NEMMosaicCreation(const NEMSignTx_NEMMosaicCreation& from); + + inline NEMSignTx_NEMMosaicCreation& operator=(const NEMSignTx_NEMMosaicCreation& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignTx_NEMMosaicCreation(NEMSignTx_NEMMosaicCreation&& from) noexcept + : NEMSignTx_NEMMosaicCreation() { + *this = ::std::move(from); + } + + inline NEMSignTx_NEMMosaicCreation& operator=(NEMSignTx_NEMMosaicCreation&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignTx_NEMMosaicCreation& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignTx_NEMMosaicCreation* internal_default_instance() { + return reinterpret_cast( + &_NEMSignTx_NEMMosaicCreation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(NEMSignTx_NEMMosaicCreation* other); + friend void swap(NEMSignTx_NEMMosaicCreation& a, NEMSignTx_NEMMosaicCreation& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignTx_NEMMosaicCreation* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignTx_NEMMosaicCreation* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignTx_NEMMosaicCreation& from); + void MergeFrom(const NEMSignTx_NEMMosaicCreation& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignTx_NEMMosaicCreation* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition NEMMosaicDefinition; + + // accessors ------------------------------------------------------- + + // optional string sink = 2; + bool has_sink() const; + void clear_sink(); + static const int kSinkFieldNumber = 2; + const ::std::string& sink() const; + void set_sink(const ::std::string& value); + #if LANG_CXX11 + void set_sink(::std::string&& value); + #endif + void set_sink(const char* value); + void set_sink(const char* value, size_t size); + ::std::string* mutable_sink(); + ::std::string* release_sink(); + void set_allocated_sink(::std::string* sink); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition definition = 1; + bool has_definition() const; + void clear_definition(); + static const int kDefinitionFieldNumber = 1; + private: + const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& _internal_definition() const; + public: + const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& definition() const; + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* release_definition(); + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* mutable_definition(); + void set_allocated_definition(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* definition); + + // optional uint64 fee = 3; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 3; + ::google::protobuf::uint64 fee() const; + void set_fee(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation) + private: + void set_has_definition(); + void clear_has_definition(); + void set_has_sink(); + void clear_has_sink(); + void set_has_fee(); + void clear_has_fee(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr sink_; + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* definition_; + ::google::protobuf::uint64 fee_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignTx_NEMMosaicSupplyChange : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) */ { + public: + NEMSignTx_NEMMosaicSupplyChange(); + virtual ~NEMSignTx_NEMMosaicSupplyChange(); + + NEMSignTx_NEMMosaicSupplyChange(const NEMSignTx_NEMMosaicSupplyChange& from); + + inline NEMSignTx_NEMMosaicSupplyChange& operator=(const NEMSignTx_NEMMosaicSupplyChange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignTx_NEMMosaicSupplyChange(NEMSignTx_NEMMosaicSupplyChange&& from) noexcept + : NEMSignTx_NEMMosaicSupplyChange() { + *this = ::std::move(from); + } + + inline NEMSignTx_NEMMosaicSupplyChange& operator=(NEMSignTx_NEMMosaicSupplyChange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignTx_NEMMosaicSupplyChange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignTx_NEMMosaicSupplyChange* internal_default_instance() { + return reinterpret_cast( + &_NEMSignTx_NEMMosaicSupplyChange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(NEMSignTx_NEMMosaicSupplyChange* other); + friend void swap(NEMSignTx_NEMMosaicSupplyChange& a, NEMSignTx_NEMMosaicSupplyChange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignTx_NEMMosaicSupplyChange* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignTx_NEMMosaicSupplyChange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignTx_NEMMosaicSupplyChange& from); + void MergeFrom(const NEMSignTx_NEMMosaicSupplyChange& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignTx_NEMMosaicSupplyChange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType NEMSupplyChangeType; + static const NEMSupplyChangeType SupplyChange_Increase = + NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_SupplyChange_Increase; + static const NEMSupplyChangeType SupplyChange_Decrease = + NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_SupplyChange_Decrease; + static inline bool NEMSupplyChangeType_IsValid(int value) { + return NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_IsValid(value); + } + static const NEMSupplyChangeType NEMSupplyChangeType_MIN = + NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_NEMSupplyChangeType_MIN; + static const NEMSupplyChangeType NEMSupplyChangeType_MAX = + NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_NEMSupplyChangeType_MAX; + static const int NEMSupplyChangeType_ARRAYSIZE = + NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_NEMSupplyChangeType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + NEMSupplyChangeType_descriptor() { + return NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_descriptor(); + } + static inline const ::std::string& NEMSupplyChangeType_Name(NEMSupplyChangeType value) { + return NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_Name(value); + } + static inline bool NEMSupplyChangeType_Parse(const ::std::string& name, + NEMSupplyChangeType* value) { + return NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional string namespace = 1; + bool has_namespace_() const; + void clear_namespace_(); + static const int kNamespaceFieldNumber = 1; + const ::std::string& namespace_() const; + void set_namespace_(const ::std::string& value); + #if LANG_CXX11 + void set_namespace_(::std::string&& value); + #endif + void set_namespace_(const char* value); + void set_namespace_(const char* value, size_t size); + ::std::string* mutable_namespace_(); + ::std::string* release_namespace_(); + void set_allocated_namespace_(::std::string* namespace_); + + // optional string mosaic = 2; + bool has_mosaic() const; + void clear_mosaic(); + static const int kMosaicFieldNumber = 2; + const ::std::string& mosaic() const; + void set_mosaic(const ::std::string& value); + #if LANG_CXX11 + void set_mosaic(::std::string&& value); + #endif + void set_mosaic(const char* value); + void set_mosaic(const char* value, size_t size); + ::std::string* mutable_mosaic(); + ::std::string* release_mosaic(); + void set_allocated_mosaic(::std::string* mosaic); + + // optional uint64 delta = 4; + bool has_delta() const; + void clear_delta(); + static const int kDeltaFieldNumber = 4; + ::google::protobuf::uint64 delta() const; + void set_delta(::google::protobuf::uint64 value); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.NEMSupplyChangeType type = 3; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 3; + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType type() const; + void set_type(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange) + private: + void set_has_namespace_(); + void clear_has_namespace_(); + void set_has_mosaic(); + void clear_has_mosaic(); + void set_has_type(); + void clear_has_type(); + void set_has_delta(); + void clear_has_delta(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr namespace__; + ::google::protobuf::internal::ArenaStringPtr mosaic_; + ::google::protobuf::uint64 delta_; + int type_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignTx_NEMAggregateModification_NEMCosignatoryModification : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) */ { + public: + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification(); + virtual ~NEMSignTx_NEMAggregateModification_NEMCosignatoryModification(); + + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification(const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& from); + + inline NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& operator=(const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification(NEMSignTx_NEMAggregateModification_NEMCosignatoryModification&& from) noexcept + : NEMSignTx_NEMAggregateModification_NEMCosignatoryModification() { + *this = ::std::move(from); + } + + inline NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& operator=(NEMSignTx_NEMAggregateModification_NEMCosignatoryModification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* internal_default_instance() { + return reinterpret_cast( + &_NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* other); + friend void swap(NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& a, NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& from); + void MergeFrom(const NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType NEMModificationType; + static const NEMModificationType CosignatoryModification_Add = + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_CosignatoryModification_Add; + static const NEMModificationType CosignatoryModification_Delete = + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_CosignatoryModification_Delete; + static inline bool NEMModificationType_IsValid(int value) { + return NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_IsValid(value); + } + static const NEMModificationType NEMModificationType_MIN = + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_NEMModificationType_MIN; + static const NEMModificationType NEMModificationType_MAX = + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_NEMModificationType_MAX; + static const int NEMModificationType_ARRAYSIZE = + NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_NEMModificationType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + NEMModificationType_descriptor() { + return NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_descriptor(); + } + static inline const ::std::string& NEMModificationType_Name(NEMModificationType value) { + return NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_Name(value); + } + static inline bool NEMModificationType_Parse(const ::std::string& name, + NEMModificationType* value) { + return NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional bytes public_key = 2; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 2; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.NEMModificationType type = 1; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 1; + ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType type() const; + void set_type(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification) + private: + void set_has_type(); + void clear_has_type(); + void set_has_public_key(); + void clear_has_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + int type_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignTx_NEMAggregateModification : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) */ { + public: + NEMSignTx_NEMAggregateModification(); + virtual ~NEMSignTx_NEMAggregateModification(); + + NEMSignTx_NEMAggregateModification(const NEMSignTx_NEMAggregateModification& from); + + inline NEMSignTx_NEMAggregateModification& operator=(const NEMSignTx_NEMAggregateModification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignTx_NEMAggregateModification(NEMSignTx_NEMAggregateModification&& from) noexcept + : NEMSignTx_NEMAggregateModification() { + *this = ::std::move(from); + } + + inline NEMSignTx_NEMAggregateModification& operator=(NEMSignTx_NEMAggregateModification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignTx_NEMAggregateModification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignTx_NEMAggregateModification* internal_default_instance() { + return reinterpret_cast( + &_NEMSignTx_NEMAggregateModification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(NEMSignTx_NEMAggregateModification* other); + friend void swap(NEMSignTx_NEMAggregateModification& a, NEMSignTx_NEMAggregateModification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignTx_NEMAggregateModification* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignTx_NEMAggregateModification* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignTx_NEMAggregateModification& from); + void MergeFrom(const NEMSignTx_NEMAggregateModification& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignTx_NEMAggregateModification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef NEMSignTx_NEMAggregateModification_NEMCosignatoryModification NEMCosignatoryModification; + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification modifications = 1; + int modifications_size() const; + void clear_modifications(); + static const int kModificationsFieldNumber = 1; + ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* mutable_modifications(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification >* + mutable_modifications(); + const ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& modifications(int index) const; + ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* add_modifications(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification >& + modifications() const; + + // optional sint32 relative_change = 2; + bool has_relative_change() const; + void clear_relative_change(); + static const int kRelativeChangeFieldNumber = 2; + ::google::protobuf::int32 relative_change() const; + void set_relative_change(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification) + private: + void set_has_relative_change(); + void clear_has_relative_change(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification > modifications_; + ::google::protobuf::int32 relative_change_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignTx_NEMImportanceTransfer : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) */ { + public: + NEMSignTx_NEMImportanceTransfer(); + virtual ~NEMSignTx_NEMImportanceTransfer(); + + NEMSignTx_NEMImportanceTransfer(const NEMSignTx_NEMImportanceTransfer& from); + + inline NEMSignTx_NEMImportanceTransfer& operator=(const NEMSignTx_NEMImportanceTransfer& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignTx_NEMImportanceTransfer(NEMSignTx_NEMImportanceTransfer&& from) noexcept + : NEMSignTx_NEMImportanceTransfer() { + *this = ::std::move(from); + } + + inline NEMSignTx_NEMImportanceTransfer& operator=(NEMSignTx_NEMImportanceTransfer&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignTx_NEMImportanceTransfer& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignTx_NEMImportanceTransfer* internal_default_instance() { + return reinterpret_cast( + &_NEMSignTx_NEMImportanceTransfer_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(NEMSignTx_NEMImportanceTransfer* other); + friend void swap(NEMSignTx_NEMImportanceTransfer& a, NEMSignTx_NEMImportanceTransfer& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignTx_NEMImportanceTransfer* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignTx_NEMImportanceTransfer* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignTx_NEMImportanceTransfer& from); + void MergeFrom(const NEMSignTx_NEMImportanceTransfer& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignTx_NEMImportanceTransfer* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode NEMImportanceTransferMode; + static const NEMImportanceTransferMode ImportanceTransfer_Activate = + NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_ImportanceTransfer_Activate; + static const NEMImportanceTransferMode ImportanceTransfer_Deactivate = + NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_ImportanceTransfer_Deactivate; + static inline bool NEMImportanceTransferMode_IsValid(int value) { + return NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_IsValid(value); + } + static const NEMImportanceTransferMode NEMImportanceTransferMode_MIN = + NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_NEMImportanceTransferMode_MIN; + static const NEMImportanceTransferMode NEMImportanceTransferMode_MAX = + NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_NEMImportanceTransferMode_MAX; + static const int NEMImportanceTransferMode_ARRAYSIZE = + NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_NEMImportanceTransferMode_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + NEMImportanceTransferMode_descriptor() { + return NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_descriptor(); + } + static inline const ::std::string& NEMImportanceTransferMode_Name(NEMImportanceTransferMode value) { + return NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_Name(value); + } + static inline bool NEMImportanceTransferMode_Parse(const ::std::string& name, + NEMImportanceTransferMode* value) { + return NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional bytes public_key = 2; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 2; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.NEMImportanceTransferMode mode = 1; + bool has_mode() const; + void clear_mode(); + static const int kModeFieldNumber = 1; + ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode mode() const; + void set_mode(::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer) + private: + void set_has_mode(); + void clear_has_mode(); + void set_has_public_key(); + void clear_has_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + int mode_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignTx) */ { + public: + NEMSignTx(); + virtual ~NEMSignTx(); + + NEMSignTx(const NEMSignTx& from); + + inline NEMSignTx& operator=(const NEMSignTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignTx(NEMSignTx&& from) noexcept + : NEMSignTx() { + *this = ::std::move(from); + } + + inline NEMSignTx& operator=(NEMSignTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignTx* internal_default_instance() { + return reinterpret_cast( + &_NEMSignTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(NEMSignTx* other); + friend void swap(NEMSignTx& a, NEMSignTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignTx* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignTx& from); + void MergeFrom(const NEMSignTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef NEMSignTx_NEMTransactionCommon NEMTransactionCommon; + typedef NEMSignTx_NEMTransfer NEMTransfer; + typedef NEMSignTx_NEMProvisionNamespace NEMProvisionNamespace; + typedef NEMSignTx_NEMMosaicCreation NEMMosaicCreation; + typedef NEMSignTx_NEMMosaicSupplyChange NEMMosaicSupplyChange; + typedef NEMSignTx_NEMAggregateModification NEMAggregateModification; + typedef NEMSignTx_NEMImportanceTransfer NEMImportanceTransfer; + + // accessors ------------------------------------------------------- + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon transaction = 1; + bool has_transaction() const; + void clear_transaction(); + static const int kTransactionFieldNumber = 1; + private: + const ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon& _internal_transaction() const; + public: + const ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon& transaction() const; + ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* release_transaction(); + ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* mutable_transaction(); + void set_allocated_transaction(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* transaction); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon multisig = 2; + bool has_multisig() const; + void clear_multisig(); + static const int kMultisigFieldNumber = 2; + private: + const ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon& _internal_multisig() const; + public: + const ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon& multisig() const; + ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* release_multisig(); + ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* mutable_multisig(); + void set_allocated_multisig(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* multisig); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMTransfer transfer = 3; + bool has_transfer() const; + void clear_transfer(); + static const int kTransferFieldNumber = 3; + private: + const ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer& _internal_transfer() const; + public: + const ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer& transfer() const; + ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer* release_transfer(); + ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer* mutable_transfer(); + void set_allocated_transfer(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer* transfer); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace provision_namespace = 5; + bool has_provision_namespace() const; + void clear_provision_namespace(); + static const int kProvisionNamespaceFieldNumber = 5; + private: + const ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace& _internal_provision_namespace() const; + public: + const ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace& provision_namespace() const; + ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace* release_provision_namespace(); + ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace* mutable_provision_namespace(); + void set_allocated_provision_namespace(::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace* provision_namespace); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation mosaic_creation = 6; + bool has_mosaic_creation() const; + void clear_mosaic_creation(); + static const int kMosaicCreationFieldNumber = 6; + private: + const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation& _internal_mosaic_creation() const; + public: + const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation& mosaic_creation() const; + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation* release_mosaic_creation(); + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation* mutable_mosaic_creation(); + void set_allocated_mosaic_creation(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation* mosaic_creation); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange supply_change = 7; + bool has_supply_change() const; + void clear_supply_change(); + static const int kSupplyChangeFieldNumber = 7; + private: + const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange& _internal_supply_change() const; + public: + const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange& supply_change() const; + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange* release_supply_change(); + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange* mutable_supply_change(); + void set_allocated_supply_change(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange* supply_change); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification aggregate_modification = 8; + bool has_aggregate_modification() const; + void clear_aggregate_modification(); + static const int kAggregateModificationFieldNumber = 8; + private: + const ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification& _internal_aggregate_modification() const; + public: + const ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification& aggregate_modification() const; + ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification* release_aggregate_modification(); + ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification* mutable_aggregate_modification(); + void set_allocated_aggregate_modification(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification* aggregate_modification); + + // optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer importance_transfer = 9; + bool has_importance_transfer() const; + void clear_importance_transfer(); + static const int kImportanceTransferFieldNumber = 9; + private: + const ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer& _internal_importance_transfer() const; + public: + const ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer& importance_transfer() const; + ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer* release_importance_transfer(); + ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer* mutable_importance_transfer(); + void set_allocated_importance_transfer(::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer* importance_transfer); + + // optional bool cosigning = 4; + bool has_cosigning() const; + void clear_cosigning(); + static const int kCosigningFieldNumber = 4; + bool cosigning() const; + void set_cosigning(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignTx) + private: + void set_has_transaction(); + void clear_has_transaction(); + void set_has_multisig(); + void clear_has_multisig(); + void set_has_transfer(); + void clear_has_transfer(); + void set_has_cosigning(); + void clear_has_cosigning(); + void set_has_provision_namespace(); + void clear_has_provision_namespace(); + void set_has_mosaic_creation(); + void clear_has_mosaic_creation(); + void set_has_supply_change(); + void clear_has_supply_change(); + void set_has_aggregate_modification(); + void clear_has_aggregate_modification(); + void set_has_importance_transfer(); + void clear_has_importance_transfer(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* transaction_; + ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* multisig_; + ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer* transfer_; + ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace* provision_namespace_; + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation* mosaic_creation_; + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange* supply_change_; + ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification* aggregate_modification_; + ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer* importance_transfer_; + bool cosigning_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMSignedTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMSignedTx) */ { + public: + NEMSignedTx(); + virtual ~NEMSignedTx(); + + NEMSignedTx(const NEMSignedTx& from); + + inline NEMSignedTx& operator=(const NEMSignedTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMSignedTx(NEMSignedTx&& from) noexcept + : NEMSignedTx() { + *this = ::std::move(from); + } + + inline NEMSignedTx& operator=(NEMSignedTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMSignedTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMSignedTx* internal_default_instance() { + return reinterpret_cast( + &_NEMSignedTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(NEMSignedTx* other); + friend void swap(NEMSignedTx& a, NEMSignedTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMSignedTx* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMSignedTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMSignedTx& from); + void MergeFrom(const NEMSignedTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMSignedTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes data = 1; + bool has_data() const; + void clear_data(); + static const int kDataFieldNumber = 1; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const void* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // optional bytes signature = 2; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 2; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMSignedTx) + private: + void set_has_data(); + void clear_has_data(); + void set_has_signature(); + void clear_has_signature(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr data_; + ::google::protobuf::internal::ArenaStringPtr signature_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMDecryptMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMDecryptMessage) */ { + public: + NEMDecryptMessage(); + virtual ~NEMDecryptMessage(); + + NEMDecryptMessage(const NEMDecryptMessage& from); + + inline NEMDecryptMessage& operator=(const NEMDecryptMessage& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMDecryptMessage(NEMDecryptMessage&& from) noexcept + : NEMDecryptMessage() { + *this = ::std::move(from); + } + + inline NEMDecryptMessage& operator=(NEMDecryptMessage&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMDecryptMessage& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMDecryptMessage* internal_default_instance() { + return reinterpret_cast( + &_NEMDecryptMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(NEMDecryptMessage* other); + friend void swap(NEMDecryptMessage& a, NEMDecryptMessage& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMDecryptMessage* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMDecryptMessage* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMDecryptMessage& from); + void MergeFrom(const NEMDecryptMessage& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMDecryptMessage* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes public_key = 3; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 3; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // optional bytes payload = 4; + bool has_payload() const; + void clear_payload(); + static const int kPayloadFieldNumber = 4; + const ::std::string& payload() const; + void set_payload(const ::std::string& value); + #if LANG_CXX11 + void set_payload(::std::string&& value); + #endif + void set_payload(const char* value); + void set_payload(const void* value, size_t size); + ::std::string* mutable_payload(); + ::std::string* release_payload(); + void set_allocated_payload(::std::string* payload); + + // optional uint32 network = 2; + bool has_network() const; + void clear_network(); + static const int kNetworkFieldNumber = 2; + ::google::protobuf::uint32 network() const; + void set_network(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMDecryptMessage) + private: + void set_has_network(); + void clear_has_network(); + void set_has_public_key(); + void clear_has_public_key(); + void set_has_payload(); + void clear_has_payload(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr payload_; + ::google::protobuf::uint32 network_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class NEMDecryptedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.nem.NEMDecryptedMessage) */ { + public: + NEMDecryptedMessage(); + virtual ~NEMDecryptedMessage(); + + NEMDecryptedMessage(const NEMDecryptedMessage& from); + + inline NEMDecryptedMessage& operator=(const NEMDecryptedMessage& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NEMDecryptedMessage(NEMDecryptedMessage&& from) noexcept + : NEMDecryptedMessage() { + *this = ::std::move(from); + } + + inline NEMDecryptedMessage& operator=(NEMDecryptedMessage&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NEMDecryptedMessage& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NEMDecryptedMessage* internal_default_instance() { + return reinterpret_cast( + &_NEMDecryptedMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(NEMDecryptedMessage* other); + friend void swap(NEMDecryptedMessage& a, NEMDecryptedMessage& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NEMDecryptedMessage* New() const final { + return CreateMaybeMessage(NULL); + } + + NEMDecryptedMessage* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NEMDecryptedMessage& from); + void MergeFrom(const NEMDecryptedMessage& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NEMDecryptedMessage* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes payload = 1; + bool has_payload() const; + void clear_payload(); + static const int kPayloadFieldNumber = 1; + const ::std::string& payload() const; + void set_payload(const ::std::string& value); + #if LANG_CXX11 + void set_payload(::std::string&& value); + #endif + void set_payload(const char* value); + void set_payload(const void* value, size_t size); + ::std::string* mutable_payload(); + ::std::string* release_payload(); + void set_allocated_payload(::std::string* payload); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.nem.NEMDecryptedMessage) + private: + void set_has_payload(); + void clear_has_payload(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr payload_; + friend struct ::protobuf_messages_2dnem_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// NEMGetAddress + +// repeated uint32 address_n = 1; +inline int NEMGetAddress::address_n_size() const { + return address_n_.size(); +} +inline void NEMGetAddress::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 NEMGetAddress::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMGetAddress.address_n) + return address_n_.Get(index); +} +inline void NEMGetAddress::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMGetAddress.address_n) +} +inline void NEMGetAddress::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.nem.NEMGetAddress.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +NEMGetAddress::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.nem.NEMGetAddress.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +NEMGetAddress::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.nem.NEMGetAddress.address_n) + return &address_n_; +} + +// optional uint32 network = 2; +inline bool NEMGetAddress::has_network() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMGetAddress::set_has_network() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMGetAddress::clear_has_network() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMGetAddress::clear_network() { + network_ = 0u; + clear_has_network(); +} +inline ::google::protobuf::uint32 NEMGetAddress::network() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMGetAddress.network) + return network_; +} +inline void NEMGetAddress::set_network(::google::protobuf::uint32 value) { + set_has_network(); + network_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMGetAddress.network) +} + +// optional bool show_display = 3; +inline bool NEMGetAddress::has_show_display() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMGetAddress::set_has_show_display() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMGetAddress::clear_has_show_display() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMGetAddress::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool NEMGetAddress::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMGetAddress.show_display) + return show_display_; +} +inline void NEMGetAddress::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMGetAddress.show_display) +} + +// ------------------------------------------------------------------- + +// NEMAddress + +// required string address = 1; +inline bool NEMAddress::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMAddress::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMAddress::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMAddress::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& NEMAddress::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMAddress.address) + return address_.GetNoArena(); +} +inline void NEMAddress::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMAddress.address) +} +#if LANG_CXX11 +inline void NEMAddress::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMAddress.address) +} +#endif +inline void NEMAddress::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMAddress.address) +} +inline void NEMAddress::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMAddress.address) +} +inline ::std::string* NEMAddress::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMAddress.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMAddress::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMAddress.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMAddress::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMAddress.address) +} + +// ------------------------------------------------------------------- + +// NEMSignTx_NEMTransactionCommon + +// repeated uint32 address_n = 1; +inline int NEMSignTx_NEMTransactionCommon::address_n_size() const { + return address_n_.size(); +} +inline void NEMSignTx_NEMTransactionCommon::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 NEMSignTx_NEMTransactionCommon::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.address_n) + return address_n_.Get(index); +} +inline void NEMSignTx_NEMTransactionCommon::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.address_n) +} +inline void NEMSignTx_NEMTransactionCommon::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +NEMSignTx_NEMTransactionCommon::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +NEMSignTx_NEMTransactionCommon::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.address_n) + return &address_n_; +} + +// optional uint32 network = 2; +inline bool NEMSignTx_NEMTransactionCommon::has_network() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMSignTx_NEMTransactionCommon::set_has_network() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMSignTx_NEMTransactionCommon::clear_has_network() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMSignTx_NEMTransactionCommon::clear_network() { + network_ = 0u; + clear_has_network(); +} +inline ::google::protobuf::uint32 NEMSignTx_NEMTransactionCommon::network() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.network) + return network_; +} +inline void NEMSignTx_NEMTransactionCommon::set_network(::google::protobuf::uint32 value) { + set_has_network(); + network_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.network) +} + +// optional uint32 timestamp = 3; +inline bool NEMSignTx_NEMTransactionCommon::has_timestamp() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void NEMSignTx_NEMTransactionCommon::set_has_timestamp() { + _has_bits_[0] |= 0x00000004u; +} +inline void NEMSignTx_NEMTransactionCommon::clear_has_timestamp() { + _has_bits_[0] &= ~0x00000004u; +} +inline void NEMSignTx_NEMTransactionCommon::clear_timestamp() { + timestamp_ = 0u; + clear_has_timestamp(); +} +inline ::google::protobuf::uint32 NEMSignTx_NEMTransactionCommon::timestamp() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.timestamp) + return timestamp_; +} +inline void NEMSignTx_NEMTransactionCommon::set_timestamp(::google::protobuf::uint32 value) { + set_has_timestamp(); + timestamp_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.timestamp) +} + +// optional uint64 fee = 4; +inline bool NEMSignTx_NEMTransactionCommon::has_fee() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void NEMSignTx_NEMTransactionCommon::set_has_fee() { + _has_bits_[0] |= 0x00000008u; +} +inline void NEMSignTx_NEMTransactionCommon::clear_has_fee() { + _has_bits_[0] &= ~0x00000008u; +} +inline void NEMSignTx_NEMTransactionCommon::clear_fee() { + fee_ = GOOGLE_ULONGLONG(0); + clear_has_fee(); +} +inline ::google::protobuf::uint64 NEMSignTx_NEMTransactionCommon::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.fee) + return fee_; +} +inline void NEMSignTx_NEMTransactionCommon::set_fee(::google::protobuf::uint64 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.fee) +} + +// optional uint32 deadline = 5; +inline bool NEMSignTx_NEMTransactionCommon::has_deadline() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void NEMSignTx_NEMTransactionCommon::set_has_deadline() { + _has_bits_[0] |= 0x00000010u; +} +inline void NEMSignTx_NEMTransactionCommon::clear_has_deadline() { + _has_bits_[0] &= ~0x00000010u; +} +inline void NEMSignTx_NEMTransactionCommon::clear_deadline() { + deadline_ = 0u; + clear_has_deadline(); +} +inline ::google::protobuf::uint32 NEMSignTx_NEMTransactionCommon::deadline() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.deadline) + return deadline_; +} +inline void NEMSignTx_NEMTransactionCommon::set_deadline(::google::protobuf::uint32 value) { + set_has_deadline(); + deadline_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.deadline) +} + +// optional bytes signer = 6; +inline bool NEMSignTx_NEMTransactionCommon::has_signer() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignTx_NEMTransactionCommon::set_has_signer() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignTx_NEMTransactionCommon::clear_has_signer() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignTx_NEMTransactionCommon::clear_signer() { + signer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signer(); +} +inline const ::std::string& NEMSignTx_NEMTransactionCommon::signer() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.signer) + return signer_.GetNoArena(); +} +inline void NEMSignTx_NEMTransactionCommon::set_signer(const ::std::string& value) { + set_has_signer(); + signer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.signer) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMTransactionCommon::set_signer(::std::string&& value) { + set_has_signer(); + signer_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.signer) +} +#endif +inline void NEMSignTx_NEMTransactionCommon::set_signer(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signer(); + signer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.signer) +} +inline void NEMSignTx_NEMTransactionCommon::set_signer(const void* value, size_t size) { + set_has_signer(); + signer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.signer) +} +inline ::std::string* NEMSignTx_NEMTransactionCommon::mutable_signer() { + set_has_signer(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.signer) + return signer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMTransactionCommon::release_signer() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.signer) + if (!has_signer()) { + return NULL; + } + clear_has_signer(); + return signer_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMTransactionCommon::set_allocated_signer(::std::string* signer) { + if (signer != NULL) { + set_has_signer(); + } else { + clear_has_signer(); + } + signer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signer); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon.signer) +} + +// ------------------------------------------------------------------- + +// NEMSignTx_NEMTransfer_NEMMosaic + +// optional string namespace = 1; +inline bool NEMSignTx_NEMTransfer_NEMMosaic::has_namespace_() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_has_namespace_() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::clear_has_namespace_() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::clear_namespace_() { + namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_namespace_(); +} +inline const ::std::string& NEMSignTx_NEMTransfer_NEMMosaic::namespace_() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.namespace) + return namespace__.GetNoArena(); +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_namespace_(const ::std::string& value) { + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.namespace) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_namespace_(::std::string&& value) { + set_has_namespace_(); + namespace__.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.namespace) +} +#endif +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_namespace_(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.namespace) +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_namespace_(const char* value, size_t size) { + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.namespace) +} +inline ::std::string* NEMSignTx_NEMTransfer_NEMMosaic::mutable_namespace_() { + set_has_namespace_(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.namespace) + return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMTransfer_NEMMosaic::release_namespace_() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.namespace) + if (!has_namespace_()) { + return NULL; + } + clear_has_namespace_(); + return namespace__.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_allocated_namespace_(::std::string* namespace_) { + if (namespace_ != NULL) { + set_has_namespace_(); + } else { + clear_has_namespace_(); + } + namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.namespace) +} + +// optional string mosaic = 2; +inline bool NEMSignTx_NEMTransfer_NEMMosaic::has_mosaic() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_has_mosaic() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::clear_has_mosaic() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::clear_mosaic() { + mosaic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_mosaic(); +} +inline const ::std::string& NEMSignTx_NEMTransfer_NEMMosaic::mosaic() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.mosaic) + return mosaic_.GetNoArena(); +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_mosaic(const ::std::string& value) { + set_has_mosaic(); + mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.mosaic) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_mosaic(::std::string&& value) { + set_has_mosaic(); + mosaic_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.mosaic) +} +#endif +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_mosaic(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_mosaic(); + mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.mosaic) +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_mosaic(const char* value, size_t size) { + set_has_mosaic(); + mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.mosaic) +} +inline ::std::string* NEMSignTx_NEMTransfer_NEMMosaic::mutable_mosaic() { + set_has_mosaic(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.mosaic) + return mosaic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMTransfer_NEMMosaic::release_mosaic() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.mosaic) + if (!has_mosaic()) { + return NULL; + } + clear_has_mosaic(); + return mosaic_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_allocated_mosaic(::std::string* mosaic) { + if (mosaic != NULL) { + set_has_mosaic(); + } else { + clear_has_mosaic(); + } + mosaic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mosaic); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.mosaic) +} + +// optional uint64 quantity = 3; +inline bool NEMSignTx_NEMTransfer_NEMMosaic::has_quantity() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_has_quantity() { + _has_bits_[0] |= 0x00000004u; +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::clear_has_quantity() { + _has_bits_[0] &= ~0x00000004u; +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::clear_quantity() { + quantity_ = GOOGLE_ULONGLONG(0); + clear_has_quantity(); +} +inline ::google::protobuf::uint64 NEMSignTx_NEMTransfer_NEMMosaic::quantity() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.quantity) + return quantity_; +} +inline void NEMSignTx_NEMTransfer_NEMMosaic::set_quantity(::google::protobuf::uint64 value) { + set_has_quantity(); + quantity_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic.quantity) +} + +// ------------------------------------------------------------------- + +// NEMSignTx_NEMTransfer + +// optional string recipient = 1; +inline bool NEMSignTx_NEMTransfer::has_recipient() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignTx_NEMTransfer::set_has_recipient() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignTx_NEMTransfer::clear_has_recipient() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignTx_NEMTransfer::clear_recipient() { + recipient_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_recipient(); +} +inline const ::std::string& NEMSignTx_NEMTransfer::recipient() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.recipient) + return recipient_.GetNoArena(); +} +inline void NEMSignTx_NEMTransfer::set_recipient(const ::std::string& value) { + set_has_recipient(); + recipient_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.recipient) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMTransfer::set_recipient(::std::string&& value) { + set_has_recipient(); + recipient_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.recipient) +} +#endif +inline void NEMSignTx_NEMTransfer::set_recipient(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_recipient(); + recipient_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.recipient) +} +inline void NEMSignTx_NEMTransfer::set_recipient(const char* value, size_t size) { + set_has_recipient(); + recipient_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.recipient) +} +inline ::std::string* NEMSignTx_NEMTransfer::mutable_recipient() { + set_has_recipient(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.recipient) + return recipient_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMTransfer::release_recipient() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.recipient) + if (!has_recipient()) { + return NULL; + } + clear_has_recipient(); + return recipient_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMTransfer::set_allocated_recipient(::std::string* recipient) { + if (recipient != NULL) { + set_has_recipient(); + } else { + clear_has_recipient(); + } + recipient_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), recipient); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.recipient) +} + +// optional uint64 amount = 2; +inline bool NEMSignTx_NEMTransfer::has_amount() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void NEMSignTx_NEMTransfer::set_has_amount() { + _has_bits_[0] |= 0x00000008u; +} +inline void NEMSignTx_NEMTransfer::clear_has_amount() { + _has_bits_[0] &= ~0x00000008u; +} +inline void NEMSignTx_NEMTransfer::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 NEMSignTx_NEMTransfer::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.amount) + return amount_; +} +inline void NEMSignTx_NEMTransfer::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.amount) +} + +// optional bytes payload = 3; +inline bool NEMSignTx_NEMTransfer::has_payload() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMSignTx_NEMTransfer::set_has_payload() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMSignTx_NEMTransfer::clear_has_payload() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMSignTx_NEMTransfer::clear_payload() { + payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_payload(); +} +inline const ::std::string& NEMSignTx_NEMTransfer::payload() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.payload) + return payload_.GetNoArena(); +} +inline void NEMSignTx_NEMTransfer::set_payload(const ::std::string& value) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.payload) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMTransfer::set_payload(::std::string&& value) { + set_has_payload(); + payload_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.payload) +} +#endif +inline void NEMSignTx_NEMTransfer::set_payload(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.payload) +} +inline void NEMSignTx_NEMTransfer::set_payload(const void* value, size_t size) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.payload) +} +inline ::std::string* NEMSignTx_NEMTransfer::mutable_payload() { + set_has_payload(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.payload) + return payload_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMTransfer::release_payload() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.payload) + if (!has_payload()) { + return NULL; + } + clear_has_payload(); + return payload_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMTransfer::set_allocated_payload(::std::string* payload) { + if (payload != NULL) { + set_has_payload(); + } else { + clear_has_payload(); + } + payload_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payload); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.payload) +} + +// optional bytes public_key = 4; +inline bool NEMSignTx_NEMTransfer::has_public_key() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void NEMSignTx_NEMTransfer::set_has_public_key() { + _has_bits_[0] |= 0x00000004u; +} +inline void NEMSignTx_NEMTransfer::clear_has_public_key() { + _has_bits_[0] &= ~0x00000004u; +} +inline void NEMSignTx_NEMTransfer::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& NEMSignTx_NEMTransfer::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.public_key) + return public_key_.GetNoArena(); +} +inline void NEMSignTx_NEMTransfer::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.public_key) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMTransfer::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.public_key) +} +#endif +inline void NEMSignTx_NEMTransfer::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.public_key) +} +inline void NEMSignTx_NEMTransfer::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.public_key) +} +inline ::std::string* NEMSignTx_NEMTransfer::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMTransfer::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMTransfer::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.public_key) +} + +// repeated .hw.trezor.messages.nem.NEMSignTx.NEMTransfer.NEMMosaic mosaics = 5; +inline int NEMSignTx_NEMTransfer::mosaics_size() const { + return mosaics_.size(); +} +inline void NEMSignTx_NEMTransfer::clear_mosaics() { + mosaics_.Clear(); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic* NEMSignTx_NEMTransfer::mutable_mosaics(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.mosaics) + return mosaics_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic >* +NEMSignTx_NEMTransfer::mutable_mosaics() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.mosaics) + return &mosaics_; +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic& NEMSignTx_NEMTransfer::mosaics(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.mosaics) + return mosaics_.Get(index); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic* NEMSignTx_NEMTransfer::add_mosaics() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.mosaics) + return mosaics_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer_NEMMosaic >& +NEMSignTx_NEMTransfer::mosaics() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.nem.NEMSignTx.NEMTransfer.mosaics) + return mosaics_; +} + +// ------------------------------------------------------------------- + +// NEMSignTx_NEMProvisionNamespace + +// optional string namespace = 1; +inline bool NEMSignTx_NEMProvisionNamespace::has_namespace_() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignTx_NEMProvisionNamespace::set_has_namespace_() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignTx_NEMProvisionNamespace::clear_has_namespace_() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignTx_NEMProvisionNamespace::clear_namespace_() { + namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_namespace_(); +} +inline const ::std::string& NEMSignTx_NEMProvisionNamespace::namespace_() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.namespace) + return namespace__.GetNoArena(); +} +inline void NEMSignTx_NEMProvisionNamespace::set_namespace_(const ::std::string& value) { + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.namespace) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMProvisionNamespace::set_namespace_(::std::string&& value) { + set_has_namespace_(); + namespace__.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.namespace) +} +#endif +inline void NEMSignTx_NEMProvisionNamespace::set_namespace_(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.namespace) +} +inline void NEMSignTx_NEMProvisionNamespace::set_namespace_(const char* value, size_t size) { + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.namespace) +} +inline ::std::string* NEMSignTx_NEMProvisionNamespace::mutable_namespace_() { + set_has_namespace_(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.namespace) + return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMProvisionNamespace::release_namespace_() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.namespace) + if (!has_namespace_()) { + return NULL; + } + clear_has_namespace_(); + return namespace__.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMProvisionNamespace::set_allocated_namespace_(::std::string* namespace_) { + if (namespace_ != NULL) { + set_has_namespace_(); + } else { + clear_has_namespace_(); + } + namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.namespace) +} + +// optional string parent = 2; +inline bool NEMSignTx_NEMProvisionNamespace::has_parent() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMSignTx_NEMProvisionNamespace::set_has_parent() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMSignTx_NEMProvisionNamespace::clear_has_parent() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMSignTx_NEMProvisionNamespace::clear_parent() { + parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_parent(); +} +inline const ::std::string& NEMSignTx_NEMProvisionNamespace::parent() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.parent) + return parent_.GetNoArena(); +} +inline void NEMSignTx_NEMProvisionNamespace::set_parent(const ::std::string& value) { + set_has_parent(); + parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.parent) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMProvisionNamespace::set_parent(::std::string&& value) { + set_has_parent(); + parent_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.parent) +} +#endif +inline void NEMSignTx_NEMProvisionNamespace::set_parent(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_parent(); + parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.parent) +} +inline void NEMSignTx_NEMProvisionNamespace::set_parent(const char* value, size_t size) { + set_has_parent(); + parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.parent) +} +inline ::std::string* NEMSignTx_NEMProvisionNamespace::mutable_parent() { + set_has_parent(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.parent) + return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMProvisionNamespace::release_parent() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.parent) + if (!has_parent()) { + return NULL; + } + clear_has_parent(); + return parent_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMProvisionNamespace::set_allocated_parent(::std::string* parent) { + if (parent != NULL) { + set_has_parent(); + } else { + clear_has_parent(); + } + parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.parent) +} + +// optional string sink = 3; +inline bool NEMSignTx_NEMProvisionNamespace::has_sink() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void NEMSignTx_NEMProvisionNamespace::set_has_sink() { + _has_bits_[0] |= 0x00000004u; +} +inline void NEMSignTx_NEMProvisionNamespace::clear_has_sink() { + _has_bits_[0] &= ~0x00000004u; +} +inline void NEMSignTx_NEMProvisionNamespace::clear_sink() { + sink_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_sink(); +} +inline const ::std::string& NEMSignTx_NEMProvisionNamespace::sink() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.sink) + return sink_.GetNoArena(); +} +inline void NEMSignTx_NEMProvisionNamespace::set_sink(const ::std::string& value) { + set_has_sink(); + sink_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.sink) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMProvisionNamespace::set_sink(::std::string&& value) { + set_has_sink(); + sink_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.sink) +} +#endif +inline void NEMSignTx_NEMProvisionNamespace::set_sink(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_sink(); + sink_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.sink) +} +inline void NEMSignTx_NEMProvisionNamespace::set_sink(const char* value, size_t size) { + set_has_sink(); + sink_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.sink) +} +inline ::std::string* NEMSignTx_NEMProvisionNamespace::mutable_sink() { + set_has_sink(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.sink) + return sink_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMProvisionNamespace::release_sink() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.sink) + if (!has_sink()) { + return NULL; + } + clear_has_sink(); + return sink_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMProvisionNamespace::set_allocated_sink(::std::string* sink) { + if (sink != NULL) { + set_has_sink(); + } else { + clear_has_sink(); + } + sink_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sink); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.sink) +} + +// optional uint64 fee = 4; +inline bool NEMSignTx_NEMProvisionNamespace::has_fee() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void NEMSignTx_NEMProvisionNamespace::set_has_fee() { + _has_bits_[0] |= 0x00000008u; +} +inline void NEMSignTx_NEMProvisionNamespace::clear_has_fee() { + _has_bits_[0] &= ~0x00000008u; +} +inline void NEMSignTx_NEMProvisionNamespace::clear_fee() { + fee_ = GOOGLE_ULONGLONG(0); + clear_has_fee(); +} +inline ::google::protobuf::uint64 NEMSignTx_NEMProvisionNamespace::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.fee) + return fee_; +} +inline void NEMSignTx_NEMProvisionNamespace::set_fee(::google::protobuf::uint64 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace.fee) +} + +// ------------------------------------------------------------------- + +// NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition + +// optional string name = 1; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_name(); +} +inline const ::std::string& NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::name() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.name) + return name_.GetNoArena(); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_name(const ::std::string& value) { + set_has_name(); + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.name) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_name(::std::string&& value) { + set_has_name(); + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.name) +} +#endif +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_name(); + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.name) +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_name(const char* value, size_t size) { + set_has_name(); + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.name) +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::mutable_name() { + set_has_name(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::release_name() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.name) + if (!has_name()) { + return NULL; + } + clear_has_name(); + return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_allocated_name(::std::string* name) { + if (name != NULL) { + set_has_name(); + } else { + clear_has_name(); + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.name) +} + +// optional string ticker = 2; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_ticker() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_ticker() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_ticker() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_ticker() { + ticker_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ticker(); +} +inline const ::std::string& NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::ticker() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.ticker) + return ticker_.GetNoArena(); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_ticker(const ::std::string& value) { + set_has_ticker(); + ticker_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.ticker) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_ticker(::std::string&& value) { + set_has_ticker(); + ticker_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.ticker) +} +#endif +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_ticker(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_ticker(); + ticker_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.ticker) +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_ticker(const char* value, size_t size) { + set_has_ticker(); + ticker_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.ticker) +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::mutable_ticker() { + set_has_ticker(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.ticker) + return ticker_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::release_ticker() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.ticker) + if (!has_ticker()) { + return NULL; + } + clear_has_ticker(); + return ticker_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_allocated_ticker(::std::string* ticker) { + if (ticker != NULL) { + set_has_ticker(); + } else { + clear_has_ticker(); + } + ticker_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ticker); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.ticker) +} + +// optional string namespace = 3; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_namespace_() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_namespace_() { + _has_bits_[0] |= 0x00000004u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_namespace_() { + _has_bits_[0] &= ~0x00000004u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_namespace_() { + namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_namespace_(); +} +inline const ::std::string& NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::namespace_() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.namespace) + return namespace__.GetNoArena(); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_namespace_(const ::std::string& value) { + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.namespace) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_namespace_(::std::string&& value) { + set_has_namespace_(); + namespace__.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.namespace) +} +#endif +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_namespace_(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.namespace) +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_namespace_(const char* value, size_t size) { + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.namespace) +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::mutable_namespace_() { + set_has_namespace_(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.namespace) + return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::release_namespace_() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.namespace) + if (!has_namespace_()) { + return NULL; + } + clear_has_namespace_(); + return namespace__.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_allocated_namespace_(::std::string* namespace_) { + if (namespace_ != NULL) { + set_has_namespace_(); + } else { + clear_has_namespace_(); + } + namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.namespace) +} + +// optional string mosaic = 4; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_mosaic() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_mosaic() { + _has_bits_[0] |= 0x00000008u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_mosaic() { + _has_bits_[0] &= ~0x00000008u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_mosaic() { + mosaic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_mosaic(); +} +inline const ::std::string& NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::mosaic() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mosaic) + return mosaic_.GetNoArena(); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_mosaic(const ::std::string& value) { + set_has_mosaic(); + mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mosaic) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_mosaic(::std::string&& value) { + set_has_mosaic(); + mosaic_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mosaic) +} +#endif +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_mosaic(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_mosaic(); + mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mosaic) +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_mosaic(const char* value, size_t size) { + set_has_mosaic(); + mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mosaic) +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::mutable_mosaic() { + set_has_mosaic(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mosaic) + return mosaic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::release_mosaic() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mosaic) + if (!has_mosaic()) { + return NULL; + } + clear_has_mosaic(); + return mosaic_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_allocated_mosaic(::std::string* mosaic) { + if (mosaic != NULL) { + set_has_mosaic(); + } else { + clear_has_mosaic(); + } + mosaic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mosaic); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mosaic) +} + +// optional uint32 divisibility = 5; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_divisibility() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_divisibility() { + _has_bits_[0] |= 0x00000200u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_divisibility() { + _has_bits_[0] &= ~0x00000200u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_divisibility() { + divisibility_ = 0u; + clear_has_divisibility(); +} +inline ::google::protobuf::uint32 NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::divisibility() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.divisibility) + return divisibility_; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_divisibility(::google::protobuf::uint32 value) { + set_has_divisibility(); + divisibility_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.divisibility) +} + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.NEMMosaicLevy levy = 6; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_levy() const { + return (_has_bits_[0] & 0x00002000u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_levy() { + _has_bits_[0] |= 0x00002000u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_levy() { + _has_bits_[0] &= ~0x00002000u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_levy() { + levy_ = 1; + clear_has_levy(); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::levy() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy) + return static_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy >(levy_); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy value) { + assert(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_IsValid(value)); + set_has_levy(); + levy_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy) +} + +// optional uint64 fee = 7; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_fee() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_fee() { + _has_bits_[0] |= 0x00000100u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_fee() { + _has_bits_[0] &= ~0x00000100u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_fee() { + fee_ = GOOGLE_ULONGLONG(0); + clear_has_fee(); +} +inline ::google::protobuf::uint64 NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.fee) + return fee_; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_fee(::google::protobuf::uint64 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.fee) +} + +// optional string levy_address = 8; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_levy_address() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_levy_address() { + _has_bits_[0] |= 0x00000010u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_levy_address() { + _has_bits_[0] &= ~0x00000010u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_levy_address() { + levy_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_levy_address(); +} +inline const ::std::string& NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::levy_address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_address) + return levy_address_.GetNoArena(); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_address(const ::std::string& value) { + set_has_levy_address(); + levy_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_address) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_address(::std::string&& value) { + set_has_levy_address(); + levy_address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_address) +} +#endif +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_levy_address(); + levy_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_address) +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_address(const char* value, size_t size) { + set_has_levy_address(); + levy_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_address) +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::mutable_levy_address() { + set_has_levy_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_address) + return levy_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::release_levy_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_address) + if (!has_levy_address()) { + return NULL; + } + clear_has_levy_address(); + return levy_address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_allocated_levy_address(::std::string* levy_address) { + if (levy_address != NULL) { + set_has_levy_address(); + } else { + clear_has_levy_address(); + } + levy_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), levy_address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_address) +} + +// optional string levy_namespace = 9; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_levy_namespace() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_levy_namespace() { + _has_bits_[0] |= 0x00000020u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_levy_namespace() { + _has_bits_[0] &= ~0x00000020u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_levy_namespace() { + levy_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_levy_namespace(); +} +inline const ::std::string& NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::levy_namespace() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_namespace) + return levy_namespace_.GetNoArena(); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_namespace(const ::std::string& value) { + set_has_levy_namespace(); + levy_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_namespace) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_namespace(::std::string&& value) { + set_has_levy_namespace(); + levy_namespace_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_namespace) +} +#endif +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_namespace(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_levy_namespace(); + levy_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_namespace) +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_namespace(const char* value, size_t size) { + set_has_levy_namespace(); + levy_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_namespace) +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::mutable_levy_namespace() { + set_has_levy_namespace(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_namespace) + return levy_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::release_levy_namespace() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_namespace) + if (!has_levy_namespace()) { + return NULL; + } + clear_has_levy_namespace(); + return levy_namespace_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_allocated_levy_namespace(::std::string* levy_namespace) { + if (levy_namespace != NULL) { + set_has_levy_namespace(); + } else { + clear_has_levy_namespace(); + } + levy_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), levy_namespace); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_namespace) +} + +// optional string levy_mosaic = 10; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_levy_mosaic() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_levy_mosaic() { + _has_bits_[0] |= 0x00000040u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_levy_mosaic() { + _has_bits_[0] &= ~0x00000040u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_levy_mosaic() { + levy_mosaic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_levy_mosaic(); +} +inline const ::std::string& NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::levy_mosaic() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_mosaic) + return levy_mosaic_.GetNoArena(); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_mosaic(const ::std::string& value) { + set_has_levy_mosaic(); + levy_mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_mosaic) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_mosaic(::std::string&& value) { + set_has_levy_mosaic(); + levy_mosaic_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_mosaic) +} +#endif +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_mosaic(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_levy_mosaic(); + levy_mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_mosaic) +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_levy_mosaic(const char* value, size_t size) { + set_has_levy_mosaic(); + levy_mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_mosaic) +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::mutable_levy_mosaic() { + set_has_levy_mosaic(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_mosaic) + return levy_mosaic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::release_levy_mosaic() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_mosaic) + if (!has_levy_mosaic()) { + return NULL; + } + clear_has_levy_mosaic(); + return levy_mosaic_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_allocated_levy_mosaic(::std::string* levy_mosaic) { + if (levy_mosaic != NULL) { + set_has_levy_mosaic(); + } else { + clear_has_levy_mosaic(); + } + levy_mosaic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), levy_mosaic); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.levy_mosaic) +} + +// optional uint64 supply = 11; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_supply() const { + return (_has_bits_[0] & 0x00001000u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_supply() { + _has_bits_[0] |= 0x00001000u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_supply() { + _has_bits_[0] &= ~0x00001000u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_supply() { + supply_ = GOOGLE_ULONGLONG(0); + clear_has_supply(); +} +inline ::google::protobuf::uint64 NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::supply() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.supply) + return supply_; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_supply(::google::protobuf::uint64 value) { + set_has_supply(); + supply_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.supply) +} + +// optional bool mutable_supply = 12; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_mutable_supply() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_mutable_supply() { + _has_bits_[0] |= 0x00000400u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_mutable_supply() { + _has_bits_[0] &= ~0x00000400u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_mutable_supply() { + mutable_supply_ = false; + clear_has_mutable_supply(); +} +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::mutable_supply() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mutable_supply) + return mutable_supply_; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_mutable_supply(bool value) { + set_has_mutable_supply(); + mutable_supply_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.mutable_supply) +} + +// optional bool transferable = 13; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_transferable() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_transferable() { + _has_bits_[0] |= 0x00000800u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_transferable() { + _has_bits_[0] &= ~0x00000800u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_transferable() { + transferable_ = false; + clear_has_transferable(); +} +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::transferable() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.transferable) + return transferable_; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_transferable(bool value) { + set_has_transferable(); + transferable_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.transferable) +} + +// optional string description = 14; +inline bool NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::has_description() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_has_description() { + _has_bits_[0] |= 0x00000080u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_has_description() { + _has_bits_[0] &= ~0x00000080u; +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_description() { + description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_description(); +} +inline const ::std::string& NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::description() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.description) + return description_.GetNoArena(); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_description(const ::std::string& value) { + set_has_description(); + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.description) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_description(::std::string&& value) { + set_has_description(); + description_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.description) +} +#endif +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_description(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_description(); + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.description) +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_description(const char* value, size_t size) { + set_has_description(); + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.description) +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::mutable_description() { + set_has_description(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.description) + return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::release_description() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.description) + if (!has_description()) { + return NULL; + } + clear_has_description(); + return description_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_allocated_description(::std::string* description) { + if (description != NULL) { + set_has_description(); + } else { + clear_has_description(); + } + description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.description) +} + +// repeated uint32 networks = 15; +inline int NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::networks_size() const { + return networks_.size(); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::clear_networks() { + networks_.Clear(); +} +inline ::google::protobuf::uint32 NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::networks(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.networks) + return networks_.Get(index); +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::set_networks(int index, ::google::protobuf::uint32 value) { + networks_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.networks) +} +inline void NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::add_networks(::google::protobuf::uint32 value) { + networks_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.networks) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::networks() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.networks) + return networks_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition::mutable_networks() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition.networks) + return &networks_; +} + +// ------------------------------------------------------------------- + +// NEMSignTx_NEMMosaicCreation + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.NEMMosaicDefinition definition = 1; +inline bool NEMSignTx_NEMMosaicCreation::has_definition() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation::set_has_definition() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMSignTx_NEMMosaicCreation::clear_has_definition() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMSignTx_NEMMosaicCreation::clear_definition() { + if (definition_ != NULL) definition_->Clear(); + clear_has_definition(); +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& NEMSignTx_NEMMosaicCreation::_internal_definition() const { + return *definition_; +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition& NEMSignTx_NEMMosaicCreation::definition() const { + const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* p = definition_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.definition) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::nem::_NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_default_instance_); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* NEMSignTx_NEMMosaicCreation::release_definition() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.definition) + clear_has_definition(); + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* temp = definition_; + definition_ = NULL; + return temp; +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* NEMSignTx_NEMMosaicCreation::mutable_definition() { + set_has_definition(); + if (definition_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition>(GetArenaNoVirtual()); + definition_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.definition) + return definition_; +} +inline void NEMSignTx_NEMMosaicCreation::set_allocated_definition(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition* definition) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete definition_; + } + if (definition) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + definition = ::google::protobuf::internal::GetOwnedMessage( + message_arena, definition, submessage_arena); + } + set_has_definition(); + } else { + clear_has_definition(); + } + definition_ = definition; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.definition) +} + +// optional string sink = 2; +inline bool NEMSignTx_NEMMosaicCreation::has_sink() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation::set_has_sink() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignTx_NEMMosaicCreation::clear_has_sink() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignTx_NEMMosaicCreation::clear_sink() { + sink_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_sink(); +} +inline const ::std::string& NEMSignTx_NEMMosaicCreation::sink() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.sink) + return sink_.GetNoArena(); +} +inline void NEMSignTx_NEMMosaicCreation::set_sink(const ::std::string& value) { + set_has_sink(); + sink_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.sink) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMMosaicCreation::set_sink(::std::string&& value) { + set_has_sink(); + sink_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.sink) +} +#endif +inline void NEMSignTx_NEMMosaicCreation::set_sink(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_sink(); + sink_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.sink) +} +inline void NEMSignTx_NEMMosaicCreation::set_sink(const char* value, size_t size) { + set_has_sink(); + sink_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.sink) +} +inline ::std::string* NEMSignTx_NEMMosaicCreation::mutable_sink() { + set_has_sink(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.sink) + return sink_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMMosaicCreation::release_sink() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.sink) + if (!has_sink()) { + return NULL; + } + clear_has_sink(); + return sink_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMMosaicCreation::set_allocated_sink(::std::string* sink) { + if (sink != NULL) { + set_has_sink(); + } else { + clear_has_sink(); + } + sink_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sink); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.sink) +} + +// optional uint64 fee = 3; +inline bool NEMSignTx_NEMMosaicCreation::has_fee() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void NEMSignTx_NEMMosaicCreation::set_has_fee() { + _has_bits_[0] |= 0x00000004u; +} +inline void NEMSignTx_NEMMosaicCreation::clear_has_fee() { + _has_bits_[0] &= ~0x00000004u; +} +inline void NEMSignTx_NEMMosaicCreation::clear_fee() { + fee_ = GOOGLE_ULONGLONG(0); + clear_has_fee(); +} +inline ::google::protobuf::uint64 NEMSignTx_NEMMosaicCreation::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.fee) + return fee_; +} +inline void NEMSignTx_NEMMosaicCreation::set_fee(::google::protobuf::uint64 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation.fee) +} + +// ------------------------------------------------------------------- + +// NEMSignTx_NEMMosaicSupplyChange + +// optional string namespace = 1; +inline bool NEMSignTx_NEMMosaicSupplyChange::has_namespace_() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_has_namespace_() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignTx_NEMMosaicSupplyChange::clear_has_namespace_() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignTx_NEMMosaicSupplyChange::clear_namespace_() { + namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_namespace_(); +} +inline const ::std::string& NEMSignTx_NEMMosaicSupplyChange::namespace_() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.namespace) + return namespace__.GetNoArena(); +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_namespace_(const ::std::string& value) { + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.namespace) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMMosaicSupplyChange::set_namespace_(::std::string&& value) { + set_has_namespace_(); + namespace__.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.namespace) +} +#endif +inline void NEMSignTx_NEMMosaicSupplyChange::set_namespace_(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.namespace) +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_namespace_(const char* value, size_t size) { + set_has_namespace_(); + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.namespace) +} +inline ::std::string* NEMSignTx_NEMMosaicSupplyChange::mutable_namespace_() { + set_has_namespace_(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.namespace) + return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMMosaicSupplyChange::release_namespace_() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.namespace) + if (!has_namespace_()) { + return NULL; + } + clear_has_namespace_(); + return namespace__.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_allocated_namespace_(::std::string* namespace_) { + if (namespace_ != NULL) { + set_has_namespace_(); + } else { + clear_has_namespace_(); + } + namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.namespace) +} + +// optional string mosaic = 2; +inline bool NEMSignTx_NEMMosaicSupplyChange::has_mosaic() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_has_mosaic() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMSignTx_NEMMosaicSupplyChange::clear_has_mosaic() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMSignTx_NEMMosaicSupplyChange::clear_mosaic() { + mosaic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_mosaic(); +} +inline const ::std::string& NEMSignTx_NEMMosaicSupplyChange::mosaic() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.mosaic) + return mosaic_.GetNoArena(); +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_mosaic(const ::std::string& value) { + set_has_mosaic(); + mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.mosaic) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMMosaicSupplyChange::set_mosaic(::std::string&& value) { + set_has_mosaic(); + mosaic_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.mosaic) +} +#endif +inline void NEMSignTx_NEMMosaicSupplyChange::set_mosaic(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_mosaic(); + mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.mosaic) +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_mosaic(const char* value, size_t size) { + set_has_mosaic(); + mosaic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.mosaic) +} +inline ::std::string* NEMSignTx_NEMMosaicSupplyChange::mutable_mosaic() { + set_has_mosaic(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.mosaic) + return mosaic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMMosaicSupplyChange::release_mosaic() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.mosaic) + if (!has_mosaic()) { + return NULL; + } + clear_has_mosaic(); + return mosaic_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_allocated_mosaic(::std::string* mosaic) { + if (mosaic != NULL) { + set_has_mosaic(); + } else { + clear_has_mosaic(); + } + mosaic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mosaic); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.mosaic) +} + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.NEMSupplyChangeType type = 3; +inline bool NEMSignTx_NEMMosaicSupplyChange::has_type() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_has_type() { + _has_bits_[0] |= 0x00000008u; +} +inline void NEMSignTx_NEMMosaicSupplyChange::clear_has_type() { + _has_bits_[0] &= ~0x00000008u; +} +inline void NEMSignTx_NEMMosaicSupplyChange::clear_type() { + type_ = 1; + clear_has_type(); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType NEMSignTx_NEMMosaicSupplyChange::type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.type) + return static_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType >(type_); +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_type(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType value) { + assert(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_IsValid(value)); + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.type) +} + +// optional uint64 delta = 4; +inline bool NEMSignTx_NEMMosaicSupplyChange::has_delta() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_has_delta() { + _has_bits_[0] |= 0x00000004u; +} +inline void NEMSignTx_NEMMosaicSupplyChange::clear_has_delta() { + _has_bits_[0] &= ~0x00000004u; +} +inline void NEMSignTx_NEMMosaicSupplyChange::clear_delta() { + delta_ = GOOGLE_ULONGLONG(0); + clear_has_delta(); +} +inline ::google::protobuf::uint64 NEMSignTx_NEMMosaicSupplyChange::delta() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.delta) + return delta_; +} +inline void NEMSignTx_NEMMosaicSupplyChange::set_delta(::google::protobuf::uint64 value) { + set_has_delta(); + delta_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange.delta) +} + +// ------------------------------------------------------------------- + +// NEMSignTx_NEMAggregateModification_NEMCosignatoryModification + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.NEMModificationType type = 1; +inline bool NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::has_type() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::set_has_type() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::clear_has_type() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::clear_type() { + type_ = 1; + clear_has_type(); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.type) + return static_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType >(type_); +} +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::set_type(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType value) { + assert(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_IsValid(value)); + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.type) +} + +// optional bytes public_key = 2; +inline bool NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.public_key) + return public_key_.GetNoArena(); +} +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.public_key) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.public_key) +} +#endif +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.public_key) +} +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.public_key) +} +inline ::std::string* NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMAggregateModification_NEMCosignatoryModification::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification.public_key) +} + +// ------------------------------------------------------------------- + +// NEMSignTx_NEMAggregateModification + +// repeated .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.NEMCosignatoryModification modifications = 1; +inline int NEMSignTx_NEMAggregateModification::modifications_size() const { + return modifications_.size(); +} +inline void NEMSignTx_NEMAggregateModification::clear_modifications() { + modifications_.Clear(); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* NEMSignTx_NEMAggregateModification::mutable_modifications(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.modifications) + return modifications_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification >* +NEMSignTx_NEMAggregateModification::mutable_modifications() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.modifications) + return &modifications_; +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification& NEMSignTx_NEMAggregateModification::modifications(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.modifications) + return modifications_.Get(index); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification* NEMSignTx_NEMAggregateModification::add_modifications() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.modifications) + return modifications_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification >& +NEMSignTx_NEMAggregateModification::modifications() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.modifications) + return modifications_; +} + +// optional sint32 relative_change = 2; +inline bool NEMSignTx_NEMAggregateModification::has_relative_change() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignTx_NEMAggregateModification::set_has_relative_change() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignTx_NEMAggregateModification::clear_has_relative_change() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignTx_NEMAggregateModification::clear_relative_change() { + relative_change_ = 0; + clear_has_relative_change(); +} +inline ::google::protobuf::int32 NEMSignTx_NEMAggregateModification::relative_change() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.relative_change) + return relative_change_; +} +inline void NEMSignTx_NEMAggregateModification::set_relative_change(::google::protobuf::int32 value) { + set_has_relative_change(); + relative_change_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification.relative_change) +} + +// ------------------------------------------------------------------- + +// NEMSignTx_NEMImportanceTransfer + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.NEMImportanceTransferMode mode = 1; +inline bool NEMSignTx_NEMImportanceTransfer::has_mode() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMSignTx_NEMImportanceTransfer::set_has_mode() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMSignTx_NEMImportanceTransfer::clear_has_mode() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMSignTx_NEMImportanceTransfer::clear_mode() { + mode_ = 1; + clear_has_mode(); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode NEMSignTx_NEMImportanceTransfer::mode() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.mode) + return static_cast< ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode >(mode_); +} +inline void NEMSignTx_NEMImportanceTransfer::set_mode(::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode value) { + assert(::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_IsValid(value)); + set_has_mode(); + mode_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.mode) +} + +// optional bytes public_key = 2; +inline bool NEMSignTx_NEMImportanceTransfer::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignTx_NEMImportanceTransfer::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignTx_NEMImportanceTransfer::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignTx_NEMImportanceTransfer::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& NEMSignTx_NEMImportanceTransfer::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.public_key) + return public_key_.GetNoArena(); +} +inline void NEMSignTx_NEMImportanceTransfer::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.public_key) +} +#if LANG_CXX11 +inline void NEMSignTx_NEMImportanceTransfer::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.public_key) +} +#endif +inline void NEMSignTx_NEMImportanceTransfer::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.public_key) +} +inline void NEMSignTx_NEMImportanceTransfer::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.public_key) +} +inline ::std::string* NEMSignTx_NEMImportanceTransfer::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignTx_NEMImportanceTransfer::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignTx_NEMImportanceTransfer::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer.public_key) +} + +// ------------------------------------------------------------------- + +// NEMSignTx + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon transaction = 1; +inline bool NEMSignTx::has_transaction() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignTx::set_has_transaction() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignTx::clear_has_transaction() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignTx::clear_transaction() { + if (transaction_ != NULL) transaction_->Clear(); + clear_has_transaction(); +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon& NEMSignTx::_internal_transaction() const { + return *transaction_; +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon& NEMSignTx::transaction() const { + const ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* p = transaction_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.transaction) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::nem::_NEMSignTx_NEMTransactionCommon_default_instance_); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* NEMSignTx::release_transaction() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.transaction) + clear_has_transaction(); + ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* temp = transaction_; + transaction_ = NULL; + return temp; +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* NEMSignTx::mutable_transaction() { + set_has_transaction(); + if (transaction_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon>(GetArenaNoVirtual()); + transaction_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.transaction) + return transaction_; +} +inline void NEMSignTx::set_allocated_transaction(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* transaction) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transaction_; + } + if (transaction) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transaction = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transaction, submessage_arena); + } + set_has_transaction(); + } else { + clear_has_transaction(); + } + transaction_ = transaction; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.transaction) +} + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMTransactionCommon multisig = 2; +inline bool NEMSignTx::has_multisig() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMSignTx::set_has_multisig() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMSignTx::clear_has_multisig() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMSignTx::clear_multisig() { + if (multisig_ != NULL) multisig_->Clear(); + clear_has_multisig(); +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon& NEMSignTx::_internal_multisig() const { + return *multisig_; +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon& NEMSignTx::multisig() const { + const ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* p = multisig_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.multisig) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::nem::_NEMSignTx_NEMTransactionCommon_default_instance_); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* NEMSignTx::release_multisig() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.multisig) + clear_has_multisig(); + ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* temp = multisig_; + multisig_ = NULL; + return temp; +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* NEMSignTx::mutable_multisig() { + set_has_multisig(); + if (multisig_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon>(GetArenaNoVirtual()); + multisig_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.multisig) + return multisig_; +} +inline void NEMSignTx::set_allocated_multisig(::hw::trezor::messages::nem::NEMSignTx_NEMTransactionCommon* multisig) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete multisig_; + } + if (multisig) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + multisig = ::google::protobuf::internal::GetOwnedMessage( + message_arena, multisig, submessage_arena); + } + set_has_multisig(); + } else { + clear_has_multisig(); + } + multisig_ = multisig; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.multisig) +} + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMTransfer transfer = 3; +inline bool NEMSignTx::has_transfer() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void NEMSignTx::set_has_transfer() { + _has_bits_[0] |= 0x00000004u; +} +inline void NEMSignTx::clear_has_transfer() { + _has_bits_[0] &= ~0x00000004u; +} +inline void NEMSignTx::clear_transfer() { + if (transfer_ != NULL) transfer_->Clear(); + clear_has_transfer(); +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer& NEMSignTx::_internal_transfer() const { + return *transfer_; +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer& NEMSignTx::transfer() const { + const ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer* p = transfer_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.transfer) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::nem::_NEMSignTx_NEMTransfer_default_instance_); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer* NEMSignTx::release_transfer() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.transfer) + clear_has_transfer(); + ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer* temp = transfer_; + transfer_ = NULL; + return temp; +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMTransfer* NEMSignTx::mutable_transfer() { + set_has_transfer(); + if (transfer_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMTransfer>(GetArenaNoVirtual()); + transfer_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.transfer) + return transfer_; +} +inline void NEMSignTx::set_allocated_transfer(::hw::trezor::messages::nem::NEMSignTx_NEMTransfer* transfer) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transfer_; + } + if (transfer) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transfer = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transfer, submessage_arena); + } + set_has_transfer(); + } else { + clear_has_transfer(); + } + transfer_ = transfer; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.transfer) +} + +// optional bool cosigning = 4; +inline bool NEMSignTx::has_cosigning() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void NEMSignTx::set_has_cosigning() { + _has_bits_[0] |= 0x00000100u; +} +inline void NEMSignTx::clear_has_cosigning() { + _has_bits_[0] &= ~0x00000100u; +} +inline void NEMSignTx::clear_cosigning() { + cosigning_ = false; + clear_has_cosigning(); +} +inline bool NEMSignTx::cosigning() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.cosigning) + return cosigning_; +} +inline void NEMSignTx::set_cosigning(bool value) { + set_has_cosigning(); + cosigning_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignTx.cosigning) +} + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMProvisionNamespace provision_namespace = 5; +inline bool NEMSignTx::has_provision_namespace() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void NEMSignTx::set_has_provision_namespace() { + _has_bits_[0] |= 0x00000008u; +} +inline void NEMSignTx::clear_has_provision_namespace() { + _has_bits_[0] &= ~0x00000008u; +} +inline void NEMSignTx::clear_provision_namespace() { + if (provision_namespace_ != NULL) provision_namespace_->Clear(); + clear_has_provision_namespace(); +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace& NEMSignTx::_internal_provision_namespace() const { + return *provision_namespace_; +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace& NEMSignTx::provision_namespace() const { + const ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace* p = provision_namespace_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.provision_namespace) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::nem::_NEMSignTx_NEMProvisionNamespace_default_instance_); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace* NEMSignTx::release_provision_namespace() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.provision_namespace) + clear_has_provision_namespace(); + ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace* temp = provision_namespace_; + provision_namespace_ = NULL; + return temp; +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace* NEMSignTx::mutable_provision_namespace() { + set_has_provision_namespace(); + if (provision_namespace_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace>(GetArenaNoVirtual()); + provision_namespace_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.provision_namespace) + return provision_namespace_; +} +inline void NEMSignTx::set_allocated_provision_namespace(::hw::trezor::messages::nem::NEMSignTx_NEMProvisionNamespace* provision_namespace) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete provision_namespace_; + } + if (provision_namespace) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + provision_namespace = ::google::protobuf::internal::GetOwnedMessage( + message_arena, provision_namespace, submessage_arena); + } + set_has_provision_namespace(); + } else { + clear_has_provision_namespace(); + } + provision_namespace_ = provision_namespace; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.provision_namespace) +} + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicCreation mosaic_creation = 6; +inline bool NEMSignTx::has_mosaic_creation() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void NEMSignTx::set_has_mosaic_creation() { + _has_bits_[0] |= 0x00000010u; +} +inline void NEMSignTx::clear_has_mosaic_creation() { + _has_bits_[0] &= ~0x00000010u; +} +inline void NEMSignTx::clear_mosaic_creation() { + if (mosaic_creation_ != NULL) mosaic_creation_->Clear(); + clear_has_mosaic_creation(); +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation& NEMSignTx::_internal_mosaic_creation() const { + return *mosaic_creation_; +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation& NEMSignTx::mosaic_creation() const { + const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation* p = mosaic_creation_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.mosaic_creation) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::nem::_NEMSignTx_NEMMosaicCreation_default_instance_); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation* NEMSignTx::release_mosaic_creation() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.mosaic_creation) + clear_has_mosaic_creation(); + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation* temp = mosaic_creation_; + mosaic_creation_ = NULL; + return temp; +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation* NEMSignTx::mutable_mosaic_creation() { + set_has_mosaic_creation(); + if (mosaic_creation_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation>(GetArenaNoVirtual()); + mosaic_creation_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.mosaic_creation) + return mosaic_creation_; +} +inline void NEMSignTx::set_allocated_mosaic_creation(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation* mosaic_creation) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete mosaic_creation_; + } + if (mosaic_creation) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + mosaic_creation = ::google::protobuf::internal::GetOwnedMessage( + message_arena, mosaic_creation, submessage_arena); + } + set_has_mosaic_creation(); + } else { + clear_has_mosaic_creation(); + } + mosaic_creation_ = mosaic_creation; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.mosaic_creation) +} + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMMosaicSupplyChange supply_change = 7; +inline bool NEMSignTx::has_supply_change() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void NEMSignTx::set_has_supply_change() { + _has_bits_[0] |= 0x00000020u; +} +inline void NEMSignTx::clear_has_supply_change() { + _has_bits_[0] &= ~0x00000020u; +} +inline void NEMSignTx::clear_supply_change() { + if (supply_change_ != NULL) supply_change_->Clear(); + clear_has_supply_change(); +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange& NEMSignTx::_internal_supply_change() const { + return *supply_change_; +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange& NEMSignTx::supply_change() const { + const ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange* p = supply_change_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.supply_change) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::nem::_NEMSignTx_NEMMosaicSupplyChange_default_instance_); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange* NEMSignTx::release_supply_change() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.supply_change) + clear_has_supply_change(); + ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange* temp = supply_change_; + supply_change_ = NULL; + return temp; +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange* NEMSignTx::mutable_supply_change() { + set_has_supply_change(); + if (supply_change_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange>(GetArenaNoVirtual()); + supply_change_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.supply_change) + return supply_change_; +} +inline void NEMSignTx::set_allocated_supply_change(::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange* supply_change) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete supply_change_; + } + if (supply_change) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + supply_change = ::google::protobuf::internal::GetOwnedMessage( + message_arena, supply_change, submessage_arena); + } + set_has_supply_change(); + } else { + clear_has_supply_change(); + } + supply_change_ = supply_change; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.supply_change) +} + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMAggregateModification aggregate_modification = 8; +inline bool NEMSignTx::has_aggregate_modification() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void NEMSignTx::set_has_aggregate_modification() { + _has_bits_[0] |= 0x00000040u; +} +inline void NEMSignTx::clear_has_aggregate_modification() { + _has_bits_[0] &= ~0x00000040u; +} +inline void NEMSignTx::clear_aggregate_modification() { + if (aggregate_modification_ != NULL) aggregate_modification_->Clear(); + clear_has_aggregate_modification(); +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification& NEMSignTx::_internal_aggregate_modification() const { + return *aggregate_modification_; +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification& NEMSignTx::aggregate_modification() const { + const ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification* p = aggregate_modification_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.aggregate_modification) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::nem::_NEMSignTx_NEMAggregateModification_default_instance_); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification* NEMSignTx::release_aggregate_modification() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.aggregate_modification) + clear_has_aggregate_modification(); + ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification* temp = aggregate_modification_; + aggregate_modification_ = NULL; + return temp; +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification* NEMSignTx::mutable_aggregate_modification() { + set_has_aggregate_modification(); + if (aggregate_modification_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification>(GetArenaNoVirtual()); + aggregate_modification_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.aggregate_modification) + return aggregate_modification_; +} +inline void NEMSignTx::set_allocated_aggregate_modification(::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification* aggregate_modification) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete aggregate_modification_; + } + if (aggregate_modification) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + aggregate_modification = ::google::protobuf::internal::GetOwnedMessage( + message_arena, aggregate_modification, submessage_arena); + } + set_has_aggregate_modification(); + } else { + clear_has_aggregate_modification(); + } + aggregate_modification_ = aggregate_modification; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.aggregate_modification) +} + +// optional .hw.trezor.messages.nem.NEMSignTx.NEMImportanceTransfer importance_transfer = 9; +inline bool NEMSignTx::has_importance_transfer() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void NEMSignTx::set_has_importance_transfer() { + _has_bits_[0] |= 0x00000080u; +} +inline void NEMSignTx::clear_has_importance_transfer() { + _has_bits_[0] &= ~0x00000080u; +} +inline void NEMSignTx::clear_importance_transfer() { + if (importance_transfer_ != NULL) importance_transfer_->Clear(); + clear_has_importance_transfer(); +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer& NEMSignTx::_internal_importance_transfer() const { + return *importance_transfer_; +} +inline const ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer& NEMSignTx::importance_transfer() const { + const ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer* p = importance_transfer_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignTx.importance_transfer) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::nem::_NEMSignTx_NEMImportanceTransfer_default_instance_); +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer* NEMSignTx::release_importance_transfer() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignTx.importance_transfer) + clear_has_importance_transfer(); + ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer* temp = importance_transfer_; + importance_transfer_ = NULL; + return temp; +} +inline ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer* NEMSignTx::mutable_importance_transfer() { + set_has_importance_transfer(); + if (importance_transfer_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer>(GetArenaNoVirtual()); + importance_transfer_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignTx.importance_transfer) + return importance_transfer_; +} +inline void NEMSignTx::set_allocated_importance_transfer(::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer* importance_transfer) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete importance_transfer_; + } + if (importance_transfer) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + importance_transfer = ::google::protobuf::internal::GetOwnedMessage( + message_arena, importance_transfer, submessage_arena); + } + set_has_importance_transfer(); + } else { + clear_has_importance_transfer(); + } + importance_transfer_ = importance_transfer; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignTx.importance_transfer) +} + +// ------------------------------------------------------------------- + +// NEMSignedTx + +// optional bytes data = 1; +inline bool NEMSignedTx::has_data() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMSignedTx::set_has_data() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMSignedTx::clear_has_data() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMSignedTx::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data(); +} +inline const ::std::string& NEMSignedTx::data() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignedTx.data) + return data_.GetNoArena(); +} +inline void NEMSignedTx::set_data(const ::std::string& value) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignedTx.data) +} +#if LANG_CXX11 +inline void NEMSignedTx::set_data(::std::string&& value) { + set_has_data(); + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignedTx.data) +} +#endif +inline void NEMSignedTx::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignedTx.data) +} +inline void NEMSignedTx::set_data(const void* value, size_t size) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignedTx.data) +} +inline ::std::string* NEMSignedTx::mutable_data() { + set_has_data(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignedTx.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignedTx::release_data() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignedTx.data) + if (!has_data()) { + return NULL; + } + clear_has_data(); + return data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignedTx::set_allocated_data(::std::string* data) { + if (data != NULL) { + set_has_data(); + } else { + clear_has_data(); + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignedTx.data) +} + +// optional bytes signature = 2; +inline bool NEMSignedTx::has_signature() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMSignedTx::set_has_signature() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMSignedTx::clear_has_signature() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMSignedTx::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& NEMSignedTx::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMSignedTx.signature) + return signature_.GetNoArena(); +} +inline void NEMSignedTx::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMSignedTx.signature) +} +#if LANG_CXX11 +inline void NEMSignedTx::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMSignedTx.signature) +} +#endif +inline void NEMSignedTx::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMSignedTx.signature) +} +inline void NEMSignedTx::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMSignedTx.signature) +} +inline ::std::string* NEMSignedTx::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMSignedTx.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMSignedTx::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMSignedTx.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMSignedTx::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMSignedTx.signature) +} + +// ------------------------------------------------------------------- + +// NEMDecryptMessage + +// repeated uint32 address_n = 1; +inline int NEMDecryptMessage::address_n_size() const { + return address_n_.size(); +} +inline void NEMDecryptMessage::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 NEMDecryptMessage::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMDecryptMessage.address_n) + return address_n_.Get(index); +} +inline void NEMDecryptMessage::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMDecryptMessage.address_n) +} +inline void NEMDecryptMessage::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.nem.NEMDecryptMessage.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +NEMDecryptMessage::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.nem.NEMDecryptMessage.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +NEMDecryptMessage::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.nem.NEMDecryptMessage.address_n) + return &address_n_; +} + +// optional uint32 network = 2; +inline bool NEMDecryptMessage::has_network() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void NEMDecryptMessage::set_has_network() { + _has_bits_[0] |= 0x00000004u; +} +inline void NEMDecryptMessage::clear_has_network() { + _has_bits_[0] &= ~0x00000004u; +} +inline void NEMDecryptMessage::clear_network() { + network_ = 0u; + clear_has_network(); +} +inline ::google::protobuf::uint32 NEMDecryptMessage::network() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMDecryptMessage.network) + return network_; +} +inline void NEMDecryptMessage::set_network(::google::protobuf::uint32 value) { + set_has_network(); + network_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMDecryptMessage.network) +} + +// optional bytes public_key = 3; +inline bool NEMDecryptMessage::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMDecryptMessage::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMDecryptMessage::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMDecryptMessage::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& NEMDecryptMessage::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMDecryptMessage.public_key) + return public_key_.GetNoArena(); +} +inline void NEMDecryptMessage::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMDecryptMessage.public_key) +} +#if LANG_CXX11 +inline void NEMDecryptMessage::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMDecryptMessage.public_key) +} +#endif +inline void NEMDecryptMessage::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMDecryptMessage.public_key) +} +inline void NEMDecryptMessage::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMDecryptMessage.public_key) +} +inline ::std::string* NEMDecryptMessage::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMDecryptMessage.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMDecryptMessage::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMDecryptMessage.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMDecryptMessage::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMDecryptMessage.public_key) +} + +// optional bytes payload = 4; +inline bool NEMDecryptMessage::has_payload() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NEMDecryptMessage::set_has_payload() { + _has_bits_[0] |= 0x00000002u; +} +inline void NEMDecryptMessage::clear_has_payload() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NEMDecryptMessage::clear_payload() { + payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_payload(); +} +inline const ::std::string& NEMDecryptMessage::payload() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMDecryptMessage.payload) + return payload_.GetNoArena(); +} +inline void NEMDecryptMessage::set_payload(const ::std::string& value) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMDecryptMessage.payload) +} +#if LANG_CXX11 +inline void NEMDecryptMessage::set_payload(::std::string&& value) { + set_has_payload(); + payload_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMDecryptMessage.payload) +} +#endif +inline void NEMDecryptMessage::set_payload(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMDecryptMessage.payload) +} +inline void NEMDecryptMessage::set_payload(const void* value, size_t size) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMDecryptMessage.payload) +} +inline ::std::string* NEMDecryptMessage::mutable_payload() { + set_has_payload(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMDecryptMessage.payload) + return payload_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMDecryptMessage::release_payload() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMDecryptMessage.payload) + if (!has_payload()) { + return NULL; + } + clear_has_payload(); + return payload_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMDecryptMessage::set_allocated_payload(::std::string* payload) { + if (payload != NULL) { + set_has_payload(); + } else { + clear_has_payload(); + } + payload_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payload); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMDecryptMessage.payload) +} + +// ------------------------------------------------------------------- + +// NEMDecryptedMessage + +// optional bytes payload = 1; +inline bool NEMDecryptedMessage::has_payload() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NEMDecryptedMessage::set_has_payload() { + _has_bits_[0] |= 0x00000001u; +} +inline void NEMDecryptedMessage::clear_has_payload() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NEMDecryptedMessage::clear_payload() { + payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_payload(); +} +inline const ::std::string& NEMDecryptedMessage::payload() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.nem.NEMDecryptedMessage.payload) + return payload_.GetNoArena(); +} +inline void NEMDecryptedMessage::set_payload(const ::std::string& value) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.nem.NEMDecryptedMessage.payload) +} +#if LANG_CXX11 +inline void NEMDecryptedMessage::set_payload(::std::string&& value) { + set_has_payload(); + payload_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.nem.NEMDecryptedMessage.payload) +} +#endif +inline void NEMDecryptedMessage::set_payload(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.nem.NEMDecryptedMessage.payload) +} +inline void NEMDecryptedMessage::set_payload(const void* value, size_t size) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.nem.NEMDecryptedMessage.payload) +} +inline ::std::string* NEMDecryptedMessage::mutable_payload() { + set_has_payload(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.nem.NEMDecryptedMessage.payload) + return payload_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NEMDecryptedMessage::release_payload() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.nem.NEMDecryptedMessage.payload) + if (!has_payload()) { + return NULL; + } + clear_has_payload(); + return payload_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NEMDecryptedMessage::set_allocated_payload(::std::string* payload) { + if (payload != NULL) { + set_has_payload(); + } else { + clear_has_payload(); + } + payload_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payload); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.nem.NEMDecryptedMessage.payload) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace nem +} // namespace messages +} // namespace trezor +} // namespace hw + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy>() { + return ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicCreation_NEMMosaicDefinition_NEMMosaicLevy_descriptor(); +} +template <> struct is_proto_enum< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType>() { + return ::hw::trezor::messages::nem::NEMSignTx_NEMMosaicSupplyChange_NEMSupplyChangeType_descriptor(); +} +template <> struct is_proto_enum< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType>() { + return ::hw::trezor::messages::nem::NEMSignTx_NEMAggregateModification_NEMCosignatoryModification_NEMModificationType_descriptor(); +} +template <> struct is_proto_enum< ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode>() { + return ::hw::trezor::messages::nem::NEMSignTx_NEMImportanceTransfer_NEMImportanceTransferMode_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dnem_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-ontology.pb.cc b/src/Core/hardware/trezor/protob/messages-ontology.pb.cc new file mode 100644 index 00000000..7d1bf5da --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-ontology.pb.cc @@ -0,0 +1,6976 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-ontology.proto + +#include "messages-ontology.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dontology_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dontology_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dontology_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignOntIdRegister_OntologyOntIdRegister; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dontology_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignTransfer_OntologyTransfer; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dontology_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignWithdrawOng_OntologyWithdrawOng; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dontology_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_OntologyTransaction_OntologyTxAttribute; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dontology_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dontology_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_OntologyTransaction; +} // namespace protobuf_messages_2dontology_2eproto +class OntologyTransaction_OntologyTxAttributeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologyTransaction_OntologyTxAttribute_default_instance_; +class OntologyTransactionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologyTransaction_default_instance_; +class OntologyGetPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologyGetPublicKey_default_instance_; +class OntologyPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologyPublicKey_default_instance_; +class OntologyGetAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologyGetAddress_default_instance_; +class OntologyAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologyAddress_default_instance_; +class OntologySignTransfer_OntologyTransferDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignTransfer_OntologyTransfer_default_instance_; +class OntologySignTransferDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignTransfer_default_instance_; +class OntologySignedTransferDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignedTransfer_default_instance_; +class OntologySignWithdrawOng_OntologyWithdrawOngDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignWithdrawOng_OntologyWithdrawOng_default_instance_; +class OntologySignWithdrawOngDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignWithdrawOng_default_instance_; +class OntologySignedWithdrawOngDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignedWithdrawOng_default_instance_; +class OntologySignOntIdRegister_OntologyOntIdRegisterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignOntIdRegister_OntologyOntIdRegister_default_instance_; +class OntologySignOntIdRegisterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignOntIdRegister_default_instance_; +class OntologySignedOntIdRegisterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignedOntIdRegister_default_instance_; +class OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttributeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute_default_instance_; +class OntologySignOntIdAddAttributes_OntologyOntIdAddAttributesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_default_instance_; +class OntologySignOntIdAddAttributesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignOntIdAddAttributes_default_instance_; +class OntologySignedOntIdAddAttributesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OntologySignedOntIdAddAttributes_default_instance_; +namespace protobuf_messages_2dontology_2eproto { +static void InitDefaultsOntologyTransaction_OntologyTxAttribute() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologyTransaction_OntologyTxAttribute_default_instance_; + new (ptr) ::OntologyTransaction_OntologyTxAttribute(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologyTransaction_OntologyTxAttribute::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologyTransaction_OntologyTxAttribute = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologyTransaction_OntologyTxAttribute}, {}}; + +static void InitDefaultsOntologyTransaction() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologyTransaction_default_instance_; + new (ptr) ::OntologyTransaction(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologyTransaction::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_OntologyTransaction = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsOntologyTransaction}, { + &protobuf_messages_2dontology_2eproto::scc_info_OntologyTransaction_OntologyTxAttribute.base,}}; + +static void InitDefaultsOntologyGetPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologyGetPublicKey_default_instance_; + new (ptr) ::OntologyGetPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologyGetPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologyGetPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologyGetPublicKey}, {}}; + +static void InitDefaultsOntologyPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologyPublicKey_default_instance_; + new (ptr) ::OntologyPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologyPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologyPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologyPublicKey}, {}}; + +static void InitDefaultsOntologyGetAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologyGetAddress_default_instance_; + new (ptr) ::OntologyGetAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologyGetAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologyGetAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologyGetAddress}, {}}; + +static void InitDefaultsOntologyAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologyAddress_default_instance_; + new (ptr) ::OntologyAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologyAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologyAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologyAddress}, {}}; + +static void InitDefaultsOntologySignTransfer_OntologyTransfer() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignTransfer_OntologyTransfer_default_instance_; + new (ptr) ::OntologySignTransfer_OntologyTransfer(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignTransfer_OntologyTransfer::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignTransfer_OntologyTransfer = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologySignTransfer_OntologyTransfer}, {}}; + +static void InitDefaultsOntologySignTransfer() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignTransfer_default_instance_; + new (ptr) ::OntologySignTransfer(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignTransfer::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_OntologySignTransfer = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsOntologySignTransfer}, { + &protobuf_messages_2dontology_2eproto::scc_info_OntologyTransaction.base, + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignTransfer_OntologyTransfer.base,}}; + +static void InitDefaultsOntologySignedTransfer() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignedTransfer_default_instance_; + new (ptr) ::OntologySignedTransfer(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignedTransfer::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignedTransfer = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologySignedTransfer}, {}}; + +static void InitDefaultsOntologySignWithdrawOng_OntologyWithdrawOng() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignWithdrawOng_OntologyWithdrawOng_default_instance_; + new (ptr) ::OntologySignWithdrawOng_OntologyWithdrawOng(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignWithdrawOng_OntologyWithdrawOng::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignWithdrawOng_OntologyWithdrawOng = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologySignWithdrawOng_OntologyWithdrawOng}, {}}; + +static void InitDefaultsOntologySignWithdrawOng() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignWithdrawOng_default_instance_; + new (ptr) ::OntologySignWithdrawOng(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignWithdrawOng::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_OntologySignWithdrawOng = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsOntologySignWithdrawOng}, { + &protobuf_messages_2dontology_2eproto::scc_info_OntologyTransaction.base, + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignWithdrawOng_OntologyWithdrawOng.base,}}; + +static void InitDefaultsOntologySignedWithdrawOng() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignedWithdrawOng_default_instance_; + new (ptr) ::OntologySignedWithdrawOng(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignedWithdrawOng::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignedWithdrawOng = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologySignedWithdrawOng}, {}}; + +static void InitDefaultsOntologySignOntIdRegister_OntologyOntIdRegister() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignOntIdRegister_OntologyOntIdRegister_default_instance_; + new (ptr) ::OntologySignOntIdRegister_OntologyOntIdRegister(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignOntIdRegister_OntologyOntIdRegister::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignOntIdRegister_OntologyOntIdRegister = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologySignOntIdRegister_OntologyOntIdRegister}, {}}; + +static void InitDefaultsOntologySignOntIdRegister() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignOntIdRegister_default_instance_; + new (ptr) ::OntologySignOntIdRegister(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignOntIdRegister::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_OntologySignOntIdRegister = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsOntologySignOntIdRegister}, { + &protobuf_messages_2dontology_2eproto::scc_info_OntologyTransaction.base, + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdRegister_OntologyOntIdRegister.base,}}; + +static void InitDefaultsOntologySignedOntIdRegister() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignedOntIdRegister_default_instance_; + new (ptr) ::OntologySignedOntIdRegister(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignedOntIdRegister::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignedOntIdRegister = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologySignedOntIdRegister}, {}}; + +static void InitDefaultsOntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute_default_instance_; + new (ptr) ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute}, {}}; + +static void InitDefaultsOntologySignOntIdAddAttributes_OntologyOntIdAddAttributes() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_default_instance_; + new (ptr) ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsOntologySignOntIdAddAttributes_OntologyOntIdAddAttributes}, { + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute.base,}}; + +static void InitDefaultsOntologySignOntIdAddAttributes() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignOntIdAddAttributes_default_instance_; + new (ptr) ::OntologySignOntIdAddAttributes(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignOntIdAddAttributes::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_OntologySignOntIdAddAttributes = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsOntologySignOntIdAddAttributes}, { + &protobuf_messages_2dontology_2eproto::scc_info_OntologyTransaction.base, + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes.base,}}; + +static void InitDefaultsOntologySignedOntIdAddAttributes() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_OntologySignedOntIdAddAttributes_default_instance_; + new (ptr) ::OntologySignedOntIdAddAttributes(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::OntologySignedOntIdAddAttributes::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OntologySignedOntIdAddAttributes = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOntologySignedOntIdAddAttributes}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_OntologyTransaction_OntologyTxAttribute.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologyTransaction.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologyGetPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologyPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologyGetAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologyAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignTransfer_OntologyTransfer.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignTransfer.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignedTransfer.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignWithdrawOng_OntologyWithdrawOng.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignWithdrawOng.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignedWithdrawOng.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignOntIdRegister_OntologyOntIdRegister.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignOntIdRegister.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignedOntIdRegister.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignOntIdAddAttributes.base); + ::google::protobuf::internal::InitSCC(&scc_info_OntologySignedOntIdAddAttributes.base); +} + +::google::protobuf::Metadata file_level_metadata[19]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction_OntologyTxAttribute, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction_OntologyTxAttribute, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction_OntologyTxAttribute, usage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction_OntologyTxAttribute, data_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction, nonce_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction, gas_price_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction, gas_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction, payer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyTransaction, tx_attributes_), + 1, + 2, + 5, + 3, + 4, + 0, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyGetPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyGetPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyGetPublicKey, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyGetPublicKey, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyPublicKey, public_key_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyGetAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyGetAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyGetAddress, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyGetAddress, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologyAddress, address_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignTransfer_OntologyTransfer, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignTransfer_OntologyTransfer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignTransfer_OntologyTransfer, asset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignTransfer_OntologyTransfer, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignTransfer_OntologyTransfer, from_address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignTransfer_OntologyTransfer, to_address_), + 3, + 2, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignTransfer, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignTransfer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignTransfer, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignTransfer, transaction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignTransfer, transfer_), + ~0u, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedTransfer, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedTransfer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedTransfer, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedTransfer, payload_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignWithdrawOng_OntologyWithdrawOng, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignWithdrawOng_OntologyWithdrawOng, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignWithdrawOng_OntologyWithdrawOng, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignWithdrawOng_OntologyWithdrawOng, from_address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignWithdrawOng_OntologyWithdrawOng, to_address_), + 2, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignWithdrawOng, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignWithdrawOng, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignWithdrawOng, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignWithdrawOng, transaction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignWithdrawOng, withdraw_ong_), + ~0u, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedWithdrawOng, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedWithdrawOng, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedWithdrawOng, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedWithdrawOng, payload_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdRegister_OntologyOntIdRegister, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdRegister_OntologyOntIdRegister, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdRegister_OntologyOntIdRegister, ont_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdRegister_OntologyOntIdRegister, public_key_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdRegister, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdRegister, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdRegister, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdRegister, transaction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdRegister, ont_id_register_), + ~0u, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedOntIdRegister, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedOntIdRegister, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedOntIdRegister, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedOntIdRegister, payload_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute, value_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes, ont_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes, ont_id_attributes_), + 0, + 1, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes, transaction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignOntIdAddAttributes, ont_id_add_attributes_), + ~0u, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedOntIdAddAttributes, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedOntIdAddAttributes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedOntIdAddAttributes, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::OntologySignedOntIdAddAttributes, payload_), + 0, + 1, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::OntologyTransaction_OntologyTxAttribute)}, + { 9, 21, sizeof(::OntologyTransaction)}, + { 28, 35, sizeof(::OntologyGetPublicKey)}, + { 37, 43, sizeof(::OntologyPublicKey)}, + { 44, 51, sizeof(::OntologyGetAddress)}, + { 53, 59, sizeof(::OntologyAddress)}, + { 60, 69, sizeof(::OntologySignTransfer_OntologyTransfer)}, + { 73, 81, sizeof(::OntologySignTransfer)}, + { 84, 91, sizeof(::OntologySignedTransfer)}, + { 93, 101, sizeof(::OntologySignWithdrawOng_OntologyWithdrawOng)}, + { 104, 112, sizeof(::OntologySignWithdrawOng)}, + { 115, 122, sizeof(::OntologySignedWithdrawOng)}, + { 124, 131, sizeof(::OntologySignOntIdRegister_OntologyOntIdRegister)}, + { 133, 141, sizeof(::OntologySignOntIdRegister)}, + { 144, 151, sizeof(::OntologySignedOntIdRegister)}, + { 153, 161, sizeof(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute)}, + { 164, 172, sizeof(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes)}, + { 175, 183, sizeof(::OntologySignOntIdAddAttributes)}, + { 186, 193, sizeof(::OntologySignedOntIdAddAttributes)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::_OntologyTransaction_OntologyTxAttribute_default_instance_), + reinterpret_cast(&::_OntologyTransaction_default_instance_), + reinterpret_cast(&::_OntologyGetPublicKey_default_instance_), + reinterpret_cast(&::_OntologyPublicKey_default_instance_), + reinterpret_cast(&::_OntologyGetAddress_default_instance_), + reinterpret_cast(&::_OntologyAddress_default_instance_), + reinterpret_cast(&::_OntologySignTransfer_OntologyTransfer_default_instance_), + reinterpret_cast(&::_OntologySignTransfer_default_instance_), + reinterpret_cast(&::_OntologySignedTransfer_default_instance_), + reinterpret_cast(&::_OntologySignWithdrawOng_OntologyWithdrawOng_default_instance_), + reinterpret_cast(&::_OntologySignWithdrawOng_default_instance_), + reinterpret_cast(&::_OntologySignedWithdrawOng_default_instance_), + reinterpret_cast(&::_OntologySignOntIdRegister_OntologyOntIdRegister_default_instance_), + reinterpret_cast(&::_OntologySignOntIdRegister_default_instance_), + reinterpret_cast(&::_OntologySignedOntIdRegister_default_instance_), + reinterpret_cast(&::_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute_default_instance_), + reinterpret_cast(&::_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_default_instance_), + reinterpret_cast(&::_OntologySignOntIdAddAttributes_default_instance_), + reinterpret_cast(&::_OntologySignedOntIdAddAttributes_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-ontology.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 19); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\027messages-ontology.proto\"\355\001\n\023OntologyTr" + "ansaction\022\017\n\007version\030\001 \001(\r\022\014\n\004type\030\002 \001(\r" + "\022\r\n\005nonce\030\003 \001(\r\022\021\n\tgas_price\030\004 \001(\004\022\021\n\tga" + "s_limit\030\005 \001(\004\022\r\n\005payer\030\006 \001(\t\022\?\n\rtx_attri" + "butes\030\007 \003(\0132(.OntologyTransaction.Ontolo" + "gyTxAttribute\0322\n\023OntologyTxAttribute\022\r\n\005" + "usage\030\001 \001(\r\022\014\n\004data\030\002 \001(\014\"\?\n\024OntologyGet" + "PublicKey\022\021\n\taddress_n\030\001 \003(\r\022\024\n\014show_dis" + "play\030\002 \001(\010\"\'\n\021OntologyPublicKey\022\022\n\npubli" + "c_key\030\001 \001(\014\"=\n\022OntologyGetAddress\022\021\n\tadd" + "ress_n\030\001 \003(\r\022\024\n\014show_display\030\002 \001(\010\"\"\n\017On" + "tologyAddress\022\017\n\007address\030\001 \001(\t\"\305\002\n\024Ontol" + "ogySignTransfer\022\021\n\taddress_n\030\001 \003(\r\022)\n\013tr" + "ansaction\030\002 \001(\0132\024.OntologyTransaction\0228\n" + "\010transfer\030\003 \001(\0132&.OntologySignTransfer.O" + "ntologyTransfer\032\264\001\n\020OntologyTransfer\022C\n\005" + "asset\030\001 \001(\01624.OntologySignTransfer.Ontol" + "ogyTransfer.OntologyAsset\022\016\n\006amount\030\002 \001(" + "\004\022\024\n\014from_address\030\003 \001(\t\022\022\n\nto_address\030\004 " + "\001(\t\"!\n\rOntologyAsset\022\007\n\003ONT\020\001\022\007\n\003ONG\020\002\"<" + "\n\026OntologySignedTransfer\022\021\n\tsignature\030\001 " + "\001(\014\022\017\n\007payload\030\002 \001(\014\"\354\001\n\027OntologySignWit" + "hdrawOng\022\021\n\taddress_n\030\001 \003(\r\022)\n\013transacti" + "on\030\002 \001(\0132\024.OntologyTransaction\022B\n\014withdr" + "aw_ong\030\003 \001(\0132,.OntologySignWithdrawOng.O" + "ntologyWithdrawOng\032O\n\023OntologyWithdrawOn" + "g\022\016\n\006amount\030\001 \001(\004\022\024\n\014from_address\030\002 \001(\t\022" + "\022\n\nto_address\030\003 \001(\t\"\?\n\031OntologySignedWit" + "hdrawOng\022\021\n\tsignature\030\001 \001(\014\022\017\n\007payload\030\002" + " \001(\014\"\341\001\n\031OntologySignOntIdRegister\022\021\n\tad" + "dress_n\030\001 \003(\r\022)\n\013transaction\030\002 \001(\0132\024.Ont" + "ologyTransaction\022I\n\017ont_id_register\030\003 \001(" + "\01320.OntologySignOntIdRegister.OntologyOn" + "tIdRegister\032;\n\025OntologyOntIdRegister\022\016\n\006" + "ont_id\030\001 \001(\t\022\022\n\npublic_key\030\002 \001(\014\"A\n\033Onto" + "logySignedOntIdRegister\022\021\n\tsignature\030\001 \001" + "(\014\022\017\n\007payload\030\002 \001(\014\"\256\003\n\036OntologySignOntI" + "dAddAttributes\022\021\n\taddress_n\030\001 \003(\r\022)\n\013tra" + "nsaction\030\002 \001(\0132\024.OntologyTransaction\022Y\n\025" + "ont_id_add_attributes\030\003 \001(\0132:.OntologySi" + "gnOntIdAddAttributes.OntologyOntIdAddAtt" + "ributes\032\362\001\n\032OntologyOntIdAddAttributes\022\016" + "\n\006ont_id\030\001 \001(\t\022\022\n\npublic_key\030\002 \001(\014\022l\n\021on" + "t_id_attributes\030\003 \003(\0132Q.OntologySignOntI" + "dAddAttributes.OntologyOntIdAddAttribute" + "s.OntologyOntIdAttribute\032B\n\026OntologyOntI" + "dAttribute\022\013\n\003key\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\r\n" + "\005value\030\003 \001(\t\"F\n OntologySignedOntIdAddAt" + "tributes\022\021\n\tsignature\030\001 \001(\014\022\017\n\007payload\030\002" + " \001(\014B<\n#com.satoshilabs.trezor.lib.proto" + "bufB\025TrezorMessageOntology" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 2026); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-ontology.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dontology_2eproto +const ::google::protobuf::EnumDescriptor* OntologySignTransfer_OntologyTransfer_OntologyAsset_descriptor() { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dontology_2eproto::file_level_enum_descriptors[0]; +} +bool OntologySignTransfer_OntologyTransfer_OntologyAsset_IsValid(int value) { + switch (value) { + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const OntologySignTransfer_OntologyTransfer_OntologyAsset OntologySignTransfer_OntologyTransfer::ONT; +const OntologySignTransfer_OntologyTransfer_OntologyAsset OntologySignTransfer_OntologyTransfer::ONG; +const OntologySignTransfer_OntologyTransfer_OntologyAsset OntologySignTransfer_OntologyTransfer::OntologyAsset_MIN; +const OntologySignTransfer_OntologyTransfer_OntologyAsset OntologySignTransfer_OntologyTransfer::OntologyAsset_MAX; +const int OntologySignTransfer_OntologyTransfer::OntologyAsset_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void OntologyTransaction_OntologyTxAttribute::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologyTransaction_OntologyTxAttribute::kUsageFieldNumber; +const int OntologyTransaction_OntologyTxAttribute::kDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologyTransaction_OntologyTxAttribute::OntologyTransaction_OntologyTxAttribute() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologyTransaction_OntologyTxAttribute.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologyTransaction.OntologyTxAttribute) +} +OntologyTransaction_OntologyTxAttribute::OntologyTransaction_OntologyTxAttribute(const OntologyTransaction_OntologyTxAttribute& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data()) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + usage_ = from.usage_; + // @@protoc_insertion_point(copy_constructor:OntologyTransaction.OntologyTxAttribute) +} + +void OntologyTransaction_OntologyTxAttribute::SharedCtor() { + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + usage_ = 0u; +} + +OntologyTransaction_OntologyTxAttribute::~OntologyTransaction_OntologyTxAttribute() { + // @@protoc_insertion_point(destructor:OntologyTransaction.OntologyTxAttribute) + SharedDtor(); +} + +void OntologyTransaction_OntologyTxAttribute::SharedDtor() { + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologyTransaction_OntologyTxAttribute::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologyTransaction_OntologyTxAttribute::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologyTransaction_OntologyTxAttribute& OntologyTransaction_OntologyTxAttribute::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologyTransaction_OntologyTxAttribute.base); + return *internal_default_instance(); +} + + +void OntologyTransaction_OntologyTxAttribute::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologyTransaction.OntologyTxAttribute) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + data_.ClearNonDefaultToEmptyNoArena(); + } + usage_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologyTransaction_OntologyTxAttribute::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologyTransaction.OntologyTxAttribute) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 usage = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_usage(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &usage_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes data = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologyTransaction.OntologyTxAttribute) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologyTransaction.OntologyTxAttribute) + return false; +#undef DO_ +} + +void OntologyTransaction_OntologyTxAttribute::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologyTransaction.OntologyTxAttribute) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 usage = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->usage(), output); + } + + // optional bytes data = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->data(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologyTransaction.OntologyTxAttribute) +} + +::google::protobuf::uint8* OntologyTransaction_OntologyTxAttribute::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologyTransaction.OntologyTxAttribute) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 usage = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->usage(), target); + } + + // optional bytes data = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->data(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologyTransaction.OntologyTxAttribute) + return target; +} + +size_t OntologyTransaction_OntologyTxAttribute::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologyTransaction.OntologyTxAttribute) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes data = 2; + if (has_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + // optional uint32 usage = 1; + if (has_usage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->usage()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologyTransaction_OntologyTxAttribute::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologyTransaction.OntologyTxAttribute) + GOOGLE_DCHECK_NE(&from, this); + const OntologyTransaction_OntologyTxAttribute* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologyTransaction.OntologyTxAttribute) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologyTransaction.OntologyTxAttribute) + MergeFrom(*source); + } +} + +void OntologyTransaction_OntologyTxAttribute::MergeFrom(const OntologyTransaction_OntologyTxAttribute& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologyTransaction.OntologyTxAttribute) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_data(); + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + if (cached_has_bits & 0x00000002u) { + usage_ = from.usage_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void OntologyTransaction_OntologyTxAttribute::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologyTransaction.OntologyTxAttribute) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologyTransaction_OntologyTxAttribute::CopyFrom(const OntologyTransaction_OntologyTxAttribute& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologyTransaction.OntologyTxAttribute) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologyTransaction_OntologyTxAttribute::IsInitialized() const { + return true; +} + +void OntologyTransaction_OntologyTxAttribute::Swap(OntologyTransaction_OntologyTxAttribute* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologyTransaction_OntologyTxAttribute::InternalSwap(OntologyTransaction_OntologyTxAttribute* other) { + using std::swap; + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(usage_, other->usage_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologyTransaction_OntologyTxAttribute::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologyTransaction::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologyTransaction::kVersionFieldNumber; +const int OntologyTransaction::kTypeFieldNumber; +const int OntologyTransaction::kNonceFieldNumber; +const int OntologyTransaction::kGasPriceFieldNumber; +const int OntologyTransaction::kGasLimitFieldNumber; +const int OntologyTransaction::kPayerFieldNumber; +const int OntologyTransaction::kTxAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologyTransaction::OntologyTransaction() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologyTransaction.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologyTransaction) +} +OntologyTransaction::OntologyTransaction(const OntologyTransaction& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + tx_attributes_(from.tx_attributes_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + payer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_payer()) { + payer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payer_); + } + ::memcpy(&version_, &from.version_, + static_cast(reinterpret_cast(&nonce_) - + reinterpret_cast(&version_)) + sizeof(nonce_)); + // @@protoc_insertion_point(copy_constructor:OntologyTransaction) +} + +void OntologyTransaction::SharedCtor() { + payer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&version_, 0, static_cast( + reinterpret_cast(&nonce_) - + reinterpret_cast(&version_)) + sizeof(nonce_)); +} + +OntologyTransaction::~OntologyTransaction() { + // @@protoc_insertion_point(destructor:OntologyTransaction) + SharedDtor(); +} + +void OntologyTransaction::SharedDtor() { + payer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologyTransaction::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologyTransaction::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologyTransaction& OntologyTransaction::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologyTransaction.base); + return *internal_default_instance(); +} + + +void OntologyTransaction::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologyTransaction) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tx_attributes_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + payer_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 62u) { + ::memset(&version_, 0, static_cast( + reinterpret_cast(&nonce_) - + reinterpret_cast(&version_)) + sizeof(nonce_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologyTransaction::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologyTransaction) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 version = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 nonce = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_nonce(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &nonce_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 gas_price = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_gas_price(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &gas_price_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 gas_limit = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_gas_limit(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &gas_limit_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string payer = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_payer())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->payer().data(), static_cast(this->payer().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "OntologyTransaction.payer"); + } else { + goto handle_unusual; + } + break; + } + + // repeated .OntologyTransaction.OntologyTxAttribute tx_attributes = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_tx_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologyTransaction) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologyTransaction) + return false; +#undef DO_ +} + +void OntologyTransaction::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologyTransaction) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 version = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->version(), output); + } + + // optional uint32 type = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->type(), output); + } + + // optional uint32 nonce = 3; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->nonce(), output); + } + + // optional uint64 gas_price = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->gas_price(), output); + } + + // optional uint64 gas_limit = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->gas_limit(), output); + } + + // optional string payer = 6; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->payer().data(), static_cast(this->payer().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologyTransaction.payer"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->payer(), output); + } + + // repeated .OntologyTransaction.OntologyTxAttribute tx_attributes = 7; + for (unsigned int i = 0, + n = static_cast(this->tx_attributes_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, + this->tx_attributes(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologyTransaction) +} + +::google::protobuf::uint8* OntologyTransaction::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologyTransaction) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 version = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->version(), target); + } + + // optional uint32 type = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->type(), target); + } + + // optional uint32 nonce = 3; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->nonce(), target); + } + + // optional uint64 gas_price = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->gas_price(), target); + } + + // optional uint64 gas_limit = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->gas_limit(), target); + } + + // optional string payer = 6; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->payer().data(), static_cast(this->payer().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologyTransaction.payer"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->payer(), target); + } + + // repeated .OntologyTransaction.OntologyTxAttribute tx_attributes = 7; + for (unsigned int i = 0, + n = static_cast(this->tx_attributes_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->tx_attributes(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologyTransaction) + return target; +} + +size_t OntologyTransaction::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologyTransaction) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .OntologyTransaction.OntologyTxAttribute tx_attributes = 7; + { + unsigned int count = static_cast(this->tx_attributes_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tx_attributes(static_cast(i))); + } + } + + if (_has_bits_[0 / 32] & 63u) { + // optional string payer = 6; + if (has_payer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->payer()); + } + + // optional uint32 version = 1; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version()); + } + + // optional uint32 type = 2; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->type()); + } + + // optional uint64 gas_price = 4; + if (has_gas_price()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->gas_price()); + } + + // optional uint64 gas_limit = 5; + if (has_gas_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->gas_limit()); + } + + // optional uint32 nonce = 3; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->nonce()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologyTransaction::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologyTransaction) + GOOGLE_DCHECK_NE(&from, this); + const OntologyTransaction* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologyTransaction) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologyTransaction) + MergeFrom(*source); + } +} + +void OntologyTransaction::MergeFrom(const OntologyTransaction& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologyTransaction) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tx_attributes_.MergeFrom(from.tx_attributes_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_payer(); + payer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payer_); + } + if (cached_has_bits & 0x00000002u) { + version_ = from.version_; + } + if (cached_has_bits & 0x00000004u) { + type_ = from.type_; + } + if (cached_has_bits & 0x00000008u) { + gas_price_ = from.gas_price_; + } + if (cached_has_bits & 0x00000010u) { + gas_limit_ = from.gas_limit_; + } + if (cached_has_bits & 0x00000020u) { + nonce_ = from.nonce_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void OntologyTransaction::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologyTransaction) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologyTransaction::CopyFrom(const OntologyTransaction& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologyTransaction) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologyTransaction::IsInitialized() const { + return true; +} + +void OntologyTransaction::Swap(OntologyTransaction* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologyTransaction::InternalSwap(OntologyTransaction* other) { + using std::swap; + CastToBase(&tx_attributes_)->InternalSwap(CastToBase(&other->tx_attributes_)); + payer_.Swap(&other->payer_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(version_, other->version_); + swap(type_, other->type_); + swap(gas_price_, other->gas_price_); + swap(gas_limit_, other->gas_limit_); + swap(nonce_, other->nonce_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologyTransaction::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologyGetPublicKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologyGetPublicKey::kAddressNFieldNumber; +const int OntologyGetPublicKey::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologyGetPublicKey::OntologyGetPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologyGetPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologyGetPublicKey) +} +OntologyGetPublicKey::OntologyGetPublicKey(const OntologyGetPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:OntologyGetPublicKey) +} + +void OntologyGetPublicKey::SharedCtor() { + show_display_ = false; +} + +OntologyGetPublicKey::~OntologyGetPublicKey() { + // @@protoc_insertion_point(destructor:OntologyGetPublicKey) + SharedDtor(); +} + +void OntologyGetPublicKey::SharedDtor() { +} + +void OntologyGetPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologyGetPublicKey::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologyGetPublicKey& OntologyGetPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologyGetPublicKey.base); + return *internal_default_instance(); +} + + +void OntologyGetPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologyGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologyGetPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologyGetPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologyGetPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologyGetPublicKey) + return false; +#undef DO_ +} + +void OntologyGetPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologyGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologyGetPublicKey) +} + +::google::protobuf::uint8* OntologyGetPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologyGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologyGetPublicKey) + return target; +} + +size_t OntologyGetPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologyGetPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologyGetPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologyGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const OntologyGetPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologyGetPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologyGetPublicKey) + MergeFrom(*source); + } +} + +void OntologyGetPublicKey::MergeFrom(const OntologyGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologyGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void OntologyGetPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologyGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologyGetPublicKey::CopyFrom(const OntologyGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologyGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologyGetPublicKey::IsInitialized() const { + return true; +} + +void OntologyGetPublicKey::Swap(OntologyGetPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologyGetPublicKey::InternalSwap(OntologyGetPublicKey* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologyGetPublicKey::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologyPublicKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologyPublicKey::kPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologyPublicKey::OntologyPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologyPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologyPublicKey) +} +OntologyPublicKey::OntologyPublicKey(const OntologyPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + // @@protoc_insertion_point(copy_constructor:OntologyPublicKey) +} + +void OntologyPublicKey::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +OntologyPublicKey::~OntologyPublicKey() { + // @@protoc_insertion_point(destructor:OntologyPublicKey) + SharedDtor(); +} + +void OntologyPublicKey::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologyPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologyPublicKey::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologyPublicKey& OntologyPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologyPublicKey.base); + return *internal_default_instance(); +} + + +void OntologyPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologyPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologyPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologyPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologyPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologyPublicKey) + return false; +#undef DO_ +} + +void OntologyPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologyPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologyPublicKey) +} + +::google::protobuf::uint8* OntologyPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologyPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologyPublicKey) + return target; +} + +size_t OntologyPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologyPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional bytes public_key = 1; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologyPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologyPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const OntologyPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologyPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologyPublicKey) + MergeFrom(*source); + } +} + +void OntologyPublicKey::MergeFrom(const OntologyPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologyPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_public_key()) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } +} + +void OntologyPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologyPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologyPublicKey::CopyFrom(const OntologyPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologyPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologyPublicKey::IsInitialized() const { + return true; +} + +void OntologyPublicKey::Swap(OntologyPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologyPublicKey::InternalSwap(OntologyPublicKey* other) { + using std::swap; + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologyPublicKey::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologyGetAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologyGetAddress::kAddressNFieldNumber; +const int OntologyGetAddress::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologyGetAddress::OntologyGetAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologyGetAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologyGetAddress) +} +OntologyGetAddress::OntologyGetAddress(const OntologyGetAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:OntologyGetAddress) +} + +void OntologyGetAddress::SharedCtor() { + show_display_ = false; +} + +OntologyGetAddress::~OntologyGetAddress() { + // @@protoc_insertion_point(destructor:OntologyGetAddress) + SharedDtor(); +} + +void OntologyGetAddress::SharedDtor() { +} + +void OntologyGetAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologyGetAddress::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologyGetAddress& OntologyGetAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologyGetAddress.base); + return *internal_default_instance(); +} + + +void OntologyGetAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologyGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologyGetAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologyGetAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologyGetAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologyGetAddress) + return false; +#undef DO_ +} + +void OntologyGetAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologyGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologyGetAddress) +} + +::google::protobuf::uint8* OntologyGetAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologyGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologyGetAddress) + return target; +} + +size_t OntologyGetAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologyGetAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologyGetAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologyGetAddress) + GOOGLE_DCHECK_NE(&from, this); + const OntologyGetAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologyGetAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologyGetAddress) + MergeFrom(*source); + } +} + +void OntologyGetAddress::MergeFrom(const OntologyGetAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologyGetAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void OntologyGetAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologyGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologyGetAddress::CopyFrom(const OntologyGetAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologyGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologyGetAddress::IsInitialized() const { + return true; +} + +void OntologyGetAddress::Swap(OntologyGetAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologyGetAddress::InternalSwap(OntologyGetAddress* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologyGetAddress::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologyAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologyAddress::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologyAddress::OntologyAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologyAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologyAddress) +} +OntologyAddress::OntologyAddress(const OntologyAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:OntologyAddress) +} + +void OntologyAddress::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +OntologyAddress::~OntologyAddress() { + // @@protoc_insertion_point(destructor:OntologyAddress) + SharedDtor(); +} + +void OntologyAddress::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologyAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologyAddress::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologyAddress& OntologyAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologyAddress.base); + return *internal_default_instance(); +} + + +void OntologyAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologyAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologyAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologyAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "OntologyAddress.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologyAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologyAddress) + return false; +#undef DO_ +} + +void OntologyAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologyAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologyAddress.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologyAddress) +} + +::google::protobuf::uint8* OntologyAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologyAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologyAddress.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologyAddress) + return target; +} + +size_t OntologyAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologyAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologyAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologyAddress) + GOOGLE_DCHECK_NE(&from, this); + const OntologyAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologyAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologyAddress) + MergeFrom(*source); + } +} + +void OntologyAddress::MergeFrom(const OntologyAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologyAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_address()) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } +} + +void OntologyAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologyAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologyAddress::CopyFrom(const OntologyAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologyAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologyAddress::IsInitialized() const { + return true; +} + +void OntologyAddress::Swap(OntologyAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologyAddress::InternalSwap(OntologyAddress* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologyAddress::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignTransfer_OntologyTransfer::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignTransfer_OntologyTransfer::kAssetFieldNumber; +const int OntologySignTransfer_OntologyTransfer::kAmountFieldNumber; +const int OntologySignTransfer_OntologyTransfer::kFromAddressFieldNumber; +const int OntologySignTransfer_OntologyTransfer::kToAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignTransfer_OntologyTransfer::OntologySignTransfer_OntologyTransfer() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignTransfer_OntologyTransfer.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignTransfer.OntologyTransfer) +} +OntologySignTransfer_OntologyTransfer::OntologySignTransfer_OntologyTransfer(const OntologySignTransfer_OntologyTransfer& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + from_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_from_address()) { + from_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.from_address_); + } + to_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_to_address()) { + to_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_address_); + } + ::memcpy(&amount_, &from.amount_, + static_cast(reinterpret_cast(&asset_) - + reinterpret_cast(&amount_)) + sizeof(asset_)); + // @@protoc_insertion_point(copy_constructor:OntologySignTransfer.OntologyTransfer) +} + +void OntologySignTransfer_OntologyTransfer::SharedCtor() { + from_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + to_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_ = GOOGLE_ULONGLONG(0); + asset_ = 1; +} + +OntologySignTransfer_OntologyTransfer::~OntologySignTransfer_OntologyTransfer() { + // @@protoc_insertion_point(destructor:OntologySignTransfer.OntologyTransfer) + SharedDtor(); +} + +void OntologySignTransfer_OntologyTransfer::SharedDtor() { + from_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + to_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologySignTransfer_OntologyTransfer::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignTransfer_OntologyTransfer::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignTransfer_OntologyTransfer& OntologySignTransfer_OntologyTransfer::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignTransfer_OntologyTransfer.base); + return *internal_default_instance(); +} + + +void OntologySignTransfer_OntologyTransfer::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignTransfer.OntologyTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + from_address_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + to_address_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 12u) { + amount_ = GOOGLE_ULONGLONG(0); + asset_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignTransfer_OntologyTransfer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignTransfer.OntologyTransfer) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .OntologySignTransfer.OntologyTransfer.OntologyAsset asset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::OntologySignTransfer_OntologyTransfer_OntologyAsset_IsValid(value)) { + set_asset(static_cast< ::OntologySignTransfer_OntologyTransfer_OntologyAsset >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 amount = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string from_address = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_from_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->from_address().data(), static_cast(this->from_address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "OntologySignTransfer.OntologyTransfer.from_address"); + } else { + goto handle_unusual; + } + break; + } + + // optional string to_address = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_to_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->to_address().data(), static_cast(this->to_address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "OntologySignTransfer.OntologyTransfer.to_address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignTransfer.OntologyTransfer) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignTransfer.OntologyTransfer) + return false; +#undef DO_ +} + +void OntologySignTransfer_OntologyTransfer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignTransfer.OntologyTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .OntologySignTransfer.OntologyTransfer.OntologyAsset asset = 1; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->asset(), output); + } + + // optional uint64 amount = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->amount(), output); + } + + // optional string from_address = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->from_address().data(), static_cast(this->from_address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignTransfer.OntologyTransfer.from_address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->from_address(), output); + } + + // optional string to_address = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->to_address().data(), static_cast(this->to_address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignTransfer.OntologyTransfer.to_address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->to_address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignTransfer.OntologyTransfer) +} + +::google::protobuf::uint8* OntologySignTransfer_OntologyTransfer::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignTransfer.OntologyTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .OntologySignTransfer.OntologyTransfer.OntologyAsset asset = 1; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->asset(), target); + } + + // optional uint64 amount = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->amount(), target); + } + + // optional string from_address = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->from_address().data(), static_cast(this->from_address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignTransfer.OntologyTransfer.from_address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->from_address(), target); + } + + // optional string to_address = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->to_address().data(), static_cast(this->to_address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignTransfer.OntologyTransfer.to_address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->to_address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignTransfer.OntologyTransfer) + return target; +} + +size_t OntologySignTransfer_OntologyTransfer::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignTransfer.OntologyTransfer) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional string from_address = 3; + if (has_from_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->from_address()); + } + + // optional string to_address = 4; + if (has_to_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->to_address()); + } + + // optional uint64 amount = 2; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + // optional .OntologySignTransfer.OntologyTransfer.OntologyAsset asset = 1; + if (has_asset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->asset()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignTransfer_OntologyTransfer::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignTransfer.OntologyTransfer) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignTransfer_OntologyTransfer* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignTransfer.OntologyTransfer) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignTransfer.OntologyTransfer) + MergeFrom(*source); + } +} + +void OntologySignTransfer_OntologyTransfer::MergeFrom(const OntologySignTransfer_OntologyTransfer& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignTransfer.OntologyTransfer) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_from_address(); + from_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.from_address_); + } + if (cached_has_bits & 0x00000002u) { + set_has_to_address(); + to_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_address_); + } + if (cached_has_bits & 0x00000004u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000008u) { + asset_ = from.asset_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void OntologySignTransfer_OntologyTransfer::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignTransfer.OntologyTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignTransfer_OntologyTransfer::CopyFrom(const OntologySignTransfer_OntologyTransfer& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignTransfer.OntologyTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignTransfer_OntologyTransfer::IsInitialized() const { + return true; +} + +void OntologySignTransfer_OntologyTransfer::Swap(OntologySignTransfer_OntologyTransfer* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignTransfer_OntologyTransfer::InternalSwap(OntologySignTransfer_OntologyTransfer* other) { + using std::swap; + from_address_.Swap(&other->from_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + to_address_.Swap(&other->to_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(amount_, other->amount_); + swap(asset_, other->asset_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignTransfer_OntologyTransfer::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignTransfer::InitAsDefaultInstance() { + ::_OntologySignTransfer_default_instance_._instance.get_mutable()->transaction_ = const_cast< ::OntologyTransaction*>( + ::OntologyTransaction::internal_default_instance()); + ::_OntologySignTransfer_default_instance_._instance.get_mutable()->transfer_ = const_cast< ::OntologySignTransfer_OntologyTransfer*>( + ::OntologySignTransfer_OntologyTransfer::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignTransfer::kAddressNFieldNumber; +const int OntologySignTransfer::kTransactionFieldNumber; +const int OntologySignTransfer::kTransferFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignTransfer::OntologySignTransfer() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignTransfer.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignTransfer) +} +OntologySignTransfer::OntologySignTransfer(const OntologySignTransfer& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_transaction()) { + transaction_ = new ::OntologyTransaction(*from.transaction_); + } else { + transaction_ = NULL; + } + if (from.has_transfer()) { + transfer_ = new ::OntologySignTransfer_OntologyTransfer(*from.transfer_); + } else { + transfer_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:OntologySignTransfer) +} + +void OntologySignTransfer::SharedCtor() { + ::memset(&transaction_, 0, static_cast( + reinterpret_cast(&transfer_) - + reinterpret_cast(&transaction_)) + sizeof(transfer_)); +} + +OntologySignTransfer::~OntologySignTransfer() { + // @@protoc_insertion_point(destructor:OntologySignTransfer) + SharedDtor(); +} + +void OntologySignTransfer::SharedDtor() { + if (this != internal_default_instance()) delete transaction_; + if (this != internal_default_instance()) delete transfer_; +} + +void OntologySignTransfer::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignTransfer::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignTransfer& OntologySignTransfer::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignTransfer.base); + return *internal_default_instance(); +} + + +void OntologySignTransfer::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(transaction_ != NULL); + transaction_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(transfer_ != NULL); + transfer_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignTransfer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignTransfer) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional .OntologyTransaction transaction = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transaction())); + } else { + goto handle_unusual; + } + break; + } + + // optional .OntologySignTransfer.OntologyTransfer transfer = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transfer())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignTransfer) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignTransfer) + return false; +#undef DO_ +} + +void OntologySignTransfer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional .OntologyTransaction transaction = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_transaction(), output); + } + + // optional .OntologySignTransfer.OntologyTransfer transfer = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_transfer(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignTransfer) +} + +::google::protobuf::uint8* OntologySignTransfer::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional .OntologyTransaction transaction = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_transaction(), deterministic, target); + } + + // optional .OntologySignTransfer.OntologyTransfer transfer = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_transfer(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignTransfer) + return target; +} + +size_t OntologySignTransfer::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignTransfer) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 3u) { + // optional .OntologyTransaction transaction = 2; + if (has_transaction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transaction_); + } + + // optional .OntologySignTransfer.OntologyTransfer transfer = 3; + if (has_transfer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transfer_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignTransfer::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignTransfer) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignTransfer* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignTransfer) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignTransfer) + MergeFrom(*source); + } +} + +void OntologySignTransfer::MergeFrom(const OntologySignTransfer& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignTransfer) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + mutable_transaction()->::OntologyTransaction::MergeFrom(from.transaction()); + } + if (cached_has_bits & 0x00000002u) { + mutable_transfer()->::OntologySignTransfer_OntologyTransfer::MergeFrom(from.transfer()); + } + } +} + +void OntologySignTransfer::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignTransfer::CopyFrom(const OntologySignTransfer& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignTransfer::IsInitialized() const { + return true; +} + +void OntologySignTransfer::Swap(OntologySignTransfer* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignTransfer::InternalSwap(OntologySignTransfer* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(transaction_, other->transaction_); + swap(transfer_, other->transfer_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignTransfer::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignedTransfer::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignedTransfer::kSignatureFieldNumber; +const int OntologySignedTransfer::kPayloadFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignedTransfer::OntologySignedTransfer() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignedTransfer.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignedTransfer) +} +OntologySignedTransfer::OntologySignedTransfer(const OntologySignedTransfer& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_payload()) { + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + // @@protoc_insertion_point(copy_constructor:OntologySignedTransfer) +} + +void OntologySignedTransfer::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +OntologySignedTransfer::~OntologySignedTransfer() { + // @@protoc_insertion_point(destructor:OntologySignedTransfer) + SharedDtor(); +} + +void OntologySignedTransfer::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologySignedTransfer::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignedTransfer::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignedTransfer& OntologySignedTransfer::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignedTransfer.base); + return *internal_default_instance(); +} + + +void OntologySignedTransfer::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignedTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + payload_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignedTransfer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignedTransfer) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes signature = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes payload = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_payload())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignedTransfer) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignedTransfer) + return false; +#undef DO_ +} + +void OntologySignedTransfer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignedTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->signature(), output); + } + + // optional bytes payload = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->payload(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignedTransfer) +} + +::google::protobuf::uint8* OntologySignedTransfer::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignedTransfer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->signature(), target); + } + + // optional bytes payload = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->payload(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignedTransfer) + return target; +} + +size_t OntologySignedTransfer::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignedTransfer) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional bytes payload = 2; + if (has_payload()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->payload()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignedTransfer::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignedTransfer) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignedTransfer* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignedTransfer) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignedTransfer) + MergeFrom(*source); + } +} + +void OntologySignedTransfer::MergeFrom(const OntologySignedTransfer& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignedTransfer) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000002u) { + set_has_payload(); + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + } +} + +void OntologySignedTransfer::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignedTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignedTransfer::CopyFrom(const OntologySignedTransfer& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignedTransfer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignedTransfer::IsInitialized() const { + return true; +} + +void OntologySignedTransfer::Swap(OntologySignedTransfer* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignedTransfer::InternalSwap(OntologySignedTransfer* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + payload_.Swap(&other->payload_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignedTransfer::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignWithdrawOng_OntologyWithdrawOng::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignWithdrawOng_OntologyWithdrawOng::kAmountFieldNumber; +const int OntologySignWithdrawOng_OntologyWithdrawOng::kFromAddressFieldNumber; +const int OntologySignWithdrawOng_OntologyWithdrawOng::kToAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignWithdrawOng_OntologyWithdrawOng::OntologySignWithdrawOng_OntologyWithdrawOng() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignWithdrawOng_OntologyWithdrawOng.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignWithdrawOng.OntologyWithdrawOng) +} +OntologySignWithdrawOng_OntologyWithdrawOng::OntologySignWithdrawOng_OntologyWithdrawOng(const OntologySignWithdrawOng_OntologyWithdrawOng& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + from_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_from_address()) { + from_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.from_address_); + } + to_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_to_address()) { + to_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_address_); + } + amount_ = from.amount_; + // @@protoc_insertion_point(copy_constructor:OntologySignWithdrawOng.OntologyWithdrawOng) +} + +void OntologySignWithdrawOng_OntologyWithdrawOng::SharedCtor() { + from_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + to_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_ = GOOGLE_ULONGLONG(0); +} + +OntologySignWithdrawOng_OntologyWithdrawOng::~OntologySignWithdrawOng_OntologyWithdrawOng() { + // @@protoc_insertion_point(destructor:OntologySignWithdrawOng.OntologyWithdrawOng) + SharedDtor(); +} + +void OntologySignWithdrawOng_OntologyWithdrawOng::SharedDtor() { + from_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + to_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologySignWithdrawOng_OntologyWithdrawOng::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignWithdrawOng_OntologyWithdrawOng::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignWithdrawOng_OntologyWithdrawOng& OntologySignWithdrawOng_OntologyWithdrawOng::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignWithdrawOng_OntologyWithdrawOng.base); + return *internal_default_instance(); +} + + +void OntologySignWithdrawOng_OntologyWithdrawOng::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignWithdrawOng.OntologyWithdrawOng) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + from_address_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + to_address_.ClearNonDefaultToEmptyNoArena(); + } + } + amount_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignWithdrawOng_OntologyWithdrawOng::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignWithdrawOng.OntologyWithdrawOng) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 amount = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string from_address = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_from_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->from_address().data(), static_cast(this->from_address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "OntologySignWithdrawOng.OntologyWithdrawOng.from_address"); + } else { + goto handle_unusual; + } + break; + } + + // optional string to_address = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_to_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->to_address().data(), static_cast(this->to_address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "OntologySignWithdrawOng.OntologyWithdrawOng.to_address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignWithdrawOng.OntologyWithdrawOng) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignWithdrawOng.OntologyWithdrawOng) + return false; +#undef DO_ +} + +void OntologySignWithdrawOng_OntologyWithdrawOng::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignWithdrawOng.OntologyWithdrawOng) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 amount = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->amount(), output); + } + + // optional string from_address = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->from_address().data(), static_cast(this->from_address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignWithdrawOng.OntologyWithdrawOng.from_address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->from_address(), output); + } + + // optional string to_address = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->to_address().data(), static_cast(this->to_address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignWithdrawOng.OntologyWithdrawOng.to_address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->to_address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignWithdrawOng.OntologyWithdrawOng) +} + +::google::protobuf::uint8* OntologySignWithdrawOng_OntologyWithdrawOng::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignWithdrawOng.OntologyWithdrawOng) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 amount = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->amount(), target); + } + + // optional string from_address = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->from_address().data(), static_cast(this->from_address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignWithdrawOng.OntologyWithdrawOng.from_address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->from_address(), target); + } + + // optional string to_address = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->to_address().data(), static_cast(this->to_address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignWithdrawOng.OntologyWithdrawOng.to_address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->to_address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignWithdrawOng.OntologyWithdrawOng) + return target; +} + +size_t OntologySignWithdrawOng_OntologyWithdrawOng::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignWithdrawOng.OntologyWithdrawOng) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string from_address = 2; + if (has_from_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->from_address()); + } + + // optional string to_address = 3; + if (has_to_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->to_address()); + } + + // optional uint64 amount = 1; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignWithdrawOng_OntologyWithdrawOng::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignWithdrawOng.OntologyWithdrawOng) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignWithdrawOng_OntologyWithdrawOng* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignWithdrawOng.OntologyWithdrawOng) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignWithdrawOng.OntologyWithdrawOng) + MergeFrom(*source); + } +} + +void OntologySignWithdrawOng_OntologyWithdrawOng::MergeFrom(const OntologySignWithdrawOng_OntologyWithdrawOng& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignWithdrawOng.OntologyWithdrawOng) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_from_address(); + from_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.from_address_); + } + if (cached_has_bits & 0x00000002u) { + set_has_to_address(); + to_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_address_); + } + if (cached_has_bits & 0x00000004u) { + amount_ = from.amount_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void OntologySignWithdrawOng_OntologyWithdrawOng::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignWithdrawOng.OntologyWithdrawOng) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignWithdrawOng_OntologyWithdrawOng::CopyFrom(const OntologySignWithdrawOng_OntologyWithdrawOng& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignWithdrawOng.OntologyWithdrawOng) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignWithdrawOng_OntologyWithdrawOng::IsInitialized() const { + return true; +} + +void OntologySignWithdrawOng_OntologyWithdrawOng::Swap(OntologySignWithdrawOng_OntologyWithdrawOng* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignWithdrawOng_OntologyWithdrawOng::InternalSwap(OntologySignWithdrawOng_OntologyWithdrawOng* other) { + using std::swap; + from_address_.Swap(&other->from_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + to_address_.Swap(&other->to_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(amount_, other->amount_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignWithdrawOng_OntologyWithdrawOng::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignWithdrawOng::InitAsDefaultInstance() { + ::_OntologySignWithdrawOng_default_instance_._instance.get_mutable()->transaction_ = const_cast< ::OntologyTransaction*>( + ::OntologyTransaction::internal_default_instance()); + ::_OntologySignWithdrawOng_default_instance_._instance.get_mutable()->withdraw_ong_ = const_cast< ::OntologySignWithdrawOng_OntologyWithdrawOng*>( + ::OntologySignWithdrawOng_OntologyWithdrawOng::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignWithdrawOng::kAddressNFieldNumber; +const int OntologySignWithdrawOng::kTransactionFieldNumber; +const int OntologySignWithdrawOng::kWithdrawOngFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignWithdrawOng::OntologySignWithdrawOng() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignWithdrawOng.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignWithdrawOng) +} +OntologySignWithdrawOng::OntologySignWithdrawOng(const OntologySignWithdrawOng& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_transaction()) { + transaction_ = new ::OntologyTransaction(*from.transaction_); + } else { + transaction_ = NULL; + } + if (from.has_withdraw_ong()) { + withdraw_ong_ = new ::OntologySignWithdrawOng_OntologyWithdrawOng(*from.withdraw_ong_); + } else { + withdraw_ong_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:OntologySignWithdrawOng) +} + +void OntologySignWithdrawOng::SharedCtor() { + ::memset(&transaction_, 0, static_cast( + reinterpret_cast(&withdraw_ong_) - + reinterpret_cast(&transaction_)) + sizeof(withdraw_ong_)); +} + +OntologySignWithdrawOng::~OntologySignWithdrawOng() { + // @@protoc_insertion_point(destructor:OntologySignWithdrawOng) + SharedDtor(); +} + +void OntologySignWithdrawOng::SharedDtor() { + if (this != internal_default_instance()) delete transaction_; + if (this != internal_default_instance()) delete withdraw_ong_; +} + +void OntologySignWithdrawOng::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignWithdrawOng::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignWithdrawOng& OntologySignWithdrawOng::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignWithdrawOng.base); + return *internal_default_instance(); +} + + +void OntologySignWithdrawOng::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignWithdrawOng) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(transaction_ != NULL); + transaction_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(withdraw_ong_ != NULL); + withdraw_ong_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignWithdrawOng::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignWithdrawOng) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional .OntologyTransaction transaction = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transaction())); + } else { + goto handle_unusual; + } + break; + } + + // optional .OntologySignWithdrawOng.OntologyWithdrawOng withdraw_ong = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_withdraw_ong())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignWithdrawOng) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignWithdrawOng) + return false; +#undef DO_ +} + +void OntologySignWithdrawOng::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignWithdrawOng) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional .OntologyTransaction transaction = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_transaction(), output); + } + + // optional .OntologySignWithdrawOng.OntologyWithdrawOng withdraw_ong = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_withdraw_ong(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignWithdrawOng) +} + +::google::protobuf::uint8* OntologySignWithdrawOng::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignWithdrawOng) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional .OntologyTransaction transaction = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_transaction(), deterministic, target); + } + + // optional .OntologySignWithdrawOng.OntologyWithdrawOng withdraw_ong = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_withdraw_ong(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignWithdrawOng) + return target; +} + +size_t OntologySignWithdrawOng::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignWithdrawOng) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 3u) { + // optional .OntologyTransaction transaction = 2; + if (has_transaction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transaction_); + } + + // optional .OntologySignWithdrawOng.OntologyWithdrawOng withdraw_ong = 3; + if (has_withdraw_ong()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *withdraw_ong_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignWithdrawOng::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignWithdrawOng) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignWithdrawOng* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignWithdrawOng) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignWithdrawOng) + MergeFrom(*source); + } +} + +void OntologySignWithdrawOng::MergeFrom(const OntologySignWithdrawOng& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignWithdrawOng) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + mutable_transaction()->::OntologyTransaction::MergeFrom(from.transaction()); + } + if (cached_has_bits & 0x00000002u) { + mutable_withdraw_ong()->::OntologySignWithdrawOng_OntologyWithdrawOng::MergeFrom(from.withdraw_ong()); + } + } +} + +void OntologySignWithdrawOng::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignWithdrawOng) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignWithdrawOng::CopyFrom(const OntologySignWithdrawOng& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignWithdrawOng) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignWithdrawOng::IsInitialized() const { + return true; +} + +void OntologySignWithdrawOng::Swap(OntologySignWithdrawOng* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignWithdrawOng::InternalSwap(OntologySignWithdrawOng* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(transaction_, other->transaction_); + swap(withdraw_ong_, other->withdraw_ong_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignWithdrawOng::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignedWithdrawOng::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignedWithdrawOng::kSignatureFieldNumber; +const int OntologySignedWithdrawOng::kPayloadFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignedWithdrawOng::OntologySignedWithdrawOng() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignedWithdrawOng.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignedWithdrawOng) +} +OntologySignedWithdrawOng::OntologySignedWithdrawOng(const OntologySignedWithdrawOng& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_payload()) { + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + // @@protoc_insertion_point(copy_constructor:OntologySignedWithdrawOng) +} + +void OntologySignedWithdrawOng::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +OntologySignedWithdrawOng::~OntologySignedWithdrawOng() { + // @@protoc_insertion_point(destructor:OntologySignedWithdrawOng) + SharedDtor(); +} + +void OntologySignedWithdrawOng::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologySignedWithdrawOng::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignedWithdrawOng::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignedWithdrawOng& OntologySignedWithdrawOng::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignedWithdrawOng.base); + return *internal_default_instance(); +} + + +void OntologySignedWithdrawOng::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignedWithdrawOng) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + payload_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignedWithdrawOng::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignedWithdrawOng) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes signature = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes payload = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_payload())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignedWithdrawOng) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignedWithdrawOng) + return false; +#undef DO_ +} + +void OntologySignedWithdrawOng::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignedWithdrawOng) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->signature(), output); + } + + // optional bytes payload = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->payload(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignedWithdrawOng) +} + +::google::protobuf::uint8* OntologySignedWithdrawOng::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignedWithdrawOng) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->signature(), target); + } + + // optional bytes payload = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->payload(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignedWithdrawOng) + return target; +} + +size_t OntologySignedWithdrawOng::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignedWithdrawOng) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional bytes payload = 2; + if (has_payload()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->payload()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignedWithdrawOng::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignedWithdrawOng) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignedWithdrawOng* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignedWithdrawOng) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignedWithdrawOng) + MergeFrom(*source); + } +} + +void OntologySignedWithdrawOng::MergeFrom(const OntologySignedWithdrawOng& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignedWithdrawOng) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000002u) { + set_has_payload(); + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + } +} + +void OntologySignedWithdrawOng::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignedWithdrawOng) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignedWithdrawOng::CopyFrom(const OntologySignedWithdrawOng& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignedWithdrawOng) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignedWithdrawOng::IsInitialized() const { + return true; +} + +void OntologySignedWithdrawOng::Swap(OntologySignedWithdrawOng* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignedWithdrawOng::InternalSwap(OntologySignedWithdrawOng* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + payload_.Swap(&other->payload_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignedWithdrawOng::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignOntIdRegister_OntologyOntIdRegister::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignOntIdRegister_OntologyOntIdRegister::kOntIdFieldNumber; +const int OntologySignOntIdRegister_OntologyOntIdRegister::kPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignOntIdRegister_OntologyOntIdRegister::OntologySignOntIdRegister_OntologyOntIdRegister() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdRegister_OntologyOntIdRegister.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignOntIdRegister.OntologyOntIdRegister) +} +OntologySignOntIdRegister_OntologyOntIdRegister::OntologySignOntIdRegister_OntologyOntIdRegister(const OntologySignOntIdRegister_OntologyOntIdRegister& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ont_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_ont_id()) { + ont_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ont_id_); + } + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + // @@protoc_insertion_point(copy_constructor:OntologySignOntIdRegister.OntologyOntIdRegister) +} + +void OntologySignOntIdRegister_OntologyOntIdRegister::SharedCtor() { + ont_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +OntologySignOntIdRegister_OntologyOntIdRegister::~OntologySignOntIdRegister_OntologyOntIdRegister() { + // @@protoc_insertion_point(destructor:OntologySignOntIdRegister.OntologyOntIdRegister) + SharedDtor(); +} + +void OntologySignOntIdRegister_OntologyOntIdRegister::SharedDtor() { + ont_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologySignOntIdRegister_OntologyOntIdRegister::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignOntIdRegister_OntologyOntIdRegister::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignOntIdRegister_OntologyOntIdRegister& OntologySignOntIdRegister_OntologyOntIdRegister::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdRegister_OntologyOntIdRegister.base); + return *internal_default_instance(); +} + + +void OntologySignOntIdRegister_OntologyOntIdRegister::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignOntIdRegister.OntologyOntIdRegister) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + ont_id_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignOntIdRegister_OntologyOntIdRegister::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignOntIdRegister.OntologyOntIdRegister) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string ont_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_ont_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ont_id().data(), static_cast(this->ont_id().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "OntologySignOntIdRegister.OntologyOntIdRegister.ont_id"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes public_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignOntIdRegister.OntologyOntIdRegister) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignOntIdRegister.OntologyOntIdRegister) + return false; +#undef DO_ +} + +void OntologySignOntIdRegister_OntologyOntIdRegister::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignOntIdRegister.OntologyOntIdRegister) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string ont_id = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ont_id().data(), static_cast(this->ont_id().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignOntIdRegister.OntologyOntIdRegister.ont_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->ont_id(), output); + } + + // optional bytes public_key = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignOntIdRegister.OntologyOntIdRegister) +} + +::google::protobuf::uint8* OntologySignOntIdRegister_OntologyOntIdRegister::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignOntIdRegister.OntologyOntIdRegister) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string ont_id = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ont_id().data(), static_cast(this->ont_id().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignOntIdRegister.OntologyOntIdRegister.ont_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->ont_id(), target); + } + + // optional bytes public_key = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignOntIdRegister.OntologyOntIdRegister) + return target; +} + +size_t OntologySignOntIdRegister_OntologyOntIdRegister::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignOntIdRegister.OntologyOntIdRegister) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional string ont_id = 1; + if (has_ont_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->ont_id()); + } + + // optional bytes public_key = 2; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignOntIdRegister_OntologyOntIdRegister::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignOntIdRegister.OntologyOntIdRegister) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignOntIdRegister_OntologyOntIdRegister* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignOntIdRegister.OntologyOntIdRegister) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignOntIdRegister.OntologyOntIdRegister) + MergeFrom(*source); + } +} + +void OntologySignOntIdRegister_OntologyOntIdRegister::MergeFrom(const OntologySignOntIdRegister_OntologyOntIdRegister& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignOntIdRegister.OntologyOntIdRegister) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_ont_id(); + ont_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ont_id_); + } + if (cached_has_bits & 0x00000002u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + } +} + +void OntologySignOntIdRegister_OntologyOntIdRegister::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignOntIdRegister.OntologyOntIdRegister) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignOntIdRegister_OntologyOntIdRegister::CopyFrom(const OntologySignOntIdRegister_OntologyOntIdRegister& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignOntIdRegister.OntologyOntIdRegister) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignOntIdRegister_OntologyOntIdRegister::IsInitialized() const { + return true; +} + +void OntologySignOntIdRegister_OntologyOntIdRegister::Swap(OntologySignOntIdRegister_OntologyOntIdRegister* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignOntIdRegister_OntologyOntIdRegister::InternalSwap(OntologySignOntIdRegister_OntologyOntIdRegister* other) { + using std::swap; + ont_id_.Swap(&other->ont_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignOntIdRegister_OntologyOntIdRegister::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignOntIdRegister::InitAsDefaultInstance() { + ::_OntologySignOntIdRegister_default_instance_._instance.get_mutable()->transaction_ = const_cast< ::OntologyTransaction*>( + ::OntologyTransaction::internal_default_instance()); + ::_OntologySignOntIdRegister_default_instance_._instance.get_mutable()->ont_id_register_ = const_cast< ::OntologySignOntIdRegister_OntologyOntIdRegister*>( + ::OntologySignOntIdRegister_OntologyOntIdRegister::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignOntIdRegister::kAddressNFieldNumber; +const int OntologySignOntIdRegister::kTransactionFieldNumber; +const int OntologySignOntIdRegister::kOntIdRegisterFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignOntIdRegister::OntologySignOntIdRegister() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdRegister.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignOntIdRegister) +} +OntologySignOntIdRegister::OntologySignOntIdRegister(const OntologySignOntIdRegister& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_transaction()) { + transaction_ = new ::OntologyTransaction(*from.transaction_); + } else { + transaction_ = NULL; + } + if (from.has_ont_id_register()) { + ont_id_register_ = new ::OntologySignOntIdRegister_OntologyOntIdRegister(*from.ont_id_register_); + } else { + ont_id_register_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:OntologySignOntIdRegister) +} + +void OntologySignOntIdRegister::SharedCtor() { + ::memset(&transaction_, 0, static_cast( + reinterpret_cast(&ont_id_register_) - + reinterpret_cast(&transaction_)) + sizeof(ont_id_register_)); +} + +OntologySignOntIdRegister::~OntologySignOntIdRegister() { + // @@protoc_insertion_point(destructor:OntologySignOntIdRegister) + SharedDtor(); +} + +void OntologySignOntIdRegister::SharedDtor() { + if (this != internal_default_instance()) delete transaction_; + if (this != internal_default_instance()) delete ont_id_register_; +} + +void OntologySignOntIdRegister::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignOntIdRegister::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignOntIdRegister& OntologySignOntIdRegister::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdRegister.base); + return *internal_default_instance(); +} + + +void OntologySignOntIdRegister::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignOntIdRegister) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(transaction_ != NULL); + transaction_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(ont_id_register_ != NULL); + ont_id_register_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignOntIdRegister::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignOntIdRegister) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional .OntologyTransaction transaction = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transaction())); + } else { + goto handle_unusual; + } + break; + } + + // optional .OntologySignOntIdRegister.OntologyOntIdRegister ont_id_register = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_ont_id_register())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignOntIdRegister) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignOntIdRegister) + return false; +#undef DO_ +} + +void OntologySignOntIdRegister::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignOntIdRegister) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional .OntologyTransaction transaction = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_transaction(), output); + } + + // optional .OntologySignOntIdRegister.OntologyOntIdRegister ont_id_register = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_ont_id_register(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignOntIdRegister) +} + +::google::protobuf::uint8* OntologySignOntIdRegister::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignOntIdRegister) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional .OntologyTransaction transaction = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_transaction(), deterministic, target); + } + + // optional .OntologySignOntIdRegister.OntologyOntIdRegister ont_id_register = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_ont_id_register(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignOntIdRegister) + return target; +} + +size_t OntologySignOntIdRegister::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignOntIdRegister) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 3u) { + // optional .OntologyTransaction transaction = 2; + if (has_transaction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transaction_); + } + + // optional .OntologySignOntIdRegister.OntologyOntIdRegister ont_id_register = 3; + if (has_ont_id_register()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ont_id_register_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignOntIdRegister::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignOntIdRegister) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignOntIdRegister* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignOntIdRegister) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignOntIdRegister) + MergeFrom(*source); + } +} + +void OntologySignOntIdRegister::MergeFrom(const OntologySignOntIdRegister& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignOntIdRegister) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + mutable_transaction()->::OntologyTransaction::MergeFrom(from.transaction()); + } + if (cached_has_bits & 0x00000002u) { + mutable_ont_id_register()->::OntologySignOntIdRegister_OntologyOntIdRegister::MergeFrom(from.ont_id_register()); + } + } +} + +void OntologySignOntIdRegister::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignOntIdRegister) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignOntIdRegister::CopyFrom(const OntologySignOntIdRegister& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignOntIdRegister) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignOntIdRegister::IsInitialized() const { + return true; +} + +void OntologySignOntIdRegister::Swap(OntologySignOntIdRegister* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignOntIdRegister::InternalSwap(OntologySignOntIdRegister* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(transaction_, other->transaction_); + swap(ont_id_register_, other->ont_id_register_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignOntIdRegister::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignedOntIdRegister::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignedOntIdRegister::kSignatureFieldNumber; +const int OntologySignedOntIdRegister::kPayloadFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignedOntIdRegister::OntologySignedOntIdRegister() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignedOntIdRegister.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignedOntIdRegister) +} +OntologySignedOntIdRegister::OntologySignedOntIdRegister(const OntologySignedOntIdRegister& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_payload()) { + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + // @@protoc_insertion_point(copy_constructor:OntologySignedOntIdRegister) +} + +void OntologySignedOntIdRegister::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +OntologySignedOntIdRegister::~OntologySignedOntIdRegister() { + // @@protoc_insertion_point(destructor:OntologySignedOntIdRegister) + SharedDtor(); +} + +void OntologySignedOntIdRegister::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologySignedOntIdRegister::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignedOntIdRegister::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignedOntIdRegister& OntologySignedOntIdRegister::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignedOntIdRegister.base); + return *internal_default_instance(); +} + + +void OntologySignedOntIdRegister::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignedOntIdRegister) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + payload_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignedOntIdRegister::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignedOntIdRegister) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes signature = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes payload = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_payload())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignedOntIdRegister) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignedOntIdRegister) + return false; +#undef DO_ +} + +void OntologySignedOntIdRegister::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignedOntIdRegister) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->signature(), output); + } + + // optional bytes payload = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->payload(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignedOntIdRegister) +} + +::google::protobuf::uint8* OntologySignedOntIdRegister::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignedOntIdRegister) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->signature(), target); + } + + // optional bytes payload = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->payload(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignedOntIdRegister) + return target; +} + +size_t OntologySignedOntIdRegister::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignedOntIdRegister) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional bytes payload = 2; + if (has_payload()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->payload()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignedOntIdRegister::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignedOntIdRegister) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignedOntIdRegister* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignedOntIdRegister) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignedOntIdRegister) + MergeFrom(*source); + } +} + +void OntologySignedOntIdRegister::MergeFrom(const OntologySignedOntIdRegister& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignedOntIdRegister) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000002u) { + set_has_payload(); + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + } +} + +void OntologySignedOntIdRegister::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignedOntIdRegister) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignedOntIdRegister::CopyFrom(const OntologySignedOntIdRegister& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignedOntIdRegister) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignedOntIdRegister::IsInitialized() const { + return true; +} + +void OntologySignedOntIdRegister::Swap(OntologySignedOntIdRegister* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignedOntIdRegister::InternalSwap(OntologySignedOntIdRegister* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + payload_.Swap(&other->payload_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignedOntIdRegister::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::kKeyFieldNumber; +const int OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::kTypeFieldNumber; +const int OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) +} +OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_key()) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_type()) { + type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); + } + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_value()) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + // @@protoc_insertion_point(copy_constructor:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::SharedCtor() { + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::~OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute() { + // @@protoc_insertion_point(destructor:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + SharedDtor(); +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute.base); + return *internal_default_instance(); +} + + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + type_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + value_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.key"); + } else { + goto handle_unusual; + } + break; + } + + // optional string type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_type())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.type"); + } else { + goto handle_unusual; + } + break; + } + + // optional string value = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.value"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + return false; +#undef DO_ +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->key(), output); + } + + // optional string type = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->type(), output); + } + + // optional string value = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) +} + +::google::protobuf::uint8* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->key(), target); + } + + // optional string type = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->type(), target); + } + + // optional string value = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->value(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + return target; +} + +size_t OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string key = 1; + if (has_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // optional string type = 2; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->type()); + } + + // optional string value = 3; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + MergeFrom(*source); + } +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::MergeFrom(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_key(); + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_type(); + type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); + } + if (cached_has_bits & 0x00000004u) { + set_has_value(); + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + } +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::CopyFrom(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::IsInitialized() const { + return true; +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::Swap(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::InternalSwap(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* other) { + using std::swap; + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + type_.Swap(&other->type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::kOntIdFieldNumber; +const int OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::kPublicKeyFieldNumber; +const int OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::kOntIdAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) +} +OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + ont_id_attributes_(from.ont_id_attributes_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ont_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_ont_id()) { + ont_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ont_id_); + } + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + // @@protoc_insertion_point(copy_constructor:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::SharedCtor() { + ont_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::~OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes() { + // @@protoc_insertion_point(destructor:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + SharedDtor(); +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::SharedDtor() { + ont_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes.base); + return *internal_default_instance(); +} + + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ont_id_attributes_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + ont_id_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string ont_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_ont_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ont_id().data(), static_cast(this->ont_id().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes public_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute ont_id_attributes = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_ont_id_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + return false; +#undef DO_ +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string ont_id = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ont_id().data(), static_cast(this->ont_id().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->ont_id(), output); + } + + // optional bytes public_key = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->public_key(), output); + } + + // repeated .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute ont_id_attributes = 3; + for (unsigned int i = 0, + n = static_cast(this->ont_id_attributes_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->ont_id_attributes(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) +} + +::google::protobuf::uint8* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string ont_id = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->ont_id().data(), static_cast(this->ont_id().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->ont_id(), target); + } + + // optional bytes public_key = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->public_key(), target); + } + + // repeated .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute ont_id_attributes = 3; + for (unsigned int i = 0, + n = static_cast(this->ont_id_attributes_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->ont_id_attributes(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + return target; +} + +size_t OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute ont_id_attributes = 3; + { + unsigned int count = static_cast(this->ont_id_attributes_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->ont_id_attributes(static_cast(i))); + } + } + + if (_has_bits_[0 / 32] & 3u) { + // optional string ont_id = 1; + if (has_ont_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->ont_id()); + } + + // optional bytes public_key = 2; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + MergeFrom(*source); + } +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::MergeFrom(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + ont_id_attributes_.MergeFrom(from.ont_id_attributes_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_ont_id(); + ont_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ont_id_); + } + if (cached_has_bits & 0x00000002u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + } +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::CopyFrom(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::IsInitialized() const { + return true; +} + +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::Swap(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::InternalSwap(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* other) { + using std::swap; + CastToBase(&ont_id_attributes_)->InternalSwap(CastToBase(&other->ont_id_attributes_)); + ont_id_.Swap(&other->ont_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignOntIdAddAttributes::InitAsDefaultInstance() { + ::_OntologySignOntIdAddAttributes_default_instance_._instance.get_mutable()->transaction_ = const_cast< ::OntologyTransaction*>( + ::OntologyTransaction::internal_default_instance()); + ::_OntologySignOntIdAddAttributes_default_instance_._instance.get_mutable()->ont_id_add_attributes_ = const_cast< ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes*>( + ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignOntIdAddAttributes::kAddressNFieldNumber; +const int OntologySignOntIdAddAttributes::kTransactionFieldNumber; +const int OntologySignOntIdAddAttributes::kOntIdAddAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignOntIdAddAttributes::OntologySignOntIdAddAttributes() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdAddAttributes.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignOntIdAddAttributes) +} +OntologySignOntIdAddAttributes::OntologySignOntIdAddAttributes(const OntologySignOntIdAddAttributes& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_transaction()) { + transaction_ = new ::OntologyTransaction(*from.transaction_); + } else { + transaction_ = NULL; + } + if (from.has_ont_id_add_attributes()) { + ont_id_add_attributes_ = new ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes(*from.ont_id_add_attributes_); + } else { + ont_id_add_attributes_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:OntologySignOntIdAddAttributes) +} + +void OntologySignOntIdAddAttributes::SharedCtor() { + ::memset(&transaction_, 0, static_cast( + reinterpret_cast(&ont_id_add_attributes_) - + reinterpret_cast(&transaction_)) + sizeof(ont_id_add_attributes_)); +} + +OntologySignOntIdAddAttributes::~OntologySignOntIdAddAttributes() { + // @@protoc_insertion_point(destructor:OntologySignOntIdAddAttributes) + SharedDtor(); +} + +void OntologySignOntIdAddAttributes::SharedDtor() { + if (this != internal_default_instance()) delete transaction_; + if (this != internal_default_instance()) delete ont_id_add_attributes_; +} + +void OntologySignOntIdAddAttributes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignOntIdAddAttributes::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignOntIdAddAttributes& OntologySignOntIdAddAttributes::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignOntIdAddAttributes.base); + return *internal_default_instance(); +} + + +void OntologySignOntIdAddAttributes::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignOntIdAddAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(transaction_ != NULL); + transaction_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(ont_id_add_attributes_ != NULL); + ont_id_add_attributes_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignOntIdAddAttributes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignOntIdAddAttributes) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional .OntologyTransaction transaction = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transaction())); + } else { + goto handle_unusual; + } + break; + } + + // optional .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes ont_id_add_attributes = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_ont_id_add_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignOntIdAddAttributes) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignOntIdAddAttributes) + return false; +#undef DO_ +} + +void OntologySignOntIdAddAttributes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignOntIdAddAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional .OntologyTransaction transaction = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_transaction(), output); + } + + // optional .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes ont_id_add_attributes = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_ont_id_add_attributes(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignOntIdAddAttributes) +} + +::google::protobuf::uint8* OntologySignOntIdAddAttributes::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignOntIdAddAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional .OntologyTransaction transaction = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_transaction(), deterministic, target); + } + + // optional .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes ont_id_add_attributes = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_ont_id_add_attributes(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignOntIdAddAttributes) + return target; +} + +size_t OntologySignOntIdAddAttributes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignOntIdAddAttributes) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 3u) { + // optional .OntologyTransaction transaction = 2; + if (has_transaction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transaction_); + } + + // optional .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes ont_id_add_attributes = 3; + if (has_ont_id_add_attributes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ont_id_add_attributes_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignOntIdAddAttributes::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignOntIdAddAttributes) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignOntIdAddAttributes* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignOntIdAddAttributes) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignOntIdAddAttributes) + MergeFrom(*source); + } +} + +void OntologySignOntIdAddAttributes::MergeFrom(const OntologySignOntIdAddAttributes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignOntIdAddAttributes) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + mutable_transaction()->::OntologyTransaction::MergeFrom(from.transaction()); + } + if (cached_has_bits & 0x00000002u) { + mutable_ont_id_add_attributes()->::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::MergeFrom(from.ont_id_add_attributes()); + } + } +} + +void OntologySignOntIdAddAttributes::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignOntIdAddAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignOntIdAddAttributes::CopyFrom(const OntologySignOntIdAddAttributes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignOntIdAddAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignOntIdAddAttributes::IsInitialized() const { + return true; +} + +void OntologySignOntIdAddAttributes::Swap(OntologySignOntIdAddAttributes* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignOntIdAddAttributes::InternalSwap(OntologySignOntIdAddAttributes* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(transaction_, other->transaction_); + swap(ont_id_add_attributes_, other->ont_id_add_attributes_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignOntIdAddAttributes::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OntologySignedOntIdAddAttributes::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OntologySignedOntIdAddAttributes::kSignatureFieldNumber; +const int OntologySignedOntIdAddAttributes::kPayloadFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OntologySignedOntIdAddAttributes::OntologySignedOntIdAddAttributes() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dontology_2eproto::scc_info_OntologySignedOntIdAddAttributes.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:OntologySignedOntIdAddAttributes) +} +OntologySignedOntIdAddAttributes::OntologySignedOntIdAddAttributes(const OntologySignedOntIdAddAttributes& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_payload()) { + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + // @@protoc_insertion_point(copy_constructor:OntologySignedOntIdAddAttributes) +} + +void OntologySignedOntIdAddAttributes::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +OntologySignedOntIdAddAttributes::~OntologySignedOntIdAddAttributes() { + // @@protoc_insertion_point(destructor:OntologySignedOntIdAddAttributes) + SharedDtor(); +} + +void OntologySignedOntIdAddAttributes::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + payload_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OntologySignedOntIdAddAttributes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* OntologySignedOntIdAddAttributes::descriptor() { + ::protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OntologySignedOntIdAddAttributes& OntologySignedOntIdAddAttributes::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dontology_2eproto::scc_info_OntologySignedOntIdAddAttributes.base); + return *internal_default_instance(); +} + + +void OntologySignedOntIdAddAttributes::Clear() { +// @@protoc_insertion_point(message_clear_start:OntologySignedOntIdAddAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + payload_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool OntologySignedOntIdAddAttributes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:OntologySignedOntIdAddAttributes) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes signature = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes payload = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_payload())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:OntologySignedOntIdAddAttributes) + return true; +failure: + // @@protoc_insertion_point(parse_failure:OntologySignedOntIdAddAttributes) + return false; +#undef DO_ +} + +void OntologySignedOntIdAddAttributes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:OntologySignedOntIdAddAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->signature(), output); + } + + // optional bytes payload = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->payload(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:OntologySignedOntIdAddAttributes) +} + +::google::protobuf::uint8* OntologySignedOntIdAddAttributes::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:OntologySignedOntIdAddAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->signature(), target); + } + + // optional bytes payload = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->payload(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:OntologySignedOntIdAddAttributes) + return target; +} + +size_t OntologySignedOntIdAddAttributes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:OntologySignedOntIdAddAttributes) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional bytes payload = 2; + if (has_payload()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->payload()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OntologySignedOntIdAddAttributes::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:OntologySignedOntIdAddAttributes) + GOOGLE_DCHECK_NE(&from, this); + const OntologySignedOntIdAddAttributes* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:OntologySignedOntIdAddAttributes) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:OntologySignedOntIdAddAttributes) + MergeFrom(*source); + } +} + +void OntologySignedOntIdAddAttributes::MergeFrom(const OntologySignedOntIdAddAttributes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:OntologySignedOntIdAddAttributes) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000002u) { + set_has_payload(); + payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_); + } + } +} + +void OntologySignedOntIdAddAttributes::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:OntologySignedOntIdAddAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OntologySignedOntIdAddAttributes::CopyFrom(const OntologySignedOntIdAddAttributes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:OntologySignedOntIdAddAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OntologySignedOntIdAddAttributes::IsInitialized() const { + return true; +} + +void OntologySignedOntIdAddAttributes::Swap(OntologySignedOntIdAddAttributes* other) { + if (other == this) return; + InternalSwap(other); +} +void OntologySignedOntIdAddAttributes::InternalSwap(OntologySignedOntIdAddAttributes* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + payload_.Swap(&other->payload_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OntologySignedOntIdAddAttributes::GetMetadata() const { + protobuf_messages_2dontology_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dontology_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologyTransaction_OntologyTxAttribute* Arena::CreateMaybeMessage< ::OntologyTransaction_OntologyTxAttribute >(Arena* arena) { + return Arena::CreateInternal< ::OntologyTransaction_OntologyTxAttribute >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologyTransaction* Arena::CreateMaybeMessage< ::OntologyTransaction >(Arena* arena) { + return Arena::CreateInternal< ::OntologyTransaction >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologyGetPublicKey* Arena::CreateMaybeMessage< ::OntologyGetPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::OntologyGetPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologyPublicKey* Arena::CreateMaybeMessage< ::OntologyPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::OntologyPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologyGetAddress* Arena::CreateMaybeMessage< ::OntologyGetAddress >(Arena* arena) { + return Arena::CreateInternal< ::OntologyGetAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologyAddress* Arena::CreateMaybeMessage< ::OntologyAddress >(Arena* arena) { + return Arena::CreateInternal< ::OntologyAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignTransfer_OntologyTransfer* Arena::CreateMaybeMessage< ::OntologySignTransfer_OntologyTransfer >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignTransfer_OntologyTransfer >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignTransfer* Arena::CreateMaybeMessage< ::OntologySignTransfer >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignTransfer >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignedTransfer* Arena::CreateMaybeMessage< ::OntologySignedTransfer >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignedTransfer >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignWithdrawOng_OntologyWithdrawOng* Arena::CreateMaybeMessage< ::OntologySignWithdrawOng_OntologyWithdrawOng >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignWithdrawOng_OntologyWithdrawOng >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignWithdrawOng* Arena::CreateMaybeMessage< ::OntologySignWithdrawOng >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignWithdrawOng >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignedWithdrawOng* Arena::CreateMaybeMessage< ::OntologySignedWithdrawOng >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignedWithdrawOng >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignOntIdRegister_OntologyOntIdRegister* Arena::CreateMaybeMessage< ::OntologySignOntIdRegister_OntologyOntIdRegister >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignOntIdRegister_OntologyOntIdRegister >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignOntIdRegister* Arena::CreateMaybeMessage< ::OntologySignOntIdRegister >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignOntIdRegister >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignedOntIdRegister* Arena::CreateMaybeMessage< ::OntologySignedOntIdRegister >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignedOntIdRegister >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* Arena::CreateMaybeMessage< ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* Arena::CreateMaybeMessage< ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignOntIdAddAttributes* Arena::CreateMaybeMessage< ::OntologySignOntIdAddAttributes >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignOntIdAddAttributes >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::OntologySignedOntIdAddAttributes* Arena::CreateMaybeMessage< ::OntologySignedOntIdAddAttributes >(Arena* arena) { + return Arena::CreateInternal< ::OntologySignedOntIdAddAttributes >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-ontology.pb.h b/src/Core/hardware/trezor/protob/messages-ontology.pb.h new file mode 100644 index 00000000..621eb654 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-ontology.pb.h @@ -0,0 +1,5538 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-ontology.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dontology_2eproto +#define PROTOBUF_INCLUDED_messages_2dontology_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dontology_2eproto + +namespace protobuf_messages_2dontology_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[19]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dontology_2eproto +class OntologyAddress; +class OntologyAddressDefaultTypeInternal; +extern OntologyAddressDefaultTypeInternal _OntologyAddress_default_instance_; +class OntologyGetAddress; +class OntologyGetAddressDefaultTypeInternal; +extern OntologyGetAddressDefaultTypeInternal _OntologyGetAddress_default_instance_; +class OntologyGetPublicKey; +class OntologyGetPublicKeyDefaultTypeInternal; +extern OntologyGetPublicKeyDefaultTypeInternal _OntologyGetPublicKey_default_instance_; +class OntologyPublicKey; +class OntologyPublicKeyDefaultTypeInternal; +extern OntologyPublicKeyDefaultTypeInternal _OntologyPublicKey_default_instance_; +class OntologySignOntIdAddAttributes; +class OntologySignOntIdAddAttributesDefaultTypeInternal; +extern OntologySignOntIdAddAttributesDefaultTypeInternal _OntologySignOntIdAddAttributes_default_instance_; +class OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes; +class OntologySignOntIdAddAttributes_OntologyOntIdAddAttributesDefaultTypeInternal; +extern OntologySignOntIdAddAttributes_OntologyOntIdAddAttributesDefaultTypeInternal _OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_default_instance_; +class OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute; +class OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttributeDefaultTypeInternal; +extern OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttributeDefaultTypeInternal _OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute_default_instance_; +class OntologySignOntIdRegister; +class OntologySignOntIdRegisterDefaultTypeInternal; +extern OntologySignOntIdRegisterDefaultTypeInternal _OntologySignOntIdRegister_default_instance_; +class OntologySignOntIdRegister_OntologyOntIdRegister; +class OntologySignOntIdRegister_OntologyOntIdRegisterDefaultTypeInternal; +extern OntologySignOntIdRegister_OntologyOntIdRegisterDefaultTypeInternal _OntologySignOntIdRegister_OntologyOntIdRegister_default_instance_; +class OntologySignTransfer; +class OntologySignTransferDefaultTypeInternal; +extern OntologySignTransferDefaultTypeInternal _OntologySignTransfer_default_instance_; +class OntologySignTransfer_OntologyTransfer; +class OntologySignTransfer_OntologyTransferDefaultTypeInternal; +extern OntologySignTransfer_OntologyTransferDefaultTypeInternal _OntologySignTransfer_OntologyTransfer_default_instance_; +class OntologySignWithdrawOng; +class OntologySignWithdrawOngDefaultTypeInternal; +extern OntologySignWithdrawOngDefaultTypeInternal _OntologySignWithdrawOng_default_instance_; +class OntologySignWithdrawOng_OntologyWithdrawOng; +class OntologySignWithdrawOng_OntologyWithdrawOngDefaultTypeInternal; +extern OntologySignWithdrawOng_OntologyWithdrawOngDefaultTypeInternal _OntologySignWithdrawOng_OntologyWithdrawOng_default_instance_; +class OntologySignedOntIdAddAttributes; +class OntologySignedOntIdAddAttributesDefaultTypeInternal; +extern OntologySignedOntIdAddAttributesDefaultTypeInternal _OntologySignedOntIdAddAttributes_default_instance_; +class OntologySignedOntIdRegister; +class OntologySignedOntIdRegisterDefaultTypeInternal; +extern OntologySignedOntIdRegisterDefaultTypeInternal _OntologySignedOntIdRegister_default_instance_; +class OntologySignedTransfer; +class OntologySignedTransferDefaultTypeInternal; +extern OntologySignedTransferDefaultTypeInternal _OntologySignedTransfer_default_instance_; +class OntologySignedWithdrawOng; +class OntologySignedWithdrawOngDefaultTypeInternal; +extern OntologySignedWithdrawOngDefaultTypeInternal _OntologySignedWithdrawOng_default_instance_; +class OntologyTransaction; +class OntologyTransactionDefaultTypeInternal; +extern OntologyTransactionDefaultTypeInternal _OntologyTransaction_default_instance_; +class OntologyTransaction_OntologyTxAttribute; +class OntologyTransaction_OntologyTxAttributeDefaultTypeInternal; +extern OntologyTransaction_OntologyTxAttributeDefaultTypeInternal _OntologyTransaction_OntologyTxAttribute_default_instance_; +namespace google { +namespace protobuf { +template<> ::OntologyAddress* Arena::CreateMaybeMessage<::OntologyAddress>(Arena*); +template<> ::OntologyGetAddress* Arena::CreateMaybeMessage<::OntologyGetAddress>(Arena*); +template<> ::OntologyGetPublicKey* Arena::CreateMaybeMessage<::OntologyGetPublicKey>(Arena*); +template<> ::OntologyPublicKey* Arena::CreateMaybeMessage<::OntologyPublicKey>(Arena*); +template<> ::OntologySignOntIdAddAttributes* Arena::CreateMaybeMessage<::OntologySignOntIdAddAttributes>(Arena*); +template<> ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* Arena::CreateMaybeMessage<::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes>(Arena*); +template<> ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* Arena::CreateMaybeMessage<::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute>(Arena*); +template<> ::OntologySignOntIdRegister* Arena::CreateMaybeMessage<::OntologySignOntIdRegister>(Arena*); +template<> ::OntologySignOntIdRegister_OntologyOntIdRegister* Arena::CreateMaybeMessage<::OntologySignOntIdRegister_OntologyOntIdRegister>(Arena*); +template<> ::OntologySignTransfer* Arena::CreateMaybeMessage<::OntologySignTransfer>(Arena*); +template<> ::OntologySignTransfer_OntologyTransfer* Arena::CreateMaybeMessage<::OntologySignTransfer_OntologyTransfer>(Arena*); +template<> ::OntologySignWithdrawOng* Arena::CreateMaybeMessage<::OntologySignWithdrawOng>(Arena*); +template<> ::OntologySignWithdrawOng_OntologyWithdrawOng* Arena::CreateMaybeMessage<::OntologySignWithdrawOng_OntologyWithdrawOng>(Arena*); +template<> ::OntologySignedOntIdAddAttributes* Arena::CreateMaybeMessage<::OntologySignedOntIdAddAttributes>(Arena*); +template<> ::OntologySignedOntIdRegister* Arena::CreateMaybeMessage<::OntologySignedOntIdRegister>(Arena*); +template<> ::OntologySignedTransfer* Arena::CreateMaybeMessage<::OntologySignedTransfer>(Arena*); +template<> ::OntologySignedWithdrawOng* Arena::CreateMaybeMessage<::OntologySignedWithdrawOng>(Arena*); +template<> ::OntologyTransaction* Arena::CreateMaybeMessage<::OntologyTransaction>(Arena*); +template<> ::OntologyTransaction_OntologyTxAttribute* Arena::CreateMaybeMessage<::OntologyTransaction_OntologyTxAttribute>(Arena*); +} // namespace protobuf +} // namespace google + +enum OntologySignTransfer_OntologyTransfer_OntologyAsset { + OntologySignTransfer_OntologyTransfer_OntologyAsset_ONT = 1, + OntologySignTransfer_OntologyTransfer_OntologyAsset_ONG = 2 +}; +bool OntologySignTransfer_OntologyTransfer_OntologyAsset_IsValid(int value); +const OntologySignTransfer_OntologyTransfer_OntologyAsset OntologySignTransfer_OntologyTransfer_OntologyAsset_OntologyAsset_MIN = OntologySignTransfer_OntologyTransfer_OntologyAsset_ONT; +const OntologySignTransfer_OntologyTransfer_OntologyAsset OntologySignTransfer_OntologyTransfer_OntologyAsset_OntologyAsset_MAX = OntologySignTransfer_OntologyTransfer_OntologyAsset_ONG; +const int OntologySignTransfer_OntologyTransfer_OntologyAsset_OntologyAsset_ARRAYSIZE = OntologySignTransfer_OntologyTransfer_OntologyAsset_OntologyAsset_MAX + 1; + +const ::google::protobuf::EnumDescriptor* OntologySignTransfer_OntologyTransfer_OntologyAsset_descriptor(); +inline const ::std::string& OntologySignTransfer_OntologyTransfer_OntologyAsset_Name(OntologySignTransfer_OntologyTransfer_OntologyAsset value) { + return ::google::protobuf::internal::NameOfEnum( + OntologySignTransfer_OntologyTransfer_OntologyAsset_descriptor(), value); +} +inline bool OntologySignTransfer_OntologyTransfer_OntologyAsset_Parse( + const ::std::string& name, OntologySignTransfer_OntologyTransfer_OntologyAsset* value) { + return ::google::protobuf::internal::ParseNamedEnum( + OntologySignTransfer_OntologyTransfer_OntologyAsset_descriptor(), name, value); +} +// =================================================================== + +class OntologyTransaction_OntologyTxAttribute : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologyTransaction.OntologyTxAttribute) */ { + public: + OntologyTransaction_OntologyTxAttribute(); + virtual ~OntologyTransaction_OntologyTxAttribute(); + + OntologyTransaction_OntologyTxAttribute(const OntologyTransaction_OntologyTxAttribute& from); + + inline OntologyTransaction_OntologyTxAttribute& operator=(const OntologyTransaction_OntologyTxAttribute& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologyTransaction_OntologyTxAttribute(OntologyTransaction_OntologyTxAttribute&& from) noexcept + : OntologyTransaction_OntologyTxAttribute() { + *this = ::std::move(from); + } + + inline OntologyTransaction_OntologyTxAttribute& operator=(OntologyTransaction_OntologyTxAttribute&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologyTransaction_OntologyTxAttribute& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologyTransaction_OntologyTxAttribute* internal_default_instance() { + return reinterpret_cast( + &_OntologyTransaction_OntologyTxAttribute_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(OntologyTransaction_OntologyTxAttribute* other); + friend void swap(OntologyTransaction_OntologyTxAttribute& a, OntologyTransaction_OntologyTxAttribute& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologyTransaction_OntologyTxAttribute* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologyTransaction_OntologyTxAttribute* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologyTransaction_OntologyTxAttribute& from); + void MergeFrom(const OntologyTransaction_OntologyTxAttribute& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologyTransaction_OntologyTxAttribute* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes data = 2; + bool has_data() const; + void clear_data(); + static const int kDataFieldNumber = 2; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const void* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // optional uint32 usage = 1; + bool has_usage() const; + void clear_usage(); + static const int kUsageFieldNumber = 1; + ::google::protobuf::uint32 usage() const; + void set_usage(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:OntologyTransaction.OntologyTxAttribute) + private: + void set_has_usage(); + void clear_has_usage(); + void set_has_data(); + void clear_has_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr data_; + ::google::protobuf::uint32 usage_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologyTransaction : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologyTransaction) */ { + public: + OntologyTransaction(); + virtual ~OntologyTransaction(); + + OntologyTransaction(const OntologyTransaction& from); + + inline OntologyTransaction& operator=(const OntologyTransaction& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologyTransaction(OntologyTransaction&& from) noexcept + : OntologyTransaction() { + *this = ::std::move(from); + } + + inline OntologyTransaction& operator=(OntologyTransaction&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologyTransaction& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologyTransaction* internal_default_instance() { + return reinterpret_cast( + &_OntologyTransaction_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(OntologyTransaction* other); + friend void swap(OntologyTransaction& a, OntologyTransaction& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologyTransaction* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologyTransaction* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologyTransaction& from); + void MergeFrom(const OntologyTransaction& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologyTransaction* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef OntologyTransaction_OntologyTxAttribute OntologyTxAttribute; + + // accessors ------------------------------------------------------- + + // repeated .OntologyTransaction.OntologyTxAttribute tx_attributes = 7; + int tx_attributes_size() const; + void clear_tx_attributes(); + static const int kTxAttributesFieldNumber = 7; + ::OntologyTransaction_OntologyTxAttribute* mutable_tx_attributes(int index); + ::google::protobuf::RepeatedPtrField< ::OntologyTransaction_OntologyTxAttribute >* + mutable_tx_attributes(); + const ::OntologyTransaction_OntologyTxAttribute& tx_attributes(int index) const; + ::OntologyTransaction_OntologyTxAttribute* add_tx_attributes(); + const ::google::protobuf::RepeatedPtrField< ::OntologyTransaction_OntologyTxAttribute >& + tx_attributes() const; + + // optional string payer = 6; + bool has_payer() const; + void clear_payer(); + static const int kPayerFieldNumber = 6; + const ::std::string& payer() const; + void set_payer(const ::std::string& value); + #if LANG_CXX11 + void set_payer(::std::string&& value); + #endif + void set_payer(const char* value); + void set_payer(const char* value, size_t size); + ::std::string* mutable_payer(); + ::std::string* release_payer(); + void set_allocated_payer(::std::string* payer); + + // optional uint32 version = 1; + bool has_version() const; + void clear_version(); + static const int kVersionFieldNumber = 1; + ::google::protobuf::uint32 version() const; + void set_version(::google::protobuf::uint32 value); + + // optional uint32 type = 2; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 2; + ::google::protobuf::uint32 type() const; + void set_type(::google::protobuf::uint32 value); + + // optional uint64 gas_price = 4; + bool has_gas_price() const; + void clear_gas_price(); + static const int kGasPriceFieldNumber = 4; + ::google::protobuf::uint64 gas_price() const; + void set_gas_price(::google::protobuf::uint64 value); + + // optional uint64 gas_limit = 5; + bool has_gas_limit() const; + void clear_gas_limit(); + static const int kGasLimitFieldNumber = 5; + ::google::protobuf::uint64 gas_limit() const; + void set_gas_limit(::google::protobuf::uint64 value); + + // optional uint32 nonce = 3; + bool has_nonce() const; + void clear_nonce(); + static const int kNonceFieldNumber = 3; + ::google::protobuf::uint32 nonce() const; + void set_nonce(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:OntologyTransaction) + private: + void set_has_version(); + void clear_has_version(); + void set_has_type(); + void clear_has_type(); + void set_has_nonce(); + void clear_has_nonce(); + void set_has_gas_price(); + void clear_has_gas_price(); + void set_has_gas_limit(); + void clear_has_gas_limit(); + void set_has_payer(); + void clear_has_payer(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::OntologyTransaction_OntologyTxAttribute > tx_attributes_; + ::google::protobuf::internal::ArenaStringPtr payer_; + ::google::protobuf::uint32 version_; + ::google::protobuf::uint32 type_; + ::google::protobuf::uint64 gas_price_; + ::google::protobuf::uint64 gas_limit_; + ::google::protobuf::uint32 nonce_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologyGetPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologyGetPublicKey) */ { + public: + OntologyGetPublicKey(); + virtual ~OntologyGetPublicKey(); + + OntologyGetPublicKey(const OntologyGetPublicKey& from); + + inline OntologyGetPublicKey& operator=(const OntologyGetPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologyGetPublicKey(OntologyGetPublicKey&& from) noexcept + : OntologyGetPublicKey() { + *this = ::std::move(from); + } + + inline OntologyGetPublicKey& operator=(OntologyGetPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologyGetPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologyGetPublicKey* internal_default_instance() { + return reinterpret_cast( + &_OntologyGetPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(OntologyGetPublicKey* other); + friend void swap(OntologyGetPublicKey& a, OntologyGetPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologyGetPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologyGetPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologyGetPublicKey& from); + void MergeFrom(const OntologyGetPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologyGetPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:OntologyGetPublicKey) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologyPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologyPublicKey) */ { + public: + OntologyPublicKey(); + virtual ~OntologyPublicKey(); + + OntologyPublicKey(const OntologyPublicKey& from); + + inline OntologyPublicKey& operator=(const OntologyPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologyPublicKey(OntologyPublicKey&& from) noexcept + : OntologyPublicKey() { + *this = ::std::move(from); + } + + inline OntologyPublicKey& operator=(OntologyPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologyPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologyPublicKey* internal_default_instance() { + return reinterpret_cast( + &_OntologyPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(OntologyPublicKey* other); + friend void swap(OntologyPublicKey& a, OntologyPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologyPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologyPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologyPublicKey& from); + void MergeFrom(const OntologyPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologyPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes public_key = 1; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // @@protoc_insertion_point(class_scope:OntologyPublicKey) + private: + void set_has_public_key(); + void clear_has_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologyGetAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologyGetAddress) */ { + public: + OntologyGetAddress(); + virtual ~OntologyGetAddress(); + + OntologyGetAddress(const OntologyGetAddress& from); + + inline OntologyGetAddress& operator=(const OntologyGetAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologyGetAddress(OntologyGetAddress&& from) noexcept + : OntologyGetAddress() { + *this = ::std::move(from); + } + + inline OntologyGetAddress& operator=(OntologyGetAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologyGetAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologyGetAddress* internal_default_instance() { + return reinterpret_cast( + &_OntologyGetAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(OntologyGetAddress* other); + friend void swap(OntologyGetAddress& a, OntologyGetAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologyGetAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologyGetAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologyGetAddress& from); + void MergeFrom(const OntologyGetAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologyGetAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:OntologyGetAddress) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologyAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologyAddress) */ { + public: + OntologyAddress(); + virtual ~OntologyAddress(); + + OntologyAddress(const OntologyAddress& from); + + inline OntologyAddress& operator=(const OntologyAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologyAddress(OntologyAddress&& from) noexcept + : OntologyAddress() { + *this = ::std::move(from); + } + + inline OntologyAddress& operator=(OntologyAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologyAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologyAddress* internal_default_instance() { + return reinterpret_cast( + &_OntologyAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(OntologyAddress* other); + friend void swap(OntologyAddress& a, OntologyAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologyAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologyAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologyAddress& from); + void MergeFrom(const OntologyAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologyAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:OntologyAddress) + private: + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignTransfer_OntologyTransfer : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignTransfer.OntologyTransfer) */ { + public: + OntologySignTransfer_OntologyTransfer(); + virtual ~OntologySignTransfer_OntologyTransfer(); + + OntologySignTransfer_OntologyTransfer(const OntologySignTransfer_OntologyTransfer& from); + + inline OntologySignTransfer_OntologyTransfer& operator=(const OntologySignTransfer_OntologyTransfer& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignTransfer_OntologyTransfer(OntologySignTransfer_OntologyTransfer&& from) noexcept + : OntologySignTransfer_OntologyTransfer() { + *this = ::std::move(from); + } + + inline OntologySignTransfer_OntologyTransfer& operator=(OntologySignTransfer_OntologyTransfer&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignTransfer_OntologyTransfer& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignTransfer_OntologyTransfer* internal_default_instance() { + return reinterpret_cast( + &_OntologySignTransfer_OntologyTransfer_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(OntologySignTransfer_OntologyTransfer* other); + friend void swap(OntologySignTransfer_OntologyTransfer& a, OntologySignTransfer_OntologyTransfer& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignTransfer_OntologyTransfer* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignTransfer_OntologyTransfer* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignTransfer_OntologyTransfer& from); + void MergeFrom(const OntologySignTransfer_OntologyTransfer& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignTransfer_OntologyTransfer* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef OntologySignTransfer_OntologyTransfer_OntologyAsset OntologyAsset; + static const OntologyAsset ONT = + OntologySignTransfer_OntologyTransfer_OntologyAsset_ONT; + static const OntologyAsset ONG = + OntologySignTransfer_OntologyTransfer_OntologyAsset_ONG; + static inline bool OntologyAsset_IsValid(int value) { + return OntologySignTransfer_OntologyTransfer_OntologyAsset_IsValid(value); + } + static const OntologyAsset OntologyAsset_MIN = + OntologySignTransfer_OntologyTransfer_OntologyAsset_OntologyAsset_MIN; + static const OntologyAsset OntologyAsset_MAX = + OntologySignTransfer_OntologyTransfer_OntologyAsset_OntologyAsset_MAX; + static const int OntologyAsset_ARRAYSIZE = + OntologySignTransfer_OntologyTransfer_OntologyAsset_OntologyAsset_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + OntologyAsset_descriptor() { + return OntologySignTransfer_OntologyTransfer_OntologyAsset_descriptor(); + } + static inline const ::std::string& OntologyAsset_Name(OntologyAsset value) { + return OntologySignTransfer_OntologyTransfer_OntologyAsset_Name(value); + } + static inline bool OntologyAsset_Parse(const ::std::string& name, + OntologyAsset* value) { + return OntologySignTransfer_OntologyTransfer_OntologyAsset_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional string from_address = 3; + bool has_from_address() const; + void clear_from_address(); + static const int kFromAddressFieldNumber = 3; + const ::std::string& from_address() const; + void set_from_address(const ::std::string& value); + #if LANG_CXX11 + void set_from_address(::std::string&& value); + #endif + void set_from_address(const char* value); + void set_from_address(const char* value, size_t size); + ::std::string* mutable_from_address(); + ::std::string* release_from_address(); + void set_allocated_from_address(::std::string* from_address); + + // optional string to_address = 4; + bool has_to_address() const; + void clear_to_address(); + static const int kToAddressFieldNumber = 4; + const ::std::string& to_address() const; + void set_to_address(const ::std::string& value); + #if LANG_CXX11 + void set_to_address(::std::string&& value); + #endif + void set_to_address(const char* value); + void set_to_address(const char* value, size_t size); + ::std::string* mutable_to_address(); + ::std::string* release_to_address(); + void set_allocated_to_address(::std::string* to_address); + + // optional uint64 amount = 2; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 2; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // optional .OntologySignTransfer.OntologyTransfer.OntologyAsset asset = 1; + bool has_asset() const; + void clear_asset(); + static const int kAssetFieldNumber = 1; + ::OntologySignTransfer_OntologyTransfer_OntologyAsset asset() const; + void set_asset(::OntologySignTransfer_OntologyTransfer_OntologyAsset value); + + // @@protoc_insertion_point(class_scope:OntologySignTransfer.OntologyTransfer) + private: + void set_has_asset(); + void clear_has_asset(); + void set_has_amount(); + void clear_has_amount(); + void set_has_from_address(); + void clear_has_from_address(); + void set_has_to_address(); + void clear_has_to_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr from_address_; + ::google::protobuf::internal::ArenaStringPtr to_address_; + ::google::protobuf::uint64 amount_; + int asset_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignTransfer : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignTransfer) */ { + public: + OntologySignTransfer(); + virtual ~OntologySignTransfer(); + + OntologySignTransfer(const OntologySignTransfer& from); + + inline OntologySignTransfer& operator=(const OntologySignTransfer& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignTransfer(OntologySignTransfer&& from) noexcept + : OntologySignTransfer() { + *this = ::std::move(from); + } + + inline OntologySignTransfer& operator=(OntologySignTransfer&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignTransfer& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignTransfer* internal_default_instance() { + return reinterpret_cast( + &_OntologySignTransfer_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(OntologySignTransfer* other); + friend void swap(OntologySignTransfer& a, OntologySignTransfer& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignTransfer* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignTransfer* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignTransfer& from); + void MergeFrom(const OntologySignTransfer& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignTransfer* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef OntologySignTransfer_OntologyTransfer OntologyTransfer; + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional .OntologyTransaction transaction = 2; + bool has_transaction() const; + void clear_transaction(); + static const int kTransactionFieldNumber = 2; + private: + const ::OntologyTransaction& _internal_transaction() const; + public: + const ::OntologyTransaction& transaction() const; + ::OntologyTransaction* release_transaction(); + ::OntologyTransaction* mutable_transaction(); + void set_allocated_transaction(::OntologyTransaction* transaction); + + // optional .OntologySignTransfer.OntologyTransfer transfer = 3; + bool has_transfer() const; + void clear_transfer(); + static const int kTransferFieldNumber = 3; + private: + const ::OntologySignTransfer_OntologyTransfer& _internal_transfer() const; + public: + const ::OntologySignTransfer_OntologyTransfer& transfer() const; + ::OntologySignTransfer_OntologyTransfer* release_transfer(); + ::OntologySignTransfer_OntologyTransfer* mutable_transfer(); + void set_allocated_transfer(::OntologySignTransfer_OntologyTransfer* transfer); + + // @@protoc_insertion_point(class_scope:OntologySignTransfer) + private: + void set_has_transaction(); + void clear_has_transaction(); + void set_has_transfer(); + void clear_has_transfer(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::OntologyTransaction* transaction_; + ::OntologySignTransfer_OntologyTransfer* transfer_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignedTransfer : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignedTransfer) */ { + public: + OntologySignedTransfer(); + virtual ~OntologySignedTransfer(); + + OntologySignedTransfer(const OntologySignedTransfer& from); + + inline OntologySignedTransfer& operator=(const OntologySignedTransfer& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignedTransfer(OntologySignedTransfer&& from) noexcept + : OntologySignedTransfer() { + *this = ::std::move(from); + } + + inline OntologySignedTransfer& operator=(OntologySignedTransfer&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignedTransfer& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignedTransfer* internal_default_instance() { + return reinterpret_cast( + &_OntologySignedTransfer_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(OntologySignedTransfer* other); + friend void swap(OntologySignedTransfer& a, OntologySignedTransfer& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignedTransfer* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignedTransfer* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignedTransfer& from); + void MergeFrom(const OntologySignedTransfer& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignedTransfer* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional bytes payload = 2; + bool has_payload() const; + void clear_payload(); + static const int kPayloadFieldNumber = 2; + const ::std::string& payload() const; + void set_payload(const ::std::string& value); + #if LANG_CXX11 + void set_payload(::std::string&& value); + #endif + void set_payload(const char* value); + void set_payload(const void* value, size_t size); + ::std::string* mutable_payload(); + ::std::string* release_payload(); + void set_allocated_payload(::std::string* payload); + + // @@protoc_insertion_point(class_scope:OntologySignedTransfer) + private: + void set_has_signature(); + void clear_has_signature(); + void set_has_payload(); + void clear_has_payload(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr payload_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignWithdrawOng_OntologyWithdrawOng : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignWithdrawOng.OntologyWithdrawOng) */ { + public: + OntologySignWithdrawOng_OntologyWithdrawOng(); + virtual ~OntologySignWithdrawOng_OntologyWithdrawOng(); + + OntologySignWithdrawOng_OntologyWithdrawOng(const OntologySignWithdrawOng_OntologyWithdrawOng& from); + + inline OntologySignWithdrawOng_OntologyWithdrawOng& operator=(const OntologySignWithdrawOng_OntologyWithdrawOng& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignWithdrawOng_OntologyWithdrawOng(OntologySignWithdrawOng_OntologyWithdrawOng&& from) noexcept + : OntologySignWithdrawOng_OntologyWithdrawOng() { + *this = ::std::move(from); + } + + inline OntologySignWithdrawOng_OntologyWithdrawOng& operator=(OntologySignWithdrawOng_OntologyWithdrawOng&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignWithdrawOng_OntologyWithdrawOng& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignWithdrawOng_OntologyWithdrawOng* internal_default_instance() { + return reinterpret_cast( + &_OntologySignWithdrawOng_OntologyWithdrawOng_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(OntologySignWithdrawOng_OntologyWithdrawOng* other); + friend void swap(OntologySignWithdrawOng_OntologyWithdrawOng& a, OntologySignWithdrawOng_OntologyWithdrawOng& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignWithdrawOng_OntologyWithdrawOng* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignWithdrawOng_OntologyWithdrawOng* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignWithdrawOng_OntologyWithdrawOng& from); + void MergeFrom(const OntologySignWithdrawOng_OntologyWithdrawOng& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignWithdrawOng_OntologyWithdrawOng* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string from_address = 2; + bool has_from_address() const; + void clear_from_address(); + static const int kFromAddressFieldNumber = 2; + const ::std::string& from_address() const; + void set_from_address(const ::std::string& value); + #if LANG_CXX11 + void set_from_address(::std::string&& value); + #endif + void set_from_address(const char* value); + void set_from_address(const char* value, size_t size); + ::std::string* mutable_from_address(); + ::std::string* release_from_address(); + void set_allocated_from_address(::std::string* from_address); + + // optional string to_address = 3; + bool has_to_address() const; + void clear_to_address(); + static const int kToAddressFieldNumber = 3; + const ::std::string& to_address() const; + void set_to_address(const ::std::string& value); + #if LANG_CXX11 + void set_to_address(::std::string&& value); + #endif + void set_to_address(const char* value); + void set_to_address(const char* value, size_t size); + ::std::string* mutable_to_address(); + ::std::string* release_to_address(); + void set_allocated_to_address(::std::string* to_address); + + // optional uint64 amount = 1; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 1; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:OntologySignWithdrawOng.OntologyWithdrawOng) + private: + void set_has_amount(); + void clear_has_amount(); + void set_has_from_address(); + void clear_has_from_address(); + void set_has_to_address(); + void clear_has_to_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr from_address_; + ::google::protobuf::internal::ArenaStringPtr to_address_; + ::google::protobuf::uint64 amount_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignWithdrawOng : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignWithdrawOng) */ { + public: + OntologySignWithdrawOng(); + virtual ~OntologySignWithdrawOng(); + + OntologySignWithdrawOng(const OntologySignWithdrawOng& from); + + inline OntologySignWithdrawOng& operator=(const OntologySignWithdrawOng& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignWithdrawOng(OntologySignWithdrawOng&& from) noexcept + : OntologySignWithdrawOng() { + *this = ::std::move(from); + } + + inline OntologySignWithdrawOng& operator=(OntologySignWithdrawOng&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignWithdrawOng& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignWithdrawOng* internal_default_instance() { + return reinterpret_cast( + &_OntologySignWithdrawOng_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(OntologySignWithdrawOng* other); + friend void swap(OntologySignWithdrawOng& a, OntologySignWithdrawOng& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignWithdrawOng* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignWithdrawOng* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignWithdrawOng& from); + void MergeFrom(const OntologySignWithdrawOng& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignWithdrawOng* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef OntologySignWithdrawOng_OntologyWithdrawOng OntologyWithdrawOng; + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional .OntologyTransaction transaction = 2; + bool has_transaction() const; + void clear_transaction(); + static const int kTransactionFieldNumber = 2; + private: + const ::OntologyTransaction& _internal_transaction() const; + public: + const ::OntologyTransaction& transaction() const; + ::OntologyTransaction* release_transaction(); + ::OntologyTransaction* mutable_transaction(); + void set_allocated_transaction(::OntologyTransaction* transaction); + + // optional .OntologySignWithdrawOng.OntologyWithdrawOng withdraw_ong = 3; + bool has_withdraw_ong() const; + void clear_withdraw_ong(); + static const int kWithdrawOngFieldNumber = 3; + private: + const ::OntologySignWithdrawOng_OntologyWithdrawOng& _internal_withdraw_ong() const; + public: + const ::OntologySignWithdrawOng_OntologyWithdrawOng& withdraw_ong() const; + ::OntologySignWithdrawOng_OntologyWithdrawOng* release_withdraw_ong(); + ::OntologySignWithdrawOng_OntologyWithdrawOng* mutable_withdraw_ong(); + void set_allocated_withdraw_ong(::OntologySignWithdrawOng_OntologyWithdrawOng* withdraw_ong); + + // @@protoc_insertion_point(class_scope:OntologySignWithdrawOng) + private: + void set_has_transaction(); + void clear_has_transaction(); + void set_has_withdraw_ong(); + void clear_has_withdraw_ong(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::OntologyTransaction* transaction_; + ::OntologySignWithdrawOng_OntologyWithdrawOng* withdraw_ong_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignedWithdrawOng : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignedWithdrawOng) */ { + public: + OntologySignedWithdrawOng(); + virtual ~OntologySignedWithdrawOng(); + + OntologySignedWithdrawOng(const OntologySignedWithdrawOng& from); + + inline OntologySignedWithdrawOng& operator=(const OntologySignedWithdrawOng& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignedWithdrawOng(OntologySignedWithdrawOng&& from) noexcept + : OntologySignedWithdrawOng() { + *this = ::std::move(from); + } + + inline OntologySignedWithdrawOng& operator=(OntologySignedWithdrawOng&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignedWithdrawOng& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignedWithdrawOng* internal_default_instance() { + return reinterpret_cast( + &_OntologySignedWithdrawOng_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(OntologySignedWithdrawOng* other); + friend void swap(OntologySignedWithdrawOng& a, OntologySignedWithdrawOng& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignedWithdrawOng* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignedWithdrawOng* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignedWithdrawOng& from); + void MergeFrom(const OntologySignedWithdrawOng& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignedWithdrawOng* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional bytes payload = 2; + bool has_payload() const; + void clear_payload(); + static const int kPayloadFieldNumber = 2; + const ::std::string& payload() const; + void set_payload(const ::std::string& value); + #if LANG_CXX11 + void set_payload(::std::string&& value); + #endif + void set_payload(const char* value); + void set_payload(const void* value, size_t size); + ::std::string* mutable_payload(); + ::std::string* release_payload(); + void set_allocated_payload(::std::string* payload); + + // @@protoc_insertion_point(class_scope:OntologySignedWithdrawOng) + private: + void set_has_signature(); + void clear_has_signature(); + void set_has_payload(); + void clear_has_payload(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr payload_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignOntIdRegister_OntologyOntIdRegister : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignOntIdRegister.OntologyOntIdRegister) */ { + public: + OntologySignOntIdRegister_OntologyOntIdRegister(); + virtual ~OntologySignOntIdRegister_OntologyOntIdRegister(); + + OntologySignOntIdRegister_OntologyOntIdRegister(const OntologySignOntIdRegister_OntologyOntIdRegister& from); + + inline OntologySignOntIdRegister_OntologyOntIdRegister& operator=(const OntologySignOntIdRegister_OntologyOntIdRegister& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignOntIdRegister_OntologyOntIdRegister(OntologySignOntIdRegister_OntologyOntIdRegister&& from) noexcept + : OntologySignOntIdRegister_OntologyOntIdRegister() { + *this = ::std::move(from); + } + + inline OntologySignOntIdRegister_OntologyOntIdRegister& operator=(OntologySignOntIdRegister_OntologyOntIdRegister&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignOntIdRegister_OntologyOntIdRegister& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignOntIdRegister_OntologyOntIdRegister* internal_default_instance() { + return reinterpret_cast( + &_OntologySignOntIdRegister_OntologyOntIdRegister_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(OntologySignOntIdRegister_OntologyOntIdRegister* other); + friend void swap(OntologySignOntIdRegister_OntologyOntIdRegister& a, OntologySignOntIdRegister_OntologyOntIdRegister& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignOntIdRegister_OntologyOntIdRegister* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignOntIdRegister_OntologyOntIdRegister* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignOntIdRegister_OntologyOntIdRegister& from); + void MergeFrom(const OntologySignOntIdRegister_OntologyOntIdRegister& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignOntIdRegister_OntologyOntIdRegister* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string ont_id = 1; + bool has_ont_id() const; + void clear_ont_id(); + static const int kOntIdFieldNumber = 1; + const ::std::string& ont_id() const; + void set_ont_id(const ::std::string& value); + #if LANG_CXX11 + void set_ont_id(::std::string&& value); + #endif + void set_ont_id(const char* value); + void set_ont_id(const char* value, size_t size); + ::std::string* mutable_ont_id(); + ::std::string* release_ont_id(); + void set_allocated_ont_id(::std::string* ont_id); + + // optional bytes public_key = 2; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 2; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // @@protoc_insertion_point(class_scope:OntologySignOntIdRegister.OntologyOntIdRegister) + private: + void set_has_ont_id(); + void clear_has_ont_id(); + void set_has_public_key(); + void clear_has_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr ont_id_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignOntIdRegister : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignOntIdRegister) */ { + public: + OntologySignOntIdRegister(); + virtual ~OntologySignOntIdRegister(); + + OntologySignOntIdRegister(const OntologySignOntIdRegister& from); + + inline OntologySignOntIdRegister& operator=(const OntologySignOntIdRegister& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignOntIdRegister(OntologySignOntIdRegister&& from) noexcept + : OntologySignOntIdRegister() { + *this = ::std::move(from); + } + + inline OntologySignOntIdRegister& operator=(OntologySignOntIdRegister&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignOntIdRegister& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignOntIdRegister* internal_default_instance() { + return reinterpret_cast( + &_OntologySignOntIdRegister_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(OntologySignOntIdRegister* other); + friend void swap(OntologySignOntIdRegister& a, OntologySignOntIdRegister& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignOntIdRegister* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignOntIdRegister* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignOntIdRegister& from); + void MergeFrom(const OntologySignOntIdRegister& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignOntIdRegister* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef OntologySignOntIdRegister_OntologyOntIdRegister OntologyOntIdRegister; + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional .OntologyTransaction transaction = 2; + bool has_transaction() const; + void clear_transaction(); + static const int kTransactionFieldNumber = 2; + private: + const ::OntologyTransaction& _internal_transaction() const; + public: + const ::OntologyTransaction& transaction() const; + ::OntologyTransaction* release_transaction(); + ::OntologyTransaction* mutable_transaction(); + void set_allocated_transaction(::OntologyTransaction* transaction); + + // optional .OntologySignOntIdRegister.OntologyOntIdRegister ont_id_register = 3; + bool has_ont_id_register() const; + void clear_ont_id_register(); + static const int kOntIdRegisterFieldNumber = 3; + private: + const ::OntologySignOntIdRegister_OntologyOntIdRegister& _internal_ont_id_register() const; + public: + const ::OntologySignOntIdRegister_OntologyOntIdRegister& ont_id_register() const; + ::OntologySignOntIdRegister_OntologyOntIdRegister* release_ont_id_register(); + ::OntologySignOntIdRegister_OntologyOntIdRegister* mutable_ont_id_register(); + void set_allocated_ont_id_register(::OntologySignOntIdRegister_OntologyOntIdRegister* ont_id_register); + + // @@protoc_insertion_point(class_scope:OntologySignOntIdRegister) + private: + void set_has_transaction(); + void clear_has_transaction(); + void set_has_ont_id_register(); + void clear_has_ont_id_register(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::OntologyTransaction* transaction_; + ::OntologySignOntIdRegister_OntologyOntIdRegister* ont_id_register_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignedOntIdRegister : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignedOntIdRegister) */ { + public: + OntologySignedOntIdRegister(); + virtual ~OntologySignedOntIdRegister(); + + OntologySignedOntIdRegister(const OntologySignedOntIdRegister& from); + + inline OntologySignedOntIdRegister& operator=(const OntologySignedOntIdRegister& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignedOntIdRegister(OntologySignedOntIdRegister&& from) noexcept + : OntologySignedOntIdRegister() { + *this = ::std::move(from); + } + + inline OntologySignedOntIdRegister& operator=(OntologySignedOntIdRegister&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignedOntIdRegister& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignedOntIdRegister* internal_default_instance() { + return reinterpret_cast( + &_OntologySignedOntIdRegister_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(OntologySignedOntIdRegister* other); + friend void swap(OntologySignedOntIdRegister& a, OntologySignedOntIdRegister& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignedOntIdRegister* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignedOntIdRegister* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignedOntIdRegister& from); + void MergeFrom(const OntologySignedOntIdRegister& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignedOntIdRegister* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional bytes payload = 2; + bool has_payload() const; + void clear_payload(); + static const int kPayloadFieldNumber = 2; + const ::std::string& payload() const; + void set_payload(const ::std::string& value); + #if LANG_CXX11 + void set_payload(::std::string&& value); + #endif + void set_payload(const char* value); + void set_payload(const void* value, size_t size); + ::std::string* mutable_payload(); + ::std::string* release_payload(); + void set_allocated_payload(::std::string* payload); + + // @@protoc_insertion_point(class_scope:OntologySignedOntIdRegister) + private: + void set_has_signature(); + void clear_has_signature(); + void set_has_payload(); + void clear_has_payload(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr payload_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) */ { + public: + OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute(); + virtual ~OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute(); + + OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& from); + + inline OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& operator=(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute&& from) noexcept + : OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute() { + *this = ::std::move(from); + } + + inline OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& operator=(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* internal_default_instance() { + return reinterpret_cast( + &_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* other); + friend void swap(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& a, OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& from); + void MergeFrom(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string key = 1; + bool has_key() const; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // optional string type = 2; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 2; + const ::std::string& type() const; + void set_type(const ::std::string& value); + #if LANG_CXX11 + void set_type(::std::string&& value); + #endif + void set_type(const char* value); + void set_type(const char* value, size_t size); + ::std::string* mutable_type(); + ::std::string* release_type(); + void set_allocated_type(::std::string* type); + + // optional string value = 3; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 3; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute) + private: + void set_has_key(); + void clear_has_key(); + void set_has_type(); + void clear_has_type(); + void set_has_value(); + void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr type_; + ::google::protobuf::internal::ArenaStringPtr value_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) */ { + public: + OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes(); + virtual ~OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes(); + + OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& from); + + inline OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& operator=(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes&& from) noexcept + : OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes() { + *this = ::std::move(from); + } + + inline OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& operator=(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* internal_default_instance() { + return reinterpret_cast( + &_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* other); + friend void swap(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& a, OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& from); + void MergeFrom(const OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute OntologyOntIdAttribute; + + // accessors ------------------------------------------------------- + + // repeated .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute ont_id_attributes = 3; + int ont_id_attributes_size() const; + void clear_ont_id_attributes(); + static const int kOntIdAttributesFieldNumber = 3; + ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* mutable_ont_id_attributes(int index); + ::google::protobuf::RepeatedPtrField< ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute >* + mutable_ont_id_attributes(); + const ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& ont_id_attributes(int index) const; + ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* add_ont_id_attributes(); + const ::google::protobuf::RepeatedPtrField< ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute >& + ont_id_attributes() const; + + // optional string ont_id = 1; + bool has_ont_id() const; + void clear_ont_id(); + static const int kOntIdFieldNumber = 1; + const ::std::string& ont_id() const; + void set_ont_id(const ::std::string& value); + #if LANG_CXX11 + void set_ont_id(::std::string&& value); + #endif + void set_ont_id(const char* value); + void set_ont_id(const char* value, size_t size); + ::std::string* mutable_ont_id(); + ::std::string* release_ont_id(); + void set_allocated_ont_id(::std::string* ont_id); + + // optional bytes public_key = 2; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 2; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // @@protoc_insertion_point(class_scope:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes) + private: + void set_has_ont_id(); + void clear_has_ont_id(); + void set_has_public_key(); + void clear_has_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute > ont_id_attributes_; + ::google::protobuf::internal::ArenaStringPtr ont_id_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignOntIdAddAttributes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignOntIdAddAttributes) */ { + public: + OntologySignOntIdAddAttributes(); + virtual ~OntologySignOntIdAddAttributes(); + + OntologySignOntIdAddAttributes(const OntologySignOntIdAddAttributes& from); + + inline OntologySignOntIdAddAttributes& operator=(const OntologySignOntIdAddAttributes& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignOntIdAddAttributes(OntologySignOntIdAddAttributes&& from) noexcept + : OntologySignOntIdAddAttributes() { + *this = ::std::move(from); + } + + inline OntologySignOntIdAddAttributes& operator=(OntologySignOntIdAddAttributes&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignOntIdAddAttributes& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignOntIdAddAttributes* internal_default_instance() { + return reinterpret_cast( + &_OntologySignOntIdAddAttributes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(OntologySignOntIdAddAttributes* other); + friend void swap(OntologySignOntIdAddAttributes& a, OntologySignOntIdAddAttributes& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignOntIdAddAttributes* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignOntIdAddAttributes* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignOntIdAddAttributes& from); + void MergeFrom(const OntologySignOntIdAddAttributes& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignOntIdAddAttributes* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes OntologyOntIdAddAttributes; + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional .OntologyTransaction transaction = 2; + bool has_transaction() const; + void clear_transaction(); + static const int kTransactionFieldNumber = 2; + private: + const ::OntologyTransaction& _internal_transaction() const; + public: + const ::OntologyTransaction& transaction() const; + ::OntologyTransaction* release_transaction(); + ::OntologyTransaction* mutable_transaction(); + void set_allocated_transaction(::OntologyTransaction* transaction); + + // optional .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes ont_id_add_attributes = 3; + bool has_ont_id_add_attributes() const; + void clear_ont_id_add_attributes(); + static const int kOntIdAddAttributesFieldNumber = 3; + private: + const ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& _internal_ont_id_add_attributes() const; + public: + const ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& ont_id_add_attributes() const; + ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* release_ont_id_add_attributes(); + ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* mutable_ont_id_add_attributes(); + void set_allocated_ont_id_add_attributes(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* ont_id_add_attributes); + + // @@protoc_insertion_point(class_scope:OntologySignOntIdAddAttributes) + private: + void set_has_transaction(); + void clear_has_transaction(); + void set_has_ont_id_add_attributes(); + void clear_has_ont_id_add_attributes(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::OntologyTransaction* transaction_; + ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* ont_id_add_attributes_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class OntologySignedOntIdAddAttributes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:OntologySignedOntIdAddAttributes) */ { + public: + OntologySignedOntIdAddAttributes(); + virtual ~OntologySignedOntIdAddAttributes(); + + OntologySignedOntIdAddAttributes(const OntologySignedOntIdAddAttributes& from); + + inline OntologySignedOntIdAddAttributes& operator=(const OntologySignedOntIdAddAttributes& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OntologySignedOntIdAddAttributes(OntologySignedOntIdAddAttributes&& from) noexcept + : OntologySignedOntIdAddAttributes() { + *this = ::std::move(from); + } + + inline OntologySignedOntIdAddAttributes& operator=(OntologySignedOntIdAddAttributes&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OntologySignedOntIdAddAttributes& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OntologySignedOntIdAddAttributes* internal_default_instance() { + return reinterpret_cast( + &_OntologySignedOntIdAddAttributes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + void Swap(OntologySignedOntIdAddAttributes* other); + friend void swap(OntologySignedOntIdAddAttributes& a, OntologySignedOntIdAddAttributes& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OntologySignedOntIdAddAttributes* New() const final { + return CreateMaybeMessage(NULL); + } + + OntologySignedOntIdAddAttributes* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OntologySignedOntIdAddAttributes& from); + void MergeFrom(const OntologySignedOntIdAddAttributes& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OntologySignedOntIdAddAttributes* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional bytes payload = 2; + bool has_payload() const; + void clear_payload(); + static const int kPayloadFieldNumber = 2; + const ::std::string& payload() const; + void set_payload(const ::std::string& value); + #if LANG_CXX11 + void set_payload(::std::string&& value); + #endif + void set_payload(const char* value); + void set_payload(const void* value, size_t size); + ::std::string* mutable_payload(); + ::std::string* release_payload(); + void set_allocated_payload(::std::string* payload); + + // @@protoc_insertion_point(class_scope:OntologySignedOntIdAddAttributes) + private: + void set_has_signature(); + void clear_has_signature(); + void set_has_payload(); + void clear_has_payload(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr payload_; + friend struct ::protobuf_messages_2dontology_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// OntologyTransaction_OntologyTxAttribute + +// optional uint32 usage = 1; +inline bool OntologyTransaction_OntologyTxAttribute::has_usage() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologyTransaction_OntologyTxAttribute::set_has_usage() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologyTransaction_OntologyTxAttribute::clear_has_usage() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologyTransaction_OntologyTxAttribute::clear_usage() { + usage_ = 0u; + clear_has_usage(); +} +inline ::google::protobuf::uint32 OntologyTransaction_OntologyTxAttribute::usage() const { + // @@protoc_insertion_point(field_get:OntologyTransaction.OntologyTxAttribute.usage) + return usage_; +} +inline void OntologyTransaction_OntologyTxAttribute::set_usage(::google::protobuf::uint32 value) { + set_has_usage(); + usage_ = value; + // @@protoc_insertion_point(field_set:OntologyTransaction.OntologyTxAttribute.usage) +} + +// optional bytes data = 2; +inline bool OntologyTransaction_OntologyTxAttribute::has_data() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologyTransaction_OntologyTxAttribute::set_has_data() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologyTransaction_OntologyTxAttribute::clear_has_data() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologyTransaction_OntologyTxAttribute::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data(); +} +inline const ::std::string& OntologyTransaction_OntologyTxAttribute::data() const { + // @@protoc_insertion_point(field_get:OntologyTransaction.OntologyTxAttribute.data) + return data_.GetNoArena(); +} +inline void OntologyTransaction_OntologyTxAttribute::set_data(const ::std::string& value) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologyTransaction.OntologyTxAttribute.data) +} +#if LANG_CXX11 +inline void OntologyTransaction_OntologyTxAttribute::set_data(::std::string&& value) { + set_has_data(); + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologyTransaction.OntologyTxAttribute.data) +} +#endif +inline void OntologyTransaction_OntologyTxAttribute::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologyTransaction.OntologyTxAttribute.data) +} +inline void OntologyTransaction_OntologyTxAttribute::set_data(const void* value, size_t size) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologyTransaction.OntologyTxAttribute.data) +} +inline ::std::string* OntologyTransaction_OntologyTxAttribute::mutable_data() { + set_has_data(); + // @@protoc_insertion_point(field_mutable:OntologyTransaction.OntologyTxAttribute.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologyTransaction_OntologyTxAttribute::release_data() { + // @@protoc_insertion_point(field_release:OntologyTransaction.OntologyTxAttribute.data) + if (!has_data()) { + return NULL; + } + clear_has_data(); + return data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologyTransaction_OntologyTxAttribute::set_allocated_data(::std::string* data) { + if (data != NULL) { + set_has_data(); + } else { + clear_has_data(); + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:OntologyTransaction.OntologyTxAttribute.data) +} + +// ------------------------------------------------------------------- + +// OntologyTransaction + +// optional uint32 version = 1; +inline bool OntologyTransaction::has_version() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologyTransaction::set_has_version() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologyTransaction::clear_has_version() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologyTransaction::clear_version() { + version_ = 0u; + clear_has_version(); +} +inline ::google::protobuf::uint32 OntologyTransaction::version() const { + // @@protoc_insertion_point(field_get:OntologyTransaction.version) + return version_; +} +inline void OntologyTransaction::set_version(::google::protobuf::uint32 value) { + set_has_version(); + version_ = value; + // @@protoc_insertion_point(field_set:OntologyTransaction.version) +} + +// optional uint32 type = 2; +inline bool OntologyTransaction::has_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void OntologyTransaction::set_has_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void OntologyTransaction::clear_has_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void OntologyTransaction::clear_type() { + type_ = 0u; + clear_has_type(); +} +inline ::google::protobuf::uint32 OntologyTransaction::type() const { + // @@protoc_insertion_point(field_get:OntologyTransaction.type) + return type_; +} +inline void OntologyTransaction::set_type(::google::protobuf::uint32 value) { + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:OntologyTransaction.type) +} + +// optional uint32 nonce = 3; +inline bool OntologyTransaction::has_nonce() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void OntologyTransaction::set_has_nonce() { + _has_bits_[0] |= 0x00000020u; +} +inline void OntologyTransaction::clear_has_nonce() { + _has_bits_[0] &= ~0x00000020u; +} +inline void OntologyTransaction::clear_nonce() { + nonce_ = 0u; + clear_has_nonce(); +} +inline ::google::protobuf::uint32 OntologyTransaction::nonce() const { + // @@protoc_insertion_point(field_get:OntologyTransaction.nonce) + return nonce_; +} +inline void OntologyTransaction::set_nonce(::google::protobuf::uint32 value) { + set_has_nonce(); + nonce_ = value; + // @@protoc_insertion_point(field_set:OntologyTransaction.nonce) +} + +// optional uint64 gas_price = 4; +inline bool OntologyTransaction::has_gas_price() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void OntologyTransaction::set_has_gas_price() { + _has_bits_[0] |= 0x00000008u; +} +inline void OntologyTransaction::clear_has_gas_price() { + _has_bits_[0] &= ~0x00000008u; +} +inline void OntologyTransaction::clear_gas_price() { + gas_price_ = GOOGLE_ULONGLONG(0); + clear_has_gas_price(); +} +inline ::google::protobuf::uint64 OntologyTransaction::gas_price() const { + // @@protoc_insertion_point(field_get:OntologyTransaction.gas_price) + return gas_price_; +} +inline void OntologyTransaction::set_gas_price(::google::protobuf::uint64 value) { + set_has_gas_price(); + gas_price_ = value; + // @@protoc_insertion_point(field_set:OntologyTransaction.gas_price) +} + +// optional uint64 gas_limit = 5; +inline bool OntologyTransaction::has_gas_limit() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void OntologyTransaction::set_has_gas_limit() { + _has_bits_[0] |= 0x00000010u; +} +inline void OntologyTransaction::clear_has_gas_limit() { + _has_bits_[0] &= ~0x00000010u; +} +inline void OntologyTransaction::clear_gas_limit() { + gas_limit_ = GOOGLE_ULONGLONG(0); + clear_has_gas_limit(); +} +inline ::google::protobuf::uint64 OntologyTransaction::gas_limit() const { + // @@protoc_insertion_point(field_get:OntologyTransaction.gas_limit) + return gas_limit_; +} +inline void OntologyTransaction::set_gas_limit(::google::protobuf::uint64 value) { + set_has_gas_limit(); + gas_limit_ = value; + // @@protoc_insertion_point(field_set:OntologyTransaction.gas_limit) +} + +// optional string payer = 6; +inline bool OntologyTransaction::has_payer() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologyTransaction::set_has_payer() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologyTransaction::clear_has_payer() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologyTransaction::clear_payer() { + payer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_payer(); +} +inline const ::std::string& OntologyTransaction::payer() const { + // @@protoc_insertion_point(field_get:OntologyTransaction.payer) + return payer_.GetNoArena(); +} +inline void OntologyTransaction::set_payer(const ::std::string& value) { + set_has_payer(); + payer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologyTransaction.payer) +} +#if LANG_CXX11 +inline void OntologyTransaction::set_payer(::std::string&& value) { + set_has_payer(); + payer_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologyTransaction.payer) +} +#endif +inline void OntologyTransaction::set_payer(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_payer(); + payer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologyTransaction.payer) +} +inline void OntologyTransaction::set_payer(const char* value, size_t size) { + set_has_payer(); + payer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologyTransaction.payer) +} +inline ::std::string* OntologyTransaction::mutable_payer() { + set_has_payer(); + // @@protoc_insertion_point(field_mutable:OntologyTransaction.payer) + return payer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologyTransaction::release_payer() { + // @@protoc_insertion_point(field_release:OntologyTransaction.payer) + if (!has_payer()) { + return NULL; + } + clear_has_payer(); + return payer_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologyTransaction::set_allocated_payer(::std::string* payer) { + if (payer != NULL) { + set_has_payer(); + } else { + clear_has_payer(); + } + payer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payer); + // @@protoc_insertion_point(field_set_allocated:OntologyTransaction.payer) +} + +// repeated .OntologyTransaction.OntologyTxAttribute tx_attributes = 7; +inline int OntologyTransaction::tx_attributes_size() const { + return tx_attributes_.size(); +} +inline void OntologyTransaction::clear_tx_attributes() { + tx_attributes_.Clear(); +} +inline ::OntologyTransaction_OntologyTxAttribute* OntologyTransaction::mutable_tx_attributes(int index) { + // @@protoc_insertion_point(field_mutable:OntologyTransaction.tx_attributes) + return tx_attributes_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::OntologyTransaction_OntologyTxAttribute >* +OntologyTransaction::mutable_tx_attributes() { + // @@protoc_insertion_point(field_mutable_list:OntologyTransaction.tx_attributes) + return &tx_attributes_; +} +inline const ::OntologyTransaction_OntologyTxAttribute& OntologyTransaction::tx_attributes(int index) const { + // @@protoc_insertion_point(field_get:OntologyTransaction.tx_attributes) + return tx_attributes_.Get(index); +} +inline ::OntologyTransaction_OntologyTxAttribute* OntologyTransaction::add_tx_attributes() { + // @@protoc_insertion_point(field_add:OntologyTransaction.tx_attributes) + return tx_attributes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::OntologyTransaction_OntologyTxAttribute >& +OntologyTransaction::tx_attributes() const { + // @@protoc_insertion_point(field_list:OntologyTransaction.tx_attributes) + return tx_attributes_; +} + +// ------------------------------------------------------------------- + +// OntologyGetPublicKey + +// repeated uint32 address_n = 1; +inline int OntologyGetPublicKey::address_n_size() const { + return address_n_.size(); +} +inline void OntologyGetPublicKey::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 OntologyGetPublicKey::address_n(int index) const { + // @@protoc_insertion_point(field_get:OntologyGetPublicKey.address_n) + return address_n_.Get(index); +} +inline void OntologyGetPublicKey::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:OntologyGetPublicKey.address_n) +} +inline void OntologyGetPublicKey::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:OntologyGetPublicKey.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +OntologyGetPublicKey::address_n() const { + // @@protoc_insertion_point(field_list:OntologyGetPublicKey.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +OntologyGetPublicKey::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:OntologyGetPublicKey.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool OntologyGetPublicKey::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologyGetPublicKey::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologyGetPublicKey::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologyGetPublicKey::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool OntologyGetPublicKey::show_display() const { + // @@protoc_insertion_point(field_get:OntologyGetPublicKey.show_display) + return show_display_; +} +inline void OntologyGetPublicKey::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:OntologyGetPublicKey.show_display) +} + +// ------------------------------------------------------------------- + +// OntologyPublicKey + +// optional bytes public_key = 1; +inline bool OntologyPublicKey::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologyPublicKey::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologyPublicKey::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologyPublicKey::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& OntologyPublicKey::public_key() const { + // @@protoc_insertion_point(field_get:OntologyPublicKey.public_key) + return public_key_.GetNoArena(); +} +inline void OntologyPublicKey::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologyPublicKey.public_key) +} +#if LANG_CXX11 +inline void OntologyPublicKey::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologyPublicKey.public_key) +} +#endif +inline void OntologyPublicKey::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologyPublicKey.public_key) +} +inline void OntologyPublicKey::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologyPublicKey.public_key) +} +inline ::std::string* OntologyPublicKey::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:OntologyPublicKey.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologyPublicKey::release_public_key() { + // @@protoc_insertion_point(field_release:OntologyPublicKey.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologyPublicKey::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:OntologyPublicKey.public_key) +} + +// ------------------------------------------------------------------- + +// OntologyGetAddress + +// repeated uint32 address_n = 1; +inline int OntologyGetAddress::address_n_size() const { + return address_n_.size(); +} +inline void OntologyGetAddress::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 OntologyGetAddress::address_n(int index) const { + // @@protoc_insertion_point(field_get:OntologyGetAddress.address_n) + return address_n_.Get(index); +} +inline void OntologyGetAddress::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:OntologyGetAddress.address_n) +} +inline void OntologyGetAddress::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:OntologyGetAddress.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +OntologyGetAddress::address_n() const { + // @@protoc_insertion_point(field_list:OntologyGetAddress.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +OntologyGetAddress::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:OntologyGetAddress.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool OntologyGetAddress::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologyGetAddress::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologyGetAddress::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologyGetAddress::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool OntologyGetAddress::show_display() const { + // @@protoc_insertion_point(field_get:OntologyGetAddress.show_display) + return show_display_; +} +inline void OntologyGetAddress::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:OntologyGetAddress.show_display) +} + +// ------------------------------------------------------------------- + +// OntologyAddress + +// optional string address = 1; +inline bool OntologyAddress::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologyAddress::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologyAddress::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologyAddress::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& OntologyAddress::address() const { + // @@protoc_insertion_point(field_get:OntologyAddress.address) + return address_.GetNoArena(); +} +inline void OntologyAddress::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologyAddress.address) +} +#if LANG_CXX11 +inline void OntologyAddress::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologyAddress.address) +} +#endif +inline void OntologyAddress::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologyAddress.address) +} +inline void OntologyAddress::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologyAddress.address) +} +inline ::std::string* OntologyAddress::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:OntologyAddress.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologyAddress::release_address() { + // @@protoc_insertion_point(field_release:OntologyAddress.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologyAddress::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:OntologyAddress.address) +} + +// ------------------------------------------------------------------- + +// OntologySignTransfer_OntologyTransfer + +// optional .OntologySignTransfer.OntologyTransfer.OntologyAsset asset = 1; +inline bool OntologySignTransfer_OntologyTransfer::has_asset() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void OntologySignTransfer_OntologyTransfer::set_has_asset() { + _has_bits_[0] |= 0x00000008u; +} +inline void OntologySignTransfer_OntologyTransfer::clear_has_asset() { + _has_bits_[0] &= ~0x00000008u; +} +inline void OntologySignTransfer_OntologyTransfer::clear_asset() { + asset_ = 1; + clear_has_asset(); +} +inline ::OntologySignTransfer_OntologyTransfer_OntologyAsset OntologySignTransfer_OntologyTransfer::asset() const { + // @@protoc_insertion_point(field_get:OntologySignTransfer.OntologyTransfer.asset) + return static_cast< ::OntologySignTransfer_OntologyTransfer_OntologyAsset >(asset_); +} +inline void OntologySignTransfer_OntologyTransfer::set_asset(::OntologySignTransfer_OntologyTransfer_OntologyAsset value) { + assert(::OntologySignTransfer_OntologyTransfer_OntologyAsset_IsValid(value)); + set_has_asset(); + asset_ = value; + // @@protoc_insertion_point(field_set:OntologySignTransfer.OntologyTransfer.asset) +} + +// optional uint64 amount = 2; +inline bool OntologySignTransfer_OntologyTransfer::has_amount() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void OntologySignTransfer_OntologyTransfer::set_has_amount() { + _has_bits_[0] |= 0x00000004u; +} +inline void OntologySignTransfer_OntologyTransfer::clear_has_amount() { + _has_bits_[0] &= ~0x00000004u; +} +inline void OntologySignTransfer_OntologyTransfer::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 OntologySignTransfer_OntologyTransfer::amount() const { + // @@protoc_insertion_point(field_get:OntologySignTransfer.OntologyTransfer.amount) + return amount_; +} +inline void OntologySignTransfer_OntologyTransfer::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:OntologySignTransfer.OntologyTransfer.amount) +} + +// optional string from_address = 3; +inline bool OntologySignTransfer_OntologyTransfer::has_from_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignTransfer_OntologyTransfer::set_has_from_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignTransfer_OntologyTransfer::clear_has_from_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignTransfer_OntologyTransfer::clear_from_address() { + from_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_from_address(); +} +inline const ::std::string& OntologySignTransfer_OntologyTransfer::from_address() const { + // @@protoc_insertion_point(field_get:OntologySignTransfer.OntologyTransfer.from_address) + return from_address_.GetNoArena(); +} +inline void OntologySignTransfer_OntologyTransfer::set_from_address(const ::std::string& value) { + set_has_from_address(); + from_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignTransfer.OntologyTransfer.from_address) +} +#if LANG_CXX11 +inline void OntologySignTransfer_OntologyTransfer::set_from_address(::std::string&& value) { + set_has_from_address(); + from_address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignTransfer.OntologyTransfer.from_address) +} +#endif +inline void OntologySignTransfer_OntologyTransfer::set_from_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_from_address(); + from_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignTransfer.OntologyTransfer.from_address) +} +inline void OntologySignTransfer_OntologyTransfer::set_from_address(const char* value, size_t size) { + set_has_from_address(); + from_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignTransfer.OntologyTransfer.from_address) +} +inline ::std::string* OntologySignTransfer_OntologyTransfer::mutable_from_address() { + set_has_from_address(); + // @@protoc_insertion_point(field_mutable:OntologySignTransfer.OntologyTransfer.from_address) + return from_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignTransfer_OntologyTransfer::release_from_address() { + // @@protoc_insertion_point(field_release:OntologySignTransfer.OntologyTransfer.from_address) + if (!has_from_address()) { + return NULL; + } + clear_has_from_address(); + return from_address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignTransfer_OntologyTransfer::set_allocated_from_address(::std::string* from_address) { + if (from_address != NULL) { + set_has_from_address(); + } else { + clear_has_from_address(); + } + from_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from_address); + // @@protoc_insertion_point(field_set_allocated:OntologySignTransfer.OntologyTransfer.from_address) +} + +// optional string to_address = 4; +inline bool OntologySignTransfer_OntologyTransfer::has_to_address() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignTransfer_OntologyTransfer::set_has_to_address() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignTransfer_OntologyTransfer::clear_has_to_address() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignTransfer_OntologyTransfer::clear_to_address() { + to_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_to_address(); +} +inline const ::std::string& OntologySignTransfer_OntologyTransfer::to_address() const { + // @@protoc_insertion_point(field_get:OntologySignTransfer.OntologyTransfer.to_address) + return to_address_.GetNoArena(); +} +inline void OntologySignTransfer_OntologyTransfer::set_to_address(const ::std::string& value) { + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignTransfer.OntologyTransfer.to_address) +} +#if LANG_CXX11 +inline void OntologySignTransfer_OntologyTransfer::set_to_address(::std::string&& value) { + set_has_to_address(); + to_address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignTransfer.OntologyTransfer.to_address) +} +#endif +inline void OntologySignTransfer_OntologyTransfer::set_to_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignTransfer.OntologyTransfer.to_address) +} +inline void OntologySignTransfer_OntologyTransfer::set_to_address(const char* value, size_t size) { + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignTransfer.OntologyTransfer.to_address) +} +inline ::std::string* OntologySignTransfer_OntologyTransfer::mutable_to_address() { + set_has_to_address(); + // @@protoc_insertion_point(field_mutable:OntologySignTransfer.OntologyTransfer.to_address) + return to_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignTransfer_OntologyTransfer::release_to_address() { + // @@protoc_insertion_point(field_release:OntologySignTransfer.OntologyTransfer.to_address) + if (!has_to_address()) { + return NULL; + } + clear_has_to_address(); + return to_address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignTransfer_OntologyTransfer::set_allocated_to_address(::std::string* to_address) { + if (to_address != NULL) { + set_has_to_address(); + } else { + clear_has_to_address(); + } + to_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), to_address); + // @@protoc_insertion_point(field_set_allocated:OntologySignTransfer.OntologyTransfer.to_address) +} + +// ------------------------------------------------------------------- + +// OntologySignTransfer + +// repeated uint32 address_n = 1; +inline int OntologySignTransfer::address_n_size() const { + return address_n_.size(); +} +inline void OntologySignTransfer::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 OntologySignTransfer::address_n(int index) const { + // @@protoc_insertion_point(field_get:OntologySignTransfer.address_n) + return address_n_.Get(index); +} +inline void OntologySignTransfer::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:OntologySignTransfer.address_n) +} +inline void OntologySignTransfer::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:OntologySignTransfer.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +OntologySignTransfer::address_n() const { + // @@protoc_insertion_point(field_list:OntologySignTransfer.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +OntologySignTransfer::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:OntologySignTransfer.address_n) + return &address_n_; +} + +// optional .OntologyTransaction transaction = 2; +inline bool OntologySignTransfer::has_transaction() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignTransfer::set_has_transaction() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignTransfer::clear_has_transaction() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignTransfer::clear_transaction() { + if (transaction_ != NULL) transaction_->Clear(); + clear_has_transaction(); +} +inline const ::OntologyTransaction& OntologySignTransfer::_internal_transaction() const { + return *transaction_; +} +inline const ::OntologyTransaction& OntologySignTransfer::transaction() const { + const ::OntologyTransaction* p = transaction_; + // @@protoc_insertion_point(field_get:OntologySignTransfer.transaction) + return p != NULL ? *p : *reinterpret_cast( + &::_OntologyTransaction_default_instance_); +} +inline ::OntologyTransaction* OntologySignTransfer::release_transaction() { + // @@protoc_insertion_point(field_release:OntologySignTransfer.transaction) + clear_has_transaction(); + ::OntologyTransaction* temp = transaction_; + transaction_ = NULL; + return temp; +} +inline ::OntologyTransaction* OntologySignTransfer::mutable_transaction() { + set_has_transaction(); + if (transaction_ == NULL) { + auto* p = CreateMaybeMessage<::OntologyTransaction>(GetArenaNoVirtual()); + transaction_ = p; + } + // @@protoc_insertion_point(field_mutable:OntologySignTransfer.transaction) + return transaction_; +} +inline void OntologySignTransfer::set_allocated_transaction(::OntologyTransaction* transaction) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transaction_; + } + if (transaction) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transaction = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transaction, submessage_arena); + } + set_has_transaction(); + } else { + clear_has_transaction(); + } + transaction_ = transaction; + // @@protoc_insertion_point(field_set_allocated:OntologySignTransfer.transaction) +} + +// optional .OntologySignTransfer.OntologyTransfer transfer = 3; +inline bool OntologySignTransfer::has_transfer() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignTransfer::set_has_transfer() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignTransfer::clear_has_transfer() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignTransfer::clear_transfer() { + if (transfer_ != NULL) transfer_->Clear(); + clear_has_transfer(); +} +inline const ::OntologySignTransfer_OntologyTransfer& OntologySignTransfer::_internal_transfer() const { + return *transfer_; +} +inline const ::OntologySignTransfer_OntologyTransfer& OntologySignTransfer::transfer() const { + const ::OntologySignTransfer_OntologyTransfer* p = transfer_; + // @@protoc_insertion_point(field_get:OntologySignTransfer.transfer) + return p != NULL ? *p : *reinterpret_cast( + &::_OntologySignTransfer_OntologyTransfer_default_instance_); +} +inline ::OntologySignTransfer_OntologyTransfer* OntologySignTransfer::release_transfer() { + // @@protoc_insertion_point(field_release:OntologySignTransfer.transfer) + clear_has_transfer(); + ::OntologySignTransfer_OntologyTransfer* temp = transfer_; + transfer_ = NULL; + return temp; +} +inline ::OntologySignTransfer_OntologyTransfer* OntologySignTransfer::mutable_transfer() { + set_has_transfer(); + if (transfer_ == NULL) { + auto* p = CreateMaybeMessage<::OntologySignTransfer_OntologyTransfer>(GetArenaNoVirtual()); + transfer_ = p; + } + // @@protoc_insertion_point(field_mutable:OntologySignTransfer.transfer) + return transfer_; +} +inline void OntologySignTransfer::set_allocated_transfer(::OntologySignTransfer_OntologyTransfer* transfer) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transfer_; + } + if (transfer) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transfer = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transfer, submessage_arena); + } + set_has_transfer(); + } else { + clear_has_transfer(); + } + transfer_ = transfer; + // @@protoc_insertion_point(field_set_allocated:OntologySignTransfer.transfer) +} + +// ------------------------------------------------------------------- + +// OntologySignedTransfer + +// optional bytes signature = 1; +inline bool OntologySignedTransfer::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignedTransfer::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignedTransfer::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignedTransfer::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& OntologySignedTransfer::signature() const { + // @@protoc_insertion_point(field_get:OntologySignedTransfer.signature) + return signature_.GetNoArena(); +} +inline void OntologySignedTransfer::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignedTransfer.signature) +} +#if LANG_CXX11 +inline void OntologySignedTransfer::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignedTransfer.signature) +} +#endif +inline void OntologySignedTransfer::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignedTransfer.signature) +} +inline void OntologySignedTransfer::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignedTransfer.signature) +} +inline ::std::string* OntologySignedTransfer::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:OntologySignedTransfer.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignedTransfer::release_signature() { + // @@protoc_insertion_point(field_release:OntologySignedTransfer.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignedTransfer::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:OntologySignedTransfer.signature) +} + +// optional bytes payload = 2; +inline bool OntologySignedTransfer::has_payload() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignedTransfer::set_has_payload() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignedTransfer::clear_has_payload() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignedTransfer::clear_payload() { + payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_payload(); +} +inline const ::std::string& OntologySignedTransfer::payload() const { + // @@protoc_insertion_point(field_get:OntologySignedTransfer.payload) + return payload_.GetNoArena(); +} +inline void OntologySignedTransfer::set_payload(const ::std::string& value) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignedTransfer.payload) +} +#if LANG_CXX11 +inline void OntologySignedTransfer::set_payload(::std::string&& value) { + set_has_payload(); + payload_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignedTransfer.payload) +} +#endif +inline void OntologySignedTransfer::set_payload(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignedTransfer.payload) +} +inline void OntologySignedTransfer::set_payload(const void* value, size_t size) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignedTransfer.payload) +} +inline ::std::string* OntologySignedTransfer::mutable_payload() { + set_has_payload(); + // @@protoc_insertion_point(field_mutable:OntologySignedTransfer.payload) + return payload_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignedTransfer::release_payload() { + // @@protoc_insertion_point(field_release:OntologySignedTransfer.payload) + if (!has_payload()) { + return NULL; + } + clear_has_payload(); + return payload_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignedTransfer::set_allocated_payload(::std::string* payload) { + if (payload != NULL) { + set_has_payload(); + } else { + clear_has_payload(); + } + payload_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payload); + // @@protoc_insertion_point(field_set_allocated:OntologySignedTransfer.payload) +} + +// ------------------------------------------------------------------- + +// OntologySignWithdrawOng_OntologyWithdrawOng + +// optional uint64 amount = 1; +inline bool OntologySignWithdrawOng_OntologyWithdrawOng::has_amount() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_has_amount() { + _has_bits_[0] |= 0x00000004u; +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::clear_has_amount() { + _has_bits_[0] &= ~0x00000004u; +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 OntologySignWithdrawOng_OntologyWithdrawOng::amount() const { + // @@protoc_insertion_point(field_get:OntologySignWithdrawOng.OntologyWithdrawOng.amount) + return amount_; +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:OntologySignWithdrawOng.OntologyWithdrawOng.amount) +} + +// optional string from_address = 2; +inline bool OntologySignWithdrawOng_OntologyWithdrawOng::has_from_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_has_from_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::clear_has_from_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::clear_from_address() { + from_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_from_address(); +} +inline const ::std::string& OntologySignWithdrawOng_OntologyWithdrawOng::from_address() const { + // @@protoc_insertion_point(field_get:OntologySignWithdrawOng.OntologyWithdrawOng.from_address) + return from_address_.GetNoArena(); +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_from_address(const ::std::string& value) { + set_has_from_address(); + from_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignWithdrawOng.OntologyWithdrawOng.from_address) +} +#if LANG_CXX11 +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_from_address(::std::string&& value) { + set_has_from_address(); + from_address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignWithdrawOng.OntologyWithdrawOng.from_address) +} +#endif +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_from_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_from_address(); + from_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignWithdrawOng.OntologyWithdrawOng.from_address) +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_from_address(const char* value, size_t size) { + set_has_from_address(); + from_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignWithdrawOng.OntologyWithdrawOng.from_address) +} +inline ::std::string* OntologySignWithdrawOng_OntologyWithdrawOng::mutable_from_address() { + set_has_from_address(); + // @@protoc_insertion_point(field_mutable:OntologySignWithdrawOng.OntologyWithdrawOng.from_address) + return from_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignWithdrawOng_OntologyWithdrawOng::release_from_address() { + // @@protoc_insertion_point(field_release:OntologySignWithdrawOng.OntologyWithdrawOng.from_address) + if (!has_from_address()) { + return NULL; + } + clear_has_from_address(); + return from_address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_allocated_from_address(::std::string* from_address) { + if (from_address != NULL) { + set_has_from_address(); + } else { + clear_has_from_address(); + } + from_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from_address); + // @@protoc_insertion_point(field_set_allocated:OntologySignWithdrawOng.OntologyWithdrawOng.from_address) +} + +// optional string to_address = 3; +inline bool OntologySignWithdrawOng_OntologyWithdrawOng::has_to_address() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_has_to_address() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::clear_has_to_address() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::clear_to_address() { + to_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_to_address(); +} +inline const ::std::string& OntologySignWithdrawOng_OntologyWithdrawOng::to_address() const { + // @@protoc_insertion_point(field_get:OntologySignWithdrawOng.OntologyWithdrawOng.to_address) + return to_address_.GetNoArena(); +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_to_address(const ::std::string& value) { + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignWithdrawOng.OntologyWithdrawOng.to_address) +} +#if LANG_CXX11 +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_to_address(::std::string&& value) { + set_has_to_address(); + to_address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignWithdrawOng.OntologyWithdrawOng.to_address) +} +#endif +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_to_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignWithdrawOng.OntologyWithdrawOng.to_address) +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_to_address(const char* value, size_t size) { + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignWithdrawOng.OntologyWithdrawOng.to_address) +} +inline ::std::string* OntologySignWithdrawOng_OntologyWithdrawOng::mutable_to_address() { + set_has_to_address(); + // @@protoc_insertion_point(field_mutable:OntologySignWithdrawOng.OntologyWithdrawOng.to_address) + return to_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignWithdrawOng_OntologyWithdrawOng::release_to_address() { + // @@protoc_insertion_point(field_release:OntologySignWithdrawOng.OntologyWithdrawOng.to_address) + if (!has_to_address()) { + return NULL; + } + clear_has_to_address(); + return to_address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignWithdrawOng_OntologyWithdrawOng::set_allocated_to_address(::std::string* to_address) { + if (to_address != NULL) { + set_has_to_address(); + } else { + clear_has_to_address(); + } + to_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), to_address); + // @@protoc_insertion_point(field_set_allocated:OntologySignWithdrawOng.OntologyWithdrawOng.to_address) +} + +// ------------------------------------------------------------------- + +// OntologySignWithdrawOng + +// repeated uint32 address_n = 1; +inline int OntologySignWithdrawOng::address_n_size() const { + return address_n_.size(); +} +inline void OntologySignWithdrawOng::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 OntologySignWithdrawOng::address_n(int index) const { + // @@protoc_insertion_point(field_get:OntologySignWithdrawOng.address_n) + return address_n_.Get(index); +} +inline void OntologySignWithdrawOng::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:OntologySignWithdrawOng.address_n) +} +inline void OntologySignWithdrawOng::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:OntologySignWithdrawOng.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +OntologySignWithdrawOng::address_n() const { + // @@protoc_insertion_point(field_list:OntologySignWithdrawOng.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +OntologySignWithdrawOng::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:OntologySignWithdrawOng.address_n) + return &address_n_; +} + +// optional .OntologyTransaction transaction = 2; +inline bool OntologySignWithdrawOng::has_transaction() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignWithdrawOng::set_has_transaction() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignWithdrawOng::clear_has_transaction() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignWithdrawOng::clear_transaction() { + if (transaction_ != NULL) transaction_->Clear(); + clear_has_transaction(); +} +inline const ::OntologyTransaction& OntologySignWithdrawOng::_internal_transaction() const { + return *transaction_; +} +inline const ::OntologyTransaction& OntologySignWithdrawOng::transaction() const { + const ::OntologyTransaction* p = transaction_; + // @@protoc_insertion_point(field_get:OntologySignWithdrawOng.transaction) + return p != NULL ? *p : *reinterpret_cast( + &::_OntologyTransaction_default_instance_); +} +inline ::OntologyTransaction* OntologySignWithdrawOng::release_transaction() { + // @@protoc_insertion_point(field_release:OntologySignWithdrawOng.transaction) + clear_has_transaction(); + ::OntologyTransaction* temp = transaction_; + transaction_ = NULL; + return temp; +} +inline ::OntologyTransaction* OntologySignWithdrawOng::mutable_transaction() { + set_has_transaction(); + if (transaction_ == NULL) { + auto* p = CreateMaybeMessage<::OntologyTransaction>(GetArenaNoVirtual()); + transaction_ = p; + } + // @@protoc_insertion_point(field_mutable:OntologySignWithdrawOng.transaction) + return transaction_; +} +inline void OntologySignWithdrawOng::set_allocated_transaction(::OntologyTransaction* transaction) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transaction_; + } + if (transaction) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transaction = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transaction, submessage_arena); + } + set_has_transaction(); + } else { + clear_has_transaction(); + } + transaction_ = transaction; + // @@protoc_insertion_point(field_set_allocated:OntologySignWithdrawOng.transaction) +} + +// optional .OntologySignWithdrawOng.OntologyWithdrawOng withdraw_ong = 3; +inline bool OntologySignWithdrawOng::has_withdraw_ong() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignWithdrawOng::set_has_withdraw_ong() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignWithdrawOng::clear_has_withdraw_ong() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignWithdrawOng::clear_withdraw_ong() { + if (withdraw_ong_ != NULL) withdraw_ong_->Clear(); + clear_has_withdraw_ong(); +} +inline const ::OntologySignWithdrawOng_OntologyWithdrawOng& OntologySignWithdrawOng::_internal_withdraw_ong() const { + return *withdraw_ong_; +} +inline const ::OntologySignWithdrawOng_OntologyWithdrawOng& OntologySignWithdrawOng::withdraw_ong() const { + const ::OntologySignWithdrawOng_OntologyWithdrawOng* p = withdraw_ong_; + // @@protoc_insertion_point(field_get:OntologySignWithdrawOng.withdraw_ong) + return p != NULL ? *p : *reinterpret_cast( + &::_OntologySignWithdrawOng_OntologyWithdrawOng_default_instance_); +} +inline ::OntologySignWithdrawOng_OntologyWithdrawOng* OntologySignWithdrawOng::release_withdraw_ong() { + // @@protoc_insertion_point(field_release:OntologySignWithdrawOng.withdraw_ong) + clear_has_withdraw_ong(); + ::OntologySignWithdrawOng_OntologyWithdrawOng* temp = withdraw_ong_; + withdraw_ong_ = NULL; + return temp; +} +inline ::OntologySignWithdrawOng_OntologyWithdrawOng* OntologySignWithdrawOng::mutable_withdraw_ong() { + set_has_withdraw_ong(); + if (withdraw_ong_ == NULL) { + auto* p = CreateMaybeMessage<::OntologySignWithdrawOng_OntologyWithdrawOng>(GetArenaNoVirtual()); + withdraw_ong_ = p; + } + // @@protoc_insertion_point(field_mutable:OntologySignWithdrawOng.withdraw_ong) + return withdraw_ong_; +} +inline void OntologySignWithdrawOng::set_allocated_withdraw_ong(::OntologySignWithdrawOng_OntologyWithdrawOng* withdraw_ong) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete withdraw_ong_; + } + if (withdraw_ong) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + withdraw_ong = ::google::protobuf::internal::GetOwnedMessage( + message_arena, withdraw_ong, submessage_arena); + } + set_has_withdraw_ong(); + } else { + clear_has_withdraw_ong(); + } + withdraw_ong_ = withdraw_ong; + // @@protoc_insertion_point(field_set_allocated:OntologySignWithdrawOng.withdraw_ong) +} + +// ------------------------------------------------------------------- + +// OntologySignedWithdrawOng + +// optional bytes signature = 1; +inline bool OntologySignedWithdrawOng::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignedWithdrawOng::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignedWithdrawOng::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignedWithdrawOng::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& OntologySignedWithdrawOng::signature() const { + // @@protoc_insertion_point(field_get:OntologySignedWithdrawOng.signature) + return signature_.GetNoArena(); +} +inline void OntologySignedWithdrawOng::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignedWithdrawOng.signature) +} +#if LANG_CXX11 +inline void OntologySignedWithdrawOng::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignedWithdrawOng.signature) +} +#endif +inline void OntologySignedWithdrawOng::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignedWithdrawOng.signature) +} +inline void OntologySignedWithdrawOng::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignedWithdrawOng.signature) +} +inline ::std::string* OntologySignedWithdrawOng::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:OntologySignedWithdrawOng.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignedWithdrawOng::release_signature() { + // @@protoc_insertion_point(field_release:OntologySignedWithdrawOng.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignedWithdrawOng::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:OntologySignedWithdrawOng.signature) +} + +// optional bytes payload = 2; +inline bool OntologySignedWithdrawOng::has_payload() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignedWithdrawOng::set_has_payload() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignedWithdrawOng::clear_has_payload() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignedWithdrawOng::clear_payload() { + payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_payload(); +} +inline const ::std::string& OntologySignedWithdrawOng::payload() const { + // @@protoc_insertion_point(field_get:OntologySignedWithdrawOng.payload) + return payload_.GetNoArena(); +} +inline void OntologySignedWithdrawOng::set_payload(const ::std::string& value) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignedWithdrawOng.payload) +} +#if LANG_CXX11 +inline void OntologySignedWithdrawOng::set_payload(::std::string&& value) { + set_has_payload(); + payload_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignedWithdrawOng.payload) +} +#endif +inline void OntologySignedWithdrawOng::set_payload(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignedWithdrawOng.payload) +} +inline void OntologySignedWithdrawOng::set_payload(const void* value, size_t size) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignedWithdrawOng.payload) +} +inline ::std::string* OntologySignedWithdrawOng::mutable_payload() { + set_has_payload(); + // @@protoc_insertion_point(field_mutable:OntologySignedWithdrawOng.payload) + return payload_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignedWithdrawOng::release_payload() { + // @@protoc_insertion_point(field_release:OntologySignedWithdrawOng.payload) + if (!has_payload()) { + return NULL; + } + clear_has_payload(); + return payload_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignedWithdrawOng::set_allocated_payload(::std::string* payload) { + if (payload != NULL) { + set_has_payload(); + } else { + clear_has_payload(); + } + payload_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payload); + // @@protoc_insertion_point(field_set_allocated:OntologySignedWithdrawOng.payload) +} + +// ------------------------------------------------------------------- + +// OntologySignOntIdRegister_OntologyOntIdRegister + +// optional string ont_id = 1; +inline bool OntologySignOntIdRegister_OntologyOntIdRegister::has_ont_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_has_ont_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::clear_has_ont_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::clear_ont_id() { + ont_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ont_id(); +} +inline const ::std::string& OntologySignOntIdRegister_OntologyOntIdRegister::ont_id() const { + // @@protoc_insertion_point(field_get:OntologySignOntIdRegister.OntologyOntIdRegister.ont_id) + return ont_id_.GetNoArena(); +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_ont_id(const ::std::string& value) { + set_has_ont_id(); + ont_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignOntIdRegister.OntologyOntIdRegister.ont_id) +} +#if LANG_CXX11 +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_ont_id(::std::string&& value) { + set_has_ont_id(); + ont_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignOntIdRegister.OntologyOntIdRegister.ont_id) +} +#endif +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_ont_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_ont_id(); + ont_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignOntIdRegister.OntologyOntIdRegister.ont_id) +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_ont_id(const char* value, size_t size) { + set_has_ont_id(); + ont_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignOntIdRegister.OntologyOntIdRegister.ont_id) +} +inline ::std::string* OntologySignOntIdRegister_OntologyOntIdRegister::mutable_ont_id() { + set_has_ont_id(); + // @@protoc_insertion_point(field_mutable:OntologySignOntIdRegister.OntologyOntIdRegister.ont_id) + return ont_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignOntIdRegister_OntologyOntIdRegister::release_ont_id() { + // @@protoc_insertion_point(field_release:OntologySignOntIdRegister.OntologyOntIdRegister.ont_id) + if (!has_ont_id()) { + return NULL; + } + clear_has_ont_id(); + return ont_id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_allocated_ont_id(::std::string* ont_id) { + if (ont_id != NULL) { + set_has_ont_id(); + } else { + clear_has_ont_id(); + } + ont_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ont_id); + // @@protoc_insertion_point(field_set_allocated:OntologySignOntIdRegister.OntologyOntIdRegister.ont_id) +} + +// optional bytes public_key = 2; +inline bool OntologySignOntIdRegister_OntologyOntIdRegister::has_public_key() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_has_public_key() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::clear_has_public_key() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& OntologySignOntIdRegister_OntologyOntIdRegister::public_key() const { + // @@protoc_insertion_point(field_get:OntologySignOntIdRegister.OntologyOntIdRegister.public_key) + return public_key_.GetNoArena(); +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignOntIdRegister.OntologyOntIdRegister.public_key) +} +#if LANG_CXX11 +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignOntIdRegister.OntologyOntIdRegister.public_key) +} +#endif +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignOntIdRegister.OntologyOntIdRegister.public_key) +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignOntIdRegister.OntologyOntIdRegister.public_key) +} +inline ::std::string* OntologySignOntIdRegister_OntologyOntIdRegister::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:OntologySignOntIdRegister.OntologyOntIdRegister.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignOntIdRegister_OntologyOntIdRegister::release_public_key() { + // @@protoc_insertion_point(field_release:OntologySignOntIdRegister.OntologyOntIdRegister.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignOntIdRegister_OntologyOntIdRegister::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:OntologySignOntIdRegister.OntologyOntIdRegister.public_key) +} + +// ------------------------------------------------------------------- + +// OntologySignOntIdRegister + +// repeated uint32 address_n = 1; +inline int OntologySignOntIdRegister::address_n_size() const { + return address_n_.size(); +} +inline void OntologySignOntIdRegister::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 OntologySignOntIdRegister::address_n(int index) const { + // @@protoc_insertion_point(field_get:OntologySignOntIdRegister.address_n) + return address_n_.Get(index); +} +inline void OntologySignOntIdRegister::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:OntologySignOntIdRegister.address_n) +} +inline void OntologySignOntIdRegister::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:OntologySignOntIdRegister.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +OntologySignOntIdRegister::address_n() const { + // @@protoc_insertion_point(field_list:OntologySignOntIdRegister.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +OntologySignOntIdRegister::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:OntologySignOntIdRegister.address_n) + return &address_n_; +} + +// optional .OntologyTransaction transaction = 2; +inline bool OntologySignOntIdRegister::has_transaction() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignOntIdRegister::set_has_transaction() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignOntIdRegister::clear_has_transaction() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignOntIdRegister::clear_transaction() { + if (transaction_ != NULL) transaction_->Clear(); + clear_has_transaction(); +} +inline const ::OntologyTransaction& OntologySignOntIdRegister::_internal_transaction() const { + return *transaction_; +} +inline const ::OntologyTransaction& OntologySignOntIdRegister::transaction() const { + const ::OntologyTransaction* p = transaction_; + // @@protoc_insertion_point(field_get:OntologySignOntIdRegister.transaction) + return p != NULL ? *p : *reinterpret_cast( + &::_OntologyTransaction_default_instance_); +} +inline ::OntologyTransaction* OntologySignOntIdRegister::release_transaction() { + // @@protoc_insertion_point(field_release:OntologySignOntIdRegister.transaction) + clear_has_transaction(); + ::OntologyTransaction* temp = transaction_; + transaction_ = NULL; + return temp; +} +inline ::OntologyTransaction* OntologySignOntIdRegister::mutable_transaction() { + set_has_transaction(); + if (transaction_ == NULL) { + auto* p = CreateMaybeMessage<::OntologyTransaction>(GetArenaNoVirtual()); + transaction_ = p; + } + // @@protoc_insertion_point(field_mutable:OntologySignOntIdRegister.transaction) + return transaction_; +} +inline void OntologySignOntIdRegister::set_allocated_transaction(::OntologyTransaction* transaction) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transaction_; + } + if (transaction) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transaction = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transaction, submessage_arena); + } + set_has_transaction(); + } else { + clear_has_transaction(); + } + transaction_ = transaction; + // @@protoc_insertion_point(field_set_allocated:OntologySignOntIdRegister.transaction) +} + +// optional .OntologySignOntIdRegister.OntologyOntIdRegister ont_id_register = 3; +inline bool OntologySignOntIdRegister::has_ont_id_register() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignOntIdRegister::set_has_ont_id_register() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignOntIdRegister::clear_has_ont_id_register() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignOntIdRegister::clear_ont_id_register() { + if (ont_id_register_ != NULL) ont_id_register_->Clear(); + clear_has_ont_id_register(); +} +inline const ::OntologySignOntIdRegister_OntologyOntIdRegister& OntologySignOntIdRegister::_internal_ont_id_register() const { + return *ont_id_register_; +} +inline const ::OntologySignOntIdRegister_OntologyOntIdRegister& OntologySignOntIdRegister::ont_id_register() const { + const ::OntologySignOntIdRegister_OntologyOntIdRegister* p = ont_id_register_; + // @@protoc_insertion_point(field_get:OntologySignOntIdRegister.ont_id_register) + return p != NULL ? *p : *reinterpret_cast( + &::_OntologySignOntIdRegister_OntologyOntIdRegister_default_instance_); +} +inline ::OntologySignOntIdRegister_OntologyOntIdRegister* OntologySignOntIdRegister::release_ont_id_register() { + // @@protoc_insertion_point(field_release:OntologySignOntIdRegister.ont_id_register) + clear_has_ont_id_register(); + ::OntologySignOntIdRegister_OntologyOntIdRegister* temp = ont_id_register_; + ont_id_register_ = NULL; + return temp; +} +inline ::OntologySignOntIdRegister_OntologyOntIdRegister* OntologySignOntIdRegister::mutable_ont_id_register() { + set_has_ont_id_register(); + if (ont_id_register_ == NULL) { + auto* p = CreateMaybeMessage<::OntologySignOntIdRegister_OntologyOntIdRegister>(GetArenaNoVirtual()); + ont_id_register_ = p; + } + // @@protoc_insertion_point(field_mutable:OntologySignOntIdRegister.ont_id_register) + return ont_id_register_; +} +inline void OntologySignOntIdRegister::set_allocated_ont_id_register(::OntologySignOntIdRegister_OntologyOntIdRegister* ont_id_register) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete ont_id_register_; + } + if (ont_id_register) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + ont_id_register = ::google::protobuf::internal::GetOwnedMessage( + message_arena, ont_id_register, submessage_arena); + } + set_has_ont_id_register(); + } else { + clear_has_ont_id_register(); + } + ont_id_register_ = ont_id_register; + // @@protoc_insertion_point(field_set_allocated:OntologySignOntIdRegister.ont_id_register) +} + +// ------------------------------------------------------------------- + +// OntologySignedOntIdRegister + +// optional bytes signature = 1; +inline bool OntologySignedOntIdRegister::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignedOntIdRegister::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignedOntIdRegister::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignedOntIdRegister::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& OntologySignedOntIdRegister::signature() const { + // @@protoc_insertion_point(field_get:OntologySignedOntIdRegister.signature) + return signature_.GetNoArena(); +} +inline void OntologySignedOntIdRegister::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignedOntIdRegister.signature) +} +#if LANG_CXX11 +inline void OntologySignedOntIdRegister::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignedOntIdRegister.signature) +} +#endif +inline void OntologySignedOntIdRegister::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignedOntIdRegister.signature) +} +inline void OntologySignedOntIdRegister::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignedOntIdRegister.signature) +} +inline ::std::string* OntologySignedOntIdRegister::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:OntologySignedOntIdRegister.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignedOntIdRegister::release_signature() { + // @@protoc_insertion_point(field_release:OntologySignedOntIdRegister.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignedOntIdRegister::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:OntologySignedOntIdRegister.signature) +} + +// optional bytes payload = 2; +inline bool OntologySignedOntIdRegister::has_payload() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignedOntIdRegister::set_has_payload() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignedOntIdRegister::clear_has_payload() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignedOntIdRegister::clear_payload() { + payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_payload(); +} +inline const ::std::string& OntologySignedOntIdRegister::payload() const { + // @@protoc_insertion_point(field_get:OntologySignedOntIdRegister.payload) + return payload_.GetNoArena(); +} +inline void OntologySignedOntIdRegister::set_payload(const ::std::string& value) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignedOntIdRegister.payload) +} +#if LANG_CXX11 +inline void OntologySignedOntIdRegister::set_payload(::std::string&& value) { + set_has_payload(); + payload_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignedOntIdRegister.payload) +} +#endif +inline void OntologySignedOntIdRegister::set_payload(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignedOntIdRegister.payload) +} +inline void OntologySignedOntIdRegister::set_payload(const void* value, size_t size) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignedOntIdRegister.payload) +} +inline ::std::string* OntologySignedOntIdRegister::mutable_payload() { + set_has_payload(); + // @@protoc_insertion_point(field_mutable:OntologySignedOntIdRegister.payload) + return payload_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignedOntIdRegister::release_payload() { + // @@protoc_insertion_point(field_release:OntologySignedOntIdRegister.payload) + if (!has_payload()) { + return NULL; + } + clear_has_payload(); + return payload_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignedOntIdRegister::set_allocated_payload(::std::string* payload) { + if (payload != NULL) { + set_has_payload(); + } else { + clear_has_payload(); + } + payload_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payload); + // @@protoc_insertion_point(field_set_allocated:OntologySignedOntIdRegister.payload) +} + +// ------------------------------------------------------------------- + +// OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute + +// optional string key = 1; +inline bool OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::has_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_has_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::clear_has_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_key(); +} +inline const ::std::string& OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::key() const { + // @@protoc_insertion_point(field_get:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.key) + return key_.GetNoArena(); +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_key(const ::std::string& value) { + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.key) +} +#if LANG_CXX11 +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_key(::std::string&& value) { + set_has_key(); + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.key) +} +#endif +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.key) +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_key(const char* value, size_t size) { + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.key) +} +inline ::std::string* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::mutable_key() { + set_has_key(); + // @@protoc_insertion_point(field_mutable:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::release_key() { + // @@protoc_insertion_point(field_release:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.key) + if (!has_key()) { + return NULL; + } + clear_has_key(); + return key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_allocated_key(::std::string* key) { + if (key != NULL) { + set_has_key(); + } else { + clear_has_key(); + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.key) +} + +// optional string type = 2; +inline bool OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::has_type() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_has_type() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::clear_has_type() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::clear_type() { + type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_type(); +} +inline const ::std::string& OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::type() const { + // @@protoc_insertion_point(field_get:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.type) + return type_.GetNoArena(); +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_type(const ::std::string& value) { + set_has_type(); + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.type) +} +#if LANG_CXX11 +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_type(::std::string&& value) { + set_has_type(); + type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.type) +} +#endif +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_type(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_type(); + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.type) +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_type(const char* value, size_t size) { + set_has_type(); + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.type) +} +inline ::std::string* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::mutable_type() { + set_has_type(); + // @@protoc_insertion_point(field_mutable:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.type) + return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::release_type() { + // @@protoc_insertion_point(field_release:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.type) + if (!has_type()) { + return NULL; + } + clear_has_type(); + return type_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_allocated_type(::std::string* type) { + if (type != NULL) { + set_has_type(); + } else { + clear_has_type(); + } + type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type); + // @@protoc_insertion_point(field_set_allocated:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.type) +} + +// optional string value = 3; +inline bool OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::has_value() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_has_value() { + _has_bits_[0] |= 0x00000004u; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::clear_has_value() { + _has_bits_[0] &= ~0x00000004u; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_value(); +} +inline const ::std::string& OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::value() const { + // @@protoc_insertion_point(field_get:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.value) + return value_.GetNoArena(); +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_value(const ::std::string& value) { + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.value) +} +#if LANG_CXX11 +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_value(::std::string&& value) { + set_has_value(); + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.value) +} +#endif +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_value(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.value) +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_value(const char* value, size_t size) { + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.value) +} +inline ::std::string* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::mutable_value() { + set_has_value(); + // @@protoc_insertion_point(field_mutable:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::release_value() { + // @@protoc_insertion_point(field_release:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.value) + if (!has_value()) { + return NULL; + } + clear_has_value(); + return value_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute::set_allocated_value(::std::string* value) { + if (value != NULL) { + set_has_value(); + } else { + clear_has_value(); + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute.value) +} + +// ------------------------------------------------------------------- + +// OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes + +// optional string ont_id = 1; +inline bool OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::has_ont_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_has_ont_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::clear_has_ont_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::clear_ont_id() { + ont_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ont_id(); +} +inline const ::std::string& OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::ont_id() const { + // @@protoc_insertion_point(field_get:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id) + return ont_id_.GetNoArena(); +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_ont_id(const ::std::string& value) { + set_has_ont_id(); + ont_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id) +} +#if LANG_CXX11 +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_ont_id(::std::string&& value) { + set_has_ont_id(); + ont_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id) +} +#endif +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_ont_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_ont_id(); + ont_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id) +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_ont_id(const char* value, size_t size) { + set_has_ont_id(); + ont_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id) +} +inline ::std::string* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::mutable_ont_id() { + set_has_ont_id(); + // @@protoc_insertion_point(field_mutable:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id) + return ont_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::release_ont_id() { + // @@protoc_insertion_point(field_release:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id) + if (!has_ont_id()) { + return NULL; + } + clear_has_ont_id(); + return ont_id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_allocated_ont_id(::std::string* ont_id) { + if (ont_id != NULL) { + set_has_ont_id(); + } else { + clear_has_ont_id(); + } + ont_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ont_id); + // @@protoc_insertion_point(field_set_allocated:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id) +} + +// optional bytes public_key = 2; +inline bool OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::has_public_key() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_has_public_key() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::clear_has_public_key() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::public_key() const { + // @@protoc_insertion_point(field_get:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.public_key) + return public_key_.GetNoArena(); +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.public_key) +} +#if LANG_CXX11 +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.public_key) +} +#endif +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.public_key) +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.public_key) +} +inline ::std::string* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::release_public_key() { + // @@protoc_insertion_point(field_release:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.public_key) +} + +// repeated .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.OntologyOntIdAttribute ont_id_attributes = 3; +inline int OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::ont_id_attributes_size() const { + return ont_id_attributes_.size(); +} +inline void OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::clear_ont_id_attributes() { + ont_id_attributes_.Clear(); +} +inline ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::mutable_ont_id_attributes(int index) { + // @@protoc_insertion_point(field_mutable:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id_attributes) + return ont_id_attributes_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute >* +OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::mutable_ont_id_attributes() { + // @@protoc_insertion_point(field_mutable_list:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id_attributes) + return &ont_id_attributes_; +} +inline const ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute& OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::ont_id_attributes(int index) const { + // @@protoc_insertion_point(field_get:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id_attributes) + return ont_id_attributes_.Get(index); +} +inline ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute* OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::add_ont_id_attributes() { + // @@protoc_insertion_point(field_add:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id_attributes) + return ont_id_attributes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_OntologyOntIdAttribute >& +OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes::ont_id_attributes() const { + // @@protoc_insertion_point(field_list:OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes.ont_id_attributes) + return ont_id_attributes_; +} + +// ------------------------------------------------------------------- + +// OntologySignOntIdAddAttributes + +// repeated uint32 address_n = 1; +inline int OntologySignOntIdAddAttributes::address_n_size() const { + return address_n_.size(); +} +inline void OntologySignOntIdAddAttributes::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 OntologySignOntIdAddAttributes::address_n(int index) const { + // @@protoc_insertion_point(field_get:OntologySignOntIdAddAttributes.address_n) + return address_n_.Get(index); +} +inline void OntologySignOntIdAddAttributes::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:OntologySignOntIdAddAttributes.address_n) +} +inline void OntologySignOntIdAddAttributes::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:OntologySignOntIdAddAttributes.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +OntologySignOntIdAddAttributes::address_n() const { + // @@protoc_insertion_point(field_list:OntologySignOntIdAddAttributes.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +OntologySignOntIdAddAttributes::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:OntologySignOntIdAddAttributes.address_n) + return &address_n_; +} + +// optional .OntologyTransaction transaction = 2; +inline bool OntologySignOntIdAddAttributes::has_transaction() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignOntIdAddAttributes::set_has_transaction() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignOntIdAddAttributes::clear_has_transaction() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignOntIdAddAttributes::clear_transaction() { + if (transaction_ != NULL) transaction_->Clear(); + clear_has_transaction(); +} +inline const ::OntologyTransaction& OntologySignOntIdAddAttributes::_internal_transaction() const { + return *transaction_; +} +inline const ::OntologyTransaction& OntologySignOntIdAddAttributes::transaction() const { + const ::OntologyTransaction* p = transaction_; + // @@protoc_insertion_point(field_get:OntologySignOntIdAddAttributes.transaction) + return p != NULL ? *p : *reinterpret_cast( + &::_OntologyTransaction_default_instance_); +} +inline ::OntologyTransaction* OntologySignOntIdAddAttributes::release_transaction() { + // @@protoc_insertion_point(field_release:OntologySignOntIdAddAttributes.transaction) + clear_has_transaction(); + ::OntologyTransaction* temp = transaction_; + transaction_ = NULL; + return temp; +} +inline ::OntologyTransaction* OntologySignOntIdAddAttributes::mutable_transaction() { + set_has_transaction(); + if (transaction_ == NULL) { + auto* p = CreateMaybeMessage<::OntologyTransaction>(GetArenaNoVirtual()); + transaction_ = p; + } + // @@protoc_insertion_point(field_mutable:OntologySignOntIdAddAttributes.transaction) + return transaction_; +} +inline void OntologySignOntIdAddAttributes::set_allocated_transaction(::OntologyTransaction* transaction) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transaction_; + } + if (transaction) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transaction = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transaction, submessage_arena); + } + set_has_transaction(); + } else { + clear_has_transaction(); + } + transaction_ = transaction; + // @@protoc_insertion_point(field_set_allocated:OntologySignOntIdAddAttributes.transaction) +} + +// optional .OntologySignOntIdAddAttributes.OntologyOntIdAddAttributes ont_id_add_attributes = 3; +inline bool OntologySignOntIdAddAttributes::has_ont_id_add_attributes() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignOntIdAddAttributes::set_has_ont_id_add_attributes() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignOntIdAddAttributes::clear_has_ont_id_add_attributes() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignOntIdAddAttributes::clear_ont_id_add_attributes() { + if (ont_id_add_attributes_ != NULL) ont_id_add_attributes_->Clear(); + clear_has_ont_id_add_attributes(); +} +inline const ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& OntologySignOntIdAddAttributes::_internal_ont_id_add_attributes() const { + return *ont_id_add_attributes_; +} +inline const ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes& OntologySignOntIdAddAttributes::ont_id_add_attributes() const { + const ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* p = ont_id_add_attributes_; + // @@protoc_insertion_point(field_get:OntologySignOntIdAddAttributes.ont_id_add_attributes) + return p != NULL ? *p : *reinterpret_cast( + &::_OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes_default_instance_); +} +inline ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* OntologySignOntIdAddAttributes::release_ont_id_add_attributes() { + // @@protoc_insertion_point(field_release:OntologySignOntIdAddAttributes.ont_id_add_attributes) + clear_has_ont_id_add_attributes(); + ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* temp = ont_id_add_attributes_; + ont_id_add_attributes_ = NULL; + return temp; +} +inline ::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* OntologySignOntIdAddAttributes::mutable_ont_id_add_attributes() { + set_has_ont_id_add_attributes(); + if (ont_id_add_attributes_ == NULL) { + auto* p = CreateMaybeMessage<::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes>(GetArenaNoVirtual()); + ont_id_add_attributes_ = p; + } + // @@protoc_insertion_point(field_mutable:OntologySignOntIdAddAttributes.ont_id_add_attributes) + return ont_id_add_attributes_; +} +inline void OntologySignOntIdAddAttributes::set_allocated_ont_id_add_attributes(::OntologySignOntIdAddAttributes_OntologyOntIdAddAttributes* ont_id_add_attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete ont_id_add_attributes_; + } + if (ont_id_add_attributes) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + ont_id_add_attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, ont_id_add_attributes, submessage_arena); + } + set_has_ont_id_add_attributes(); + } else { + clear_has_ont_id_add_attributes(); + } + ont_id_add_attributes_ = ont_id_add_attributes; + // @@protoc_insertion_point(field_set_allocated:OntologySignOntIdAddAttributes.ont_id_add_attributes) +} + +// ------------------------------------------------------------------- + +// OntologySignedOntIdAddAttributes + +// optional bytes signature = 1; +inline bool OntologySignedOntIdAddAttributes::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OntologySignedOntIdAddAttributes::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void OntologySignedOntIdAddAttributes::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OntologySignedOntIdAddAttributes::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& OntologySignedOntIdAddAttributes::signature() const { + // @@protoc_insertion_point(field_get:OntologySignedOntIdAddAttributes.signature) + return signature_.GetNoArena(); +} +inline void OntologySignedOntIdAddAttributes::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignedOntIdAddAttributes.signature) +} +#if LANG_CXX11 +inline void OntologySignedOntIdAddAttributes::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignedOntIdAddAttributes.signature) +} +#endif +inline void OntologySignedOntIdAddAttributes::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignedOntIdAddAttributes.signature) +} +inline void OntologySignedOntIdAddAttributes::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignedOntIdAddAttributes.signature) +} +inline ::std::string* OntologySignedOntIdAddAttributes::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:OntologySignedOntIdAddAttributes.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignedOntIdAddAttributes::release_signature() { + // @@protoc_insertion_point(field_release:OntologySignedOntIdAddAttributes.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignedOntIdAddAttributes::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:OntologySignedOntIdAddAttributes.signature) +} + +// optional bytes payload = 2; +inline bool OntologySignedOntIdAddAttributes::has_payload() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OntologySignedOntIdAddAttributes::set_has_payload() { + _has_bits_[0] |= 0x00000002u; +} +inline void OntologySignedOntIdAddAttributes::clear_has_payload() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OntologySignedOntIdAddAttributes::clear_payload() { + payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_payload(); +} +inline const ::std::string& OntologySignedOntIdAddAttributes::payload() const { + // @@protoc_insertion_point(field_get:OntologySignedOntIdAddAttributes.payload) + return payload_.GetNoArena(); +} +inline void OntologySignedOntIdAddAttributes::set_payload(const ::std::string& value) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:OntologySignedOntIdAddAttributes.payload) +} +#if LANG_CXX11 +inline void OntologySignedOntIdAddAttributes::set_payload(::std::string&& value) { + set_has_payload(); + payload_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:OntologySignedOntIdAddAttributes.payload) +} +#endif +inline void OntologySignedOntIdAddAttributes::set_payload(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:OntologySignedOntIdAddAttributes.payload) +} +inline void OntologySignedOntIdAddAttributes::set_payload(const void* value, size_t size) { + set_has_payload(); + payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:OntologySignedOntIdAddAttributes.payload) +} +inline ::std::string* OntologySignedOntIdAddAttributes::mutable_payload() { + set_has_payload(); + // @@protoc_insertion_point(field_mutable:OntologySignedOntIdAddAttributes.payload) + return payload_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OntologySignedOntIdAddAttributes::release_payload() { + // @@protoc_insertion_point(field_release:OntologySignedOntIdAddAttributes.payload) + if (!has_payload()) { + return NULL; + } + clear_has_payload(); + return payload_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OntologySignedOntIdAddAttributes::set_allocated_payload(::std::string* payload) { + if (payload != NULL) { + set_has_payload(); + } else { + clear_has_payload(); + } + payload_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payload); + // @@protoc_insertion_point(field_set_allocated:OntologySignedOntIdAddAttributes.payload) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::OntologySignTransfer_OntologyTransfer_OntologyAsset> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::OntologySignTransfer_OntologyTransfer_OntologyAsset>() { + return ::OntologySignTransfer_OntologyTransfer_OntologyAsset_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dontology_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-ripple.pb.cc b/src/Core/hardware/trezor/protob/messages-ripple.pb.cc new file mode 100644 index 00000000..bb492801 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-ripple.pb.cc @@ -0,0 +1,1888 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-ripple.proto + +#include "messages-ripple.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dripple_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dripple_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RippleSignTx_RipplePayment; +} // namespace protobuf_messages_2dripple_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace ripple { +class RippleGetAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _RippleGetAddress_default_instance_; +class RippleAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _RippleAddress_default_instance_; +class RippleSignTx_RipplePaymentDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _RippleSignTx_RipplePayment_default_instance_; +class RippleSignTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _RippleSignTx_default_instance_; +class RippleSignedTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _RippleSignedTx_default_instance_; +} // namespace ripple +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dripple_2eproto { +static void InitDefaultsRippleGetAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ripple::_RippleGetAddress_default_instance_; + new (ptr) ::hw::trezor::messages::ripple::RippleGetAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ripple::RippleGetAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RippleGetAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRippleGetAddress}, {}}; + +static void InitDefaultsRippleAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ripple::_RippleAddress_default_instance_; + new (ptr) ::hw::trezor::messages::ripple::RippleAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ripple::RippleAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RippleAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRippleAddress}, {}}; + +static void InitDefaultsRippleSignTx_RipplePayment() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ripple::_RippleSignTx_RipplePayment_default_instance_; + new (ptr) ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RippleSignTx_RipplePayment = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRippleSignTx_RipplePayment}, {}}; + +static void InitDefaultsRippleSignTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ripple::_RippleSignTx_default_instance_; + new (ptr) ::hw::trezor::messages::ripple::RippleSignTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ripple::RippleSignTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_RippleSignTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRippleSignTx}, { + &protobuf_messages_2dripple_2eproto::scc_info_RippleSignTx_RipplePayment.base,}}; + +static void InitDefaultsRippleSignedTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::ripple::_RippleSignedTx_default_instance_; + new (ptr) ::hw::trezor::messages::ripple::RippleSignedTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::ripple::RippleSignedTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RippleSignedTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRippleSignedTx}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_RippleGetAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_RippleAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_RippleSignTx_RipplePayment.base); + ::google::protobuf::internal::InitSCC(&scc_info_RippleSignTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_RippleSignedTx.base); +} + +::google::protobuf::Metadata file_level_metadata[5]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleGetAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleGetAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleGetAddress, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleGetAddress, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleAddress, address_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx_RipplePayment, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx_RipplePayment, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx_RipplePayment, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx_RipplePayment, destination_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx_RipplePayment, destination_tag_), + 1, + 0, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx, fee_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx, flags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx, sequence_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx, last_ledger_sequence_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignTx, payment_), + ~0u, + 1, + 2, + 3, + 4, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignedTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignedTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignedTx, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::ripple::RippleSignedTx, serialized_tx_), + 0, + 1, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::hw::trezor::messages::ripple::RippleGetAddress)}, + { 9, 15, sizeof(::hw::trezor::messages::ripple::RippleAddress)}, + { 16, 24, sizeof(::hw::trezor::messages::ripple::RippleSignTx_RipplePayment)}, + { 27, 38, sizeof(::hw::trezor::messages::ripple::RippleSignTx)}, + { 44, 51, sizeof(::hw::trezor::messages::ripple::RippleSignedTx)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::ripple::_RippleGetAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ripple::_RippleAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ripple::_RippleSignTx_RipplePayment_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ripple::_RippleSignTx_default_instance_), + reinterpret_cast(&::hw::trezor::messages::ripple::_RippleSignedTx_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-ripple.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\025messages-ripple.proto\022\031hw.trezor.messa" + "ges.ripple\";\n\020RippleGetAddress\022\021\n\taddres" + "s_n\030\001 \003(\r\022\024\n\014show_display\030\002 \001(\010\" \n\rRippl" + "eAddress\022\017\n\007address\030\001 \001(\t\"\204\002\n\014RippleSign" + "Tx\022\021\n\taddress_n\030\001 \003(\r\022\013\n\003fee\030\002 \001(\004\022\r\n\005fl" + "ags\030\003 \001(\r\022\020\n\010sequence\030\004 \001(\r\022\034\n\024last_ledg" + "er_sequence\030\005 \001(\r\022F\n\007payment\030\006 \001(\01325.hw." + "trezor.messages.ripple.RippleSignTx.Ripp" + "lePayment\032M\n\rRipplePayment\022\016\n\006amount\030\001 \001" + "(\004\022\023\n\013destination\030\002 \001(\t\022\027\n\017destination_t" + "ag\030\003 \001(\r\":\n\016RippleSignedTx\022\021\n\tsignature\030" + "\001 \001(\014\022\025\n\rserialized_tx\030\002 \001(\014B:\n#com.sato" + "shilabs.trezor.lib.protobufB\023TrezorMessa" + "geRipple" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 528); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-ripple.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dripple_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace ripple { + +// =================================================================== + +void RippleGetAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RippleGetAddress::kAddressNFieldNumber; +const int RippleGetAddress::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RippleGetAddress::RippleGetAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dripple_2eproto::scc_info_RippleGetAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ripple.RippleGetAddress) +} +RippleGetAddress::RippleGetAddress(const RippleGetAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ripple.RippleGetAddress) +} + +void RippleGetAddress::SharedCtor() { + show_display_ = false; +} + +RippleGetAddress::~RippleGetAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ripple.RippleGetAddress) + SharedDtor(); +} + +void RippleGetAddress::SharedDtor() { +} + +void RippleGetAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* RippleGetAddress::descriptor() { + ::protobuf_messages_2dripple_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dripple_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const RippleGetAddress& RippleGetAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dripple_2eproto::scc_info_RippleGetAddress.base); + return *internal_default_instance(); +} + + +void RippleGetAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ripple.RippleGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool RippleGetAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ripple.RippleGetAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ripple.RippleGetAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ripple.RippleGetAddress) + return false; +#undef DO_ +} + +void RippleGetAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ripple.RippleGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ripple.RippleGetAddress) +} + +::google::protobuf::uint8* RippleGetAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ripple.RippleGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ripple.RippleGetAddress) + return target; +} + +size_t RippleGetAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ripple.RippleGetAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RippleGetAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ripple.RippleGetAddress) + GOOGLE_DCHECK_NE(&from, this); + const RippleGetAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ripple.RippleGetAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ripple.RippleGetAddress) + MergeFrom(*source); + } +} + +void RippleGetAddress::MergeFrom(const RippleGetAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ripple.RippleGetAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void RippleGetAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ripple.RippleGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RippleGetAddress::CopyFrom(const RippleGetAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ripple.RippleGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RippleGetAddress::IsInitialized() const { + return true; +} + +void RippleGetAddress::Swap(RippleGetAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void RippleGetAddress::InternalSwap(RippleGetAddress* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata RippleGetAddress::GetMetadata() const { + protobuf_messages_2dripple_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dripple_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void RippleAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RippleAddress::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RippleAddress::RippleAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dripple_2eproto::scc_info_RippleAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ripple.RippleAddress) +} +RippleAddress::RippleAddress(const RippleAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ripple.RippleAddress) +} + +void RippleAddress::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +RippleAddress::~RippleAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ripple.RippleAddress) + SharedDtor(); +} + +void RippleAddress::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void RippleAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* RippleAddress::descriptor() { + ::protobuf_messages_2dripple_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dripple_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const RippleAddress& RippleAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dripple_2eproto::scc_info_RippleAddress.base); + return *internal_default_instance(); +} + + +void RippleAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ripple.RippleAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool RippleAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ripple.RippleAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.ripple.RippleAddress.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ripple.RippleAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ripple.RippleAddress) + return false; +#undef DO_ +} + +void RippleAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ripple.RippleAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ripple.RippleAddress.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ripple.RippleAddress) +} + +::google::protobuf::uint8* RippleAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ripple.RippleAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ripple.RippleAddress.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ripple.RippleAddress) + return target; +} + +size_t RippleAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ripple.RippleAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RippleAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ripple.RippleAddress) + GOOGLE_DCHECK_NE(&from, this); + const RippleAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ripple.RippleAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ripple.RippleAddress) + MergeFrom(*source); + } +} + +void RippleAddress::MergeFrom(const RippleAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ripple.RippleAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_address()) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } +} + +void RippleAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ripple.RippleAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RippleAddress::CopyFrom(const RippleAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ripple.RippleAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RippleAddress::IsInitialized() const { + return true; +} + +void RippleAddress::Swap(RippleAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void RippleAddress::InternalSwap(RippleAddress* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata RippleAddress::GetMetadata() const { + protobuf_messages_2dripple_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dripple_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void RippleSignTx_RipplePayment::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RippleSignTx_RipplePayment::kAmountFieldNumber; +const int RippleSignTx_RipplePayment::kDestinationFieldNumber; +const int RippleSignTx_RipplePayment::kDestinationTagFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RippleSignTx_RipplePayment::RippleSignTx_RipplePayment() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dripple_2eproto::scc_info_RippleSignTx_RipplePayment.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) +} +RippleSignTx_RipplePayment::RippleSignTx_RipplePayment(const RippleSignTx_RipplePayment& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + destination_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_destination()) { + destination_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.destination_); + } + ::memcpy(&amount_, &from.amount_, + static_cast(reinterpret_cast(&destination_tag_) - + reinterpret_cast(&amount_)) + sizeof(destination_tag_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) +} + +void RippleSignTx_RipplePayment::SharedCtor() { + destination_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&destination_tag_) - + reinterpret_cast(&amount_)) + sizeof(destination_tag_)); +} + +RippleSignTx_RipplePayment::~RippleSignTx_RipplePayment() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + SharedDtor(); +} + +void RippleSignTx_RipplePayment::SharedDtor() { + destination_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void RippleSignTx_RipplePayment::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* RippleSignTx_RipplePayment::descriptor() { + ::protobuf_messages_2dripple_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dripple_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const RippleSignTx_RipplePayment& RippleSignTx_RipplePayment::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dripple_2eproto::scc_info_RippleSignTx_RipplePayment.base); + return *internal_default_instance(); +} + + +void RippleSignTx_RipplePayment::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + destination_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 6u) { + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&destination_tag_) - + reinterpret_cast(&amount_)) + sizeof(destination_tag_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool RippleSignTx_RipplePayment::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 amount = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string destination = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_destination())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination().data(), static_cast(this->destination().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 destination_tag = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_destination_tag(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &destination_tag_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + return false; +#undef DO_ +} + +void RippleSignTx_RipplePayment::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 amount = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->amount(), output); + } + + // optional string destination = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination().data(), static_cast(this->destination().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->destination(), output); + } + + // optional uint32 destination_tag = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->destination_tag(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) +} + +::google::protobuf::uint8* RippleSignTx_RipplePayment::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 amount = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->amount(), target); + } + + // optional string destination = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination().data(), static_cast(this->destination().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->destination(), target); + } + + // optional uint32 destination_tag = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->destination_tag(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + return target; +} + +size_t RippleSignTx_RipplePayment::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string destination = 2; + if (has_destination()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->destination()); + } + + // optional uint64 amount = 1; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + // optional uint32 destination_tag = 3; + if (has_destination_tag()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->destination_tag()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RippleSignTx_RipplePayment::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + GOOGLE_DCHECK_NE(&from, this); + const RippleSignTx_RipplePayment* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + MergeFrom(*source); + } +} + +void RippleSignTx_RipplePayment::MergeFrom(const RippleSignTx_RipplePayment& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_destination(); + destination_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.destination_); + } + if (cached_has_bits & 0x00000002u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000004u) { + destination_tag_ = from.destination_tag_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void RippleSignTx_RipplePayment::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RippleSignTx_RipplePayment::CopyFrom(const RippleSignTx_RipplePayment& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RippleSignTx_RipplePayment::IsInitialized() const { + return true; +} + +void RippleSignTx_RipplePayment::Swap(RippleSignTx_RipplePayment* other) { + if (other == this) return; + InternalSwap(other); +} +void RippleSignTx_RipplePayment::InternalSwap(RippleSignTx_RipplePayment* other) { + using std::swap; + destination_.Swap(&other->destination_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(amount_, other->amount_); + swap(destination_tag_, other->destination_tag_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata RippleSignTx_RipplePayment::GetMetadata() const { + protobuf_messages_2dripple_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dripple_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void RippleSignTx::InitAsDefaultInstance() { + ::hw::trezor::messages::ripple::_RippleSignTx_default_instance_._instance.get_mutable()->payment_ = const_cast< ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment*>( + ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RippleSignTx::kAddressNFieldNumber; +const int RippleSignTx::kFeeFieldNumber; +const int RippleSignTx::kFlagsFieldNumber; +const int RippleSignTx::kSequenceFieldNumber; +const int RippleSignTx::kLastLedgerSequenceFieldNumber; +const int RippleSignTx::kPaymentFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RippleSignTx::RippleSignTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dripple_2eproto::scc_info_RippleSignTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ripple.RippleSignTx) +} +RippleSignTx::RippleSignTx(const RippleSignTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_payment()) { + payment_ = new ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment(*from.payment_); + } else { + payment_ = NULL; + } + ::memcpy(&fee_, &from.fee_, + static_cast(reinterpret_cast(&last_ledger_sequence_) - + reinterpret_cast(&fee_)) + sizeof(last_ledger_sequence_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ripple.RippleSignTx) +} + +void RippleSignTx::SharedCtor() { + ::memset(&payment_, 0, static_cast( + reinterpret_cast(&last_ledger_sequence_) - + reinterpret_cast(&payment_)) + sizeof(last_ledger_sequence_)); +} + +RippleSignTx::~RippleSignTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ripple.RippleSignTx) + SharedDtor(); +} + +void RippleSignTx::SharedDtor() { + if (this != internal_default_instance()) delete payment_; +} + +void RippleSignTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* RippleSignTx::descriptor() { + ::protobuf_messages_2dripple_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dripple_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const RippleSignTx& RippleSignTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dripple_2eproto::scc_info_RippleSignTx.base); + return *internal_default_instance(); +} + + +void RippleSignTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ripple.RippleSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(payment_ != NULL); + payment_->Clear(); + } + if (cached_has_bits & 30u) { + ::memset(&fee_, 0, static_cast( + reinterpret_cast(&last_ledger_sequence_) - + reinterpret_cast(&fee_)) + sizeof(last_ledger_sequence_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool RippleSignTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ripple.RippleSignTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 fee = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 flags = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_flags(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &flags_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 sequence = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_sequence(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &sequence_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 last_ledger_sequence = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_last_ledger_sequence(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &last_ledger_sequence_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.ripple.RippleSignTx.RipplePayment payment = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_payment())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ripple.RippleSignTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ripple.RippleSignTx) + return false; +#undef DO_ +} + +void RippleSignTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ripple.RippleSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional uint64 fee = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->fee(), output); + } + + // optional uint32 flags = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->flags(), output); + } + + // optional uint32 sequence = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->sequence(), output); + } + + // optional uint32 last_ledger_sequence = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->last_ledger_sequence(), output); + } + + // optional .hw.trezor.messages.ripple.RippleSignTx.RipplePayment payment = 6; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->_internal_payment(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ripple.RippleSignTx) +} + +::google::protobuf::uint8* RippleSignTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ripple.RippleSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional uint64 fee = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->fee(), target); + } + + // optional uint32 flags = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->flags(), target); + } + + // optional uint32 sequence = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->sequence(), target); + } + + // optional uint32 last_ledger_sequence = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->last_ledger_sequence(), target); + } + + // optional .hw.trezor.messages.ripple.RippleSignTx.RipplePayment payment = 6; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->_internal_payment(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ripple.RippleSignTx) + return target; +} + +size_t RippleSignTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ripple.RippleSignTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 31u) { + // optional .hw.trezor.messages.ripple.RippleSignTx.RipplePayment payment = 6; + if (has_payment()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *payment_); + } + + // optional uint64 fee = 2; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->fee()); + } + + // optional uint32 flags = 3; + if (has_flags()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->flags()); + } + + // optional uint32 sequence = 4; + if (has_sequence()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->sequence()); + } + + // optional uint32 last_ledger_sequence = 5; + if (has_last_ledger_sequence()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->last_ledger_sequence()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RippleSignTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ripple.RippleSignTx) + GOOGLE_DCHECK_NE(&from, this); + const RippleSignTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ripple.RippleSignTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ripple.RippleSignTx) + MergeFrom(*source); + } +} + +void RippleSignTx::MergeFrom(const RippleSignTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ripple.RippleSignTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + mutable_payment()->::hw::trezor::messages::ripple::RippleSignTx_RipplePayment::MergeFrom(from.payment()); + } + if (cached_has_bits & 0x00000002u) { + fee_ = from.fee_; + } + if (cached_has_bits & 0x00000004u) { + flags_ = from.flags_; + } + if (cached_has_bits & 0x00000008u) { + sequence_ = from.sequence_; + } + if (cached_has_bits & 0x00000010u) { + last_ledger_sequence_ = from.last_ledger_sequence_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void RippleSignTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ripple.RippleSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RippleSignTx::CopyFrom(const RippleSignTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ripple.RippleSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RippleSignTx::IsInitialized() const { + return true; +} + +void RippleSignTx::Swap(RippleSignTx* other) { + if (other == this) return; + InternalSwap(other); +} +void RippleSignTx::InternalSwap(RippleSignTx* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(payment_, other->payment_); + swap(fee_, other->fee_); + swap(flags_, other->flags_); + swap(sequence_, other->sequence_); + swap(last_ledger_sequence_, other->last_ledger_sequence_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata RippleSignTx::GetMetadata() const { + protobuf_messages_2dripple_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dripple_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void RippleSignedTx::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RippleSignedTx::kSignatureFieldNumber; +const int RippleSignedTx::kSerializedTxFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RippleSignedTx::RippleSignedTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dripple_2eproto::scc_info_RippleSignedTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.ripple.RippleSignedTx) +} +RippleSignedTx::RippleSignedTx(const RippleSignedTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + serialized_tx_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_serialized_tx()) { + serialized_tx_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialized_tx_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.ripple.RippleSignedTx) +} + +void RippleSignedTx::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + serialized_tx_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +RippleSignedTx::~RippleSignedTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.ripple.RippleSignedTx) + SharedDtor(); +} + +void RippleSignedTx::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + serialized_tx_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void RippleSignedTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* RippleSignedTx::descriptor() { + ::protobuf_messages_2dripple_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dripple_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const RippleSignedTx& RippleSignedTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dripple_2eproto::scc_info_RippleSignedTx.base); + return *internal_default_instance(); +} + + +void RippleSignedTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.ripple.RippleSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + serialized_tx_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool RippleSignedTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.ripple.RippleSignedTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes signature = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes serialized_tx = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_serialized_tx())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.ripple.RippleSignedTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.ripple.RippleSignedTx) + return false; +#undef DO_ +} + +void RippleSignedTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.ripple.RippleSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->signature(), output); + } + + // optional bytes serialized_tx = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->serialized_tx(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.ripple.RippleSignedTx) +} + +::google::protobuf::uint8* RippleSignedTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.ripple.RippleSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->signature(), target); + } + + // optional bytes serialized_tx = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->serialized_tx(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.ripple.RippleSignedTx) + return target; +} + +size_t RippleSignedTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.ripple.RippleSignedTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional bytes serialized_tx = 2; + if (has_serialized_tx()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->serialized_tx()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RippleSignedTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.ripple.RippleSignedTx) + GOOGLE_DCHECK_NE(&from, this); + const RippleSignedTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.ripple.RippleSignedTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.ripple.RippleSignedTx) + MergeFrom(*source); + } +} + +void RippleSignedTx::MergeFrom(const RippleSignedTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.ripple.RippleSignedTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000002u) { + set_has_serialized_tx(); + serialized_tx_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialized_tx_); + } + } +} + +void RippleSignedTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.ripple.RippleSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RippleSignedTx::CopyFrom(const RippleSignedTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.ripple.RippleSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RippleSignedTx::IsInitialized() const { + return true; +} + +void RippleSignedTx::Swap(RippleSignedTx* other) { + if (other == this) return; + InternalSwap(other); +} +void RippleSignedTx::InternalSwap(RippleSignedTx* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + serialized_tx_.Swap(&other->serialized_tx_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata RippleSignedTx::GetMetadata() const { + protobuf_messages_2dripple_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dripple_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace ripple +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ripple::RippleGetAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::ripple::RippleGetAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ripple::RippleGetAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ripple::RippleAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::ripple::RippleAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ripple::RippleAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment* Arena::CreateMaybeMessage< ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ripple::RippleSignTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::ripple::RippleSignTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ripple::RippleSignTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::ripple::RippleSignedTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::ripple::RippleSignedTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::ripple::RippleSignedTx >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-ripple.pb.h b/src/Core/hardware/trezor/protob/messages-ripple.pb.h new file mode 100644 index 00000000..d73eefc2 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-ripple.pb.h @@ -0,0 +1,1388 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-ripple.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dripple_2eproto +#define PROTOBUF_INCLUDED_messages_2dripple_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dripple_2eproto + +namespace protobuf_messages_2dripple_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[5]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dripple_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace ripple { +class RippleAddress; +class RippleAddressDefaultTypeInternal; +extern RippleAddressDefaultTypeInternal _RippleAddress_default_instance_; +class RippleGetAddress; +class RippleGetAddressDefaultTypeInternal; +extern RippleGetAddressDefaultTypeInternal _RippleGetAddress_default_instance_; +class RippleSignTx; +class RippleSignTxDefaultTypeInternal; +extern RippleSignTxDefaultTypeInternal _RippleSignTx_default_instance_; +class RippleSignTx_RipplePayment; +class RippleSignTx_RipplePaymentDefaultTypeInternal; +extern RippleSignTx_RipplePaymentDefaultTypeInternal _RippleSignTx_RipplePayment_default_instance_; +class RippleSignedTx; +class RippleSignedTxDefaultTypeInternal; +extern RippleSignedTxDefaultTypeInternal _RippleSignedTx_default_instance_; +} // namespace ripple +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::ripple::RippleAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::ripple::RippleAddress>(Arena*); +template<> ::hw::trezor::messages::ripple::RippleGetAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::ripple::RippleGetAddress>(Arena*); +template<> ::hw::trezor::messages::ripple::RippleSignTx* Arena::CreateMaybeMessage<::hw::trezor::messages::ripple::RippleSignTx>(Arena*); +template<> ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment* Arena::CreateMaybeMessage<::hw::trezor::messages::ripple::RippleSignTx_RipplePayment>(Arena*); +template<> ::hw::trezor::messages::ripple::RippleSignedTx* Arena::CreateMaybeMessage<::hw::trezor::messages::ripple::RippleSignedTx>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace ripple { + +// =================================================================== + +class RippleGetAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ripple.RippleGetAddress) */ { + public: + RippleGetAddress(); + virtual ~RippleGetAddress(); + + RippleGetAddress(const RippleGetAddress& from); + + inline RippleGetAddress& operator=(const RippleGetAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RippleGetAddress(RippleGetAddress&& from) noexcept + : RippleGetAddress() { + *this = ::std::move(from); + } + + inline RippleGetAddress& operator=(RippleGetAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RippleGetAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RippleGetAddress* internal_default_instance() { + return reinterpret_cast( + &_RippleGetAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(RippleGetAddress* other); + friend void swap(RippleGetAddress& a, RippleGetAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RippleGetAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + RippleGetAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RippleGetAddress& from); + void MergeFrom(const RippleGetAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RippleGetAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ripple.RippleGetAddress) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dripple_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class RippleAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ripple.RippleAddress) */ { + public: + RippleAddress(); + virtual ~RippleAddress(); + + RippleAddress(const RippleAddress& from); + + inline RippleAddress& operator=(const RippleAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RippleAddress(RippleAddress&& from) noexcept + : RippleAddress() { + *this = ::std::move(from); + } + + inline RippleAddress& operator=(RippleAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RippleAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RippleAddress* internal_default_instance() { + return reinterpret_cast( + &_RippleAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(RippleAddress* other); + friend void swap(RippleAddress& a, RippleAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RippleAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + RippleAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RippleAddress& from); + void MergeFrom(const RippleAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RippleAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ripple.RippleAddress) + private: + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dripple_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class RippleSignTx_RipplePayment : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) */ { + public: + RippleSignTx_RipplePayment(); + virtual ~RippleSignTx_RipplePayment(); + + RippleSignTx_RipplePayment(const RippleSignTx_RipplePayment& from); + + inline RippleSignTx_RipplePayment& operator=(const RippleSignTx_RipplePayment& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RippleSignTx_RipplePayment(RippleSignTx_RipplePayment&& from) noexcept + : RippleSignTx_RipplePayment() { + *this = ::std::move(from); + } + + inline RippleSignTx_RipplePayment& operator=(RippleSignTx_RipplePayment&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RippleSignTx_RipplePayment& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RippleSignTx_RipplePayment* internal_default_instance() { + return reinterpret_cast( + &_RippleSignTx_RipplePayment_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(RippleSignTx_RipplePayment* other); + friend void swap(RippleSignTx_RipplePayment& a, RippleSignTx_RipplePayment& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RippleSignTx_RipplePayment* New() const final { + return CreateMaybeMessage(NULL); + } + + RippleSignTx_RipplePayment* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RippleSignTx_RipplePayment& from); + void MergeFrom(const RippleSignTx_RipplePayment& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RippleSignTx_RipplePayment* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string destination = 2; + bool has_destination() const; + void clear_destination(); + static const int kDestinationFieldNumber = 2; + const ::std::string& destination() const; + void set_destination(const ::std::string& value); + #if LANG_CXX11 + void set_destination(::std::string&& value); + #endif + void set_destination(const char* value); + void set_destination(const char* value, size_t size); + ::std::string* mutable_destination(); + ::std::string* release_destination(); + void set_allocated_destination(::std::string* destination); + + // optional uint64 amount = 1; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 1; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // optional uint32 destination_tag = 3; + bool has_destination_tag() const; + void clear_destination_tag(); + static const int kDestinationTagFieldNumber = 3; + ::google::protobuf::uint32 destination_tag() const; + void set_destination_tag(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ripple.RippleSignTx.RipplePayment) + private: + void set_has_amount(); + void clear_has_amount(); + void set_has_destination(); + void clear_has_destination(); + void set_has_destination_tag(); + void clear_has_destination_tag(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr destination_; + ::google::protobuf::uint64 amount_; + ::google::protobuf::uint32 destination_tag_; + friend struct ::protobuf_messages_2dripple_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class RippleSignTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ripple.RippleSignTx) */ { + public: + RippleSignTx(); + virtual ~RippleSignTx(); + + RippleSignTx(const RippleSignTx& from); + + inline RippleSignTx& operator=(const RippleSignTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RippleSignTx(RippleSignTx&& from) noexcept + : RippleSignTx() { + *this = ::std::move(from); + } + + inline RippleSignTx& operator=(RippleSignTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RippleSignTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RippleSignTx* internal_default_instance() { + return reinterpret_cast( + &_RippleSignTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(RippleSignTx* other); + friend void swap(RippleSignTx& a, RippleSignTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RippleSignTx* New() const final { + return CreateMaybeMessage(NULL); + } + + RippleSignTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RippleSignTx& from); + void MergeFrom(const RippleSignTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RippleSignTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef RippleSignTx_RipplePayment RipplePayment; + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional .hw.trezor.messages.ripple.RippleSignTx.RipplePayment payment = 6; + bool has_payment() const; + void clear_payment(); + static const int kPaymentFieldNumber = 6; + private: + const ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment& _internal_payment() const; + public: + const ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment& payment() const; + ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment* release_payment(); + ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment* mutable_payment(); + void set_allocated_payment(::hw::trezor::messages::ripple::RippleSignTx_RipplePayment* payment); + + // optional uint64 fee = 2; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 2; + ::google::protobuf::uint64 fee() const; + void set_fee(::google::protobuf::uint64 value); + + // optional uint32 flags = 3; + bool has_flags() const; + void clear_flags(); + static const int kFlagsFieldNumber = 3; + ::google::protobuf::uint32 flags() const; + void set_flags(::google::protobuf::uint32 value); + + // optional uint32 sequence = 4; + bool has_sequence() const; + void clear_sequence(); + static const int kSequenceFieldNumber = 4; + ::google::protobuf::uint32 sequence() const; + void set_sequence(::google::protobuf::uint32 value); + + // optional uint32 last_ledger_sequence = 5; + bool has_last_ledger_sequence() const; + void clear_last_ledger_sequence(); + static const int kLastLedgerSequenceFieldNumber = 5; + ::google::protobuf::uint32 last_ledger_sequence() const; + void set_last_ledger_sequence(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ripple.RippleSignTx) + private: + void set_has_fee(); + void clear_has_fee(); + void set_has_flags(); + void clear_has_flags(); + void set_has_sequence(); + void clear_has_sequence(); + void set_has_last_ledger_sequence(); + void clear_has_last_ledger_sequence(); + void set_has_payment(); + void clear_has_payment(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment* payment_; + ::google::protobuf::uint64 fee_; + ::google::protobuf::uint32 flags_; + ::google::protobuf::uint32 sequence_; + ::google::protobuf::uint32 last_ledger_sequence_; + friend struct ::protobuf_messages_2dripple_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class RippleSignedTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.ripple.RippleSignedTx) */ { + public: + RippleSignedTx(); + virtual ~RippleSignedTx(); + + RippleSignedTx(const RippleSignedTx& from); + + inline RippleSignedTx& operator=(const RippleSignedTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RippleSignedTx(RippleSignedTx&& from) noexcept + : RippleSignedTx() { + *this = ::std::move(from); + } + + inline RippleSignedTx& operator=(RippleSignedTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RippleSignedTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RippleSignedTx* internal_default_instance() { + return reinterpret_cast( + &_RippleSignedTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(RippleSignedTx* other); + friend void swap(RippleSignedTx& a, RippleSignedTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RippleSignedTx* New() const final { + return CreateMaybeMessage(NULL); + } + + RippleSignedTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RippleSignedTx& from); + void MergeFrom(const RippleSignedTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RippleSignedTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional bytes serialized_tx = 2; + bool has_serialized_tx() const; + void clear_serialized_tx(); + static const int kSerializedTxFieldNumber = 2; + const ::std::string& serialized_tx() const; + void set_serialized_tx(const ::std::string& value); + #if LANG_CXX11 + void set_serialized_tx(::std::string&& value); + #endif + void set_serialized_tx(const char* value); + void set_serialized_tx(const void* value, size_t size); + ::std::string* mutable_serialized_tx(); + ::std::string* release_serialized_tx(); + void set_allocated_serialized_tx(::std::string* serialized_tx); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.ripple.RippleSignedTx) + private: + void set_has_signature(); + void clear_has_signature(); + void set_has_serialized_tx(); + void clear_has_serialized_tx(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr serialized_tx_; + friend struct ::protobuf_messages_2dripple_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// RippleGetAddress + +// repeated uint32 address_n = 1; +inline int RippleGetAddress::address_n_size() const { + return address_n_.size(); +} +inline void RippleGetAddress::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 RippleGetAddress::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleGetAddress.address_n) + return address_n_.Get(index); +} +inline void RippleGetAddress::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleGetAddress.address_n) +} +inline void RippleGetAddress::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.ripple.RippleGetAddress.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +RippleGetAddress::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.ripple.RippleGetAddress.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +RippleGetAddress::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.ripple.RippleGetAddress.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool RippleGetAddress::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RippleGetAddress::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void RippleGetAddress::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RippleGetAddress::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool RippleGetAddress::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleGetAddress.show_display) + return show_display_; +} +inline void RippleGetAddress::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleGetAddress.show_display) +} + +// ------------------------------------------------------------------- + +// RippleAddress + +// optional string address = 1; +inline bool RippleAddress::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RippleAddress::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void RippleAddress::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RippleAddress::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& RippleAddress::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleAddress.address) + return address_.GetNoArena(); +} +inline void RippleAddress::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleAddress.address) +} +#if LANG_CXX11 +inline void RippleAddress::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ripple.RippleAddress.address) +} +#endif +inline void RippleAddress::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ripple.RippleAddress.address) +} +inline void RippleAddress::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ripple.RippleAddress.address) +} +inline ::std::string* RippleAddress::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ripple.RippleAddress.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RippleAddress::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ripple.RippleAddress.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void RippleAddress::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ripple.RippleAddress.address) +} + +// ------------------------------------------------------------------- + +// RippleSignTx_RipplePayment + +// optional uint64 amount = 1; +inline bool RippleSignTx_RipplePayment::has_amount() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RippleSignTx_RipplePayment::set_has_amount() { + _has_bits_[0] |= 0x00000002u; +} +inline void RippleSignTx_RipplePayment::clear_has_amount() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RippleSignTx_RipplePayment::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 RippleSignTx_RipplePayment::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.amount) + return amount_; +} +inline void RippleSignTx_RipplePayment::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.amount) +} + +// optional string destination = 2; +inline bool RippleSignTx_RipplePayment::has_destination() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RippleSignTx_RipplePayment::set_has_destination() { + _has_bits_[0] |= 0x00000001u; +} +inline void RippleSignTx_RipplePayment::clear_has_destination() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RippleSignTx_RipplePayment::clear_destination() { + destination_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_destination(); +} +inline const ::std::string& RippleSignTx_RipplePayment::destination() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination) + return destination_.GetNoArena(); +} +inline void RippleSignTx_RipplePayment::set_destination(const ::std::string& value) { + set_has_destination(); + destination_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination) +} +#if LANG_CXX11 +inline void RippleSignTx_RipplePayment::set_destination(::std::string&& value) { + set_has_destination(); + destination_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination) +} +#endif +inline void RippleSignTx_RipplePayment::set_destination(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_destination(); + destination_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination) +} +inline void RippleSignTx_RipplePayment::set_destination(const char* value, size_t size) { + set_has_destination(); + destination_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination) +} +inline ::std::string* RippleSignTx_RipplePayment::mutable_destination() { + set_has_destination(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination) + return destination_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RippleSignTx_RipplePayment::release_destination() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination) + if (!has_destination()) { + return NULL; + } + clear_has_destination(); + return destination_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void RippleSignTx_RipplePayment::set_allocated_destination(::std::string* destination) { + if (destination != NULL) { + set_has_destination(); + } else { + clear_has_destination(); + } + destination_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), destination); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination) +} + +// optional uint32 destination_tag = 3; +inline bool RippleSignTx_RipplePayment::has_destination_tag() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RippleSignTx_RipplePayment::set_has_destination_tag() { + _has_bits_[0] |= 0x00000004u; +} +inline void RippleSignTx_RipplePayment::clear_has_destination_tag() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RippleSignTx_RipplePayment::clear_destination_tag() { + destination_tag_ = 0u; + clear_has_destination_tag(); +} +inline ::google::protobuf::uint32 RippleSignTx_RipplePayment::destination_tag() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination_tag) + return destination_tag_; +} +inline void RippleSignTx_RipplePayment::set_destination_tag(::google::protobuf::uint32 value) { + set_has_destination_tag(); + destination_tag_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleSignTx.RipplePayment.destination_tag) +} + +// ------------------------------------------------------------------- + +// RippleSignTx + +// repeated uint32 address_n = 1; +inline int RippleSignTx::address_n_size() const { + return address_n_.size(); +} +inline void RippleSignTx::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 RippleSignTx::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleSignTx.address_n) + return address_n_.Get(index); +} +inline void RippleSignTx::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleSignTx.address_n) +} +inline void RippleSignTx::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.ripple.RippleSignTx.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +RippleSignTx::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.ripple.RippleSignTx.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +RippleSignTx::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.ripple.RippleSignTx.address_n) + return &address_n_; +} + +// optional uint64 fee = 2; +inline bool RippleSignTx::has_fee() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RippleSignTx::set_has_fee() { + _has_bits_[0] |= 0x00000002u; +} +inline void RippleSignTx::clear_has_fee() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RippleSignTx::clear_fee() { + fee_ = GOOGLE_ULONGLONG(0); + clear_has_fee(); +} +inline ::google::protobuf::uint64 RippleSignTx::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleSignTx.fee) + return fee_; +} +inline void RippleSignTx::set_fee(::google::protobuf::uint64 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleSignTx.fee) +} + +// optional uint32 flags = 3; +inline bool RippleSignTx::has_flags() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RippleSignTx::set_has_flags() { + _has_bits_[0] |= 0x00000004u; +} +inline void RippleSignTx::clear_has_flags() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RippleSignTx::clear_flags() { + flags_ = 0u; + clear_has_flags(); +} +inline ::google::protobuf::uint32 RippleSignTx::flags() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleSignTx.flags) + return flags_; +} +inline void RippleSignTx::set_flags(::google::protobuf::uint32 value) { + set_has_flags(); + flags_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleSignTx.flags) +} + +// optional uint32 sequence = 4; +inline bool RippleSignTx::has_sequence() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void RippleSignTx::set_has_sequence() { + _has_bits_[0] |= 0x00000008u; +} +inline void RippleSignTx::clear_has_sequence() { + _has_bits_[0] &= ~0x00000008u; +} +inline void RippleSignTx::clear_sequence() { + sequence_ = 0u; + clear_has_sequence(); +} +inline ::google::protobuf::uint32 RippleSignTx::sequence() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleSignTx.sequence) + return sequence_; +} +inline void RippleSignTx::set_sequence(::google::protobuf::uint32 value) { + set_has_sequence(); + sequence_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleSignTx.sequence) +} + +// optional uint32 last_ledger_sequence = 5; +inline bool RippleSignTx::has_last_ledger_sequence() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void RippleSignTx::set_has_last_ledger_sequence() { + _has_bits_[0] |= 0x00000010u; +} +inline void RippleSignTx::clear_has_last_ledger_sequence() { + _has_bits_[0] &= ~0x00000010u; +} +inline void RippleSignTx::clear_last_ledger_sequence() { + last_ledger_sequence_ = 0u; + clear_has_last_ledger_sequence(); +} +inline ::google::protobuf::uint32 RippleSignTx::last_ledger_sequence() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleSignTx.last_ledger_sequence) + return last_ledger_sequence_; +} +inline void RippleSignTx::set_last_ledger_sequence(::google::protobuf::uint32 value) { + set_has_last_ledger_sequence(); + last_ledger_sequence_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleSignTx.last_ledger_sequence) +} + +// optional .hw.trezor.messages.ripple.RippleSignTx.RipplePayment payment = 6; +inline bool RippleSignTx::has_payment() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RippleSignTx::set_has_payment() { + _has_bits_[0] |= 0x00000001u; +} +inline void RippleSignTx::clear_has_payment() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RippleSignTx::clear_payment() { + if (payment_ != NULL) payment_->Clear(); + clear_has_payment(); +} +inline const ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment& RippleSignTx::_internal_payment() const { + return *payment_; +} +inline const ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment& RippleSignTx::payment() const { + const ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment* p = payment_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleSignTx.payment) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::ripple::_RippleSignTx_RipplePayment_default_instance_); +} +inline ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment* RippleSignTx::release_payment() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ripple.RippleSignTx.payment) + clear_has_payment(); + ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment* temp = payment_; + payment_ = NULL; + return temp; +} +inline ::hw::trezor::messages::ripple::RippleSignTx_RipplePayment* RippleSignTx::mutable_payment() { + set_has_payment(); + if (payment_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::ripple::RippleSignTx_RipplePayment>(GetArenaNoVirtual()); + payment_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ripple.RippleSignTx.payment) + return payment_; +} +inline void RippleSignTx::set_allocated_payment(::hw::trezor::messages::ripple::RippleSignTx_RipplePayment* payment) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete payment_; + } + if (payment) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + payment = ::google::protobuf::internal::GetOwnedMessage( + message_arena, payment, submessage_arena); + } + set_has_payment(); + } else { + clear_has_payment(); + } + payment_ = payment; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ripple.RippleSignTx.payment) +} + +// ------------------------------------------------------------------- + +// RippleSignedTx + +// optional bytes signature = 1; +inline bool RippleSignedTx::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RippleSignedTx::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void RippleSignedTx::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RippleSignedTx::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& RippleSignedTx::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleSignedTx.signature) + return signature_.GetNoArena(); +} +inline void RippleSignedTx::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleSignedTx.signature) +} +#if LANG_CXX11 +inline void RippleSignedTx::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ripple.RippleSignedTx.signature) +} +#endif +inline void RippleSignedTx::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ripple.RippleSignedTx.signature) +} +inline void RippleSignedTx::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ripple.RippleSignedTx.signature) +} +inline ::std::string* RippleSignedTx::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ripple.RippleSignedTx.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RippleSignedTx::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ripple.RippleSignedTx.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void RippleSignedTx::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ripple.RippleSignedTx.signature) +} + +// optional bytes serialized_tx = 2; +inline bool RippleSignedTx::has_serialized_tx() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RippleSignedTx::set_has_serialized_tx() { + _has_bits_[0] |= 0x00000002u; +} +inline void RippleSignedTx::clear_has_serialized_tx() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RippleSignedTx::clear_serialized_tx() { + serialized_tx_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_serialized_tx(); +} +inline const ::std::string& RippleSignedTx::serialized_tx() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.ripple.RippleSignedTx.serialized_tx) + return serialized_tx_.GetNoArena(); +} +inline void RippleSignedTx::set_serialized_tx(const ::std::string& value) { + set_has_serialized_tx(); + serialized_tx_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.ripple.RippleSignedTx.serialized_tx) +} +#if LANG_CXX11 +inline void RippleSignedTx::set_serialized_tx(::std::string&& value) { + set_has_serialized_tx(); + serialized_tx_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.ripple.RippleSignedTx.serialized_tx) +} +#endif +inline void RippleSignedTx::set_serialized_tx(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_serialized_tx(); + serialized_tx_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.ripple.RippleSignedTx.serialized_tx) +} +inline void RippleSignedTx::set_serialized_tx(const void* value, size_t size) { + set_has_serialized_tx(); + serialized_tx_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.ripple.RippleSignedTx.serialized_tx) +} +inline ::std::string* RippleSignedTx::mutable_serialized_tx() { + set_has_serialized_tx(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.ripple.RippleSignedTx.serialized_tx) + return serialized_tx_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RippleSignedTx::release_serialized_tx() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.ripple.RippleSignedTx.serialized_tx) + if (!has_serialized_tx()) { + return NULL; + } + clear_has_serialized_tx(); + return serialized_tx_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void RippleSignedTx::set_allocated_serialized_tx(::std::string* serialized_tx) { + if (serialized_tx != NULL) { + set_has_serialized_tx(); + } else { + clear_has_serialized_tx(); + } + serialized_tx_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serialized_tx); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.ripple.RippleSignedTx.serialized_tx) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace ripple +} // namespace messages +} // namespace trezor +} // namespace hw + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dripple_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-stellar.pb.cc b/src/Core/hardware/trezor/protob/messages-stellar.pb.cc new file mode 100644 index 00000000..b3949a1b --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-stellar.pb.cc @@ -0,0 +1,7736 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-stellar.proto + +#include "messages-stellar.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dstellar_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dstellar_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StellarAssetType; +} // namespace protobuf_messages_2dstellar_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace stellar { +class StellarAssetTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarAssetType_default_instance_; +class StellarGetAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarGetAddress_default_instance_; +class StellarAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarAddress_default_instance_; +class StellarSignTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarSignTx_default_instance_; +class StellarTxOpRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarTxOpRequest_default_instance_; +class StellarPaymentOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarPaymentOp_default_instance_; +class StellarCreateAccountOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarCreateAccountOp_default_instance_; +class StellarPathPaymentOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarPathPaymentOp_default_instance_; +class StellarManageOfferOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarManageOfferOp_default_instance_; +class StellarCreatePassiveOfferOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarCreatePassiveOfferOp_default_instance_; +class StellarSetOptionsOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarSetOptionsOp_default_instance_; +class StellarChangeTrustOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarChangeTrustOp_default_instance_; +class StellarAllowTrustOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarAllowTrustOp_default_instance_; +class StellarAccountMergeOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarAccountMergeOp_default_instance_; +class StellarManageDataOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarManageDataOp_default_instance_; +class StellarBumpSequenceOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarBumpSequenceOp_default_instance_; +class StellarSignedTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StellarSignedTx_default_instance_; +} // namespace stellar +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dstellar_2eproto { +static void InitDefaultsStellarAssetType() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarAssetType_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarAssetType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarAssetType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarAssetType = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarAssetType}, {}}; + +static void InitDefaultsStellarGetAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarGetAddress_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarGetAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarGetAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarGetAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarGetAddress}, {}}; + +static void InitDefaultsStellarAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarAddress_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarAddress}, {}}; + +static void InitDefaultsStellarSignTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarSignTx_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarSignTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarSignTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarSignTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarSignTx}, {}}; + +static void InitDefaultsStellarTxOpRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarTxOpRequest_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarTxOpRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarTxOpRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarTxOpRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarTxOpRequest}, {}}; + +static void InitDefaultsStellarPaymentOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarPaymentOp_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarPaymentOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarPaymentOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_StellarPaymentOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStellarPaymentOp}, { + &protobuf_messages_2dstellar_2eproto::scc_info_StellarAssetType.base,}}; + +static void InitDefaultsStellarCreateAccountOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarCreateAccountOp_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarCreateAccountOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarCreateAccountOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarCreateAccountOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarCreateAccountOp}, {}}; + +static void InitDefaultsStellarPathPaymentOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarPathPaymentOp_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarPathPaymentOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarPathPaymentOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_StellarPathPaymentOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStellarPathPaymentOp}, { + &protobuf_messages_2dstellar_2eproto::scc_info_StellarAssetType.base,}}; + +static void InitDefaultsStellarManageOfferOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarManageOfferOp_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarManageOfferOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarManageOfferOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_StellarManageOfferOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStellarManageOfferOp}, { + &protobuf_messages_2dstellar_2eproto::scc_info_StellarAssetType.base,}}; + +static void InitDefaultsStellarCreatePassiveOfferOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarCreatePassiveOfferOp_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_StellarCreatePassiveOfferOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStellarCreatePassiveOfferOp}, { + &protobuf_messages_2dstellar_2eproto::scc_info_StellarAssetType.base,}}; + +static void InitDefaultsStellarSetOptionsOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarSetOptionsOp_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarSetOptionsOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarSetOptionsOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarSetOptionsOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarSetOptionsOp}, {}}; + +static void InitDefaultsStellarChangeTrustOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarChangeTrustOp_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarChangeTrustOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarChangeTrustOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_StellarChangeTrustOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStellarChangeTrustOp}, { + &protobuf_messages_2dstellar_2eproto::scc_info_StellarAssetType.base,}}; + +static void InitDefaultsStellarAllowTrustOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarAllowTrustOp_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarAllowTrustOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarAllowTrustOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarAllowTrustOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarAllowTrustOp}, {}}; + +static void InitDefaultsStellarAccountMergeOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarAccountMergeOp_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarAccountMergeOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarAccountMergeOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarAccountMergeOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarAccountMergeOp}, {}}; + +static void InitDefaultsStellarManageDataOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarManageDataOp_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarManageDataOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarManageDataOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarManageDataOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarManageDataOp}, {}}; + +static void InitDefaultsStellarBumpSequenceOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarBumpSequenceOp_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarBumpSequenceOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarBumpSequenceOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarBumpSequenceOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarBumpSequenceOp}, {}}; + +static void InitDefaultsStellarSignedTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::stellar::_StellarSignedTx_default_instance_; + new (ptr) ::hw::trezor::messages::stellar::StellarSignedTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::stellar::StellarSignedTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StellarSignedTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStellarSignedTx}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_StellarAssetType.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarGetAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarSignTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarTxOpRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarPaymentOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarCreateAccountOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarPathPaymentOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarManageOfferOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarCreatePassiveOfferOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarSetOptionsOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarChangeTrustOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarAllowTrustOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarAccountMergeOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarManageDataOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarBumpSequenceOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_StellarSignedTx.base); +} + +::google::protobuf::Metadata file_level_metadata[17]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAssetType, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAssetType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAssetType, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAssetType, code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAssetType, issuer_), + 2, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarGetAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarGetAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarGetAddress, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarGetAddress, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAddress, address_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, network_passphrase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, fee_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, sequence_number_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, timebounds_start_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, timebounds_end_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, memo_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, memo_text_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, memo_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, memo_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignTx, num_operations_), + ~0u, + 0, + 1, + 5, + 4, + 6, + 7, + 8, + 2, + 9, + 3, + 10, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarTxOpRequest, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarTxOpRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPaymentOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPaymentOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPaymentOp, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPaymentOp, destination_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPaymentOp, asset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPaymentOp, amount_), + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreateAccountOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreateAccountOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreateAccountOp, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreateAccountOp, new_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreateAccountOp, starting_balance_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPathPaymentOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPathPaymentOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPathPaymentOp, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPathPaymentOp, send_asset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPathPaymentOp, send_max_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPathPaymentOp, destination_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPathPaymentOp, destination_asset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPathPaymentOp, destination_amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarPathPaymentOp, paths_), + 0, + 2, + 4, + 1, + 3, + 5, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageOfferOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageOfferOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageOfferOp, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageOfferOp, selling_asset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageOfferOp, buying_asset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageOfferOp, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageOfferOp, price_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageOfferOp, price_d_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageOfferOp, offer_id_), + 0, + 1, + 2, + 3, + 4, + 5, + 6, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp, selling_asset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp, buying_asset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp, price_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp, price_d_), + 0, + 1, + 2, + 3, + 4, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, inflation_destination_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, clear_flags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, set_flags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, master_weight_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, low_threshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, medium_threshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, high_threshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, home_domain_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, signer_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, signer_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSetOptionsOp, signer_weight_), + 0, + 1, + 4, + 5, + 6, + 7, + 8, + 9, + 2, + 10, + 3, + 11, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarChangeTrustOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarChangeTrustOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarChangeTrustOp, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarChangeTrustOp, asset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarChangeTrustOp, limit_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAllowTrustOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAllowTrustOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAllowTrustOp, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAllowTrustOp, trusted_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAllowTrustOp, asset_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAllowTrustOp, asset_code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAllowTrustOp, is_authorized_), + 0, + 1, + 3, + 2, + 4, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAccountMergeOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAccountMergeOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAccountMergeOp, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarAccountMergeOp, destination_account_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageDataOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageDataOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageDataOp, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageDataOp, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarManageDataOp, value_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarBumpSequenceOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarBumpSequenceOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarBumpSequenceOp, source_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarBumpSequenceOp, bump_to_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignedTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignedTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignedTx, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::stellar::StellarSignedTx, signature_), + 0, + 1, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, sizeof(::hw::trezor::messages::stellar::StellarAssetType)}, + { 11, 18, sizeof(::hw::trezor::messages::stellar::StellarGetAddress)}, + { 20, 26, sizeof(::hw::trezor::messages::stellar::StellarAddress)}, + { 27, 44, sizeof(::hw::trezor::messages::stellar::StellarSignTx)}, + { 56, 61, sizeof(::hw::trezor::messages::stellar::StellarTxOpRequest)}, + { 61, 70, sizeof(::hw::trezor::messages::stellar::StellarPaymentOp)}, + { 74, 82, sizeof(::hw::trezor::messages::stellar::StellarCreateAccountOp)}, + { 85, 97, sizeof(::hw::trezor::messages::stellar::StellarPathPaymentOp)}, + { 104, 116, sizeof(::hw::trezor::messages::stellar::StellarManageOfferOp)}, + { 123, 134, sizeof(::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp)}, + { 140, 157, sizeof(::hw::trezor::messages::stellar::StellarSetOptionsOp)}, + { 169, 177, sizeof(::hw::trezor::messages::stellar::StellarChangeTrustOp)}, + { 180, 190, sizeof(::hw::trezor::messages::stellar::StellarAllowTrustOp)}, + { 195, 202, sizeof(::hw::trezor::messages::stellar::StellarAccountMergeOp)}, + { 204, 212, sizeof(::hw::trezor::messages::stellar::StellarManageDataOp)}, + { 215, 222, sizeof(::hw::trezor::messages::stellar::StellarBumpSequenceOp)}, + { 224, 231, sizeof(::hw::trezor::messages::stellar::StellarSignedTx)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarAssetType_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarGetAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarSignTx_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarTxOpRequest_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarPaymentOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarCreateAccountOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarPathPaymentOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarManageOfferOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarCreatePassiveOfferOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarSetOptionsOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarChangeTrustOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarAllowTrustOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarAccountMergeOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarManageDataOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarBumpSequenceOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::stellar::_StellarSignedTx_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-stellar.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 17); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\026messages-stellar.proto\022\032hw.trezor.mess" + "ages.stellar\">\n\020StellarAssetType\022\014\n\004type" + "\030\001 \001(\r\022\014\n\004code\030\002 \001(\t\022\016\n\006issuer\030\003 \001(\t\"<\n\021" + "StellarGetAddress\022\021\n\taddress_n\030\001 \003(\r\022\024\n\014" + "show_display\030\002 \001(\010\"!\n\016StellarAddress\022\017\n\007" + "address\030\001 \001(\t\"\220\002\n\rStellarSignTx\022\021\n\taddre" + "ss_n\030\002 \003(\r\022\032\n\022network_passphrase\030\003 \001(\t\022\026" + "\n\016source_account\030\004 \001(\t\022\013\n\003fee\030\005 \001(\r\022\027\n\017s" + "equence_number\030\006 \001(\004\022\030\n\020timebounds_start" + "\030\010 \001(\r\022\026\n\016timebounds_end\030\t \001(\r\022\021\n\tmemo_t" + "ype\030\n \001(\r\022\021\n\tmemo_text\030\013 \001(\t\022\017\n\007memo_id\030" + "\014 \001(\004\022\021\n\tmemo_hash\030\r \001(\014\022\026\n\016num_operatio" + "ns\030\016 \001(\r\"\024\n\022StellarTxOpRequest\"\224\001\n\020Stell" + "arPaymentOp\022\026\n\016source_account\030\001 \001(\t\022\033\n\023d" + "estination_account\030\002 \001(\t\022;\n\005asset\030\003 \001(\0132" + ",.hw.trezor.messages.stellar.StellarAsse" + "tType\022\016\n\006amount\030\004 \001(\022\"_\n\026StellarCreateAc" + "countOp\022\026\n\016source_account\030\001 \001(\t\022\023\n\013new_a" + "ccount\030\002 \001(\t\022\030\n\020starting_balance\030\003 \001(\022\"\301" + "\002\n\024StellarPathPaymentOp\022\026\n\016source_accoun" + "t\030\001 \001(\t\022@\n\nsend_asset\030\002 \001(\0132,.hw.trezor." + "messages.stellar.StellarAssetType\022\020\n\010sen" + "d_max\030\003 \001(\022\022\033\n\023destination_account\030\004 \001(\t" + "\022G\n\021destination_asset\030\005 \001(\0132,.hw.trezor." + "messages.stellar.StellarAssetType\022\032\n\022des" + "tination_amount\030\006 \001(\022\022;\n\005paths\030\007 \003(\0132,.h" + "w.trezor.messages.stellar.StellarAssetTy" + "pe\"\373\001\n\024StellarManageOfferOp\022\026\n\016source_ac" + "count\030\001 \001(\t\022C\n\rselling_asset\030\002 \001(\0132,.hw." + "trezor.messages.stellar.StellarAssetType" + "\022B\n\014buying_asset\030\003 \001(\0132,.hw.trezor.messa" + "ges.stellar.StellarAssetType\022\016\n\006amount\030\004" + " \001(\022\022\017\n\007price_n\030\005 \001(\r\022\017\n\007price_d\030\006 \001(\r\022\020" + "\n\010offer_id\030\007 \001(\004\"\360\001\n\033StellarCreatePassiv" + "eOfferOp\022\026\n\016source_account\030\001 \001(\t\022C\n\rsell" + "ing_asset\030\002 \001(\0132,.hw.trezor.messages.ste" + "llar.StellarAssetType\022B\n\014buying_asset\030\003 " + "\001(\0132,.hw.trezor.messages.stellar.Stellar" + "AssetType\022\016\n\006amount\030\004 \001(\022\022\017\n\007price_n\030\005 \001" + "(\r\022\017\n\007price_d\030\006 \001(\r\"\261\002\n\023StellarSetOption" + "sOp\022\026\n\016source_account\030\001 \001(\t\022%\n\035inflation" + "_destination_account\030\002 \001(\t\022\023\n\013clear_flag" + "s\030\003 \001(\r\022\021\n\tset_flags\030\004 \001(\r\022\025\n\rmaster_wei" + "ght\030\005 \001(\r\022\025\n\rlow_threshold\030\006 \001(\r\022\030\n\020medi" + "um_threshold\030\007 \001(\r\022\026\n\016high_threshold\030\010 \001" + "(\r\022\023\n\013home_domain\030\t \001(\t\022\023\n\013signer_type\030\n" + " \001(\r\022\022\n\nsigner_key\030\013 \001(\014\022\025\n\rsigner_weigh" + "t\030\014 \001(\r\"z\n\024StellarChangeTrustOp\022\026\n\016sourc" + "e_account\030\001 \001(\t\022;\n\005asset\030\002 \001(\0132,.hw.trez" + "or.messages.stellar.StellarAssetType\022\r\n\005" + "limit\030\003 \001(\004\"\205\001\n\023StellarAllowTrustOp\022\026\n\016s" + "ource_account\030\001 \001(\t\022\027\n\017trusted_account\030\002" + " \001(\t\022\022\n\nasset_type\030\003 \001(\r\022\022\n\nasset_code\030\004" + " \001(\t\022\025\n\ris_authorized\030\005 \001(\r\"L\n\025StellarAc" + "countMergeOp\022\026\n\016source_account\030\001 \001(\t\022\033\n\023" + "destination_account\030\002 \001(\t\"I\n\023StellarMana" + "geDataOp\022\026\n\016source_account\030\001 \001(\t\022\013\n\003key\030" + "\002 \001(\t\022\r\n\005value\030\003 \001(\014\"@\n\025StellarBumpSeque" + "nceOp\022\026\n\016source_account\030\001 \001(\t\022\017\n\007bump_to" + "\030\002 \001(\004\"8\n\017StellarSignedTx\022\022\n\npublic_key\030" + "\001 \001(\014\022\021\n\tsignature\030\002 \001(\014B;\n#com.satoshil" + "abs.trezor.lib.protobufB\024TrezorMessageSt" + "ellar" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 2485); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-stellar.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dstellar_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace stellar { + +// =================================================================== + +void StellarAssetType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarAssetType::kTypeFieldNumber; +const int StellarAssetType::kCodeFieldNumber; +const int StellarAssetType::kIssuerFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarAssetType::StellarAssetType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarAssetType.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarAssetType) +} +StellarAssetType::StellarAssetType(const StellarAssetType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_code()) { + code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); + } + issuer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_issuer()) { + issuer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.issuer_); + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarAssetType) +} + +void StellarAssetType::SharedCtor() { + code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + issuer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0u; +} + +StellarAssetType::~StellarAssetType() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarAssetType) + SharedDtor(); +} + +void StellarAssetType::SharedDtor() { + code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + issuer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StellarAssetType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarAssetType::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarAssetType& StellarAssetType::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarAssetType.base); + return *internal_default_instance(); +} + + +void StellarAssetType::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarAssetType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + code_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + issuer_.ClearNonDefaultToEmptyNoArena(); + } + } + type_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarAssetType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarAssetType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string code = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_code())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarAssetType.code"); + } else { + goto handle_unusual; + } + break; + } + + // optional string issuer = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_issuer())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->issuer().data(), static_cast(this->issuer().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarAssetType.issuer"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarAssetType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarAssetType) + return false; +#undef DO_ +} + +void StellarAssetType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarAssetType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 type = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output); + } + + // optional string code = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAssetType.code"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->code(), output); + } + + // optional string issuer = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->issuer().data(), static_cast(this->issuer().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAssetType.issuer"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->issuer(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarAssetType) +} + +::google::protobuf::uint8* StellarAssetType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarAssetType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 type = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target); + } + + // optional string code = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAssetType.code"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->code(), target); + } + + // optional string issuer = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->issuer().data(), static_cast(this->issuer().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAssetType.issuer"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->issuer(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarAssetType) + return target; +} + +size_t StellarAssetType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarAssetType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string code = 2; + if (has_code()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->code()); + } + + // optional string issuer = 3; + if (has_issuer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->issuer()); + } + + // optional uint32 type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarAssetType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarAssetType) + GOOGLE_DCHECK_NE(&from, this); + const StellarAssetType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarAssetType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarAssetType) + MergeFrom(*source); + } +} + +void StellarAssetType::MergeFrom(const StellarAssetType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarAssetType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_code(); + code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); + } + if (cached_has_bits & 0x00000002u) { + set_has_issuer(); + issuer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.issuer_); + } + if (cached_has_bits & 0x00000004u) { + type_ = from.type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StellarAssetType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarAssetType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarAssetType::CopyFrom(const StellarAssetType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarAssetType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarAssetType::IsInitialized() const { + return true; +} + +void StellarAssetType::Swap(StellarAssetType* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarAssetType::InternalSwap(StellarAssetType* other) { + using std::swap; + code_.Swap(&other->code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + issuer_.Swap(&other->issuer_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarAssetType::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarGetAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarGetAddress::kAddressNFieldNumber; +const int StellarGetAddress::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarGetAddress::StellarGetAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarGetAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarGetAddress) +} +StellarGetAddress::StellarGetAddress(const StellarGetAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarGetAddress) +} + +void StellarGetAddress::SharedCtor() { + show_display_ = false; +} + +StellarGetAddress::~StellarGetAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarGetAddress) + SharedDtor(); +} + +void StellarGetAddress::SharedDtor() { +} + +void StellarGetAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarGetAddress::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarGetAddress& StellarGetAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarGetAddress.base); + return *internal_default_instance(); +} + + +void StellarGetAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarGetAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarGetAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarGetAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarGetAddress) + return false; +#undef DO_ +} + +void StellarGetAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarGetAddress) +} + +::google::protobuf::uint8* StellarGetAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarGetAddress) + return target; +} + +size_t StellarGetAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarGetAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarGetAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarGetAddress) + GOOGLE_DCHECK_NE(&from, this); + const StellarGetAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarGetAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarGetAddress) + MergeFrom(*source); + } +} + +void StellarGetAddress::MergeFrom(const StellarGetAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarGetAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void StellarGetAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarGetAddress::CopyFrom(const StellarGetAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarGetAddress::IsInitialized() const { + return true; +} + +void StellarGetAddress::Swap(StellarGetAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarGetAddress::InternalSwap(StellarGetAddress* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarGetAddress::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarAddress::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarAddress::StellarAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarAddress) +} +StellarAddress::StellarAddress(const StellarAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarAddress) +} + +void StellarAddress::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +StellarAddress::~StellarAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarAddress) + SharedDtor(); +} + +void StellarAddress::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StellarAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarAddress::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarAddress& StellarAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarAddress.base); + return *internal_default_instance(); +} + + +void StellarAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarAddress.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarAddress) + return false; +#undef DO_ +} + +void StellarAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAddress.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarAddress) +} + +::google::protobuf::uint8* StellarAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAddress.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarAddress) + return target; +} + +size_t StellarAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarAddress) + GOOGLE_DCHECK_NE(&from, this); + const StellarAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarAddress) + MergeFrom(*source); + } +} + +void StellarAddress::MergeFrom(const StellarAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_address()) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } +} + +void StellarAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarAddress::CopyFrom(const StellarAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarAddress::IsInitialized() const { + return true; +} + +void StellarAddress::Swap(StellarAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarAddress::InternalSwap(StellarAddress* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarAddress::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarSignTx::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarSignTx::kAddressNFieldNumber; +const int StellarSignTx::kNetworkPassphraseFieldNumber; +const int StellarSignTx::kSourceAccountFieldNumber; +const int StellarSignTx::kFeeFieldNumber; +const int StellarSignTx::kSequenceNumberFieldNumber; +const int StellarSignTx::kTimeboundsStartFieldNumber; +const int StellarSignTx::kTimeboundsEndFieldNumber; +const int StellarSignTx::kMemoTypeFieldNumber; +const int StellarSignTx::kMemoTextFieldNumber; +const int StellarSignTx::kMemoIdFieldNumber; +const int StellarSignTx::kMemoHashFieldNumber; +const int StellarSignTx::kNumOperationsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarSignTx::StellarSignTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarSignTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarSignTx) +} +StellarSignTx::StellarSignTx(const StellarSignTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + network_passphrase_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_network_passphrase()) { + network_passphrase_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.network_passphrase_); + } + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + memo_text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_memo_text()) { + memo_text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memo_text_); + } + memo_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_memo_hash()) { + memo_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memo_hash_); + } + ::memcpy(&sequence_number_, &from.sequence_number_, + static_cast(reinterpret_cast(&num_operations_) - + reinterpret_cast(&sequence_number_)) + sizeof(num_operations_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarSignTx) +} + +void StellarSignTx::SharedCtor() { + network_passphrase_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + memo_text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + memo_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&sequence_number_, 0, static_cast( + reinterpret_cast(&num_operations_) - + reinterpret_cast(&sequence_number_)) + sizeof(num_operations_)); +} + +StellarSignTx::~StellarSignTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarSignTx) + SharedDtor(); +} + +void StellarSignTx::SharedDtor() { + network_passphrase_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + memo_text_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + memo_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StellarSignTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarSignTx::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarSignTx& StellarSignTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarSignTx.base); + return *internal_default_instance(); +} + + +void StellarSignTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + network_passphrase_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + memo_text_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + memo_hash_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 240u) { + ::memset(&sequence_number_, 0, static_cast( + reinterpret_cast(&timebounds_end_) - + reinterpret_cast(&sequence_number_)) + sizeof(timebounds_end_)); + } + if (cached_has_bits & 1792u) { + ::memset(&memo_type_, 0, static_cast( + reinterpret_cast(&num_operations_) - + reinterpret_cast(&memo_type_)) + sizeof(num_operations_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarSignTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarSignTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 16u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional string network_passphrase = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_network_passphrase())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->network_passphrase().data(), static_cast(this->network_passphrase().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarSignTx.network_passphrase"); + } else { + goto handle_unusual; + } + break; + } + + // optional string source_account = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarSignTx.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 fee = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 sequence_number = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_sequence_number(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &sequence_number_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 timebounds_start = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_timebounds_start(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &timebounds_start_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 timebounds_end = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_timebounds_end(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &timebounds_end_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 memo_type = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_memo_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &memo_type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string memo_text = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_memo_text())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->memo_text().data(), static_cast(this->memo_text().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarSignTx.memo_text"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 memo_id = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { + set_has_memo_id(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &memo_id_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes memo_hash = 13; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_memo_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 num_operations = 14; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { + set_has_num_operations(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &num_operations_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarSignTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarSignTx) + return false; +#undef DO_ +} + +void StellarSignTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 2; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 2, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional string network_passphrase = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->network_passphrase().data(), static_cast(this->network_passphrase().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSignTx.network_passphrase"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->network_passphrase(), output); + } + + // optional string source_account = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSignTx.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->source_account(), output); + } + + // optional uint32 fee = 5; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->fee(), output); + } + + // optional uint64 sequence_number = 6; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->sequence_number(), output); + } + + // optional uint32 timebounds_start = 8; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->timebounds_start(), output); + } + + // optional uint32 timebounds_end = 9; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->timebounds_end(), output); + } + + // optional uint32 memo_type = 10; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->memo_type(), output); + } + + // optional string memo_text = 11; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->memo_text().data(), static_cast(this->memo_text().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSignTx.memo_text"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 11, this->memo_text(), output); + } + + // optional uint64 memo_id = 12; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->memo_id(), output); + } + + // optional bytes memo_hash = 13; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 13, this->memo_hash(), output); + } + + // optional uint32 num_operations = 14; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->num_operations(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarSignTx) +} + +::google::protobuf::uint8* StellarSignTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 2; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(2, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional string network_passphrase = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->network_passphrase().data(), static_cast(this->network_passphrase().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSignTx.network_passphrase"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->network_passphrase(), target); + } + + // optional string source_account = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSignTx.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->source_account(), target); + } + + // optional uint32 fee = 5; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->fee(), target); + } + + // optional uint64 sequence_number = 6; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->sequence_number(), target); + } + + // optional uint32 timebounds_start = 8; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->timebounds_start(), target); + } + + // optional uint32 timebounds_end = 9; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->timebounds_end(), target); + } + + // optional uint32 memo_type = 10; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->memo_type(), target); + } + + // optional string memo_text = 11; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->memo_text().data(), static_cast(this->memo_text().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSignTx.memo_text"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 11, this->memo_text(), target); + } + + // optional uint64 memo_id = 12; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->memo_id(), target); + } + + // optional bytes memo_hash = 13; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 13, this->memo_hash(), target); + } + + // optional uint32 num_operations = 14; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->num_operations(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarSignTx) + return target; +} + +size_t StellarSignTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarSignTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 2; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 255u) { + // optional string network_passphrase = 3; + if (has_network_passphrase()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->network_passphrase()); + } + + // optional string source_account = 4; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional string memo_text = 11; + if (has_memo_text()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->memo_text()); + } + + // optional bytes memo_hash = 13; + if (has_memo_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->memo_hash()); + } + + // optional uint64 sequence_number = 6; + if (has_sequence_number()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->sequence_number()); + } + + // optional uint32 fee = 5; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->fee()); + } + + // optional uint32 timebounds_start = 8; + if (has_timebounds_start()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->timebounds_start()); + } + + // optional uint32 timebounds_end = 9; + if (has_timebounds_end()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->timebounds_end()); + } + + } + if (_has_bits_[8 / 32] & 1792u) { + // optional uint32 memo_type = 10; + if (has_memo_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->memo_type()); + } + + // optional uint64 memo_id = 12; + if (has_memo_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->memo_id()); + } + + // optional uint32 num_operations = 14; + if (has_num_operations()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num_operations()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarSignTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarSignTx) + GOOGLE_DCHECK_NE(&from, this); + const StellarSignTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarSignTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarSignTx) + MergeFrom(*source); + } +} + +void StellarSignTx::MergeFrom(const StellarSignTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarSignTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_network_passphrase(); + network_passphrase_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.network_passphrase_); + } + if (cached_has_bits & 0x00000002u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000004u) { + set_has_memo_text(); + memo_text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memo_text_); + } + if (cached_has_bits & 0x00000008u) { + set_has_memo_hash(); + memo_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memo_hash_); + } + if (cached_has_bits & 0x00000010u) { + sequence_number_ = from.sequence_number_; + } + if (cached_has_bits & 0x00000020u) { + fee_ = from.fee_; + } + if (cached_has_bits & 0x00000040u) { + timebounds_start_ = from.timebounds_start_; + } + if (cached_has_bits & 0x00000080u) { + timebounds_end_ = from.timebounds_end_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 1792u) { + if (cached_has_bits & 0x00000100u) { + memo_type_ = from.memo_type_; + } + if (cached_has_bits & 0x00000200u) { + memo_id_ = from.memo_id_; + } + if (cached_has_bits & 0x00000400u) { + num_operations_ = from.num_operations_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StellarSignTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarSignTx::CopyFrom(const StellarSignTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarSignTx::IsInitialized() const { + return true; +} + +void StellarSignTx::Swap(StellarSignTx* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarSignTx::InternalSwap(StellarSignTx* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + network_passphrase_.Swap(&other->network_passphrase_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + memo_text_.Swap(&other->memo_text_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + memo_hash_.Swap(&other->memo_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(sequence_number_, other->sequence_number_); + swap(fee_, other->fee_); + swap(timebounds_start_, other->timebounds_start_); + swap(timebounds_end_, other->timebounds_end_); + swap(memo_type_, other->memo_type_); + swap(memo_id_, other->memo_id_); + swap(num_operations_, other->num_operations_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarSignTx::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarTxOpRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarTxOpRequest::StellarTxOpRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarTxOpRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarTxOpRequest) +} +StellarTxOpRequest::StellarTxOpRequest(const StellarTxOpRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarTxOpRequest) +} + +void StellarTxOpRequest::SharedCtor() { +} + +StellarTxOpRequest::~StellarTxOpRequest() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarTxOpRequest) + SharedDtor(); +} + +void StellarTxOpRequest::SharedDtor() { +} + +void StellarTxOpRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarTxOpRequest::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarTxOpRequest& StellarTxOpRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarTxOpRequest.base); + return *internal_default_instance(); +} + + +void StellarTxOpRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarTxOpRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarTxOpRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarTxOpRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarTxOpRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarTxOpRequest) + return false; +#undef DO_ +} + +void StellarTxOpRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarTxOpRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarTxOpRequest) +} + +::google::protobuf::uint8* StellarTxOpRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarTxOpRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarTxOpRequest) + return target; +} + +size_t StellarTxOpRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarTxOpRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarTxOpRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarTxOpRequest) + GOOGLE_DCHECK_NE(&from, this); + const StellarTxOpRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarTxOpRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarTxOpRequest) + MergeFrom(*source); + } +} + +void StellarTxOpRequest::MergeFrom(const StellarTxOpRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarTxOpRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void StellarTxOpRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarTxOpRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarTxOpRequest::CopyFrom(const StellarTxOpRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarTxOpRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarTxOpRequest::IsInitialized() const { + return true; +} + +void StellarTxOpRequest::Swap(StellarTxOpRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarTxOpRequest::InternalSwap(StellarTxOpRequest* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarTxOpRequest::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarPaymentOp::InitAsDefaultInstance() { + ::hw::trezor::messages::stellar::_StellarPaymentOp_default_instance_._instance.get_mutable()->asset_ = const_cast< ::hw::trezor::messages::stellar::StellarAssetType*>( + ::hw::trezor::messages::stellar::StellarAssetType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarPaymentOp::kSourceAccountFieldNumber; +const int StellarPaymentOp::kDestinationAccountFieldNumber; +const int StellarPaymentOp::kAssetFieldNumber; +const int StellarPaymentOp::kAmountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarPaymentOp::StellarPaymentOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarPaymentOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarPaymentOp) +} +StellarPaymentOp::StellarPaymentOp(const StellarPaymentOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + destination_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_destination_account()) { + destination_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.destination_account_); + } + if (from.has_asset()) { + asset_ = new ::hw::trezor::messages::stellar::StellarAssetType(*from.asset_); + } else { + asset_ = NULL; + } + amount_ = from.amount_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarPaymentOp) +} + +void StellarPaymentOp::SharedCtor() { + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + destination_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&asset_, 0, static_cast( + reinterpret_cast(&amount_) - + reinterpret_cast(&asset_)) + sizeof(amount_)); +} + +StellarPaymentOp::~StellarPaymentOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarPaymentOp) + SharedDtor(); +} + +void StellarPaymentOp::SharedDtor() { + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + destination_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete asset_; +} + +void StellarPaymentOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarPaymentOp::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarPaymentOp& StellarPaymentOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarPaymentOp.base); + return *internal_default_instance(); +} + + +void StellarPaymentOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarPaymentOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + destination_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(asset_ != NULL); + asset_->Clear(); + } + } + amount_ = GOOGLE_LONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarPaymentOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarPaymentOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source_account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarPaymentOp.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional string destination_account = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_destination_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination_account().data(), static_cast(this->destination_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarPaymentOp.destination_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.stellar.StellarAssetType asset = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_asset())); + } else { + goto handle_unusual; + } + break; + } + + // optional sint64 amount = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarPaymentOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarPaymentOp) + return false; +#undef DO_ +} + +void StellarPaymentOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarPaymentOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarPaymentOp.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source_account(), output); + } + + // optional string destination_account = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination_account().data(), static_cast(this->destination_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarPaymentOp.destination_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->destination_account(), output); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType asset = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_asset(), output); + } + + // optional sint64 amount = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteSInt64(4, this->amount(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarPaymentOp) +} + +::google::protobuf::uint8* StellarPaymentOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarPaymentOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarPaymentOp.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source_account(), target); + } + + // optional string destination_account = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination_account().data(), static_cast(this->destination_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarPaymentOp.destination_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->destination_account(), target); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType asset = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_asset(), deterministic, target); + } + + // optional sint64 amount = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(4, this->amount(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarPaymentOp) + return target; +} + +size_t StellarPaymentOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarPaymentOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional string source_account = 1; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional string destination_account = 2; + if (has_destination_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->destination_account()); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType asset = 3; + if (has_asset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *asset_); + } + + // optional sint64 amount = 4; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::SInt64Size( + this->amount()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarPaymentOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarPaymentOp) + GOOGLE_DCHECK_NE(&from, this); + const StellarPaymentOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarPaymentOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarPaymentOp) + MergeFrom(*source); + } +} + +void StellarPaymentOp::MergeFrom(const StellarPaymentOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarPaymentOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000002u) { + set_has_destination_account(); + destination_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.destination_account_); + } + if (cached_has_bits & 0x00000004u) { + mutable_asset()->::hw::trezor::messages::stellar::StellarAssetType::MergeFrom(from.asset()); + } + if (cached_has_bits & 0x00000008u) { + amount_ = from.amount_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StellarPaymentOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarPaymentOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarPaymentOp::CopyFrom(const StellarPaymentOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarPaymentOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarPaymentOp::IsInitialized() const { + return true; +} + +void StellarPaymentOp::Swap(StellarPaymentOp* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarPaymentOp::InternalSwap(StellarPaymentOp* other) { + using std::swap; + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + destination_account_.Swap(&other->destination_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(asset_, other->asset_); + swap(amount_, other->amount_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarPaymentOp::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarCreateAccountOp::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarCreateAccountOp::kSourceAccountFieldNumber; +const int StellarCreateAccountOp::kNewAccountFieldNumber; +const int StellarCreateAccountOp::kStartingBalanceFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarCreateAccountOp::StellarCreateAccountOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarCreateAccountOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarCreateAccountOp) +} +StellarCreateAccountOp::StellarCreateAccountOp(const StellarCreateAccountOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + new_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_new_account()) { + new_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_account_); + } + starting_balance_ = from.starting_balance_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarCreateAccountOp) +} + +void StellarCreateAccountOp::SharedCtor() { + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + new_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + starting_balance_ = GOOGLE_LONGLONG(0); +} + +StellarCreateAccountOp::~StellarCreateAccountOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarCreateAccountOp) + SharedDtor(); +} + +void StellarCreateAccountOp::SharedDtor() { + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + new_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StellarCreateAccountOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarCreateAccountOp::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarCreateAccountOp& StellarCreateAccountOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarCreateAccountOp.base); + return *internal_default_instance(); +} + + +void StellarCreateAccountOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarCreateAccountOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + new_account_.ClearNonDefaultToEmptyNoArena(); + } + } + starting_balance_ = GOOGLE_LONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarCreateAccountOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarCreateAccountOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source_account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarCreateAccountOp.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional string new_account = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_new_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->new_account().data(), static_cast(this->new_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarCreateAccountOp.new_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional sint64 starting_balance = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_starting_balance(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( + input, &starting_balance_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarCreateAccountOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarCreateAccountOp) + return false; +#undef DO_ +} + +void StellarCreateAccountOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarCreateAccountOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarCreateAccountOp.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source_account(), output); + } + + // optional string new_account = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->new_account().data(), static_cast(this->new_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarCreateAccountOp.new_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->new_account(), output); + } + + // optional sint64 starting_balance = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteSInt64(3, this->starting_balance(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarCreateAccountOp) +} + +::google::protobuf::uint8* StellarCreateAccountOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarCreateAccountOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarCreateAccountOp.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source_account(), target); + } + + // optional string new_account = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->new_account().data(), static_cast(this->new_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarCreateAccountOp.new_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->new_account(), target); + } + + // optional sint64 starting_balance = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(3, this->starting_balance(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarCreateAccountOp) + return target; +} + +size_t StellarCreateAccountOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarCreateAccountOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string source_account = 1; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional string new_account = 2; + if (has_new_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->new_account()); + } + + // optional sint64 starting_balance = 3; + if (has_starting_balance()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::SInt64Size( + this->starting_balance()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarCreateAccountOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarCreateAccountOp) + GOOGLE_DCHECK_NE(&from, this); + const StellarCreateAccountOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarCreateAccountOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarCreateAccountOp) + MergeFrom(*source); + } +} + +void StellarCreateAccountOp::MergeFrom(const StellarCreateAccountOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarCreateAccountOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000002u) { + set_has_new_account(); + new_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_account_); + } + if (cached_has_bits & 0x00000004u) { + starting_balance_ = from.starting_balance_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StellarCreateAccountOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarCreateAccountOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarCreateAccountOp::CopyFrom(const StellarCreateAccountOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarCreateAccountOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarCreateAccountOp::IsInitialized() const { + return true; +} + +void StellarCreateAccountOp::Swap(StellarCreateAccountOp* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarCreateAccountOp::InternalSwap(StellarCreateAccountOp* other) { + using std::swap; + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + new_account_.Swap(&other->new_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(starting_balance_, other->starting_balance_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarCreateAccountOp::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarPathPaymentOp::InitAsDefaultInstance() { + ::hw::trezor::messages::stellar::_StellarPathPaymentOp_default_instance_._instance.get_mutable()->send_asset_ = const_cast< ::hw::trezor::messages::stellar::StellarAssetType*>( + ::hw::trezor::messages::stellar::StellarAssetType::internal_default_instance()); + ::hw::trezor::messages::stellar::_StellarPathPaymentOp_default_instance_._instance.get_mutable()->destination_asset_ = const_cast< ::hw::trezor::messages::stellar::StellarAssetType*>( + ::hw::trezor::messages::stellar::StellarAssetType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarPathPaymentOp::kSourceAccountFieldNumber; +const int StellarPathPaymentOp::kSendAssetFieldNumber; +const int StellarPathPaymentOp::kSendMaxFieldNumber; +const int StellarPathPaymentOp::kDestinationAccountFieldNumber; +const int StellarPathPaymentOp::kDestinationAssetFieldNumber; +const int StellarPathPaymentOp::kDestinationAmountFieldNumber; +const int StellarPathPaymentOp::kPathsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarPathPaymentOp::StellarPathPaymentOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarPathPaymentOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarPathPaymentOp) +} +StellarPathPaymentOp::StellarPathPaymentOp(const StellarPathPaymentOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + paths_(from.paths_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + destination_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_destination_account()) { + destination_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.destination_account_); + } + if (from.has_send_asset()) { + send_asset_ = new ::hw::trezor::messages::stellar::StellarAssetType(*from.send_asset_); + } else { + send_asset_ = NULL; + } + if (from.has_destination_asset()) { + destination_asset_ = new ::hw::trezor::messages::stellar::StellarAssetType(*from.destination_asset_); + } else { + destination_asset_ = NULL; + } + ::memcpy(&send_max_, &from.send_max_, + static_cast(reinterpret_cast(&destination_amount_) - + reinterpret_cast(&send_max_)) + sizeof(destination_amount_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarPathPaymentOp) +} + +void StellarPathPaymentOp::SharedCtor() { + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + destination_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&send_asset_, 0, static_cast( + reinterpret_cast(&destination_amount_) - + reinterpret_cast(&send_asset_)) + sizeof(destination_amount_)); +} + +StellarPathPaymentOp::~StellarPathPaymentOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarPathPaymentOp) + SharedDtor(); +} + +void StellarPathPaymentOp::SharedDtor() { + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + destination_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete send_asset_; + if (this != internal_default_instance()) delete destination_asset_; +} + +void StellarPathPaymentOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarPathPaymentOp::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarPathPaymentOp& StellarPathPaymentOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarPathPaymentOp.base); + return *internal_default_instance(); +} + + +void StellarPathPaymentOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarPathPaymentOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + paths_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + destination_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(send_asset_ != NULL); + send_asset_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(destination_asset_ != NULL); + destination_asset_->Clear(); + } + } + if (cached_has_bits & 48u) { + ::memset(&send_max_, 0, static_cast( + reinterpret_cast(&destination_amount_) - + reinterpret_cast(&send_max_)) + sizeof(destination_amount_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarPathPaymentOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarPathPaymentOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source_account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarPathPaymentOp.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.stellar.StellarAssetType send_asset = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_send_asset())); + } else { + goto handle_unusual; + } + break; + } + + // optional sint64 send_max = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_send_max(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( + input, &send_max_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string destination_account = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_destination_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination_account().data(), static_cast(this->destination_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarPathPaymentOp.destination_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.stellar.StellarAssetType destination_asset = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_destination_asset())); + } else { + goto handle_unusual; + } + break; + } + + // optional sint64 destination_amount = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_destination_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( + input, &destination_amount_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .hw.trezor.messages.stellar.StellarAssetType paths = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_paths())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarPathPaymentOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarPathPaymentOp) + return false; +#undef DO_ +} + +void StellarPathPaymentOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarPathPaymentOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarPathPaymentOp.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source_account(), output); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType send_asset = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_send_asset(), output); + } + + // optional sint64 send_max = 3; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteSInt64(3, this->send_max(), output); + } + + // optional string destination_account = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination_account().data(), static_cast(this->destination_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarPathPaymentOp.destination_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->destination_account(), output); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType destination_asset = 5; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->_internal_destination_asset(), output); + } + + // optional sint64 destination_amount = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteSInt64(6, this->destination_amount(), output); + } + + // repeated .hw.trezor.messages.stellar.StellarAssetType paths = 7; + for (unsigned int i = 0, + n = static_cast(this->paths_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, + this->paths(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarPathPaymentOp) +} + +::google::protobuf::uint8* StellarPathPaymentOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarPathPaymentOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarPathPaymentOp.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source_account(), target); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType send_asset = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_send_asset(), deterministic, target); + } + + // optional sint64 send_max = 3; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(3, this->send_max(), target); + } + + // optional string destination_account = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination_account().data(), static_cast(this->destination_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarPathPaymentOp.destination_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->destination_account(), target); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType destination_asset = 5; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->_internal_destination_asset(), deterministic, target); + } + + // optional sint64 destination_amount = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(6, this->destination_amount(), target); + } + + // repeated .hw.trezor.messages.stellar.StellarAssetType paths = 7; + for (unsigned int i = 0, + n = static_cast(this->paths_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->paths(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarPathPaymentOp) + return target; +} + +size_t StellarPathPaymentOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarPathPaymentOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .hw.trezor.messages.stellar.StellarAssetType paths = 7; + { + unsigned int count = static_cast(this->paths_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->paths(static_cast(i))); + } + } + + if (_has_bits_[0 / 32] & 63u) { + // optional string source_account = 1; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional string destination_account = 4; + if (has_destination_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->destination_account()); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType send_asset = 2; + if (has_send_asset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *send_asset_); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType destination_asset = 5; + if (has_destination_asset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *destination_asset_); + } + + // optional sint64 send_max = 3; + if (has_send_max()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::SInt64Size( + this->send_max()); + } + + // optional sint64 destination_amount = 6; + if (has_destination_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::SInt64Size( + this->destination_amount()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarPathPaymentOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarPathPaymentOp) + GOOGLE_DCHECK_NE(&from, this); + const StellarPathPaymentOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarPathPaymentOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarPathPaymentOp) + MergeFrom(*source); + } +} + +void StellarPathPaymentOp::MergeFrom(const StellarPathPaymentOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarPathPaymentOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + paths_.MergeFrom(from.paths_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000002u) { + set_has_destination_account(); + destination_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.destination_account_); + } + if (cached_has_bits & 0x00000004u) { + mutable_send_asset()->::hw::trezor::messages::stellar::StellarAssetType::MergeFrom(from.send_asset()); + } + if (cached_has_bits & 0x00000008u) { + mutable_destination_asset()->::hw::trezor::messages::stellar::StellarAssetType::MergeFrom(from.destination_asset()); + } + if (cached_has_bits & 0x00000010u) { + send_max_ = from.send_max_; + } + if (cached_has_bits & 0x00000020u) { + destination_amount_ = from.destination_amount_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StellarPathPaymentOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarPathPaymentOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarPathPaymentOp::CopyFrom(const StellarPathPaymentOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarPathPaymentOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarPathPaymentOp::IsInitialized() const { + return true; +} + +void StellarPathPaymentOp::Swap(StellarPathPaymentOp* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarPathPaymentOp::InternalSwap(StellarPathPaymentOp* other) { + using std::swap; + CastToBase(&paths_)->InternalSwap(CastToBase(&other->paths_)); + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + destination_account_.Swap(&other->destination_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(send_asset_, other->send_asset_); + swap(destination_asset_, other->destination_asset_); + swap(send_max_, other->send_max_); + swap(destination_amount_, other->destination_amount_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarPathPaymentOp::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarManageOfferOp::InitAsDefaultInstance() { + ::hw::trezor::messages::stellar::_StellarManageOfferOp_default_instance_._instance.get_mutable()->selling_asset_ = const_cast< ::hw::trezor::messages::stellar::StellarAssetType*>( + ::hw::trezor::messages::stellar::StellarAssetType::internal_default_instance()); + ::hw::trezor::messages::stellar::_StellarManageOfferOp_default_instance_._instance.get_mutable()->buying_asset_ = const_cast< ::hw::trezor::messages::stellar::StellarAssetType*>( + ::hw::trezor::messages::stellar::StellarAssetType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarManageOfferOp::kSourceAccountFieldNumber; +const int StellarManageOfferOp::kSellingAssetFieldNumber; +const int StellarManageOfferOp::kBuyingAssetFieldNumber; +const int StellarManageOfferOp::kAmountFieldNumber; +const int StellarManageOfferOp::kPriceNFieldNumber; +const int StellarManageOfferOp::kPriceDFieldNumber; +const int StellarManageOfferOp::kOfferIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarManageOfferOp::StellarManageOfferOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarManageOfferOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarManageOfferOp) +} +StellarManageOfferOp::StellarManageOfferOp(const StellarManageOfferOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (from.has_selling_asset()) { + selling_asset_ = new ::hw::trezor::messages::stellar::StellarAssetType(*from.selling_asset_); + } else { + selling_asset_ = NULL; + } + if (from.has_buying_asset()) { + buying_asset_ = new ::hw::trezor::messages::stellar::StellarAssetType(*from.buying_asset_); + } else { + buying_asset_ = NULL; + } + ::memcpy(&amount_, &from.amount_, + static_cast(reinterpret_cast(&offer_id_) - + reinterpret_cast(&amount_)) + sizeof(offer_id_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarManageOfferOp) +} + +void StellarManageOfferOp::SharedCtor() { + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&selling_asset_, 0, static_cast( + reinterpret_cast(&offer_id_) - + reinterpret_cast(&selling_asset_)) + sizeof(offer_id_)); +} + +StellarManageOfferOp::~StellarManageOfferOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarManageOfferOp) + SharedDtor(); +} + +void StellarManageOfferOp::SharedDtor() { + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete selling_asset_; + if (this != internal_default_instance()) delete buying_asset_; +} + +void StellarManageOfferOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarManageOfferOp::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarManageOfferOp& StellarManageOfferOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarManageOfferOp.base); + return *internal_default_instance(); +} + + +void StellarManageOfferOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarManageOfferOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(selling_asset_ != NULL); + selling_asset_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(buying_asset_ != NULL); + buying_asset_->Clear(); + } + } + if (cached_has_bits & 120u) { + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&offer_id_) - + reinterpret_cast(&amount_)) + sizeof(offer_id_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarManageOfferOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarManageOfferOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source_account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarManageOfferOp.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_selling_asset())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_buying_asset())); + } else { + goto handle_unusual; + } + break; + } + + // optional sint64 amount = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 price_n = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_price_n(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &price_n_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 price_d = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_price_d(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &price_d_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 offer_id = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_offer_id(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &offer_id_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarManageOfferOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarManageOfferOp) + return false; +#undef DO_ +} + +void StellarManageOfferOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarManageOfferOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarManageOfferOp.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source_account(), output); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_selling_asset(), output); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_buying_asset(), output); + } + + // optional sint64 amount = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteSInt64(4, this->amount(), output); + } + + // optional uint32 price_n = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->price_n(), output); + } + + // optional uint32 price_d = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->price_d(), output); + } + + // optional uint64 offer_id = 7; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->offer_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarManageOfferOp) +} + +::google::protobuf::uint8* StellarManageOfferOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarManageOfferOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarManageOfferOp.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source_account(), target); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_selling_asset(), deterministic, target); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_buying_asset(), deterministic, target); + } + + // optional sint64 amount = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(4, this->amount(), target); + } + + // optional uint32 price_n = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->price_n(), target); + } + + // optional uint32 price_d = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->price_d(), target); + } + + // optional uint64 offer_id = 7; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->offer_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarManageOfferOp) + return target; +} + +size_t StellarManageOfferOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarManageOfferOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 127u) { + // optional string source_account = 1; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; + if (has_selling_asset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *selling_asset_); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; + if (has_buying_asset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *buying_asset_); + } + + // optional sint64 amount = 4; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::SInt64Size( + this->amount()); + } + + // optional uint32 price_n = 5; + if (has_price_n()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->price_n()); + } + + // optional uint32 price_d = 6; + if (has_price_d()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->price_d()); + } + + // optional uint64 offer_id = 7; + if (has_offer_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->offer_id()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarManageOfferOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarManageOfferOp) + GOOGLE_DCHECK_NE(&from, this); + const StellarManageOfferOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarManageOfferOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarManageOfferOp) + MergeFrom(*source); + } +} + +void StellarManageOfferOp::MergeFrom(const StellarManageOfferOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarManageOfferOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 127u) { + if (cached_has_bits & 0x00000001u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000002u) { + mutable_selling_asset()->::hw::trezor::messages::stellar::StellarAssetType::MergeFrom(from.selling_asset()); + } + if (cached_has_bits & 0x00000004u) { + mutable_buying_asset()->::hw::trezor::messages::stellar::StellarAssetType::MergeFrom(from.buying_asset()); + } + if (cached_has_bits & 0x00000008u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000010u) { + price_n_ = from.price_n_; + } + if (cached_has_bits & 0x00000020u) { + price_d_ = from.price_d_; + } + if (cached_has_bits & 0x00000040u) { + offer_id_ = from.offer_id_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StellarManageOfferOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarManageOfferOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarManageOfferOp::CopyFrom(const StellarManageOfferOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarManageOfferOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarManageOfferOp::IsInitialized() const { + return true; +} + +void StellarManageOfferOp::Swap(StellarManageOfferOp* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarManageOfferOp::InternalSwap(StellarManageOfferOp* other) { + using std::swap; + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(selling_asset_, other->selling_asset_); + swap(buying_asset_, other->buying_asset_); + swap(amount_, other->amount_); + swap(price_n_, other->price_n_); + swap(price_d_, other->price_d_); + swap(offer_id_, other->offer_id_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarManageOfferOp::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarCreatePassiveOfferOp::InitAsDefaultInstance() { + ::hw::trezor::messages::stellar::_StellarCreatePassiveOfferOp_default_instance_._instance.get_mutable()->selling_asset_ = const_cast< ::hw::trezor::messages::stellar::StellarAssetType*>( + ::hw::trezor::messages::stellar::StellarAssetType::internal_default_instance()); + ::hw::trezor::messages::stellar::_StellarCreatePassiveOfferOp_default_instance_._instance.get_mutable()->buying_asset_ = const_cast< ::hw::trezor::messages::stellar::StellarAssetType*>( + ::hw::trezor::messages::stellar::StellarAssetType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarCreatePassiveOfferOp::kSourceAccountFieldNumber; +const int StellarCreatePassiveOfferOp::kSellingAssetFieldNumber; +const int StellarCreatePassiveOfferOp::kBuyingAssetFieldNumber; +const int StellarCreatePassiveOfferOp::kAmountFieldNumber; +const int StellarCreatePassiveOfferOp::kPriceNFieldNumber; +const int StellarCreatePassiveOfferOp::kPriceDFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarCreatePassiveOfferOp::StellarCreatePassiveOfferOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarCreatePassiveOfferOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) +} +StellarCreatePassiveOfferOp::StellarCreatePassiveOfferOp(const StellarCreatePassiveOfferOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (from.has_selling_asset()) { + selling_asset_ = new ::hw::trezor::messages::stellar::StellarAssetType(*from.selling_asset_); + } else { + selling_asset_ = NULL; + } + if (from.has_buying_asset()) { + buying_asset_ = new ::hw::trezor::messages::stellar::StellarAssetType(*from.buying_asset_); + } else { + buying_asset_ = NULL; + } + ::memcpy(&amount_, &from.amount_, + static_cast(reinterpret_cast(&price_d_) - + reinterpret_cast(&amount_)) + sizeof(price_d_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) +} + +void StellarCreatePassiveOfferOp::SharedCtor() { + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&selling_asset_, 0, static_cast( + reinterpret_cast(&price_d_) - + reinterpret_cast(&selling_asset_)) + sizeof(price_d_)); +} + +StellarCreatePassiveOfferOp::~StellarCreatePassiveOfferOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + SharedDtor(); +} + +void StellarCreatePassiveOfferOp::SharedDtor() { + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete selling_asset_; + if (this != internal_default_instance()) delete buying_asset_; +} + +void StellarCreatePassiveOfferOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarCreatePassiveOfferOp::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarCreatePassiveOfferOp& StellarCreatePassiveOfferOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarCreatePassiveOfferOp.base); + return *internal_default_instance(); +} + + +void StellarCreatePassiveOfferOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(selling_asset_ != NULL); + selling_asset_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(buying_asset_ != NULL); + buying_asset_->Clear(); + } + } + if (cached_has_bits & 56u) { + ::memset(&amount_, 0, static_cast( + reinterpret_cast(&price_d_) - + reinterpret_cast(&amount_)) + sizeof(price_d_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarCreatePassiveOfferOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source_account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_selling_asset())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_buying_asset())); + } else { + goto handle_unusual; + } + break; + } + + // optional sint64 amount = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 price_n = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_price_n(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &price_n_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 price_d = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_price_d(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &price_d_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + return false; +#undef DO_ +} + +void StellarCreatePassiveOfferOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source_account(), output); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_selling_asset(), output); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_buying_asset(), output); + } + + // optional sint64 amount = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteSInt64(4, this->amount(), output); + } + + // optional uint32 price_n = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->price_n(), output); + } + + // optional uint32 price_d = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->price_d(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) +} + +::google::protobuf::uint8* StellarCreatePassiveOfferOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source_account(), target); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_selling_asset(), deterministic, target); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_buying_asset(), deterministic, target); + } + + // optional sint64 amount = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(4, this->amount(), target); + } + + // optional uint32 price_n = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->price_n(), target); + } + + // optional uint32 price_d = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->price_d(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + return target; +} + +size_t StellarCreatePassiveOfferOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 63u) { + // optional string source_account = 1; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; + if (has_selling_asset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *selling_asset_); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; + if (has_buying_asset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *buying_asset_); + } + + // optional sint64 amount = 4; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::SInt64Size( + this->amount()); + } + + // optional uint32 price_n = 5; + if (has_price_n()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->price_n()); + } + + // optional uint32 price_d = 6; + if (has_price_d()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->price_d()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarCreatePassiveOfferOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + GOOGLE_DCHECK_NE(&from, this); + const StellarCreatePassiveOfferOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + MergeFrom(*source); + } +} + +void StellarCreatePassiveOfferOp::MergeFrom(const StellarCreatePassiveOfferOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000002u) { + mutable_selling_asset()->::hw::trezor::messages::stellar::StellarAssetType::MergeFrom(from.selling_asset()); + } + if (cached_has_bits & 0x00000004u) { + mutable_buying_asset()->::hw::trezor::messages::stellar::StellarAssetType::MergeFrom(from.buying_asset()); + } + if (cached_has_bits & 0x00000008u) { + amount_ = from.amount_; + } + if (cached_has_bits & 0x00000010u) { + price_n_ = from.price_n_; + } + if (cached_has_bits & 0x00000020u) { + price_d_ = from.price_d_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StellarCreatePassiveOfferOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarCreatePassiveOfferOp::CopyFrom(const StellarCreatePassiveOfferOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarCreatePassiveOfferOp::IsInitialized() const { + return true; +} + +void StellarCreatePassiveOfferOp::Swap(StellarCreatePassiveOfferOp* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarCreatePassiveOfferOp::InternalSwap(StellarCreatePassiveOfferOp* other) { + using std::swap; + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(selling_asset_, other->selling_asset_); + swap(buying_asset_, other->buying_asset_); + swap(amount_, other->amount_); + swap(price_n_, other->price_n_); + swap(price_d_, other->price_d_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarCreatePassiveOfferOp::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarSetOptionsOp::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarSetOptionsOp::kSourceAccountFieldNumber; +const int StellarSetOptionsOp::kInflationDestinationAccountFieldNumber; +const int StellarSetOptionsOp::kClearFlagsFieldNumber; +const int StellarSetOptionsOp::kSetFlagsFieldNumber; +const int StellarSetOptionsOp::kMasterWeightFieldNumber; +const int StellarSetOptionsOp::kLowThresholdFieldNumber; +const int StellarSetOptionsOp::kMediumThresholdFieldNumber; +const int StellarSetOptionsOp::kHighThresholdFieldNumber; +const int StellarSetOptionsOp::kHomeDomainFieldNumber; +const int StellarSetOptionsOp::kSignerTypeFieldNumber; +const int StellarSetOptionsOp::kSignerKeyFieldNumber; +const int StellarSetOptionsOp::kSignerWeightFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarSetOptionsOp::StellarSetOptionsOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarSetOptionsOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarSetOptionsOp) +} +StellarSetOptionsOp::StellarSetOptionsOp(const StellarSetOptionsOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + inflation_destination_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_inflation_destination_account()) { + inflation_destination_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inflation_destination_account_); + } + home_domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_home_domain()) { + home_domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.home_domain_); + } + signer_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signer_key()) { + signer_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signer_key_); + } + ::memcpy(&clear_flags_, &from.clear_flags_, + static_cast(reinterpret_cast(&signer_weight_) - + reinterpret_cast(&clear_flags_)) + sizeof(signer_weight_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarSetOptionsOp) +} + +void StellarSetOptionsOp::SharedCtor() { + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + inflation_destination_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + home_domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signer_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&clear_flags_, 0, static_cast( + reinterpret_cast(&signer_weight_) - + reinterpret_cast(&clear_flags_)) + sizeof(signer_weight_)); +} + +StellarSetOptionsOp::~StellarSetOptionsOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarSetOptionsOp) + SharedDtor(); +} + +void StellarSetOptionsOp::SharedDtor() { + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + inflation_destination_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + home_domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signer_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StellarSetOptionsOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarSetOptionsOp::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarSetOptionsOp& StellarSetOptionsOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarSetOptionsOp.base); + return *internal_default_instance(); +} + + +void StellarSetOptionsOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarSetOptionsOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + inflation_destination_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + home_domain_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + signer_key_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 240u) { + ::memset(&clear_flags_, 0, static_cast( + reinterpret_cast(&low_threshold_) - + reinterpret_cast(&clear_flags_)) + sizeof(low_threshold_)); + } + if (cached_has_bits & 3840u) { + ::memset(&medium_threshold_, 0, static_cast( + reinterpret_cast(&signer_weight_) - + reinterpret_cast(&medium_threshold_)) + sizeof(signer_weight_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarSetOptionsOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarSetOptionsOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source_account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarSetOptionsOp.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional string inflation_destination_account = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_inflation_destination_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->inflation_destination_account().data(), static_cast(this->inflation_destination_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarSetOptionsOp.inflation_destination_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 clear_flags = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_clear_flags(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &clear_flags_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 set_flags = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_set_flags(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &set_flags_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 master_weight = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_master_weight(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &master_weight_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 low_threshold = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_low_threshold(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &low_threshold_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 medium_threshold = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_medium_threshold(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &medium_threshold_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 high_threshold = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_high_threshold(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &high_threshold_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string home_domain = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_home_domain())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->home_domain().data(), static_cast(this->home_domain().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarSetOptionsOp.home_domain"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 signer_type = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_signer_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &signer_type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signer_key = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signer_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 signer_weight = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { + set_has_signer_weight(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &signer_weight_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarSetOptionsOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarSetOptionsOp) + return false; +#undef DO_ +} + +void StellarSetOptionsOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarSetOptionsOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSetOptionsOp.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source_account(), output); + } + + // optional string inflation_destination_account = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->inflation_destination_account().data(), static_cast(this->inflation_destination_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSetOptionsOp.inflation_destination_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->inflation_destination_account(), output); + } + + // optional uint32 clear_flags = 3; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->clear_flags(), output); + } + + // optional uint32 set_flags = 4; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->set_flags(), output); + } + + // optional uint32 master_weight = 5; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->master_weight(), output); + } + + // optional uint32 low_threshold = 6; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->low_threshold(), output); + } + + // optional uint32 medium_threshold = 7; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->medium_threshold(), output); + } + + // optional uint32 high_threshold = 8; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->high_threshold(), output); + } + + // optional string home_domain = 9; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->home_domain().data(), static_cast(this->home_domain().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSetOptionsOp.home_domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 9, this->home_domain(), output); + } + + // optional uint32 signer_type = 10; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->signer_type(), output); + } + + // optional bytes signer_key = 11; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 11, this->signer_key(), output); + } + + // optional uint32 signer_weight = 12; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->signer_weight(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarSetOptionsOp) +} + +::google::protobuf::uint8* StellarSetOptionsOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarSetOptionsOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSetOptionsOp.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source_account(), target); + } + + // optional string inflation_destination_account = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->inflation_destination_account().data(), static_cast(this->inflation_destination_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSetOptionsOp.inflation_destination_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->inflation_destination_account(), target); + } + + // optional uint32 clear_flags = 3; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->clear_flags(), target); + } + + // optional uint32 set_flags = 4; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->set_flags(), target); + } + + // optional uint32 master_weight = 5; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->master_weight(), target); + } + + // optional uint32 low_threshold = 6; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->low_threshold(), target); + } + + // optional uint32 medium_threshold = 7; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->medium_threshold(), target); + } + + // optional uint32 high_threshold = 8; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->high_threshold(), target); + } + + // optional string home_domain = 9; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->home_domain().data(), static_cast(this->home_domain().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarSetOptionsOp.home_domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 9, this->home_domain(), target); + } + + // optional uint32 signer_type = 10; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->signer_type(), target); + } + + // optional bytes signer_key = 11; + if (cached_has_bits & 0x00000008u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 11, this->signer_key(), target); + } + + // optional uint32 signer_weight = 12; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->signer_weight(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarSetOptionsOp) + return target; +} + +size_t StellarSetOptionsOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarSetOptionsOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional string source_account = 1; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional string inflation_destination_account = 2; + if (has_inflation_destination_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->inflation_destination_account()); + } + + // optional string home_domain = 9; + if (has_home_domain()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->home_domain()); + } + + // optional bytes signer_key = 11; + if (has_signer_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signer_key()); + } + + // optional uint32 clear_flags = 3; + if (has_clear_flags()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->clear_flags()); + } + + // optional uint32 set_flags = 4; + if (has_set_flags()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->set_flags()); + } + + // optional uint32 master_weight = 5; + if (has_master_weight()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->master_weight()); + } + + // optional uint32 low_threshold = 6; + if (has_low_threshold()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->low_threshold()); + } + + } + if (_has_bits_[8 / 32] & 3840u) { + // optional uint32 medium_threshold = 7; + if (has_medium_threshold()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->medium_threshold()); + } + + // optional uint32 high_threshold = 8; + if (has_high_threshold()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->high_threshold()); + } + + // optional uint32 signer_type = 10; + if (has_signer_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->signer_type()); + } + + // optional uint32 signer_weight = 12; + if (has_signer_weight()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->signer_weight()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarSetOptionsOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarSetOptionsOp) + GOOGLE_DCHECK_NE(&from, this); + const StellarSetOptionsOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarSetOptionsOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarSetOptionsOp) + MergeFrom(*source); + } +} + +void StellarSetOptionsOp::MergeFrom(const StellarSetOptionsOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarSetOptionsOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000002u) { + set_has_inflation_destination_account(); + inflation_destination_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inflation_destination_account_); + } + if (cached_has_bits & 0x00000004u) { + set_has_home_domain(); + home_domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.home_domain_); + } + if (cached_has_bits & 0x00000008u) { + set_has_signer_key(); + signer_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signer_key_); + } + if (cached_has_bits & 0x00000010u) { + clear_flags_ = from.clear_flags_; + } + if (cached_has_bits & 0x00000020u) { + set_flags_ = from.set_flags_; + } + if (cached_has_bits & 0x00000040u) { + master_weight_ = from.master_weight_; + } + if (cached_has_bits & 0x00000080u) { + low_threshold_ = from.low_threshold_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 3840u) { + if (cached_has_bits & 0x00000100u) { + medium_threshold_ = from.medium_threshold_; + } + if (cached_has_bits & 0x00000200u) { + high_threshold_ = from.high_threshold_; + } + if (cached_has_bits & 0x00000400u) { + signer_type_ = from.signer_type_; + } + if (cached_has_bits & 0x00000800u) { + signer_weight_ = from.signer_weight_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StellarSetOptionsOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarSetOptionsOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarSetOptionsOp::CopyFrom(const StellarSetOptionsOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarSetOptionsOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarSetOptionsOp::IsInitialized() const { + return true; +} + +void StellarSetOptionsOp::Swap(StellarSetOptionsOp* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarSetOptionsOp::InternalSwap(StellarSetOptionsOp* other) { + using std::swap; + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + inflation_destination_account_.Swap(&other->inflation_destination_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + home_domain_.Swap(&other->home_domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + signer_key_.Swap(&other->signer_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(clear_flags_, other->clear_flags_); + swap(set_flags_, other->set_flags_); + swap(master_weight_, other->master_weight_); + swap(low_threshold_, other->low_threshold_); + swap(medium_threshold_, other->medium_threshold_); + swap(high_threshold_, other->high_threshold_); + swap(signer_type_, other->signer_type_); + swap(signer_weight_, other->signer_weight_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarSetOptionsOp::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarChangeTrustOp::InitAsDefaultInstance() { + ::hw::trezor::messages::stellar::_StellarChangeTrustOp_default_instance_._instance.get_mutable()->asset_ = const_cast< ::hw::trezor::messages::stellar::StellarAssetType*>( + ::hw::trezor::messages::stellar::StellarAssetType::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarChangeTrustOp::kSourceAccountFieldNumber; +const int StellarChangeTrustOp::kAssetFieldNumber; +const int StellarChangeTrustOp::kLimitFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarChangeTrustOp::StellarChangeTrustOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarChangeTrustOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarChangeTrustOp) +} +StellarChangeTrustOp::StellarChangeTrustOp(const StellarChangeTrustOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (from.has_asset()) { + asset_ = new ::hw::trezor::messages::stellar::StellarAssetType(*from.asset_); + } else { + asset_ = NULL; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarChangeTrustOp) +} + +void StellarChangeTrustOp::SharedCtor() { + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&asset_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&asset_)) + sizeof(limit_)); +} + +StellarChangeTrustOp::~StellarChangeTrustOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarChangeTrustOp) + SharedDtor(); +} + +void StellarChangeTrustOp::SharedDtor() { + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete asset_; +} + +void StellarChangeTrustOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarChangeTrustOp::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarChangeTrustOp& StellarChangeTrustOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarChangeTrustOp.base); + return *internal_default_instance(); +} + + +void StellarChangeTrustOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarChangeTrustOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(asset_ != NULL); + asset_->Clear(); + } + } + limit_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarChangeTrustOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarChangeTrustOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source_account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarChangeTrustOp.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.stellar.StellarAssetType asset = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_asset())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 limit = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_limit(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarChangeTrustOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarChangeTrustOp) + return false; +#undef DO_ +} + +void StellarChangeTrustOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarChangeTrustOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarChangeTrustOp.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source_account(), output); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType asset = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_asset(), output); + } + + // optional uint64 limit = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->limit(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarChangeTrustOp) +} + +::google::protobuf::uint8* StellarChangeTrustOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarChangeTrustOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarChangeTrustOp.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source_account(), target); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType asset = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_asset(), deterministic, target); + } + + // optional uint64 limit = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->limit(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarChangeTrustOp) + return target; +} + +size_t StellarChangeTrustOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarChangeTrustOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string source_account = 1; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional .hw.trezor.messages.stellar.StellarAssetType asset = 2; + if (has_asset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *asset_); + } + + // optional uint64 limit = 3; + if (has_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->limit()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarChangeTrustOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarChangeTrustOp) + GOOGLE_DCHECK_NE(&from, this); + const StellarChangeTrustOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarChangeTrustOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarChangeTrustOp) + MergeFrom(*source); + } +} + +void StellarChangeTrustOp::MergeFrom(const StellarChangeTrustOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarChangeTrustOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000002u) { + mutable_asset()->::hw::trezor::messages::stellar::StellarAssetType::MergeFrom(from.asset()); + } + if (cached_has_bits & 0x00000004u) { + limit_ = from.limit_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StellarChangeTrustOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarChangeTrustOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarChangeTrustOp::CopyFrom(const StellarChangeTrustOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarChangeTrustOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarChangeTrustOp::IsInitialized() const { + return true; +} + +void StellarChangeTrustOp::Swap(StellarChangeTrustOp* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarChangeTrustOp::InternalSwap(StellarChangeTrustOp* other) { + using std::swap; + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(asset_, other->asset_); + swap(limit_, other->limit_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarChangeTrustOp::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarAllowTrustOp::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarAllowTrustOp::kSourceAccountFieldNumber; +const int StellarAllowTrustOp::kTrustedAccountFieldNumber; +const int StellarAllowTrustOp::kAssetTypeFieldNumber; +const int StellarAllowTrustOp::kAssetCodeFieldNumber; +const int StellarAllowTrustOp::kIsAuthorizedFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarAllowTrustOp::StellarAllowTrustOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarAllowTrustOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarAllowTrustOp) +} +StellarAllowTrustOp::StellarAllowTrustOp(const StellarAllowTrustOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + trusted_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_trusted_account()) { + trusted_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trusted_account_); + } + asset_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_asset_code()) { + asset_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_code_); + } + ::memcpy(&asset_type_, &from.asset_type_, + static_cast(reinterpret_cast(&is_authorized_) - + reinterpret_cast(&asset_type_)) + sizeof(is_authorized_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarAllowTrustOp) +} + +void StellarAllowTrustOp::SharedCtor() { + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + trusted_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + asset_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&asset_type_, 0, static_cast( + reinterpret_cast(&is_authorized_) - + reinterpret_cast(&asset_type_)) + sizeof(is_authorized_)); +} + +StellarAllowTrustOp::~StellarAllowTrustOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarAllowTrustOp) + SharedDtor(); +} + +void StellarAllowTrustOp::SharedDtor() { + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + trusted_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + asset_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StellarAllowTrustOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarAllowTrustOp::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarAllowTrustOp& StellarAllowTrustOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarAllowTrustOp.base); + return *internal_default_instance(); +} + + +void StellarAllowTrustOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarAllowTrustOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + trusted_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + asset_code_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 24u) { + ::memset(&asset_type_, 0, static_cast( + reinterpret_cast(&is_authorized_) - + reinterpret_cast(&asset_type_)) + sizeof(is_authorized_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarAllowTrustOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarAllowTrustOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source_account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarAllowTrustOp.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional string trusted_account = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_trusted_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->trusted_account().data(), static_cast(this->trusted_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarAllowTrustOp.trusted_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 asset_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_asset_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &asset_type_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string asset_code = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_asset_code())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->asset_code().data(), static_cast(this->asset_code().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarAllowTrustOp.asset_code"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 is_authorized = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_is_authorized(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &is_authorized_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarAllowTrustOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarAllowTrustOp) + return false; +#undef DO_ +} + +void StellarAllowTrustOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarAllowTrustOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAllowTrustOp.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source_account(), output); + } + + // optional string trusted_account = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->trusted_account().data(), static_cast(this->trusted_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAllowTrustOp.trusted_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->trusted_account(), output); + } + + // optional uint32 asset_type = 3; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->asset_type(), output); + } + + // optional string asset_code = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->asset_code().data(), static_cast(this->asset_code().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAllowTrustOp.asset_code"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->asset_code(), output); + } + + // optional uint32 is_authorized = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->is_authorized(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarAllowTrustOp) +} + +::google::protobuf::uint8* StellarAllowTrustOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarAllowTrustOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAllowTrustOp.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source_account(), target); + } + + // optional string trusted_account = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->trusted_account().data(), static_cast(this->trusted_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAllowTrustOp.trusted_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->trusted_account(), target); + } + + // optional uint32 asset_type = 3; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->asset_type(), target); + } + + // optional string asset_code = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->asset_code().data(), static_cast(this->asset_code().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAllowTrustOp.asset_code"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->asset_code(), target); + } + + // optional uint32 is_authorized = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->is_authorized(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarAllowTrustOp) + return target; +} + +size_t StellarAllowTrustOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarAllowTrustOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 31u) { + // optional string source_account = 1; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional string trusted_account = 2; + if (has_trusted_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->trusted_account()); + } + + // optional string asset_code = 4; + if (has_asset_code()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->asset_code()); + } + + // optional uint32 asset_type = 3; + if (has_asset_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->asset_type()); + } + + // optional uint32 is_authorized = 5; + if (has_is_authorized()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->is_authorized()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarAllowTrustOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarAllowTrustOp) + GOOGLE_DCHECK_NE(&from, this); + const StellarAllowTrustOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarAllowTrustOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarAllowTrustOp) + MergeFrom(*source); + } +} + +void StellarAllowTrustOp::MergeFrom(const StellarAllowTrustOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarAllowTrustOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000002u) { + set_has_trusted_account(); + trusted_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trusted_account_); + } + if (cached_has_bits & 0x00000004u) { + set_has_asset_code(); + asset_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_code_); + } + if (cached_has_bits & 0x00000008u) { + asset_type_ = from.asset_type_; + } + if (cached_has_bits & 0x00000010u) { + is_authorized_ = from.is_authorized_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StellarAllowTrustOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarAllowTrustOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarAllowTrustOp::CopyFrom(const StellarAllowTrustOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarAllowTrustOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarAllowTrustOp::IsInitialized() const { + return true; +} + +void StellarAllowTrustOp::Swap(StellarAllowTrustOp* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarAllowTrustOp::InternalSwap(StellarAllowTrustOp* other) { + using std::swap; + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + trusted_account_.Swap(&other->trusted_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + asset_code_.Swap(&other->asset_code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(asset_type_, other->asset_type_); + swap(is_authorized_, other->is_authorized_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarAllowTrustOp::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarAccountMergeOp::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarAccountMergeOp::kSourceAccountFieldNumber; +const int StellarAccountMergeOp::kDestinationAccountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarAccountMergeOp::StellarAccountMergeOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarAccountMergeOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarAccountMergeOp) +} +StellarAccountMergeOp::StellarAccountMergeOp(const StellarAccountMergeOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + destination_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_destination_account()) { + destination_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.destination_account_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarAccountMergeOp) +} + +void StellarAccountMergeOp::SharedCtor() { + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + destination_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +StellarAccountMergeOp::~StellarAccountMergeOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarAccountMergeOp) + SharedDtor(); +} + +void StellarAccountMergeOp::SharedDtor() { + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + destination_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StellarAccountMergeOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarAccountMergeOp::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarAccountMergeOp& StellarAccountMergeOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarAccountMergeOp.base); + return *internal_default_instance(); +} + + +void StellarAccountMergeOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarAccountMergeOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + destination_account_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarAccountMergeOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarAccountMergeOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source_account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarAccountMergeOp.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional string destination_account = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_destination_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination_account().data(), static_cast(this->destination_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarAccountMergeOp.destination_account"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarAccountMergeOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarAccountMergeOp) + return false; +#undef DO_ +} + +void StellarAccountMergeOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarAccountMergeOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAccountMergeOp.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source_account(), output); + } + + // optional string destination_account = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination_account().data(), static_cast(this->destination_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAccountMergeOp.destination_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->destination_account(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarAccountMergeOp) +} + +::google::protobuf::uint8* StellarAccountMergeOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarAccountMergeOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAccountMergeOp.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source_account(), target); + } + + // optional string destination_account = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->destination_account().data(), static_cast(this->destination_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarAccountMergeOp.destination_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->destination_account(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarAccountMergeOp) + return target; +} + +size_t StellarAccountMergeOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarAccountMergeOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional string source_account = 1; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional string destination_account = 2; + if (has_destination_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->destination_account()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarAccountMergeOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarAccountMergeOp) + GOOGLE_DCHECK_NE(&from, this); + const StellarAccountMergeOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarAccountMergeOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarAccountMergeOp) + MergeFrom(*source); + } +} + +void StellarAccountMergeOp::MergeFrom(const StellarAccountMergeOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarAccountMergeOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000002u) { + set_has_destination_account(); + destination_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.destination_account_); + } + } +} + +void StellarAccountMergeOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarAccountMergeOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarAccountMergeOp::CopyFrom(const StellarAccountMergeOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarAccountMergeOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarAccountMergeOp::IsInitialized() const { + return true; +} + +void StellarAccountMergeOp::Swap(StellarAccountMergeOp* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarAccountMergeOp::InternalSwap(StellarAccountMergeOp* other) { + using std::swap; + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + destination_account_.Swap(&other->destination_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarAccountMergeOp::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarManageDataOp::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarManageDataOp::kSourceAccountFieldNumber; +const int StellarManageDataOp::kKeyFieldNumber; +const int StellarManageDataOp::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarManageDataOp::StellarManageDataOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarManageDataOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarManageDataOp) +} +StellarManageDataOp::StellarManageDataOp(const StellarManageDataOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_key()) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_value()) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarManageDataOp) +} + +void StellarManageDataOp::SharedCtor() { + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +StellarManageDataOp::~StellarManageDataOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarManageDataOp) + SharedDtor(); +} + +void StellarManageDataOp::SharedDtor() { + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StellarManageDataOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarManageDataOp::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarManageDataOp& StellarManageDataOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarManageDataOp.base); + return *internal_default_instance(); +} + + +void StellarManageDataOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarManageDataOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + value_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarManageDataOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarManageDataOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source_account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarManageDataOp.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional string key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarManageDataOp.key"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes value = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarManageDataOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarManageDataOp) + return false; +#undef DO_ +} + +void StellarManageDataOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarManageDataOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarManageDataOp.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source_account(), output); + } + + // optional string key = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarManageDataOp.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->key(), output); + } + + // optional bytes value = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarManageDataOp) +} + +::google::protobuf::uint8* StellarManageDataOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarManageDataOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarManageDataOp.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source_account(), target); + } + + // optional string key = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarManageDataOp.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->key(), target); + } + + // optional bytes value = 3; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->value(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarManageDataOp) + return target; +} + +size_t StellarManageDataOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarManageDataOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string source_account = 1; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional string key = 2; + if (has_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // optional bytes value = 3; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarManageDataOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarManageDataOp) + GOOGLE_DCHECK_NE(&from, this); + const StellarManageDataOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarManageDataOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarManageDataOp) + MergeFrom(*source); + } +} + +void StellarManageDataOp::MergeFrom(const StellarManageDataOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarManageDataOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000002u) { + set_has_key(); + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (cached_has_bits & 0x00000004u) { + set_has_value(); + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + } +} + +void StellarManageDataOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarManageDataOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarManageDataOp::CopyFrom(const StellarManageDataOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarManageDataOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarManageDataOp::IsInitialized() const { + return true; +} + +void StellarManageDataOp::Swap(StellarManageDataOp* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarManageDataOp::InternalSwap(StellarManageDataOp* other) { + using std::swap; + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarManageDataOp::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarBumpSequenceOp::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarBumpSequenceOp::kSourceAccountFieldNumber; +const int StellarBumpSequenceOp::kBumpToFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarBumpSequenceOp::StellarBumpSequenceOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarBumpSequenceOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarBumpSequenceOp) +} +StellarBumpSequenceOp::StellarBumpSequenceOp(const StellarBumpSequenceOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source_account()) { + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + bump_to_ = from.bump_to_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarBumpSequenceOp) +} + +void StellarBumpSequenceOp::SharedCtor() { + source_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + bump_to_ = GOOGLE_ULONGLONG(0); +} + +StellarBumpSequenceOp::~StellarBumpSequenceOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarBumpSequenceOp) + SharedDtor(); +} + +void StellarBumpSequenceOp::SharedDtor() { + source_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StellarBumpSequenceOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarBumpSequenceOp::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarBumpSequenceOp& StellarBumpSequenceOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarBumpSequenceOp.base); + return *internal_default_instance(); +} + + +void StellarBumpSequenceOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarBumpSequenceOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + source_account_.ClearNonDefaultToEmptyNoArena(); + } + bump_to_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarBumpSequenceOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarBumpSequenceOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source_account = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source_account())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.stellar.StellarBumpSequenceOp.source_account"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 bump_to = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_bump_to(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &bump_to_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarBumpSequenceOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarBumpSequenceOp) + return false; +#undef DO_ +} + +void StellarBumpSequenceOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarBumpSequenceOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarBumpSequenceOp.source_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source_account(), output); + } + + // optional uint64 bump_to = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->bump_to(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarBumpSequenceOp) +} + +::google::protobuf::uint8* StellarBumpSequenceOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarBumpSequenceOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source_account = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source_account().data(), static_cast(this->source_account().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.stellar.StellarBumpSequenceOp.source_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source_account(), target); + } + + // optional uint64 bump_to = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->bump_to(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarBumpSequenceOp) + return target; +} + +size_t StellarBumpSequenceOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarBumpSequenceOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional string source_account = 1; + if (has_source_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source_account()); + } + + // optional uint64 bump_to = 2; + if (has_bump_to()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->bump_to()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarBumpSequenceOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarBumpSequenceOp) + GOOGLE_DCHECK_NE(&from, this); + const StellarBumpSequenceOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarBumpSequenceOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarBumpSequenceOp) + MergeFrom(*source); + } +} + +void StellarBumpSequenceOp::MergeFrom(const StellarBumpSequenceOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarBumpSequenceOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_source_account(); + source_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_account_); + } + if (cached_has_bits & 0x00000002u) { + bump_to_ = from.bump_to_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StellarBumpSequenceOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarBumpSequenceOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarBumpSequenceOp::CopyFrom(const StellarBumpSequenceOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarBumpSequenceOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarBumpSequenceOp::IsInitialized() const { + return true; +} + +void StellarBumpSequenceOp::Swap(StellarBumpSequenceOp* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarBumpSequenceOp::InternalSwap(StellarBumpSequenceOp* other) { + using std::swap; + source_account_.Swap(&other->source_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(bump_to_, other->bump_to_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarBumpSequenceOp::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StellarSignedTx::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StellarSignedTx::kPublicKeyFieldNumber; +const int StellarSignedTx::kSignatureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StellarSignedTx::StellarSignedTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dstellar_2eproto::scc_info_StellarSignedTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.stellar.StellarSignedTx) +} +StellarSignedTx::StellarSignedTx(const StellarSignedTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.stellar.StellarSignedTx) +} + +void StellarSignedTx::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +StellarSignedTx::~StellarSignedTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.stellar.StellarSignedTx) + SharedDtor(); +} + +void StellarSignedTx::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StellarSignedTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StellarSignedTx::descriptor() { + ::protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StellarSignedTx& StellarSignedTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dstellar_2eproto::scc_info_StellarSignedTx.base); + return *internal_default_instance(); +} + + +void StellarSignedTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.stellar.StellarSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool StellarSignedTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.stellar.StellarSignedTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes signature = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.stellar.StellarSignedTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.stellar.StellarSignedTx) + return false; +#undef DO_ +} + +void StellarSignedTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.stellar.StellarSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->public_key(), output); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->signature(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.stellar.StellarSignedTx) +} + +::google::protobuf::uint8* StellarSignedTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.stellar.StellarSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes public_key = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->public_key(), target); + } + + // optional bytes signature = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->signature(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.stellar.StellarSignedTx) + return target; +} + +size_t StellarSignedTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.stellar.StellarSignedTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes public_key = 1; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + // optional bytes signature = 2; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StellarSignedTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.stellar.StellarSignedTx) + GOOGLE_DCHECK_NE(&from, this); + const StellarSignedTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.stellar.StellarSignedTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.stellar.StellarSignedTx) + MergeFrom(*source); + } +} + +void StellarSignedTx::MergeFrom(const StellarSignedTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.stellar.StellarSignedTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (cached_has_bits & 0x00000002u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + } +} + +void StellarSignedTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.stellar.StellarSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StellarSignedTx::CopyFrom(const StellarSignedTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.stellar.StellarSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StellarSignedTx::IsInitialized() const { + return true; +} + +void StellarSignedTx::Swap(StellarSignedTx* other) { + if (other == this) return; + InternalSwap(other); +} +void StellarSignedTx::InternalSwap(StellarSignedTx* other) { + using std::swap; + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StellarSignedTx::GetMetadata() const { + protobuf_messages_2dstellar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dstellar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace stellar +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarAssetType* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarAssetType >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarAssetType >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarGetAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarGetAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarGetAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarSignTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarSignTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarSignTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarTxOpRequest* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarTxOpRequest >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarTxOpRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarPaymentOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarPaymentOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarPaymentOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarCreateAccountOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarCreateAccountOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarCreateAccountOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarPathPaymentOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarPathPaymentOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarPathPaymentOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarManageOfferOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarManageOfferOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarManageOfferOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarSetOptionsOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarSetOptionsOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarSetOptionsOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarChangeTrustOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarChangeTrustOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarChangeTrustOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarAllowTrustOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarAllowTrustOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarAllowTrustOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarAccountMergeOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarAccountMergeOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarAccountMergeOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarManageDataOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarManageDataOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarManageDataOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarBumpSequenceOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarBumpSequenceOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarBumpSequenceOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::stellar::StellarSignedTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::stellar::StellarSignedTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::stellar::StellarSignedTx >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-stellar.pb.h b/src/Core/hardware/trezor/protob/messages-stellar.pb.h new file mode 100644 index 00000000..66750e8a --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-stellar.pb.h @@ -0,0 +1,6426 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-stellar.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dstellar_2eproto +#define PROTOBUF_INCLUDED_messages_2dstellar_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dstellar_2eproto + +namespace protobuf_messages_2dstellar_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[17]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dstellar_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace stellar { +class StellarAccountMergeOp; +class StellarAccountMergeOpDefaultTypeInternal; +extern StellarAccountMergeOpDefaultTypeInternal _StellarAccountMergeOp_default_instance_; +class StellarAddress; +class StellarAddressDefaultTypeInternal; +extern StellarAddressDefaultTypeInternal _StellarAddress_default_instance_; +class StellarAllowTrustOp; +class StellarAllowTrustOpDefaultTypeInternal; +extern StellarAllowTrustOpDefaultTypeInternal _StellarAllowTrustOp_default_instance_; +class StellarAssetType; +class StellarAssetTypeDefaultTypeInternal; +extern StellarAssetTypeDefaultTypeInternal _StellarAssetType_default_instance_; +class StellarBumpSequenceOp; +class StellarBumpSequenceOpDefaultTypeInternal; +extern StellarBumpSequenceOpDefaultTypeInternal _StellarBumpSequenceOp_default_instance_; +class StellarChangeTrustOp; +class StellarChangeTrustOpDefaultTypeInternal; +extern StellarChangeTrustOpDefaultTypeInternal _StellarChangeTrustOp_default_instance_; +class StellarCreateAccountOp; +class StellarCreateAccountOpDefaultTypeInternal; +extern StellarCreateAccountOpDefaultTypeInternal _StellarCreateAccountOp_default_instance_; +class StellarCreatePassiveOfferOp; +class StellarCreatePassiveOfferOpDefaultTypeInternal; +extern StellarCreatePassiveOfferOpDefaultTypeInternal _StellarCreatePassiveOfferOp_default_instance_; +class StellarGetAddress; +class StellarGetAddressDefaultTypeInternal; +extern StellarGetAddressDefaultTypeInternal _StellarGetAddress_default_instance_; +class StellarManageDataOp; +class StellarManageDataOpDefaultTypeInternal; +extern StellarManageDataOpDefaultTypeInternal _StellarManageDataOp_default_instance_; +class StellarManageOfferOp; +class StellarManageOfferOpDefaultTypeInternal; +extern StellarManageOfferOpDefaultTypeInternal _StellarManageOfferOp_default_instance_; +class StellarPathPaymentOp; +class StellarPathPaymentOpDefaultTypeInternal; +extern StellarPathPaymentOpDefaultTypeInternal _StellarPathPaymentOp_default_instance_; +class StellarPaymentOp; +class StellarPaymentOpDefaultTypeInternal; +extern StellarPaymentOpDefaultTypeInternal _StellarPaymentOp_default_instance_; +class StellarSetOptionsOp; +class StellarSetOptionsOpDefaultTypeInternal; +extern StellarSetOptionsOpDefaultTypeInternal _StellarSetOptionsOp_default_instance_; +class StellarSignTx; +class StellarSignTxDefaultTypeInternal; +extern StellarSignTxDefaultTypeInternal _StellarSignTx_default_instance_; +class StellarSignedTx; +class StellarSignedTxDefaultTypeInternal; +extern StellarSignedTxDefaultTypeInternal _StellarSignedTx_default_instance_; +class StellarTxOpRequest; +class StellarTxOpRequestDefaultTypeInternal; +extern StellarTxOpRequestDefaultTypeInternal _StellarTxOpRequest_default_instance_; +} // namespace stellar +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::stellar::StellarAccountMergeOp* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAccountMergeOp>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAddress>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarAllowTrustOp* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAllowTrustOp>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarAssetType* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAssetType>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarBumpSequenceOp* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarBumpSequenceOp>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarChangeTrustOp* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarChangeTrustOp>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarCreateAccountOp* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarCreateAccountOp>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarCreatePassiveOfferOp>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarGetAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarGetAddress>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarManageDataOp* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarManageDataOp>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarManageOfferOp* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarManageOfferOp>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarPathPaymentOp* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarPathPaymentOp>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarPaymentOp* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarPaymentOp>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarSetOptionsOp* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarSetOptionsOp>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarSignTx* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarSignTx>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarSignedTx* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarSignedTx>(Arena*); +template<> ::hw::trezor::messages::stellar::StellarTxOpRequest* Arena::CreateMaybeMessage<::hw::trezor::messages::stellar::StellarTxOpRequest>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace stellar { + +// =================================================================== + +class StellarAssetType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarAssetType) */ { + public: + StellarAssetType(); + virtual ~StellarAssetType(); + + StellarAssetType(const StellarAssetType& from); + + inline StellarAssetType& operator=(const StellarAssetType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarAssetType(StellarAssetType&& from) noexcept + : StellarAssetType() { + *this = ::std::move(from); + } + + inline StellarAssetType& operator=(StellarAssetType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarAssetType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarAssetType* internal_default_instance() { + return reinterpret_cast( + &_StellarAssetType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(StellarAssetType* other); + friend void swap(StellarAssetType& a, StellarAssetType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarAssetType* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarAssetType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarAssetType& from); + void MergeFrom(const StellarAssetType& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarAssetType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string code = 2; + bool has_code() const; + void clear_code(); + static const int kCodeFieldNumber = 2; + const ::std::string& code() const; + void set_code(const ::std::string& value); + #if LANG_CXX11 + void set_code(::std::string&& value); + #endif + void set_code(const char* value); + void set_code(const char* value, size_t size); + ::std::string* mutable_code(); + ::std::string* release_code(); + void set_allocated_code(::std::string* code); + + // optional string issuer = 3; + bool has_issuer() const; + void clear_issuer(); + static const int kIssuerFieldNumber = 3; + const ::std::string& issuer() const; + void set_issuer(const ::std::string& value); + #if LANG_CXX11 + void set_issuer(::std::string&& value); + #endif + void set_issuer(const char* value); + void set_issuer(const char* value, size_t size); + ::std::string* mutable_issuer(); + ::std::string* release_issuer(); + void set_allocated_issuer(::std::string* issuer); + + // optional uint32 type = 1; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 1; + ::google::protobuf::uint32 type() const; + void set_type(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarAssetType) + private: + void set_has_type(); + void clear_has_type(); + void set_has_code(); + void clear_has_code(); + void set_has_issuer(); + void clear_has_issuer(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr code_; + ::google::protobuf::internal::ArenaStringPtr issuer_; + ::google::protobuf::uint32 type_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarGetAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarGetAddress) */ { + public: + StellarGetAddress(); + virtual ~StellarGetAddress(); + + StellarGetAddress(const StellarGetAddress& from); + + inline StellarGetAddress& operator=(const StellarGetAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarGetAddress(StellarGetAddress&& from) noexcept + : StellarGetAddress() { + *this = ::std::move(from); + } + + inline StellarGetAddress& operator=(StellarGetAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarGetAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarGetAddress* internal_default_instance() { + return reinterpret_cast( + &_StellarGetAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(StellarGetAddress* other); + friend void swap(StellarGetAddress& a, StellarGetAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarGetAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarGetAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarGetAddress& from); + void MergeFrom(const StellarGetAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarGetAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarGetAddress) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarAddress) */ { + public: + StellarAddress(); + virtual ~StellarAddress(); + + StellarAddress(const StellarAddress& from); + + inline StellarAddress& operator=(const StellarAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarAddress(StellarAddress&& from) noexcept + : StellarAddress() { + *this = ::std::move(from); + } + + inline StellarAddress& operator=(StellarAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarAddress* internal_default_instance() { + return reinterpret_cast( + &_StellarAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(StellarAddress* other); + friend void swap(StellarAddress& a, StellarAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarAddress& from); + void MergeFrom(const StellarAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarAddress) + private: + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarSignTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarSignTx) */ { + public: + StellarSignTx(); + virtual ~StellarSignTx(); + + StellarSignTx(const StellarSignTx& from); + + inline StellarSignTx& operator=(const StellarSignTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarSignTx(StellarSignTx&& from) noexcept + : StellarSignTx() { + *this = ::std::move(from); + } + + inline StellarSignTx& operator=(StellarSignTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarSignTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarSignTx* internal_default_instance() { + return reinterpret_cast( + &_StellarSignTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(StellarSignTx* other); + friend void swap(StellarSignTx& a, StellarSignTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarSignTx* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarSignTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarSignTx& from); + void MergeFrom(const StellarSignTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarSignTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 2; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 2; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional string network_passphrase = 3; + bool has_network_passphrase() const; + void clear_network_passphrase(); + static const int kNetworkPassphraseFieldNumber = 3; + const ::std::string& network_passphrase() const; + void set_network_passphrase(const ::std::string& value); + #if LANG_CXX11 + void set_network_passphrase(::std::string&& value); + #endif + void set_network_passphrase(const char* value); + void set_network_passphrase(const char* value, size_t size); + ::std::string* mutable_network_passphrase(); + ::std::string* release_network_passphrase(); + void set_allocated_network_passphrase(::std::string* network_passphrase); + + // optional string source_account = 4; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 4; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional string memo_text = 11; + bool has_memo_text() const; + void clear_memo_text(); + static const int kMemoTextFieldNumber = 11; + const ::std::string& memo_text() const; + void set_memo_text(const ::std::string& value); + #if LANG_CXX11 + void set_memo_text(::std::string&& value); + #endif + void set_memo_text(const char* value); + void set_memo_text(const char* value, size_t size); + ::std::string* mutable_memo_text(); + ::std::string* release_memo_text(); + void set_allocated_memo_text(::std::string* memo_text); + + // optional bytes memo_hash = 13; + bool has_memo_hash() const; + void clear_memo_hash(); + static const int kMemoHashFieldNumber = 13; + const ::std::string& memo_hash() const; + void set_memo_hash(const ::std::string& value); + #if LANG_CXX11 + void set_memo_hash(::std::string&& value); + #endif + void set_memo_hash(const char* value); + void set_memo_hash(const void* value, size_t size); + ::std::string* mutable_memo_hash(); + ::std::string* release_memo_hash(); + void set_allocated_memo_hash(::std::string* memo_hash); + + // optional uint64 sequence_number = 6; + bool has_sequence_number() const; + void clear_sequence_number(); + static const int kSequenceNumberFieldNumber = 6; + ::google::protobuf::uint64 sequence_number() const; + void set_sequence_number(::google::protobuf::uint64 value); + + // optional uint32 fee = 5; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 5; + ::google::protobuf::uint32 fee() const; + void set_fee(::google::protobuf::uint32 value); + + // optional uint32 timebounds_start = 8; + bool has_timebounds_start() const; + void clear_timebounds_start(); + static const int kTimeboundsStartFieldNumber = 8; + ::google::protobuf::uint32 timebounds_start() const; + void set_timebounds_start(::google::protobuf::uint32 value); + + // optional uint32 timebounds_end = 9; + bool has_timebounds_end() const; + void clear_timebounds_end(); + static const int kTimeboundsEndFieldNumber = 9; + ::google::protobuf::uint32 timebounds_end() const; + void set_timebounds_end(::google::protobuf::uint32 value); + + // optional uint32 memo_type = 10; + bool has_memo_type() const; + void clear_memo_type(); + static const int kMemoTypeFieldNumber = 10; + ::google::protobuf::uint32 memo_type() const; + void set_memo_type(::google::protobuf::uint32 value); + + // optional uint64 memo_id = 12; + bool has_memo_id() const; + void clear_memo_id(); + static const int kMemoIdFieldNumber = 12; + ::google::protobuf::uint64 memo_id() const; + void set_memo_id(::google::protobuf::uint64 value); + + // optional uint32 num_operations = 14; + bool has_num_operations() const; + void clear_num_operations(); + static const int kNumOperationsFieldNumber = 14; + ::google::protobuf::uint32 num_operations() const; + void set_num_operations(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarSignTx) + private: + void set_has_network_passphrase(); + void clear_has_network_passphrase(); + void set_has_source_account(); + void clear_has_source_account(); + void set_has_fee(); + void clear_has_fee(); + void set_has_sequence_number(); + void clear_has_sequence_number(); + void set_has_timebounds_start(); + void clear_has_timebounds_start(); + void set_has_timebounds_end(); + void clear_has_timebounds_end(); + void set_has_memo_type(); + void clear_has_memo_type(); + void set_has_memo_text(); + void clear_has_memo_text(); + void set_has_memo_id(); + void clear_has_memo_id(); + void set_has_memo_hash(); + void clear_has_memo_hash(); + void set_has_num_operations(); + void clear_has_num_operations(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr network_passphrase_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::google::protobuf::internal::ArenaStringPtr memo_text_; + ::google::protobuf::internal::ArenaStringPtr memo_hash_; + ::google::protobuf::uint64 sequence_number_; + ::google::protobuf::uint32 fee_; + ::google::protobuf::uint32 timebounds_start_; + ::google::protobuf::uint32 timebounds_end_; + ::google::protobuf::uint32 memo_type_; + ::google::protobuf::uint64 memo_id_; + ::google::protobuf::uint32 num_operations_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarTxOpRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarTxOpRequest) */ { + public: + StellarTxOpRequest(); + virtual ~StellarTxOpRequest(); + + StellarTxOpRequest(const StellarTxOpRequest& from); + + inline StellarTxOpRequest& operator=(const StellarTxOpRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarTxOpRequest(StellarTxOpRequest&& from) noexcept + : StellarTxOpRequest() { + *this = ::std::move(from); + } + + inline StellarTxOpRequest& operator=(StellarTxOpRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarTxOpRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarTxOpRequest* internal_default_instance() { + return reinterpret_cast( + &_StellarTxOpRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(StellarTxOpRequest* other); + friend void swap(StellarTxOpRequest& a, StellarTxOpRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarTxOpRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarTxOpRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarTxOpRequest& from); + void MergeFrom(const StellarTxOpRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarTxOpRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarTxOpRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarPaymentOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarPaymentOp) */ { + public: + StellarPaymentOp(); + virtual ~StellarPaymentOp(); + + StellarPaymentOp(const StellarPaymentOp& from); + + inline StellarPaymentOp& operator=(const StellarPaymentOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarPaymentOp(StellarPaymentOp&& from) noexcept + : StellarPaymentOp() { + *this = ::std::move(from); + } + + inline StellarPaymentOp& operator=(StellarPaymentOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarPaymentOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarPaymentOp* internal_default_instance() { + return reinterpret_cast( + &_StellarPaymentOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(StellarPaymentOp* other); + friend void swap(StellarPaymentOp& a, StellarPaymentOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarPaymentOp* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarPaymentOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarPaymentOp& from); + void MergeFrom(const StellarPaymentOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarPaymentOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string source_account = 1; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 1; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional string destination_account = 2; + bool has_destination_account() const; + void clear_destination_account(); + static const int kDestinationAccountFieldNumber = 2; + const ::std::string& destination_account() const; + void set_destination_account(const ::std::string& value); + #if LANG_CXX11 + void set_destination_account(::std::string&& value); + #endif + void set_destination_account(const char* value); + void set_destination_account(const char* value, size_t size); + ::std::string* mutable_destination_account(); + ::std::string* release_destination_account(); + void set_allocated_destination_account(::std::string* destination_account); + + // optional .hw.trezor.messages.stellar.StellarAssetType asset = 3; + bool has_asset() const; + void clear_asset(); + static const int kAssetFieldNumber = 3; + private: + const ::hw::trezor::messages::stellar::StellarAssetType& _internal_asset() const; + public: + const ::hw::trezor::messages::stellar::StellarAssetType& asset() const; + ::hw::trezor::messages::stellar::StellarAssetType* release_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* mutable_asset(); + void set_allocated_asset(::hw::trezor::messages::stellar::StellarAssetType* asset); + + // optional sint64 amount = 4; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 4; + ::google::protobuf::int64 amount() const; + void set_amount(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarPaymentOp) + private: + void set_has_source_account(); + void clear_has_source_account(); + void set_has_destination_account(); + void clear_has_destination_account(); + void set_has_asset(); + void clear_has_asset(); + void set_has_amount(); + void clear_has_amount(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::google::protobuf::internal::ArenaStringPtr destination_account_; + ::hw::trezor::messages::stellar::StellarAssetType* asset_; + ::google::protobuf::int64 amount_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarCreateAccountOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarCreateAccountOp) */ { + public: + StellarCreateAccountOp(); + virtual ~StellarCreateAccountOp(); + + StellarCreateAccountOp(const StellarCreateAccountOp& from); + + inline StellarCreateAccountOp& operator=(const StellarCreateAccountOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarCreateAccountOp(StellarCreateAccountOp&& from) noexcept + : StellarCreateAccountOp() { + *this = ::std::move(from); + } + + inline StellarCreateAccountOp& operator=(StellarCreateAccountOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarCreateAccountOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarCreateAccountOp* internal_default_instance() { + return reinterpret_cast( + &_StellarCreateAccountOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(StellarCreateAccountOp* other); + friend void swap(StellarCreateAccountOp& a, StellarCreateAccountOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarCreateAccountOp* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarCreateAccountOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarCreateAccountOp& from); + void MergeFrom(const StellarCreateAccountOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarCreateAccountOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string source_account = 1; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 1; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional string new_account = 2; + bool has_new_account() const; + void clear_new_account(); + static const int kNewAccountFieldNumber = 2; + const ::std::string& new_account() const; + void set_new_account(const ::std::string& value); + #if LANG_CXX11 + void set_new_account(::std::string&& value); + #endif + void set_new_account(const char* value); + void set_new_account(const char* value, size_t size); + ::std::string* mutable_new_account(); + ::std::string* release_new_account(); + void set_allocated_new_account(::std::string* new_account); + + // optional sint64 starting_balance = 3; + bool has_starting_balance() const; + void clear_starting_balance(); + static const int kStartingBalanceFieldNumber = 3; + ::google::protobuf::int64 starting_balance() const; + void set_starting_balance(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarCreateAccountOp) + private: + void set_has_source_account(); + void clear_has_source_account(); + void set_has_new_account(); + void clear_has_new_account(); + void set_has_starting_balance(); + void clear_has_starting_balance(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::google::protobuf::internal::ArenaStringPtr new_account_; + ::google::protobuf::int64 starting_balance_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarPathPaymentOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarPathPaymentOp) */ { + public: + StellarPathPaymentOp(); + virtual ~StellarPathPaymentOp(); + + StellarPathPaymentOp(const StellarPathPaymentOp& from); + + inline StellarPathPaymentOp& operator=(const StellarPathPaymentOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarPathPaymentOp(StellarPathPaymentOp&& from) noexcept + : StellarPathPaymentOp() { + *this = ::std::move(from); + } + + inline StellarPathPaymentOp& operator=(StellarPathPaymentOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarPathPaymentOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarPathPaymentOp* internal_default_instance() { + return reinterpret_cast( + &_StellarPathPaymentOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(StellarPathPaymentOp* other); + friend void swap(StellarPathPaymentOp& a, StellarPathPaymentOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarPathPaymentOp* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarPathPaymentOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarPathPaymentOp& from); + void MergeFrom(const StellarPathPaymentOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarPathPaymentOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hw.trezor.messages.stellar.StellarAssetType paths = 7; + int paths_size() const; + void clear_paths(); + static const int kPathsFieldNumber = 7; + ::hw::trezor::messages::stellar::StellarAssetType* mutable_paths(int index); + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::stellar::StellarAssetType >* + mutable_paths(); + const ::hw::trezor::messages::stellar::StellarAssetType& paths(int index) const; + ::hw::trezor::messages::stellar::StellarAssetType* add_paths(); + const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::stellar::StellarAssetType >& + paths() const; + + // optional string source_account = 1; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 1; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional string destination_account = 4; + bool has_destination_account() const; + void clear_destination_account(); + static const int kDestinationAccountFieldNumber = 4; + const ::std::string& destination_account() const; + void set_destination_account(const ::std::string& value); + #if LANG_CXX11 + void set_destination_account(::std::string&& value); + #endif + void set_destination_account(const char* value); + void set_destination_account(const char* value, size_t size); + ::std::string* mutable_destination_account(); + ::std::string* release_destination_account(); + void set_allocated_destination_account(::std::string* destination_account); + + // optional .hw.trezor.messages.stellar.StellarAssetType send_asset = 2; + bool has_send_asset() const; + void clear_send_asset(); + static const int kSendAssetFieldNumber = 2; + private: + const ::hw::trezor::messages::stellar::StellarAssetType& _internal_send_asset() const; + public: + const ::hw::trezor::messages::stellar::StellarAssetType& send_asset() const; + ::hw::trezor::messages::stellar::StellarAssetType* release_send_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* mutable_send_asset(); + void set_allocated_send_asset(::hw::trezor::messages::stellar::StellarAssetType* send_asset); + + // optional .hw.trezor.messages.stellar.StellarAssetType destination_asset = 5; + bool has_destination_asset() const; + void clear_destination_asset(); + static const int kDestinationAssetFieldNumber = 5; + private: + const ::hw::trezor::messages::stellar::StellarAssetType& _internal_destination_asset() const; + public: + const ::hw::trezor::messages::stellar::StellarAssetType& destination_asset() const; + ::hw::trezor::messages::stellar::StellarAssetType* release_destination_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* mutable_destination_asset(); + void set_allocated_destination_asset(::hw::trezor::messages::stellar::StellarAssetType* destination_asset); + + // optional sint64 send_max = 3; + bool has_send_max() const; + void clear_send_max(); + static const int kSendMaxFieldNumber = 3; + ::google::protobuf::int64 send_max() const; + void set_send_max(::google::protobuf::int64 value); + + // optional sint64 destination_amount = 6; + bool has_destination_amount() const; + void clear_destination_amount(); + static const int kDestinationAmountFieldNumber = 6; + ::google::protobuf::int64 destination_amount() const; + void set_destination_amount(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarPathPaymentOp) + private: + void set_has_source_account(); + void clear_has_source_account(); + void set_has_send_asset(); + void clear_has_send_asset(); + void set_has_send_max(); + void clear_has_send_max(); + void set_has_destination_account(); + void clear_has_destination_account(); + void set_has_destination_asset(); + void clear_has_destination_asset(); + void set_has_destination_amount(); + void clear_has_destination_amount(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::stellar::StellarAssetType > paths_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::google::protobuf::internal::ArenaStringPtr destination_account_; + ::hw::trezor::messages::stellar::StellarAssetType* send_asset_; + ::hw::trezor::messages::stellar::StellarAssetType* destination_asset_; + ::google::protobuf::int64 send_max_; + ::google::protobuf::int64 destination_amount_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarManageOfferOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarManageOfferOp) */ { + public: + StellarManageOfferOp(); + virtual ~StellarManageOfferOp(); + + StellarManageOfferOp(const StellarManageOfferOp& from); + + inline StellarManageOfferOp& operator=(const StellarManageOfferOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarManageOfferOp(StellarManageOfferOp&& from) noexcept + : StellarManageOfferOp() { + *this = ::std::move(from); + } + + inline StellarManageOfferOp& operator=(StellarManageOfferOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarManageOfferOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarManageOfferOp* internal_default_instance() { + return reinterpret_cast( + &_StellarManageOfferOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(StellarManageOfferOp* other); + friend void swap(StellarManageOfferOp& a, StellarManageOfferOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarManageOfferOp* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarManageOfferOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarManageOfferOp& from); + void MergeFrom(const StellarManageOfferOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarManageOfferOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string source_account = 1; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 1; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; + bool has_selling_asset() const; + void clear_selling_asset(); + static const int kSellingAssetFieldNumber = 2; + private: + const ::hw::trezor::messages::stellar::StellarAssetType& _internal_selling_asset() const; + public: + const ::hw::trezor::messages::stellar::StellarAssetType& selling_asset() const; + ::hw::trezor::messages::stellar::StellarAssetType* release_selling_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* mutable_selling_asset(); + void set_allocated_selling_asset(::hw::trezor::messages::stellar::StellarAssetType* selling_asset); + + // optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; + bool has_buying_asset() const; + void clear_buying_asset(); + static const int kBuyingAssetFieldNumber = 3; + private: + const ::hw::trezor::messages::stellar::StellarAssetType& _internal_buying_asset() const; + public: + const ::hw::trezor::messages::stellar::StellarAssetType& buying_asset() const; + ::hw::trezor::messages::stellar::StellarAssetType* release_buying_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* mutable_buying_asset(); + void set_allocated_buying_asset(::hw::trezor::messages::stellar::StellarAssetType* buying_asset); + + // optional sint64 amount = 4; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 4; + ::google::protobuf::int64 amount() const; + void set_amount(::google::protobuf::int64 value); + + // optional uint32 price_n = 5; + bool has_price_n() const; + void clear_price_n(); + static const int kPriceNFieldNumber = 5; + ::google::protobuf::uint32 price_n() const; + void set_price_n(::google::protobuf::uint32 value); + + // optional uint32 price_d = 6; + bool has_price_d() const; + void clear_price_d(); + static const int kPriceDFieldNumber = 6; + ::google::protobuf::uint32 price_d() const; + void set_price_d(::google::protobuf::uint32 value); + + // optional uint64 offer_id = 7; + bool has_offer_id() const; + void clear_offer_id(); + static const int kOfferIdFieldNumber = 7; + ::google::protobuf::uint64 offer_id() const; + void set_offer_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarManageOfferOp) + private: + void set_has_source_account(); + void clear_has_source_account(); + void set_has_selling_asset(); + void clear_has_selling_asset(); + void set_has_buying_asset(); + void clear_has_buying_asset(); + void set_has_amount(); + void clear_has_amount(); + void set_has_price_n(); + void clear_has_price_n(); + void set_has_price_d(); + void clear_has_price_d(); + void set_has_offer_id(); + void clear_has_offer_id(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::hw::trezor::messages::stellar::StellarAssetType* selling_asset_; + ::hw::trezor::messages::stellar::StellarAssetType* buying_asset_; + ::google::protobuf::int64 amount_; + ::google::protobuf::uint32 price_n_; + ::google::protobuf::uint32 price_d_; + ::google::protobuf::uint64 offer_id_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarCreatePassiveOfferOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) */ { + public: + StellarCreatePassiveOfferOp(); + virtual ~StellarCreatePassiveOfferOp(); + + StellarCreatePassiveOfferOp(const StellarCreatePassiveOfferOp& from); + + inline StellarCreatePassiveOfferOp& operator=(const StellarCreatePassiveOfferOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarCreatePassiveOfferOp(StellarCreatePassiveOfferOp&& from) noexcept + : StellarCreatePassiveOfferOp() { + *this = ::std::move(from); + } + + inline StellarCreatePassiveOfferOp& operator=(StellarCreatePassiveOfferOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarCreatePassiveOfferOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarCreatePassiveOfferOp* internal_default_instance() { + return reinterpret_cast( + &_StellarCreatePassiveOfferOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(StellarCreatePassiveOfferOp* other); + friend void swap(StellarCreatePassiveOfferOp& a, StellarCreatePassiveOfferOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarCreatePassiveOfferOp* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarCreatePassiveOfferOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarCreatePassiveOfferOp& from); + void MergeFrom(const StellarCreatePassiveOfferOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarCreatePassiveOfferOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string source_account = 1; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 1; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; + bool has_selling_asset() const; + void clear_selling_asset(); + static const int kSellingAssetFieldNumber = 2; + private: + const ::hw::trezor::messages::stellar::StellarAssetType& _internal_selling_asset() const; + public: + const ::hw::trezor::messages::stellar::StellarAssetType& selling_asset() const; + ::hw::trezor::messages::stellar::StellarAssetType* release_selling_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* mutable_selling_asset(); + void set_allocated_selling_asset(::hw::trezor::messages::stellar::StellarAssetType* selling_asset); + + // optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; + bool has_buying_asset() const; + void clear_buying_asset(); + static const int kBuyingAssetFieldNumber = 3; + private: + const ::hw::trezor::messages::stellar::StellarAssetType& _internal_buying_asset() const; + public: + const ::hw::trezor::messages::stellar::StellarAssetType& buying_asset() const; + ::hw::trezor::messages::stellar::StellarAssetType* release_buying_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* mutable_buying_asset(); + void set_allocated_buying_asset(::hw::trezor::messages::stellar::StellarAssetType* buying_asset); + + // optional sint64 amount = 4; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 4; + ::google::protobuf::int64 amount() const; + void set_amount(::google::protobuf::int64 value); + + // optional uint32 price_n = 5; + bool has_price_n() const; + void clear_price_n(); + static const int kPriceNFieldNumber = 5; + ::google::protobuf::uint32 price_n() const; + void set_price_n(::google::protobuf::uint32 value); + + // optional uint32 price_d = 6; + bool has_price_d() const; + void clear_price_d(); + static const int kPriceDFieldNumber = 6; + ::google::protobuf::uint32 price_d() const; + void set_price_d(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp) + private: + void set_has_source_account(); + void clear_has_source_account(); + void set_has_selling_asset(); + void clear_has_selling_asset(); + void set_has_buying_asset(); + void clear_has_buying_asset(); + void set_has_amount(); + void clear_has_amount(); + void set_has_price_n(); + void clear_has_price_n(); + void set_has_price_d(); + void clear_has_price_d(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::hw::trezor::messages::stellar::StellarAssetType* selling_asset_; + ::hw::trezor::messages::stellar::StellarAssetType* buying_asset_; + ::google::protobuf::int64 amount_; + ::google::protobuf::uint32 price_n_; + ::google::protobuf::uint32 price_d_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarSetOptionsOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarSetOptionsOp) */ { + public: + StellarSetOptionsOp(); + virtual ~StellarSetOptionsOp(); + + StellarSetOptionsOp(const StellarSetOptionsOp& from); + + inline StellarSetOptionsOp& operator=(const StellarSetOptionsOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarSetOptionsOp(StellarSetOptionsOp&& from) noexcept + : StellarSetOptionsOp() { + *this = ::std::move(from); + } + + inline StellarSetOptionsOp& operator=(StellarSetOptionsOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarSetOptionsOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarSetOptionsOp* internal_default_instance() { + return reinterpret_cast( + &_StellarSetOptionsOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(StellarSetOptionsOp* other); + friend void swap(StellarSetOptionsOp& a, StellarSetOptionsOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarSetOptionsOp* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarSetOptionsOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarSetOptionsOp& from); + void MergeFrom(const StellarSetOptionsOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarSetOptionsOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string source_account = 1; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 1; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional string inflation_destination_account = 2; + bool has_inflation_destination_account() const; + void clear_inflation_destination_account(); + static const int kInflationDestinationAccountFieldNumber = 2; + const ::std::string& inflation_destination_account() const; + void set_inflation_destination_account(const ::std::string& value); + #if LANG_CXX11 + void set_inflation_destination_account(::std::string&& value); + #endif + void set_inflation_destination_account(const char* value); + void set_inflation_destination_account(const char* value, size_t size); + ::std::string* mutable_inflation_destination_account(); + ::std::string* release_inflation_destination_account(); + void set_allocated_inflation_destination_account(::std::string* inflation_destination_account); + + // optional string home_domain = 9; + bool has_home_domain() const; + void clear_home_domain(); + static const int kHomeDomainFieldNumber = 9; + const ::std::string& home_domain() const; + void set_home_domain(const ::std::string& value); + #if LANG_CXX11 + void set_home_domain(::std::string&& value); + #endif + void set_home_domain(const char* value); + void set_home_domain(const char* value, size_t size); + ::std::string* mutable_home_domain(); + ::std::string* release_home_domain(); + void set_allocated_home_domain(::std::string* home_domain); + + // optional bytes signer_key = 11; + bool has_signer_key() const; + void clear_signer_key(); + static const int kSignerKeyFieldNumber = 11; + const ::std::string& signer_key() const; + void set_signer_key(const ::std::string& value); + #if LANG_CXX11 + void set_signer_key(::std::string&& value); + #endif + void set_signer_key(const char* value); + void set_signer_key(const void* value, size_t size); + ::std::string* mutable_signer_key(); + ::std::string* release_signer_key(); + void set_allocated_signer_key(::std::string* signer_key); + + // optional uint32 clear_flags = 3; + bool has_clear_flags() const; + void clear_clear_flags(); + static const int kClearFlagsFieldNumber = 3; + ::google::protobuf::uint32 clear_flags() const; + void set_clear_flags(::google::protobuf::uint32 value); + + // optional uint32 set_flags = 4; + bool has_set_flags() const; + void clear_set_flags(); + static const int kSetFlagsFieldNumber = 4; + ::google::protobuf::uint32 set_flags() const; + void set_set_flags(::google::protobuf::uint32 value); + + // optional uint32 master_weight = 5; + bool has_master_weight() const; + void clear_master_weight(); + static const int kMasterWeightFieldNumber = 5; + ::google::protobuf::uint32 master_weight() const; + void set_master_weight(::google::protobuf::uint32 value); + + // optional uint32 low_threshold = 6; + bool has_low_threshold() const; + void clear_low_threshold(); + static const int kLowThresholdFieldNumber = 6; + ::google::protobuf::uint32 low_threshold() const; + void set_low_threshold(::google::protobuf::uint32 value); + + // optional uint32 medium_threshold = 7; + bool has_medium_threshold() const; + void clear_medium_threshold(); + static const int kMediumThresholdFieldNumber = 7; + ::google::protobuf::uint32 medium_threshold() const; + void set_medium_threshold(::google::protobuf::uint32 value); + + // optional uint32 high_threshold = 8; + bool has_high_threshold() const; + void clear_high_threshold(); + static const int kHighThresholdFieldNumber = 8; + ::google::protobuf::uint32 high_threshold() const; + void set_high_threshold(::google::protobuf::uint32 value); + + // optional uint32 signer_type = 10; + bool has_signer_type() const; + void clear_signer_type(); + static const int kSignerTypeFieldNumber = 10; + ::google::protobuf::uint32 signer_type() const; + void set_signer_type(::google::protobuf::uint32 value); + + // optional uint32 signer_weight = 12; + bool has_signer_weight() const; + void clear_signer_weight(); + static const int kSignerWeightFieldNumber = 12; + ::google::protobuf::uint32 signer_weight() const; + void set_signer_weight(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarSetOptionsOp) + private: + void set_has_source_account(); + void clear_has_source_account(); + void set_has_inflation_destination_account(); + void clear_has_inflation_destination_account(); + void set_has_clear_flags(); + void clear_has_clear_flags(); + void set_has_set_flags(); + void clear_has_set_flags(); + void set_has_master_weight(); + void clear_has_master_weight(); + void set_has_low_threshold(); + void clear_has_low_threshold(); + void set_has_medium_threshold(); + void clear_has_medium_threshold(); + void set_has_high_threshold(); + void clear_has_high_threshold(); + void set_has_home_domain(); + void clear_has_home_domain(); + void set_has_signer_type(); + void clear_has_signer_type(); + void set_has_signer_key(); + void clear_has_signer_key(); + void set_has_signer_weight(); + void clear_has_signer_weight(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::google::protobuf::internal::ArenaStringPtr inflation_destination_account_; + ::google::protobuf::internal::ArenaStringPtr home_domain_; + ::google::protobuf::internal::ArenaStringPtr signer_key_; + ::google::protobuf::uint32 clear_flags_; + ::google::protobuf::uint32 set_flags_; + ::google::protobuf::uint32 master_weight_; + ::google::protobuf::uint32 low_threshold_; + ::google::protobuf::uint32 medium_threshold_; + ::google::protobuf::uint32 high_threshold_; + ::google::protobuf::uint32 signer_type_; + ::google::protobuf::uint32 signer_weight_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarChangeTrustOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarChangeTrustOp) */ { + public: + StellarChangeTrustOp(); + virtual ~StellarChangeTrustOp(); + + StellarChangeTrustOp(const StellarChangeTrustOp& from); + + inline StellarChangeTrustOp& operator=(const StellarChangeTrustOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarChangeTrustOp(StellarChangeTrustOp&& from) noexcept + : StellarChangeTrustOp() { + *this = ::std::move(from); + } + + inline StellarChangeTrustOp& operator=(StellarChangeTrustOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarChangeTrustOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarChangeTrustOp* internal_default_instance() { + return reinterpret_cast( + &_StellarChangeTrustOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(StellarChangeTrustOp* other); + friend void swap(StellarChangeTrustOp& a, StellarChangeTrustOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarChangeTrustOp* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarChangeTrustOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarChangeTrustOp& from); + void MergeFrom(const StellarChangeTrustOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarChangeTrustOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string source_account = 1; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 1; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional .hw.trezor.messages.stellar.StellarAssetType asset = 2; + bool has_asset() const; + void clear_asset(); + static const int kAssetFieldNumber = 2; + private: + const ::hw::trezor::messages::stellar::StellarAssetType& _internal_asset() const; + public: + const ::hw::trezor::messages::stellar::StellarAssetType& asset() const; + ::hw::trezor::messages::stellar::StellarAssetType* release_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* mutable_asset(); + void set_allocated_asset(::hw::trezor::messages::stellar::StellarAssetType* asset); + + // optional uint64 limit = 3; + bool has_limit() const; + void clear_limit(); + static const int kLimitFieldNumber = 3; + ::google::protobuf::uint64 limit() const; + void set_limit(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarChangeTrustOp) + private: + void set_has_source_account(); + void clear_has_source_account(); + void set_has_asset(); + void clear_has_asset(); + void set_has_limit(); + void clear_has_limit(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::hw::trezor::messages::stellar::StellarAssetType* asset_; + ::google::protobuf::uint64 limit_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarAllowTrustOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarAllowTrustOp) */ { + public: + StellarAllowTrustOp(); + virtual ~StellarAllowTrustOp(); + + StellarAllowTrustOp(const StellarAllowTrustOp& from); + + inline StellarAllowTrustOp& operator=(const StellarAllowTrustOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarAllowTrustOp(StellarAllowTrustOp&& from) noexcept + : StellarAllowTrustOp() { + *this = ::std::move(from); + } + + inline StellarAllowTrustOp& operator=(StellarAllowTrustOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarAllowTrustOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarAllowTrustOp* internal_default_instance() { + return reinterpret_cast( + &_StellarAllowTrustOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(StellarAllowTrustOp* other); + friend void swap(StellarAllowTrustOp& a, StellarAllowTrustOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarAllowTrustOp* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarAllowTrustOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarAllowTrustOp& from); + void MergeFrom(const StellarAllowTrustOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarAllowTrustOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string source_account = 1; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 1; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional string trusted_account = 2; + bool has_trusted_account() const; + void clear_trusted_account(); + static const int kTrustedAccountFieldNumber = 2; + const ::std::string& trusted_account() const; + void set_trusted_account(const ::std::string& value); + #if LANG_CXX11 + void set_trusted_account(::std::string&& value); + #endif + void set_trusted_account(const char* value); + void set_trusted_account(const char* value, size_t size); + ::std::string* mutable_trusted_account(); + ::std::string* release_trusted_account(); + void set_allocated_trusted_account(::std::string* trusted_account); + + // optional string asset_code = 4; + bool has_asset_code() const; + void clear_asset_code(); + static const int kAssetCodeFieldNumber = 4; + const ::std::string& asset_code() const; + void set_asset_code(const ::std::string& value); + #if LANG_CXX11 + void set_asset_code(::std::string&& value); + #endif + void set_asset_code(const char* value); + void set_asset_code(const char* value, size_t size); + ::std::string* mutable_asset_code(); + ::std::string* release_asset_code(); + void set_allocated_asset_code(::std::string* asset_code); + + // optional uint32 asset_type = 3; + bool has_asset_type() const; + void clear_asset_type(); + static const int kAssetTypeFieldNumber = 3; + ::google::protobuf::uint32 asset_type() const; + void set_asset_type(::google::protobuf::uint32 value); + + // optional uint32 is_authorized = 5; + bool has_is_authorized() const; + void clear_is_authorized(); + static const int kIsAuthorizedFieldNumber = 5; + ::google::protobuf::uint32 is_authorized() const; + void set_is_authorized(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarAllowTrustOp) + private: + void set_has_source_account(); + void clear_has_source_account(); + void set_has_trusted_account(); + void clear_has_trusted_account(); + void set_has_asset_type(); + void clear_has_asset_type(); + void set_has_asset_code(); + void clear_has_asset_code(); + void set_has_is_authorized(); + void clear_has_is_authorized(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::google::protobuf::internal::ArenaStringPtr trusted_account_; + ::google::protobuf::internal::ArenaStringPtr asset_code_; + ::google::protobuf::uint32 asset_type_; + ::google::protobuf::uint32 is_authorized_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarAccountMergeOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarAccountMergeOp) */ { + public: + StellarAccountMergeOp(); + virtual ~StellarAccountMergeOp(); + + StellarAccountMergeOp(const StellarAccountMergeOp& from); + + inline StellarAccountMergeOp& operator=(const StellarAccountMergeOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarAccountMergeOp(StellarAccountMergeOp&& from) noexcept + : StellarAccountMergeOp() { + *this = ::std::move(from); + } + + inline StellarAccountMergeOp& operator=(StellarAccountMergeOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarAccountMergeOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarAccountMergeOp* internal_default_instance() { + return reinterpret_cast( + &_StellarAccountMergeOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(StellarAccountMergeOp* other); + friend void swap(StellarAccountMergeOp& a, StellarAccountMergeOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarAccountMergeOp* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarAccountMergeOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarAccountMergeOp& from); + void MergeFrom(const StellarAccountMergeOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarAccountMergeOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string source_account = 1; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 1; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional string destination_account = 2; + bool has_destination_account() const; + void clear_destination_account(); + static const int kDestinationAccountFieldNumber = 2; + const ::std::string& destination_account() const; + void set_destination_account(const ::std::string& value); + #if LANG_CXX11 + void set_destination_account(::std::string&& value); + #endif + void set_destination_account(const char* value); + void set_destination_account(const char* value, size_t size); + ::std::string* mutable_destination_account(); + ::std::string* release_destination_account(); + void set_allocated_destination_account(::std::string* destination_account); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarAccountMergeOp) + private: + void set_has_source_account(); + void clear_has_source_account(); + void set_has_destination_account(); + void clear_has_destination_account(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::google::protobuf::internal::ArenaStringPtr destination_account_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarManageDataOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarManageDataOp) */ { + public: + StellarManageDataOp(); + virtual ~StellarManageDataOp(); + + StellarManageDataOp(const StellarManageDataOp& from); + + inline StellarManageDataOp& operator=(const StellarManageDataOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarManageDataOp(StellarManageDataOp&& from) noexcept + : StellarManageDataOp() { + *this = ::std::move(from); + } + + inline StellarManageDataOp& operator=(StellarManageDataOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarManageDataOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarManageDataOp* internal_default_instance() { + return reinterpret_cast( + &_StellarManageDataOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(StellarManageDataOp* other); + friend void swap(StellarManageDataOp& a, StellarManageDataOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarManageDataOp* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarManageDataOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarManageDataOp& from); + void MergeFrom(const StellarManageDataOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarManageDataOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string source_account = 1; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 1; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional string key = 2; + bool has_key() const; + void clear_key(); + static const int kKeyFieldNumber = 2; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // optional bytes value = 3; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 3; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const void* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarManageDataOp) + private: + void set_has_source_account(); + void clear_has_source_account(); + void set_has_key(); + void clear_has_key(); + void set_has_value(); + void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarBumpSequenceOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarBumpSequenceOp) */ { + public: + StellarBumpSequenceOp(); + virtual ~StellarBumpSequenceOp(); + + StellarBumpSequenceOp(const StellarBumpSequenceOp& from); + + inline StellarBumpSequenceOp& operator=(const StellarBumpSequenceOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarBumpSequenceOp(StellarBumpSequenceOp&& from) noexcept + : StellarBumpSequenceOp() { + *this = ::std::move(from); + } + + inline StellarBumpSequenceOp& operator=(StellarBumpSequenceOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarBumpSequenceOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarBumpSequenceOp* internal_default_instance() { + return reinterpret_cast( + &_StellarBumpSequenceOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(StellarBumpSequenceOp* other); + friend void swap(StellarBumpSequenceOp& a, StellarBumpSequenceOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarBumpSequenceOp* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarBumpSequenceOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarBumpSequenceOp& from); + void MergeFrom(const StellarBumpSequenceOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarBumpSequenceOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string source_account = 1; + bool has_source_account() const; + void clear_source_account(); + static const int kSourceAccountFieldNumber = 1; + const ::std::string& source_account() const; + void set_source_account(const ::std::string& value); + #if LANG_CXX11 + void set_source_account(::std::string&& value); + #endif + void set_source_account(const char* value); + void set_source_account(const char* value, size_t size); + ::std::string* mutable_source_account(); + ::std::string* release_source_account(); + void set_allocated_source_account(::std::string* source_account); + + // optional uint64 bump_to = 2; + bool has_bump_to() const; + void clear_bump_to(); + static const int kBumpToFieldNumber = 2; + ::google::protobuf::uint64 bump_to() const; + void set_bump_to(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarBumpSequenceOp) + private: + void set_has_source_account(); + void clear_has_source_account(); + void set_has_bump_to(); + void clear_has_bump_to(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr source_account_; + ::google::protobuf::uint64 bump_to_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StellarSignedTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.stellar.StellarSignedTx) */ { + public: + StellarSignedTx(); + virtual ~StellarSignedTx(); + + StellarSignedTx(const StellarSignedTx& from); + + inline StellarSignedTx& operator=(const StellarSignedTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StellarSignedTx(StellarSignedTx&& from) noexcept + : StellarSignedTx() { + *this = ::std::move(from); + } + + inline StellarSignedTx& operator=(StellarSignedTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StellarSignedTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StellarSignedTx* internal_default_instance() { + return reinterpret_cast( + &_StellarSignedTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(StellarSignedTx* other); + friend void swap(StellarSignedTx& a, StellarSignedTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StellarSignedTx* New() const final { + return CreateMaybeMessage(NULL); + } + + StellarSignedTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StellarSignedTx& from); + void MergeFrom(const StellarSignedTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StellarSignedTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes public_key = 1; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // optional bytes signature = 2; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 2; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.stellar.StellarSignedTx) + private: + void set_has_public_key(); + void clear_has_public_key(); + void set_has_signature(); + void clear_has_signature(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr signature_; + friend struct ::protobuf_messages_2dstellar_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StellarAssetType + +// optional uint32 type = 1; +inline bool StellarAssetType::has_type() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StellarAssetType::set_has_type() { + _has_bits_[0] |= 0x00000004u; +} +inline void StellarAssetType::clear_has_type() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StellarAssetType::clear_type() { + type_ = 0u; + clear_has_type(); +} +inline ::google::protobuf::uint32 StellarAssetType::type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarAssetType.type) + return type_; +} +inline void StellarAssetType::set_type(::google::protobuf::uint32 value) { + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarAssetType.type) +} + +// optional string code = 2; +inline bool StellarAssetType::has_code() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarAssetType::set_has_code() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarAssetType::clear_has_code() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarAssetType::clear_code() { + code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_code(); +} +inline const ::std::string& StellarAssetType::code() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarAssetType.code) + return code_.GetNoArena(); +} +inline void StellarAssetType::set_code(const ::std::string& value) { + set_has_code(); + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarAssetType.code) +} +#if LANG_CXX11 +inline void StellarAssetType::set_code(::std::string&& value) { + set_has_code(); + code_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarAssetType.code) +} +#endif +inline void StellarAssetType::set_code(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_code(); + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarAssetType.code) +} +inline void StellarAssetType::set_code(const char* value, size_t size) { + set_has_code(); + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarAssetType.code) +} +inline ::std::string* StellarAssetType::mutable_code() { + set_has_code(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarAssetType.code) + return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarAssetType::release_code() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarAssetType.code) + if (!has_code()) { + return NULL; + } + clear_has_code(); + return code_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarAssetType::set_allocated_code(::std::string* code) { + if (code != NULL) { + set_has_code(); + } else { + clear_has_code(); + } + code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarAssetType.code) +} + +// optional string issuer = 3; +inline bool StellarAssetType::has_issuer() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarAssetType::set_has_issuer() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarAssetType::clear_has_issuer() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarAssetType::clear_issuer() { + issuer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_issuer(); +} +inline const ::std::string& StellarAssetType::issuer() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarAssetType.issuer) + return issuer_.GetNoArena(); +} +inline void StellarAssetType::set_issuer(const ::std::string& value) { + set_has_issuer(); + issuer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarAssetType.issuer) +} +#if LANG_CXX11 +inline void StellarAssetType::set_issuer(::std::string&& value) { + set_has_issuer(); + issuer_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarAssetType.issuer) +} +#endif +inline void StellarAssetType::set_issuer(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_issuer(); + issuer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarAssetType.issuer) +} +inline void StellarAssetType::set_issuer(const char* value, size_t size) { + set_has_issuer(); + issuer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarAssetType.issuer) +} +inline ::std::string* StellarAssetType::mutable_issuer() { + set_has_issuer(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarAssetType.issuer) + return issuer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarAssetType::release_issuer() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarAssetType.issuer) + if (!has_issuer()) { + return NULL; + } + clear_has_issuer(); + return issuer_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarAssetType::set_allocated_issuer(::std::string* issuer) { + if (issuer != NULL) { + set_has_issuer(); + } else { + clear_has_issuer(); + } + issuer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), issuer); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarAssetType.issuer) +} + +// ------------------------------------------------------------------- + +// StellarGetAddress + +// repeated uint32 address_n = 1; +inline int StellarGetAddress::address_n_size() const { + return address_n_.size(); +} +inline void StellarGetAddress::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 StellarGetAddress::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarGetAddress.address_n) + return address_n_.Get(index); +} +inline void StellarGetAddress::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarGetAddress.address_n) +} +inline void StellarGetAddress::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.stellar.StellarGetAddress.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +StellarGetAddress::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.stellar.StellarGetAddress.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +StellarGetAddress::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.stellar.StellarGetAddress.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool StellarGetAddress::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarGetAddress::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarGetAddress::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarGetAddress::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool StellarGetAddress::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarGetAddress.show_display) + return show_display_; +} +inline void StellarGetAddress::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarGetAddress.show_display) +} + +// ------------------------------------------------------------------- + +// StellarAddress + +// optional string address = 1; +inline bool StellarAddress::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarAddress::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarAddress::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarAddress::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& StellarAddress::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarAddress.address) + return address_.GetNoArena(); +} +inline void StellarAddress::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarAddress.address) +} +#if LANG_CXX11 +inline void StellarAddress::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarAddress.address) +} +#endif +inline void StellarAddress::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarAddress.address) +} +inline void StellarAddress::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarAddress.address) +} +inline ::std::string* StellarAddress::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarAddress.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarAddress::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarAddress.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarAddress::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarAddress.address) +} + +// ------------------------------------------------------------------- + +// StellarSignTx + +// repeated uint32 address_n = 2; +inline int StellarSignTx::address_n_size() const { + return address_n_.size(); +} +inline void StellarSignTx::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 StellarSignTx::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.address_n) + return address_n_.Get(index); +} +inline void StellarSignTx::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.address_n) +} +inline void StellarSignTx::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.stellar.StellarSignTx.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +StellarSignTx::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.stellar.StellarSignTx.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +StellarSignTx::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.stellar.StellarSignTx.address_n) + return &address_n_; +} + +// optional string network_passphrase = 3; +inline bool StellarSignTx::has_network_passphrase() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarSignTx::set_has_network_passphrase() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarSignTx::clear_has_network_passphrase() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarSignTx::clear_network_passphrase() { + network_passphrase_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_network_passphrase(); +} +inline const ::std::string& StellarSignTx::network_passphrase() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.network_passphrase) + return network_passphrase_.GetNoArena(); +} +inline void StellarSignTx::set_network_passphrase(const ::std::string& value) { + set_has_network_passphrase(); + network_passphrase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.network_passphrase) +} +#if LANG_CXX11 +inline void StellarSignTx::set_network_passphrase(::std::string&& value) { + set_has_network_passphrase(); + network_passphrase_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarSignTx.network_passphrase) +} +#endif +inline void StellarSignTx::set_network_passphrase(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_network_passphrase(); + network_passphrase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarSignTx.network_passphrase) +} +inline void StellarSignTx::set_network_passphrase(const char* value, size_t size) { + set_has_network_passphrase(); + network_passphrase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarSignTx.network_passphrase) +} +inline ::std::string* StellarSignTx::mutable_network_passphrase() { + set_has_network_passphrase(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarSignTx.network_passphrase) + return network_passphrase_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarSignTx::release_network_passphrase() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarSignTx.network_passphrase) + if (!has_network_passphrase()) { + return NULL; + } + clear_has_network_passphrase(); + return network_passphrase_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarSignTx::set_allocated_network_passphrase(::std::string* network_passphrase) { + if (network_passphrase != NULL) { + set_has_network_passphrase(); + } else { + clear_has_network_passphrase(); + } + network_passphrase_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), network_passphrase); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarSignTx.network_passphrase) +} + +// optional string source_account = 4; +inline bool StellarSignTx::has_source_account() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarSignTx::set_has_source_account() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarSignTx::clear_has_source_account() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarSignTx::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarSignTx::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.source_account) + return source_account_.GetNoArena(); +} +inline void StellarSignTx::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.source_account) +} +#if LANG_CXX11 +inline void StellarSignTx::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarSignTx.source_account) +} +#endif +inline void StellarSignTx::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarSignTx.source_account) +} +inline void StellarSignTx::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarSignTx.source_account) +} +inline ::std::string* StellarSignTx::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarSignTx.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarSignTx::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarSignTx.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarSignTx::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarSignTx.source_account) +} + +// optional uint32 fee = 5; +inline bool StellarSignTx::has_fee() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void StellarSignTx::set_has_fee() { + _has_bits_[0] |= 0x00000020u; +} +inline void StellarSignTx::clear_has_fee() { + _has_bits_[0] &= ~0x00000020u; +} +inline void StellarSignTx::clear_fee() { + fee_ = 0u; + clear_has_fee(); +} +inline ::google::protobuf::uint32 StellarSignTx::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.fee) + return fee_; +} +inline void StellarSignTx::set_fee(::google::protobuf::uint32 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.fee) +} + +// optional uint64 sequence_number = 6; +inline bool StellarSignTx::has_sequence_number() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void StellarSignTx::set_has_sequence_number() { + _has_bits_[0] |= 0x00000010u; +} +inline void StellarSignTx::clear_has_sequence_number() { + _has_bits_[0] &= ~0x00000010u; +} +inline void StellarSignTx::clear_sequence_number() { + sequence_number_ = GOOGLE_ULONGLONG(0); + clear_has_sequence_number(); +} +inline ::google::protobuf::uint64 StellarSignTx::sequence_number() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.sequence_number) + return sequence_number_; +} +inline void StellarSignTx::set_sequence_number(::google::protobuf::uint64 value) { + set_has_sequence_number(); + sequence_number_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.sequence_number) +} + +// optional uint32 timebounds_start = 8; +inline bool StellarSignTx::has_timebounds_start() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void StellarSignTx::set_has_timebounds_start() { + _has_bits_[0] |= 0x00000040u; +} +inline void StellarSignTx::clear_has_timebounds_start() { + _has_bits_[0] &= ~0x00000040u; +} +inline void StellarSignTx::clear_timebounds_start() { + timebounds_start_ = 0u; + clear_has_timebounds_start(); +} +inline ::google::protobuf::uint32 StellarSignTx::timebounds_start() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.timebounds_start) + return timebounds_start_; +} +inline void StellarSignTx::set_timebounds_start(::google::protobuf::uint32 value) { + set_has_timebounds_start(); + timebounds_start_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.timebounds_start) +} + +// optional uint32 timebounds_end = 9; +inline bool StellarSignTx::has_timebounds_end() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void StellarSignTx::set_has_timebounds_end() { + _has_bits_[0] |= 0x00000080u; +} +inline void StellarSignTx::clear_has_timebounds_end() { + _has_bits_[0] &= ~0x00000080u; +} +inline void StellarSignTx::clear_timebounds_end() { + timebounds_end_ = 0u; + clear_has_timebounds_end(); +} +inline ::google::protobuf::uint32 StellarSignTx::timebounds_end() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.timebounds_end) + return timebounds_end_; +} +inline void StellarSignTx::set_timebounds_end(::google::protobuf::uint32 value) { + set_has_timebounds_end(); + timebounds_end_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.timebounds_end) +} + +// optional uint32 memo_type = 10; +inline bool StellarSignTx::has_memo_type() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void StellarSignTx::set_has_memo_type() { + _has_bits_[0] |= 0x00000100u; +} +inline void StellarSignTx::clear_has_memo_type() { + _has_bits_[0] &= ~0x00000100u; +} +inline void StellarSignTx::clear_memo_type() { + memo_type_ = 0u; + clear_has_memo_type(); +} +inline ::google::protobuf::uint32 StellarSignTx::memo_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.memo_type) + return memo_type_; +} +inline void StellarSignTx::set_memo_type(::google::protobuf::uint32 value) { + set_has_memo_type(); + memo_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.memo_type) +} + +// optional string memo_text = 11; +inline bool StellarSignTx::has_memo_text() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StellarSignTx::set_has_memo_text() { + _has_bits_[0] |= 0x00000004u; +} +inline void StellarSignTx::clear_has_memo_text() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StellarSignTx::clear_memo_text() { + memo_text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_memo_text(); +} +inline const ::std::string& StellarSignTx::memo_text() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.memo_text) + return memo_text_.GetNoArena(); +} +inline void StellarSignTx::set_memo_text(const ::std::string& value) { + set_has_memo_text(); + memo_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.memo_text) +} +#if LANG_CXX11 +inline void StellarSignTx::set_memo_text(::std::string&& value) { + set_has_memo_text(); + memo_text_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarSignTx.memo_text) +} +#endif +inline void StellarSignTx::set_memo_text(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_memo_text(); + memo_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarSignTx.memo_text) +} +inline void StellarSignTx::set_memo_text(const char* value, size_t size) { + set_has_memo_text(); + memo_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarSignTx.memo_text) +} +inline ::std::string* StellarSignTx::mutable_memo_text() { + set_has_memo_text(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarSignTx.memo_text) + return memo_text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarSignTx::release_memo_text() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarSignTx.memo_text) + if (!has_memo_text()) { + return NULL; + } + clear_has_memo_text(); + return memo_text_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarSignTx::set_allocated_memo_text(::std::string* memo_text) { + if (memo_text != NULL) { + set_has_memo_text(); + } else { + clear_has_memo_text(); + } + memo_text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), memo_text); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarSignTx.memo_text) +} + +// optional uint64 memo_id = 12; +inline bool StellarSignTx::has_memo_id() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void StellarSignTx::set_has_memo_id() { + _has_bits_[0] |= 0x00000200u; +} +inline void StellarSignTx::clear_has_memo_id() { + _has_bits_[0] &= ~0x00000200u; +} +inline void StellarSignTx::clear_memo_id() { + memo_id_ = GOOGLE_ULONGLONG(0); + clear_has_memo_id(); +} +inline ::google::protobuf::uint64 StellarSignTx::memo_id() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.memo_id) + return memo_id_; +} +inline void StellarSignTx::set_memo_id(::google::protobuf::uint64 value) { + set_has_memo_id(); + memo_id_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.memo_id) +} + +// optional bytes memo_hash = 13; +inline bool StellarSignTx::has_memo_hash() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void StellarSignTx::set_has_memo_hash() { + _has_bits_[0] |= 0x00000008u; +} +inline void StellarSignTx::clear_has_memo_hash() { + _has_bits_[0] &= ~0x00000008u; +} +inline void StellarSignTx::clear_memo_hash() { + memo_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_memo_hash(); +} +inline const ::std::string& StellarSignTx::memo_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.memo_hash) + return memo_hash_.GetNoArena(); +} +inline void StellarSignTx::set_memo_hash(const ::std::string& value) { + set_has_memo_hash(); + memo_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.memo_hash) +} +#if LANG_CXX11 +inline void StellarSignTx::set_memo_hash(::std::string&& value) { + set_has_memo_hash(); + memo_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarSignTx.memo_hash) +} +#endif +inline void StellarSignTx::set_memo_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_memo_hash(); + memo_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarSignTx.memo_hash) +} +inline void StellarSignTx::set_memo_hash(const void* value, size_t size) { + set_has_memo_hash(); + memo_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarSignTx.memo_hash) +} +inline ::std::string* StellarSignTx::mutable_memo_hash() { + set_has_memo_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarSignTx.memo_hash) + return memo_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarSignTx::release_memo_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarSignTx.memo_hash) + if (!has_memo_hash()) { + return NULL; + } + clear_has_memo_hash(); + return memo_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarSignTx::set_allocated_memo_hash(::std::string* memo_hash) { + if (memo_hash != NULL) { + set_has_memo_hash(); + } else { + clear_has_memo_hash(); + } + memo_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), memo_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarSignTx.memo_hash) +} + +// optional uint32 num_operations = 14; +inline bool StellarSignTx::has_num_operations() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void StellarSignTx::set_has_num_operations() { + _has_bits_[0] |= 0x00000400u; +} +inline void StellarSignTx::clear_has_num_operations() { + _has_bits_[0] &= ~0x00000400u; +} +inline void StellarSignTx::clear_num_operations() { + num_operations_ = 0u; + clear_has_num_operations(); +} +inline ::google::protobuf::uint32 StellarSignTx::num_operations() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignTx.num_operations) + return num_operations_; +} +inline void StellarSignTx::set_num_operations(::google::protobuf::uint32 value) { + set_has_num_operations(); + num_operations_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignTx.num_operations) +} + +// ------------------------------------------------------------------- + +// StellarTxOpRequest + +// ------------------------------------------------------------------- + +// StellarPaymentOp + +// optional string source_account = 1; +inline bool StellarPaymentOp::has_source_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarPaymentOp::set_has_source_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarPaymentOp::clear_has_source_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarPaymentOp::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarPaymentOp::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarPaymentOp.source_account) + return source_account_.GetNoArena(); +} +inline void StellarPaymentOp::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarPaymentOp.source_account) +} +#if LANG_CXX11 +inline void StellarPaymentOp::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarPaymentOp.source_account) +} +#endif +inline void StellarPaymentOp::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarPaymentOp.source_account) +} +inline void StellarPaymentOp::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarPaymentOp.source_account) +} +inline ::std::string* StellarPaymentOp::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarPaymentOp.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarPaymentOp::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarPaymentOp.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarPaymentOp::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarPaymentOp.source_account) +} + +// optional string destination_account = 2; +inline bool StellarPaymentOp::has_destination_account() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarPaymentOp::set_has_destination_account() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarPaymentOp::clear_has_destination_account() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarPaymentOp::clear_destination_account() { + destination_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_destination_account(); +} +inline const ::std::string& StellarPaymentOp::destination_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarPaymentOp.destination_account) + return destination_account_.GetNoArena(); +} +inline void StellarPaymentOp::set_destination_account(const ::std::string& value) { + set_has_destination_account(); + destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarPaymentOp.destination_account) +} +#if LANG_CXX11 +inline void StellarPaymentOp::set_destination_account(::std::string&& value) { + set_has_destination_account(); + destination_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarPaymentOp.destination_account) +} +#endif +inline void StellarPaymentOp::set_destination_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_destination_account(); + destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarPaymentOp.destination_account) +} +inline void StellarPaymentOp::set_destination_account(const char* value, size_t size) { + set_has_destination_account(); + destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarPaymentOp.destination_account) +} +inline ::std::string* StellarPaymentOp::mutable_destination_account() { + set_has_destination_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarPaymentOp.destination_account) + return destination_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarPaymentOp::release_destination_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarPaymentOp.destination_account) + if (!has_destination_account()) { + return NULL; + } + clear_has_destination_account(); + return destination_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarPaymentOp::set_allocated_destination_account(::std::string* destination_account) { + if (destination_account != NULL) { + set_has_destination_account(); + } else { + clear_has_destination_account(); + } + destination_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), destination_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarPaymentOp.destination_account) +} + +// optional .hw.trezor.messages.stellar.StellarAssetType asset = 3; +inline bool StellarPaymentOp::has_asset() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StellarPaymentOp::set_has_asset() { + _has_bits_[0] |= 0x00000004u; +} +inline void StellarPaymentOp::clear_has_asset() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StellarPaymentOp::clear_asset() { + if (asset_ != NULL) asset_->Clear(); + clear_has_asset(); +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarPaymentOp::_internal_asset() const { + return *asset_; +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarPaymentOp::asset() const { + const ::hw::trezor::messages::stellar::StellarAssetType* p = asset_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarPaymentOp.asset) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::stellar::_StellarAssetType_default_instance_); +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarPaymentOp::release_asset() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarPaymentOp.asset) + clear_has_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* temp = asset_; + asset_ = NULL; + return temp; +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarPaymentOp::mutable_asset() { + set_has_asset(); + if (asset_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAssetType>(GetArenaNoVirtual()); + asset_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarPaymentOp.asset) + return asset_; +} +inline void StellarPaymentOp::set_allocated_asset(::hw::trezor::messages::stellar::StellarAssetType* asset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete asset_; + } + if (asset) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + asset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, asset, submessage_arena); + } + set_has_asset(); + } else { + clear_has_asset(); + } + asset_ = asset; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarPaymentOp.asset) +} + +// optional sint64 amount = 4; +inline bool StellarPaymentOp::has_amount() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void StellarPaymentOp::set_has_amount() { + _has_bits_[0] |= 0x00000008u; +} +inline void StellarPaymentOp::clear_has_amount() { + _has_bits_[0] &= ~0x00000008u; +} +inline void StellarPaymentOp::clear_amount() { + amount_ = GOOGLE_LONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::int64 StellarPaymentOp::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarPaymentOp.amount) + return amount_; +} +inline void StellarPaymentOp::set_amount(::google::protobuf::int64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarPaymentOp.amount) +} + +// ------------------------------------------------------------------- + +// StellarCreateAccountOp + +// optional string source_account = 1; +inline bool StellarCreateAccountOp::has_source_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarCreateAccountOp::set_has_source_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarCreateAccountOp::clear_has_source_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarCreateAccountOp::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarCreateAccountOp::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarCreateAccountOp.source_account) + return source_account_.GetNoArena(); +} +inline void StellarCreateAccountOp::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarCreateAccountOp.source_account) +} +#if LANG_CXX11 +inline void StellarCreateAccountOp::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarCreateAccountOp.source_account) +} +#endif +inline void StellarCreateAccountOp::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarCreateAccountOp.source_account) +} +inline void StellarCreateAccountOp::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarCreateAccountOp.source_account) +} +inline ::std::string* StellarCreateAccountOp::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarCreateAccountOp.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarCreateAccountOp::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarCreateAccountOp.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarCreateAccountOp::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarCreateAccountOp.source_account) +} + +// optional string new_account = 2; +inline bool StellarCreateAccountOp::has_new_account() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarCreateAccountOp::set_has_new_account() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarCreateAccountOp::clear_has_new_account() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarCreateAccountOp::clear_new_account() { + new_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_new_account(); +} +inline const ::std::string& StellarCreateAccountOp::new_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarCreateAccountOp.new_account) + return new_account_.GetNoArena(); +} +inline void StellarCreateAccountOp::set_new_account(const ::std::string& value) { + set_has_new_account(); + new_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarCreateAccountOp.new_account) +} +#if LANG_CXX11 +inline void StellarCreateAccountOp::set_new_account(::std::string&& value) { + set_has_new_account(); + new_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarCreateAccountOp.new_account) +} +#endif +inline void StellarCreateAccountOp::set_new_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_new_account(); + new_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarCreateAccountOp.new_account) +} +inline void StellarCreateAccountOp::set_new_account(const char* value, size_t size) { + set_has_new_account(); + new_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarCreateAccountOp.new_account) +} +inline ::std::string* StellarCreateAccountOp::mutable_new_account() { + set_has_new_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarCreateAccountOp.new_account) + return new_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarCreateAccountOp::release_new_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarCreateAccountOp.new_account) + if (!has_new_account()) { + return NULL; + } + clear_has_new_account(); + return new_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarCreateAccountOp::set_allocated_new_account(::std::string* new_account) { + if (new_account != NULL) { + set_has_new_account(); + } else { + clear_has_new_account(); + } + new_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), new_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarCreateAccountOp.new_account) +} + +// optional sint64 starting_balance = 3; +inline bool StellarCreateAccountOp::has_starting_balance() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StellarCreateAccountOp::set_has_starting_balance() { + _has_bits_[0] |= 0x00000004u; +} +inline void StellarCreateAccountOp::clear_has_starting_balance() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StellarCreateAccountOp::clear_starting_balance() { + starting_balance_ = GOOGLE_LONGLONG(0); + clear_has_starting_balance(); +} +inline ::google::protobuf::int64 StellarCreateAccountOp::starting_balance() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarCreateAccountOp.starting_balance) + return starting_balance_; +} +inline void StellarCreateAccountOp::set_starting_balance(::google::protobuf::int64 value) { + set_has_starting_balance(); + starting_balance_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarCreateAccountOp.starting_balance) +} + +// ------------------------------------------------------------------- + +// StellarPathPaymentOp + +// optional string source_account = 1; +inline bool StellarPathPaymentOp::has_source_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarPathPaymentOp::set_has_source_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarPathPaymentOp::clear_has_source_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarPathPaymentOp::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarPathPaymentOp::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarPathPaymentOp.source_account) + return source_account_.GetNoArena(); +} +inline void StellarPathPaymentOp::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarPathPaymentOp.source_account) +} +#if LANG_CXX11 +inline void StellarPathPaymentOp::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarPathPaymentOp.source_account) +} +#endif +inline void StellarPathPaymentOp::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarPathPaymentOp.source_account) +} +inline void StellarPathPaymentOp::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarPathPaymentOp.source_account) +} +inline ::std::string* StellarPathPaymentOp::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarPathPaymentOp.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarPathPaymentOp::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarPathPaymentOp.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarPathPaymentOp::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarPathPaymentOp.source_account) +} + +// optional .hw.trezor.messages.stellar.StellarAssetType send_asset = 2; +inline bool StellarPathPaymentOp::has_send_asset() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StellarPathPaymentOp::set_has_send_asset() { + _has_bits_[0] |= 0x00000004u; +} +inline void StellarPathPaymentOp::clear_has_send_asset() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StellarPathPaymentOp::clear_send_asset() { + if (send_asset_ != NULL) send_asset_->Clear(); + clear_has_send_asset(); +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarPathPaymentOp::_internal_send_asset() const { + return *send_asset_; +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarPathPaymentOp::send_asset() const { + const ::hw::trezor::messages::stellar::StellarAssetType* p = send_asset_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarPathPaymentOp.send_asset) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::stellar::_StellarAssetType_default_instance_); +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarPathPaymentOp::release_send_asset() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarPathPaymentOp.send_asset) + clear_has_send_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* temp = send_asset_; + send_asset_ = NULL; + return temp; +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarPathPaymentOp::mutable_send_asset() { + set_has_send_asset(); + if (send_asset_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAssetType>(GetArenaNoVirtual()); + send_asset_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarPathPaymentOp.send_asset) + return send_asset_; +} +inline void StellarPathPaymentOp::set_allocated_send_asset(::hw::trezor::messages::stellar::StellarAssetType* send_asset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete send_asset_; + } + if (send_asset) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + send_asset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, send_asset, submessage_arena); + } + set_has_send_asset(); + } else { + clear_has_send_asset(); + } + send_asset_ = send_asset; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarPathPaymentOp.send_asset) +} + +// optional sint64 send_max = 3; +inline bool StellarPathPaymentOp::has_send_max() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void StellarPathPaymentOp::set_has_send_max() { + _has_bits_[0] |= 0x00000010u; +} +inline void StellarPathPaymentOp::clear_has_send_max() { + _has_bits_[0] &= ~0x00000010u; +} +inline void StellarPathPaymentOp::clear_send_max() { + send_max_ = GOOGLE_LONGLONG(0); + clear_has_send_max(); +} +inline ::google::protobuf::int64 StellarPathPaymentOp::send_max() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarPathPaymentOp.send_max) + return send_max_; +} +inline void StellarPathPaymentOp::set_send_max(::google::protobuf::int64 value) { + set_has_send_max(); + send_max_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarPathPaymentOp.send_max) +} + +// optional string destination_account = 4; +inline bool StellarPathPaymentOp::has_destination_account() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarPathPaymentOp::set_has_destination_account() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarPathPaymentOp::clear_has_destination_account() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarPathPaymentOp::clear_destination_account() { + destination_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_destination_account(); +} +inline const ::std::string& StellarPathPaymentOp::destination_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_account) + return destination_account_.GetNoArena(); +} +inline void StellarPathPaymentOp::set_destination_account(const ::std::string& value) { + set_has_destination_account(); + destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_account) +} +#if LANG_CXX11 +inline void StellarPathPaymentOp::set_destination_account(::std::string&& value) { + set_has_destination_account(); + destination_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_account) +} +#endif +inline void StellarPathPaymentOp::set_destination_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_destination_account(); + destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_account) +} +inline void StellarPathPaymentOp::set_destination_account(const char* value, size_t size) { + set_has_destination_account(); + destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_account) +} +inline ::std::string* StellarPathPaymentOp::mutable_destination_account() { + set_has_destination_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_account) + return destination_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarPathPaymentOp::release_destination_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_account) + if (!has_destination_account()) { + return NULL; + } + clear_has_destination_account(); + return destination_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarPathPaymentOp::set_allocated_destination_account(::std::string* destination_account) { + if (destination_account != NULL) { + set_has_destination_account(); + } else { + clear_has_destination_account(); + } + destination_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), destination_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_account) +} + +// optional .hw.trezor.messages.stellar.StellarAssetType destination_asset = 5; +inline bool StellarPathPaymentOp::has_destination_asset() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void StellarPathPaymentOp::set_has_destination_asset() { + _has_bits_[0] |= 0x00000008u; +} +inline void StellarPathPaymentOp::clear_has_destination_asset() { + _has_bits_[0] &= ~0x00000008u; +} +inline void StellarPathPaymentOp::clear_destination_asset() { + if (destination_asset_ != NULL) destination_asset_->Clear(); + clear_has_destination_asset(); +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarPathPaymentOp::_internal_destination_asset() const { + return *destination_asset_; +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarPathPaymentOp::destination_asset() const { + const ::hw::trezor::messages::stellar::StellarAssetType* p = destination_asset_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_asset) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::stellar::_StellarAssetType_default_instance_); +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarPathPaymentOp::release_destination_asset() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_asset) + clear_has_destination_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* temp = destination_asset_; + destination_asset_ = NULL; + return temp; +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarPathPaymentOp::mutable_destination_asset() { + set_has_destination_asset(); + if (destination_asset_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAssetType>(GetArenaNoVirtual()); + destination_asset_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_asset) + return destination_asset_; +} +inline void StellarPathPaymentOp::set_allocated_destination_asset(::hw::trezor::messages::stellar::StellarAssetType* destination_asset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete destination_asset_; + } + if (destination_asset) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + destination_asset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, destination_asset, submessage_arena); + } + set_has_destination_asset(); + } else { + clear_has_destination_asset(); + } + destination_asset_ = destination_asset; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_asset) +} + +// optional sint64 destination_amount = 6; +inline bool StellarPathPaymentOp::has_destination_amount() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void StellarPathPaymentOp::set_has_destination_amount() { + _has_bits_[0] |= 0x00000020u; +} +inline void StellarPathPaymentOp::clear_has_destination_amount() { + _has_bits_[0] &= ~0x00000020u; +} +inline void StellarPathPaymentOp::clear_destination_amount() { + destination_amount_ = GOOGLE_LONGLONG(0); + clear_has_destination_amount(); +} +inline ::google::protobuf::int64 StellarPathPaymentOp::destination_amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_amount) + return destination_amount_; +} +inline void StellarPathPaymentOp::set_destination_amount(::google::protobuf::int64 value) { + set_has_destination_amount(); + destination_amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarPathPaymentOp.destination_amount) +} + +// repeated .hw.trezor.messages.stellar.StellarAssetType paths = 7; +inline int StellarPathPaymentOp::paths_size() const { + return paths_.size(); +} +inline void StellarPathPaymentOp::clear_paths() { + paths_.Clear(); +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarPathPaymentOp::mutable_paths(int index) { + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarPathPaymentOp.paths) + return paths_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::stellar::StellarAssetType >* +StellarPathPaymentOp::mutable_paths() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.stellar.StellarPathPaymentOp.paths) + return &paths_; +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarPathPaymentOp::paths(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarPathPaymentOp.paths) + return paths_.Get(index); +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarPathPaymentOp::add_paths() { + // @@protoc_insertion_point(field_add:hw.trezor.messages.stellar.StellarPathPaymentOp.paths) + return paths_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hw::trezor::messages::stellar::StellarAssetType >& +StellarPathPaymentOp::paths() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.stellar.StellarPathPaymentOp.paths) + return paths_; +} + +// ------------------------------------------------------------------- + +// StellarManageOfferOp + +// optional string source_account = 1; +inline bool StellarManageOfferOp::has_source_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarManageOfferOp::set_has_source_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarManageOfferOp::clear_has_source_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarManageOfferOp::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarManageOfferOp::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarManageOfferOp.source_account) + return source_account_.GetNoArena(); +} +inline void StellarManageOfferOp::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarManageOfferOp.source_account) +} +#if LANG_CXX11 +inline void StellarManageOfferOp::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarManageOfferOp.source_account) +} +#endif +inline void StellarManageOfferOp::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarManageOfferOp.source_account) +} +inline void StellarManageOfferOp::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarManageOfferOp.source_account) +} +inline ::std::string* StellarManageOfferOp::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarManageOfferOp.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarManageOfferOp::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarManageOfferOp.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarManageOfferOp::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarManageOfferOp.source_account) +} + +// optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; +inline bool StellarManageOfferOp::has_selling_asset() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarManageOfferOp::set_has_selling_asset() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarManageOfferOp::clear_has_selling_asset() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarManageOfferOp::clear_selling_asset() { + if (selling_asset_ != NULL) selling_asset_->Clear(); + clear_has_selling_asset(); +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarManageOfferOp::_internal_selling_asset() const { + return *selling_asset_; +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarManageOfferOp::selling_asset() const { + const ::hw::trezor::messages::stellar::StellarAssetType* p = selling_asset_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarManageOfferOp.selling_asset) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::stellar::_StellarAssetType_default_instance_); +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarManageOfferOp::release_selling_asset() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarManageOfferOp.selling_asset) + clear_has_selling_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* temp = selling_asset_; + selling_asset_ = NULL; + return temp; +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarManageOfferOp::mutable_selling_asset() { + set_has_selling_asset(); + if (selling_asset_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAssetType>(GetArenaNoVirtual()); + selling_asset_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarManageOfferOp.selling_asset) + return selling_asset_; +} +inline void StellarManageOfferOp::set_allocated_selling_asset(::hw::trezor::messages::stellar::StellarAssetType* selling_asset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete selling_asset_; + } + if (selling_asset) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + selling_asset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, selling_asset, submessage_arena); + } + set_has_selling_asset(); + } else { + clear_has_selling_asset(); + } + selling_asset_ = selling_asset; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarManageOfferOp.selling_asset) +} + +// optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; +inline bool StellarManageOfferOp::has_buying_asset() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StellarManageOfferOp::set_has_buying_asset() { + _has_bits_[0] |= 0x00000004u; +} +inline void StellarManageOfferOp::clear_has_buying_asset() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StellarManageOfferOp::clear_buying_asset() { + if (buying_asset_ != NULL) buying_asset_->Clear(); + clear_has_buying_asset(); +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarManageOfferOp::_internal_buying_asset() const { + return *buying_asset_; +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarManageOfferOp::buying_asset() const { + const ::hw::trezor::messages::stellar::StellarAssetType* p = buying_asset_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarManageOfferOp.buying_asset) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::stellar::_StellarAssetType_default_instance_); +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarManageOfferOp::release_buying_asset() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarManageOfferOp.buying_asset) + clear_has_buying_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* temp = buying_asset_; + buying_asset_ = NULL; + return temp; +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarManageOfferOp::mutable_buying_asset() { + set_has_buying_asset(); + if (buying_asset_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAssetType>(GetArenaNoVirtual()); + buying_asset_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarManageOfferOp.buying_asset) + return buying_asset_; +} +inline void StellarManageOfferOp::set_allocated_buying_asset(::hw::trezor::messages::stellar::StellarAssetType* buying_asset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete buying_asset_; + } + if (buying_asset) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + buying_asset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, buying_asset, submessage_arena); + } + set_has_buying_asset(); + } else { + clear_has_buying_asset(); + } + buying_asset_ = buying_asset; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarManageOfferOp.buying_asset) +} + +// optional sint64 amount = 4; +inline bool StellarManageOfferOp::has_amount() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void StellarManageOfferOp::set_has_amount() { + _has_bits_[0] |= 0x00000008u; +} +inline void StellarManageOfferOp::clear_has_amount() { + _has_bits_[0] &= ~0x00000008u; +} +inline void StellarManageOfferOp::clear_amount() { + amount_ = GOOGLE_LONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::int64 StellarManageOfferOp::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarManageOfferOp.amount) + return amount_; +} +inline void StellarManageOfferOp::set_amount(::google::protobuf::int64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarManageOfferOp.amount) +} + +// optional uint32 price_n = 5; +inline bool StellarManageOfferOp::has_price_n() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void StellarManageOfferOp::set_has_price_n() { + _has_bits_[0] |= 0x00000010u; +} +inline void StellarManageOfferOp::clear_has_price_n() { + _has_bits_[0] &= ~0x00000010u; +} +inline void StellarManageOfferOp::clear_price_n() { + price_n_ = 0u; + clear_has_price_n(); +} +inline ::google::protobuf::uint32 StellarManageOfferOp::price_n() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarManageOfferOp.price_n) + return price_n_; +} +inline void StellarManageOfferOp::set_price_n(::google::protobuf::uint32 value) { + set_has_price_n(); + price_n_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarManageOfferOp.price_n) +} + +// optional uint32 price_d = 6; +inline bool StellarManageOfferOp::has_price_d() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void StellarManageOfferOp::set_has_price_d() { + _has_bits_[0] |= 0x00000020u; +} +inline void StellarManageOfferOp::clear_has_price_d() { + _has_bits_[0] &= ~0x00000020u; +} +inline void StellarManageOfferOp::clear_price_d() { + price_d_ = 0u; + clear_has_price_d(); +} +inline ::google::protobuf::uint32 StellarManageOfferOp::price_d() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarManageOfferOp.price_d) + return price_d_; +} +inline void StellarManageOfferOp::set_price_d(::google::protobuf::uint32 value) { + set_has_price_d(); + price_d_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarManageOfferOp.price_d) +} + +// optional uint64 offer_id = 7; +inline bool StellarManageOfferOp::has_offer_id() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void StellarManageOfferOp::set_has_offer_id() { + _has_bits_[0] |= 0x00000040u; +} +inline void StellarManageOfferOp::clear_has_offer_id() { + _has_bits_[0] &= ~0x00000040u; +} +inline void StellarManageOfferOp::clear_offer_id() { + offer_id_ = GOOGLE_ULONGLONG(0); + clear_has_offer_id(); +} +inline ::google::protobuf::uint64 StellarManageOfferOp::offer_id() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarManageOfferOp.offer_id) + return offer_id_; +} +inline void StellarManageOfferOp::set_offer_id(::google::protobuf::uint64 value) { + set_has_offer_id(); + offer_id_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarManageOfferOp.offer_id) +} + +// ------------------------------------------------------------------- + +// StellarCreatePassiveOfferOp + +// optional string source_account = 1; +inline bool StellarCreatePassiveOfferOp::has_source_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarCreatePassiveOfferOp::set_has_source_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarCreatePassiveOfferOp::clear_has_source_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarCreatePassiveOfferOp::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarCreatePassiveOfferOp::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.source_account) + return source_account_.GetNoArena(); +} +inline void StellarCreatePassiveOfferOp::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.source_account) +} +#if LANG_CXX11 +inline void StellarCreatePassiveOfferOp::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.source_account) +} +#endif +inline void StellarCreatePassiveOfferOp::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.source_account) +} +inline void StellarCreatePassiveOfferOp::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.source_account) +} +inline ::std::string* StellarCreatePassiveOfferOp::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarCreatePassiveOfferOp::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarCreatePassiveOfferOp::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.source_account) +} + +// optional .hw.trezor.messages.stellar.StellarAssetType selling_asset = 2; +inline bool StellarCreatePassiveOfferOp::has_selling_asset() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarCreatePassiveOfferOp::set_has_selling_asset() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarCreatePassiveOfferOp::clear_has_selling_asset() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarCreatePassiveOfferOp::clear_selling_asset() { + if (selling_asset_ != NULL) selling_asset_->Clear(); + clear_has_selling_asset(); +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarCreatePassiveOfferOp::_internal_selling_asset() const { + return *selling_asset_; +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarCreatePassiveOfferOp::selling_asset() const { + const ::hw::trezor::messages::stellar::StellarAssetType* p = selling_asset_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.selling_asset) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::stellar::_StellarAssetType_default_instance_); +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarCreatePassiveOfferOp::release_selling_asset() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.selling_asset) + clear_has_selling_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* temp = selling_asset_; + selling_asset_ = NULL; + return temp; +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarCreatePassiveOfferOp::mutable_selling_asset() { + set_has_selling_asset(); + if (selling_asset_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAssetType>(GetArenaNoVirtual()); + selling_asset_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.selling_asset) + return selling_asset_; +} +inline void StellarCreatePassiveOfferOp::set_allocated_selling_asset(::hw::trezor::messages::stellar::StellarAssetType* selling_asset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete selling_asset_; + } + if (selling_asset) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + selling_asset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, selling_asset, submessage_arena); + } + set_has_selling_asset(); + } else { + clear_has_selling_asset(); + } + selling_asset_ = selling_asset; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.selling_asset) +} + +// optional .hw.trezor.messages.stellar.StellarAssetType buying_asset = 3; +inline bool StellarCreatePassiveOfferOp::has_buying_asset() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StellarCreatePassiveOfferOp::set_has_buying_asset() { + _has_bits_[0] |= 0x00000004u; +} +inline void StellarCreatePassiveOfferOp::clear_has_buying_asset() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StellarCreatePassiveOfferOp::clear_buying_asset() { + if (buying_asset_ != NULL) buying_asset_->Clear(); + clear_has_buying_asset(); +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarCreatePassiveOfferOp::_internal_buying_asset() const { + return *buying_asset_; +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarCreatePassiveOfferOp::buying_asset() const { + const ::hw::trezor::messages::stellar::StellarAssetType* p = buying_asset_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.buying_asset) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::stellar::_StellarAssetType_default_instance_); +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarCreatePassiveOfferOp::release_buying_asset() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.buying_asset) + clear_has_buying_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* temp = buying_asset_; + buying_asset_ = NULL; + return temp; +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarCreatePassiveOfferOp::mutable_buying_asset() { + set_has_buying_asset(); + if (buying_asset_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAssetType>(GetArenaNoVirtual()); + buying_asset_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.buying_asset) + return buying_asset_; +} +inline void StellarCreatePassiveOfferOp::set_allocated_buying_asset(::hw::trezor::messages::stellar::StellarAssetType* buying_asset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete buying_asset_; + } + if (buying_asset) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + buying_asset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, buying_asset, submessage_arena); + } + set_has_buying_asset(); + } else { + clear_has_buying_asset(); + } + buying_asset_ = buying_asset; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.buying_asset) +} + +// optional sint64 amount = 4; +inline bool StellarCreatePassiveOfferOp::has_amount() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void StellarCreatePassiveOfferOp::set_has_amount() { + _has_bits_[0] |= 0x00000008u; +} +inline void StellarCreatePassiveOfferOp::clear_has_amount() { + _has_bits_[0] &= ~0x00000008u; +} +inline void StellarCreatePassiveOfferOp::clear_amount() { + amount_ = GOOGLE_LONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::int64 StellarCreatePassiveOfferOp::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.amount) + return amount_; +} +inline void StellarCreatePassiveOfferOp::set_amount(::google::protobuf::int64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.amount) +} + +// optional uint32 price_n = 5; +inline bool StellarCreatePassiveOfferOp::has_price_n() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void StellarCreatePassiveOfferOp::set_has_price_n() { + _has_bits_[0] |= 0x00000010u; +} +inline void StellarCreatePassiveOfferOp::clear_has_price_n() { + _has_bits_[0] &= ~0x00000010u; +} +inline void StellarCreatePassiveOfferOp::clear_price_n() { + price_n_ = 0u; + clear_has_price_n(); +} +inline ::google::protobuf::uint32 StellarCreatePassiveOfferOp::price_n() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.price_n) + return price_n_; +} +inline void StellarCreatePassiveOfferOp::set_price_n(::google::protobuf::uint32 value) { + set_has_price_n(); + price_n_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.price_n) +} + +// optional uint32 price_d = 6; +inline bool StellarCreatePassiveOfferOp::has_price_d() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void StellarCreatePassiveOfferOp::set_has_price_d() { + _has_bits_[0] |= 0x00000020u; +} +inline void StellarCreatePassiveOfferOp::clear_has_price_d() { + _has_bits_[0] &= ~0x00000020u; +} +inline void StellarCreatePassiveOfferOp::clear_price_d() { + price_d_ = 0u; + clear_has_price_d(); +} +inline ::google::protobuf::uint32 StellarCreatePassiveOfferOp::price_d() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.price_d) + return price_d_; +} +inline void StellarCreatePassiveOfferOp::set_price_d(::google::protobuf::uint32 value) { + set_has_price_d(); + price_d_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarCreatePassiveOfferOp.price_d) +} + +// ------------------------------------------------------------------- + +// StellarSetOptionsOp + +// optional string source_account = 1; +inline bool StellarSetOptionsOp::has_source_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarSetOptionsOp::set_has_source_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarSetOptionsOp::clear_has_source_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarSetOptionsOp::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarSetOptionsOp::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.source_account) + return source_account_.GetNoArena(); +} +inline void StellarSetOptionsOp::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.source_account) +} +#if LANG_CXX11 +inline void StellarSetOptionsOp::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarSetOptionsOp.source_account) +} +#endif +inline void StellarSetOptionsOp::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarSetOptionsOp.source_account) +} +inline void StellarSetOptionsOp::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarSetOptionsOp.source_account) +} +inline ::std::string* StellarSetOptionsOp::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarSetOptionsOp.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarSetOptionsOp::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarSetOptionsOp.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarSetOptionsOp::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarSetOptionsOp.source_account) +} + +// optional string inflation_destination_account = 2; +inline bool StellarSetOptionsOp::has_inflation_destination_account() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarSetOptionsOp::set_has_inflation_destination_account() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarSetOptionsOp::clear_has_inflation_destination_account() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarSetOptionsOp::clear_inflation_destination_account() { + inflation_destination_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_inflation_destination_account(); +} +inline const ::std::string& StellarSetOptionsOp::inflation_destination_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.inflation_destination_account) + return inflation_destination_account_.GetNoArena(); +} +inline void StellarSetOptionsOp::set_inflation_destination_account(const ::std::string& value) { + set_has_inflation_destination_account(); + inflation_destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.inflation_destination_account) +} +#if LANG_CXX11 +inline void StellarSetOptionsOp::set_inflation_destination_account(::std::string&& value) { + set_has_inflation_destination_account(); + inflation_destination_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarSetOptionsOp.inflation_destination_account) +} +#endif +inline void StellarSetOptionsOp::set_inflation_destination_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_inflation_destination_account(); + inflation_destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarSetOptionsOp.inflation_destination_account) +} +inline void StellarSetOptionsOp::set_inflation_destination_account(const char* value, size_t size) { + set_has_inflation_destination_account(); + inflation_destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarSetOptionsOp.inflation_destination_account) +} +inline ::std::string* StellarSetOptionsOp::mutable_inflation_destination_account() { + set_has_inflation_destination_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarSetOptionsOp.inflation_destination_account) + return inflation_destination_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarSetOptionsOp::release_inflation_destination_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarSetOptionsOp.inflation_destination_account) + if (!has_inflation_destination_account()) { + return NULL; + } + clear_has_inflation_destination_account(); + return inflation_destination_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarSetOptionsOp::set_allocated_inflation_destination_account(::std::string* inflation_destination_account) { + if (inflation_destination_account != NULL) { + set_has_inflation_destination_account(); + } else { + clear_has_inflation_destination_account(); + } + inflation_destination_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), inflation_destination_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarSetOptionsOp.inflation_destination_account) +} + +// optional uint32 clear_flags = 3; +inline bool StellarSetOptionsOp::has_clear_flags() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void StellarSetOptionsOp::set_has_clear_flags() { + _has_bits_[0] |= 0x00000010u; +} +inline void StellarSetOptionsOp::clear_has_clear_flags() { + _has_bits_[0] &= ~0x00000010u; +} +inline void StellarSetOptionsOp::clear_clear_flags() { + clear_flags_ = 0u; + clear_has_clear_flags(); +} +inline ::google::protobuf::uint32 StellarSetOptionsOp::clear_flags() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.clear_flags) + return clear_flags_; +} +inline void StellarSetOptionsOp::set_clear_flags(::google::protobuf::uint32 value) { + set_has_clear_flags(); + clear_flags_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.clear_flags) +} + +// optional uint32 set_flags = 4; +inline bool StellarSetOptionsOp::has_set_flags() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void StellarSetOptionsOp::set_has_set_flags() { + _has_bits_[0] |= 0x00000020u; +} +inline void StellarSetOptionsOp::clear_has_set_flags() { + _has_bits_[0] &= ~0x00000020u; +} +inline void StellarSetOptionsOp::clear_set_flags() { + set_flags_ = 0u; + clear_has_set_flags(); +} +inline ::google::protobuf::uint32 StellarSetOptionsOp::set_flags() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.set_flags) + return set_flags_; +} +inline void StellarSetOptionsOp::set_set_flags(::google::protobuf::uint32 value) { + set_has_set_flags(); + set_flags_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.set_flags) +} + +// optional uint32 master_weight = 5; +inline bool StellarSetOptionsOp::has_master_weight() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void StellarSetOptionsOp::set_has_master_weight() { + _has_bits_[0] |= 0x00000040u; +} +inline void StellarSetOptionsOp::clear_has_master_weight() { + _has_bits_[0] &= ~0x00000040u; +} +inline void StellarSetOptionsOp::clear_master_weight() { + master_weight_ = 0u; + clear_has_master_weight(); +} +inline ::google::protobuf::uint32 StellarSetOptionsOp::master_weight() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.master_weight) + return master_weight_; +} +inline void StellarSetOptionsOp::set_master_weight(::google::protobuf::uint32 value) { + set_has_master_weight(); + master_weight_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.master_weight) +} + +// optional uint32 low_threshold = 6; +inline bool StellarSetOptionsOp::has_low_threshold() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void StellarSetOptionsOp::set_has_low_threshold() { + _has_bits_[0] |= 0x00000080u; +} +inline void StellarSetOptionsOp::clear_has_low_threshold() { + _has_bits_[0] &= ~0x00000080u; +} +inline void StellarSetOptionsOp::clear_low_threshold() { + low_threshold_ = 0u; + clear_has_low_threshold(); +} +inline ::google::protobuf::uint32 StellarSetOptionsOp::low_threshold() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.low_threshold) + return low_threshold_; +} +inline void StellarSetOptionsOp::set_low_threshold(::google::protobuf::uint32 value) { + set_has_low_threshold(); + low_threshold_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.low_threshold) +} + +// optional uint32 medium_threshold = 7; +inline bool StellarSetOptionsOp::has_medium_threshold() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void StellarSetOptionsOp::set_has_medium_threshold() { + _has_bits_[0] |= 0x00000100u; +} +inline void StellarSetOptionsOp::clear_has_medium_threshold() { + _has_bits_[0] &= ~0x00000100u; +} +inline void StellarSetOptionsOp::clear_medium_threshold() { + medium_threshold_ = 0u; + clear_has_medium_threshold(); +} +inline ::google::protobuf::uint32 StellarSetOptionsOp::medium_threshold() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.medium_threshold) + return medium_threshold_; +} +inline void StellarSetOptionsOp::set_medium_threshold(::google::protobuf::uint32 value) { + set_has_medium_threshold(); + medium_threshold_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.medium_threshold) +} + +// optional uint32 high_threshold = 8; +inline bool StellarSetOptionsOp::has_high_threshold() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void StellarSetOptionsOp::set_has_high_threshold() { + _has_bits_[0] |= 0x00000200u; +} +inline void StellarSetOptionsOp::clear_has_high_threshold() { + _has_bits_[0] &= ~0x00000200u; +} +inline void StellarSetOptionsOp::clear_high_threshold() { + high_threshold_ = 0u; + clear_has_high_threshold(); +} +inline ::google::protobuf::uint32 StellarSetOptionsOp::high_threshold() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.high_threshold) + return high_threshold_; +} +inline void StellarSetOptionsOp::set_high_threshold(::google::protobuf::uint32 value) { + set_has_high_threshold(); + high_threshold_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.high_threshold) +} + +// optional string home_domain = 9; +inline bool StellarSetOptionsOp::has_home_domain() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StellarSetOptionsOp::set_has_home_domain() { + _has_bits_[0] |= 0x00000004u; +} +inline void StellarSetOptionsOp::clear_has_home_domain() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StellarSetOptionsOp::clear_home_domain() { + home_domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_home_domain(); +} +inline const ::std::string& StellarSetOptionsOp::home_domain() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.home_domain) + return home_domain_.GetNoArena(); +} +inline void StellarSetOptionsOp::set_home_domain(const ::std::string& value) { + set_has_home_domain(); + home_domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.home_domain) +} +#if LANG_CXX11 +inline void StellarSetOptionsOp::set_home_domain(::std::string&& value) { + set_has_home_domain(); + home_domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarSetOptionsOp.home_domain) +} +#endif +inline void StellarSetOptionsOp::set_home_domain(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_home_domain(); + home_domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarSetOptionsOp.home_domain) +} +inline void StellarSetOptionsOp::set_home_domain(const char* value, size_t size) { + set_has_home_domain(); + home_domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarSetOptionsOp.home_domain) +} +inline ::std::string* StellarSetOptionsOp::mutable_home_domain() { + set_has_home_domain(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarSetOptionsOp.home_domain) + return home_domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarSetOptionsOp::release_home_domain() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarSetOptionsOp.home_domain) + if (!has_home_domain()) { + return NULL; + } + clear_has_home_domain(); + return home_domain_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarSetOptionsOp::set_allocated_home_domain(::std::string* home_domain) { + if (home_domain != NULL) { + set_has_home_domain(); + } else { + clear_has_home_domain(); + } + home_domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), home_domain); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarSetOptionsOp.home_domain) +} + +// optional uint32 signer_type = 10; +inline bool StellarSetOptionsOp::has_signer_type() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void StellarSetOptionsOp::set_has_signer_type() { + _has_bits_[0] |= 0x00000400u; +} +inline void StellarSetOptionsOp::clear_has_signer_type() { + _has_bits_[0] &= ~0x00000400u; +} +inline void StellarSetOptionsOp::clear_signer_type() { + signer_type_ = 0u; + clear_has_signer_type(); +} +inline ::google::protobuf::uint32 StellarSetOptionsOp::signer_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_type) + return signer_type_; +} +inline void StellarSetOptionsOp::set_signer_type(::google::protobuf::uint32 value) { + set_has_signer_type(); + signer_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_type) +} + +// optional bytes signer_key = 11; +inline bool StellarSetOptionsOp::has_signer_key() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void StellarSetOptionsOp::set_has_signer_key() { + _has_bits_[0] |= 0x00000008u; +} +inline void StellarSetOptionsOp::clear_has_signer_key() { + _has_bits_[0] &= ~0x00000008u; +} +inline void StellarSetOptionsOp::clear_signer_key() { + signer_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signer_key(); +} +inline const ::std::string& StellarSetOptionsOp::signer_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_key) + return signer_key_.GetNoArena(); +} +inline void StellarSetOptionsOp::set_signer_key(const ::std::string& value) { + set_has_signer_key(); + signer_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_key) +} +#if LANG_CXX11 +inline void StellarSetOptionsOp::set_signer_key(::std::string&& value) { + set_has_signer_key(); + signer_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_key) +} +#endif +inline void StellarSetOptionsOp::set_signer_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signer_key(); + signer_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_key) +} +inline void StellarSetOptionsOp::set_signer_key(const void* value, size_t size) { + set_has_signer_key(); + signer_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_key) +} +inline ::std::string* StellarSetOptionsOp::mutable_signer_key() { + set_has_signer_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_key) + return signer_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarSetOptionsOp::release_signer_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_key) + if (!has_signer_key()) { + return NULL; + } + clear_has_signer_key(); + return signer_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarSetOptionsOp::set_allocated_signer_key(::std::string* signer_key) { + if (signer_key != NULL) { + set_has_signer_key(); + } else { + clear_has_signer_key(); + } + signer_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signer_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_key) +} + +// optional uint32 signer_weight = 12; +inline bool StellarSetOptionsOp::has_signer_weight() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void StellarSetOptionsOp::set_has_signer_weight() { + _has_bits_[0] |= 0x00000800u; +} +inline void StellarSetOptionsOp::clear_has_signer_weight() { + _has_bits_[0] &= ~0x00000800u; +} +inline void StellarSetOptionsOp::clear_signer_weight() { + signer_weight_ = 0u; + clear_has_signer_weight(); +} +inline ::google::protobuf::uint32 StellarSetOptionsOp::signer_weight() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_weight) + return signer_weight_; +} +inline void StellarSetOptionsOp::set_signer_weight(::google::protobuf::uint32 value) { + set_has_signer_weight(); + signer_weight_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSetOptionsOp.signer_weight) +} + +// ------------------------------------------------------------------- + +// StellarChangeTrustOp + +// optional string source_account = 1; +inline bool StellarChangeTrustOp::has_source_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarChangeTrustOp::set_has_source_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarChangeTrustOp::clear_has_source_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarChangeTrustOp::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarChangeTrustOp::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarChangeTrustOp.source_account) + return source_account_.GetNoArena(); +} +inline void StellarChangeTrustOp::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarChangeTrustOp.source_account) +} +#if LANG_CXX11 +inline void StellarChangeTrustOp::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarChangeTrustOp.source_account) +} +#endif +inline void StellarChangeTrustOp::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarChangeTrustOp.source_account) +} +inline void StellarChangeTrustOp::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarChangeTrustOp.source_account) +} +inline ::std::string* StellarChangeTrustOp::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarChangeTrustOp.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarChangeTrustOp::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarChangeTrustOp.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarChangeTrustOp::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarChangeTrustOp.source_account) +} + +// optional .hw.trezor.messages.stellar.StellarAssetType asset = 2; +inline bool StellarChangeTrustOp::has_asset() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarChangeTrustOp::set_has_asset() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarChangeTrustOp::clear_has_asset() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarChangeTrustOp::clear_asset() { + if (asset_ != NULL) asset_->Clear(); + clear_has_asset(); +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarChangeTrustOp::_internal_asset() const { + return *asset_; +} +inline const ::hw::trezor::messages::stellar::StellarAssetType& StellarChangeTrustOp::asset() const { + const ::hw::trezor::messages::stellar::StellarAssetType* p = asset_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarChangeTrustOp.asset) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::stellar::_StellarAssetType_default_instance_); +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarChangeTrustOp::release_asset() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarChangeTrustOp.asset) + clear_has_asset(); + ::hw::trezor::messages::stellar::StellarAssetType* temp = asset_; + asset_ = NULL; + return temp; +} +inline ::hw::trezor::messages::stellar::StellarAssetType* StellarChangeTrustOp::mutable_asset() { + set_has_asset(); + if (asset_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::stellar::StellarAssetType>(GetArenaNoVirtual()); + asset_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarChangeTrustOp.asset) + return asset_; +} +inline void StellarChangeTrustOp::set_allocated_asset(::hw::trezor::messages::stellar::StellarAssetType* asset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete asset_; + } + if (asset) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + asset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, asset, submessage_arena); + } + set_has_asset(); + } else { + clear_has_asset(); + } + asset_ = asset; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarChangeTrustOp.asset) +} + +// optional uint64 limit = 3; +inline bool StellarChangeTrustOp::has_limit() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StellarChangeTrustOp::set_has_limit() { + _has_bits_[0] |= 0x00000004u; +} +inline void StellarChangeTrustOp::clear_has_limit() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StellarChangeTrustOp::clear_limit() { + limit_ = GOOGLE_ULONGLONG(0); + clear_has_limit(); +} +inline ::google::protobuf::uint64 StellarChangeTrustOp::limit() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarChangeTrustOp.limit) + return limit_; +} +inline void StellarChangeTrustOp::set_limit(::google::protobuf::uint64 value) { + set_has_limit(); + limit_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarChangeTrustOp.limit) +} + +// ------------------------------------------------------------------- + +// StellarAllowTrustOp + +// optional string source_account = 1; +inline bool StellarAllowTrustOp::has_source_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarAllowTrustOp::set_has_source_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarAllowTrustOp::clear_has_source_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarAllowTrustOp::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarAllowTrustOp::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarAllowTrustOp.source_account) + return source_account_.GetNoArena(); +} +inline void StellarAllowTrustOp::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarAllowTrustOp.source_account) +} +#if LANG_CXX11 +inline void StellarAllowTrustOp::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarAllowTrustOp.source_account) +} +#endif +inline void StellarAllowTrustOp::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarAllowTrustOp.source_account) +} +inline void StellarAllowTrustOp::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarAllowTrustOp.source_account) +} +inline ::std::string* StellarAllowTrustOp::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarAllowTrustOp.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarAllowTrustOp::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarAllowTrustOp.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarAllowTrustOp::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarAllowTrustOp.source_account) +} + +// optional string trusted_account = 2; +inline bool StellarAllowTrustOp::has_trusted_account() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarAllowTrustOp::set_has_trusted_account() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarAllowTrustOp::clear_has_trusted_account() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarAllowTrustOp::clear_trusted_account() { + trusted_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_trusted_account(); +} +inline const ::std::string& StellarAllowTrustOp::trusted_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarAllowTrustOp.trusted_account) + return trusted_account_.GetNoArena(); +} +inline void StellarAllowTrustOp::set_trusted_account(const ::std::string& value) { + set_has_trusted_account(); + trusted_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarAllowTrustOp.trusted_account) +} +#if LANG_CXX11 +inline void StellarAllowTrustOp::set_trusted_account(::std::string&& value) { + set_has_trusted_account(); + trusted_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarAllowTrustOp.trusted_account) +} +#endif +inline void StellarAllowTrustOp::set_trusted_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_trusted_account(); + trusted_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarAllowTrustOp.trusted_account) +} +inline void StellarAllowTrustOp::set_trusted_account(const char* value, size_t size) { + set_has_trusted_account(); + trusted_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarAllowTrustOp.trusted_account) +} +inline ::std::string* StellarAllowTrustOp::mutable_trusted_account() { + set_has_trusted_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarAllowTrustOp.trusted_account) + return trusted_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarAllowTrustOp::release_trusted_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarAllowTrustOp.trusted_account) + if (!has_trusted_account()) { + return NULL; + } + clear_has_trusted_account(); + return trusted_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarAllowTrustOp::set_allocated_trusted_account(::std::string* trusted_account) { + if (trusted_account != NULL) { + set_has_trusted_account(); + } else { + clear_has_trusted_account(); + } + trusted_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trusted_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarAllowTrustOp.trusted_account) +} + +// optional uint32 asset_type = 3; +inline bool StellarAllowTrustOp::has_asset_type() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void StellarAllowTrustOp::set_has_asset_type() { + _has_bits_[0] |= 0x00000008u; +} +inline void StellarAllowTrustOp::clear_has_asset_type() { + _has_bits_[0] &= ~0x00000008u; +} +inline void StellarAllowTrustOp::clear_asset_type() { + asset_type_ = 0u; + clear_has_asset_type(); +} +inline ::google::protobuf::uint32 StellarAllowTrustOp::asset_type() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarAllowTrustOp.asset_type) + return asset_type_; +} +inline void StellarAllowTrustOp::set_asset_type(::google::protobuf::uint32 value) { + set_has_asset_type(); + asset_type_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarAllowTrustOp.asset_type) +} + +// optional string asset_code = 4; +inline bool StellarAllowTrustOp::has_asset_code() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StellarAllowTrustOp::set_has_asset_code() { + _has_bits_[0] |= 0x00000004u; +} +inline void StellarAllowTrustOp::clear_has_asset_code() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StellarAllowTrustOp::clear_asset_code() { + asset_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_asset_code(); +} +inline const ::std::string& StellarAllowTrustOp::asset_code() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarAllowTrustOp.asset_code) + return asset_code_.GetNoArena(); +} +inline void StellarAllowTrustOp::set_asset_code(const ::std::string& value) { + set_has_asset_code(); + asset_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarAllowTrustOp.asset_code) +} +#if LANG_CXX11 +inline void StellarAllowTrustOp::set_asset_code(::std::string&& value) { + set_has_asset_code(); + asset_code_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarAllowTrustOp.asset_code) +} +#endif +inline void StellarAllowTrustOp::set_asset_code(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_asset_code(); + asset_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarAllowTrustOp.asset_code) +} +inline void StellarAllowTrustOp::set_asset_code(const char* value, size_t size) { + set_has_asset_code(); + asset_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarAllowTrustOp.asset_code) +} +inline ::std::string* StellarAllowTrustOp::mutable_asset_code() { + set_has_asset_code(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarAllowTrustOp.asset_code) + return asset_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarAllowTrustOp::release_asset_code() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarAllowTrustOp.asset_code) + if (!has_asset_code()) { + return NULL; + } + clear_has_asset_code(); + return asset_code_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarAllowTrustOp::set_allocated_asset_code(::std::string* asset_code) { + if (asset_code != NULL) { + set_has_asset_code(); + } else { + clear_has_asset_code(); + } + asset_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), asset_code); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarAllowTrustOp.asset_code) +} + +// optional uint32 is_authorized = 5; +inline bool StellarAllowTrustOp::has_is_authorized() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void StellarAllowTrustOp::set_has_is_authorized() { + _has_bits_[0] |= 0x00000010u; +} +inline void StellarAllowTrustOp::clear_has_is_authorized() { + _has_bits_[0] &= ~0x00000010u; +} +inline void StellarAllowTrustOp::clear_is_authorized() { + is_authorized_ = 0u; + clear_has_is_authorized(); +} +inline ::google::protobuf::uint32 StellarAllowTrustOp::is_authorized() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarAllowTrustOp.is_authorized) + return is_authorized_; +} +inline void StellarAllowTrustOp::set_is_authorized(::google::protobuf::uint32 value) { + set_has_is_authorized(); + is_authorized_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarAllowTrustOp.is_authorized) +} + +// ------------------------------------------------------------------- + +// StellarAccountMergeOp + +// optional string source_account = 1; +inline bool StellarAccountMergeOp::has_source_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarAccountMergeOp::set_has_source_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarAccountMergeOp::clear_has_source_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarAccountMergeOp::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarAccountMergeOp::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarAccountMergeOp.source_account) + return source_account_.GetNoArena(); +} +inline void StellarAccountMergeOp::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarAccountMergeOp.source_account) +} +#if LANG_CXX11 +inline void StellarAccountMergeOp::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarAccountMergeOp.source_account) +} +#endif +inline void StellarAccountMergeOp::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarAccountMergeOp.source_account) +} +inline void StellarAccountMergeOp::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarAccountMergeOp.source_account) +} +inline ::std::string* StellarAccountMergeOp::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarAccountMergeOp.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarAccountMergeOp::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarAccountMergeOp.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarAccountMergeOp::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarAccountMergeOp.source_account) +} + +// optional string destination_account = 2; +inline bool StellarAccountMergeOp::has_destination_account() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarAccountMergeOp::set_has_destination_account() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarAccountMergeOp::clear_has_destination_account() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarAccountMergeOp::clear_destination_account() { + destination_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_destination_account(); +} +inline const ::std::string& StellarAccountMergeOp::destination_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarAccountMergeOp.destination_account) + return destination_account_.GetNoArena(); +} +inline void StellarAccountMergeOp::set_destination_account(const ::std::string& value) { + set_has_destination_account(); + destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarAccountMergeOp.destination_account) +} +#if LANG_CXX11 +inline void StellarAccountMergeOp::set_destination_account(::std::string&& value) { + set_has_destination_account(); + destination_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarAccountMergeOp.destination_account) +} +#endif +inline void StellarAccountMergeOp::set_destination_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_destination_account(); + destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarAccountMergeOp.destination_account) +} +inline void StellarAccountMergeOp::set_destination_account(const char* value, size_t size) { + set_has_destination_account(); + destination_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarAccountMergeOp.destination_account) +} +inline ::std::string* StellarAccountMergeOp::mutable_destination_account() { + set_has_destination_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarAccountMergeOp.destination_account) + return destination_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarAccountMergeOp::release_destination_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarAccountMergeOp.destination_account) + if (!has_destination_account()) { + return NULL; + } + clear_has_destination_account(); + return destination_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarAccountMergeOp::set_allocated_destination_account(::std::string* destination_account) { + if (destination_account != NULL) { + set_has_destination_account(); + } else { + clear_has_destination_account(); + } + destination_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), destination_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarAccountMergeOp.destination_account) +} + +// ------------------------------------------------------------------- + +// StellarManageDataOp + +// optional string source_account = 1; +inline bool StellarManageDataOp::has_source_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarManageDataOp::set_has_source_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarManageDataOp::clear_has_source_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarManageDataOp::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarManageDataOp::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarManageDataOp.source_account) + return source_account_.GetNoArena(); +} +inline void StellarManageDataOp::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarManageDataOp.source_account) +} +#if LANG_CXX11 +inline void StellarManageDataOp::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarManageDataOp.source_account) +} +#endif +inline void StellarManageDataOp::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarManageDataOp.source_account) +} +inline void StellarManageDataOp::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarManageDataOp.source_account) +} +inline ::std::string* StellarManageDataOp::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarManageDataOp.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarManageDataOp::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarManageDataOp.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarManageDataOp::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarManageDataOp.source_account) +} + +// optional string key = 2; +inline bool StellarManageDataOp::has_key() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarManageDataOp::set_has_key() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarManageDataOp::clear_has_key() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarManageDataOp::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_key(); +} +inline const ::std::string& StellarManageDataOp::key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarManageDataOp.key) + return key_.GetNoArena(); +} +inline void StellarManageDataOp::set_key(const ::std::string& value) { + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarManageDataOp.key) +} +#if LANG_CXX11 +inline void StellarManageDataOp::set_key(::std::string&& value) { + set_has_key(); + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarManageDataOp.key) +} +#endif +inline void StellarManageDataOp::set_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarManageDataOp.key) +} +inline void StellarManageDataOp::set_key(const char* value, size_t size) { + set_has_key(); + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarManageDataOp.key) +} +inline ::std::string* StellarManageDataOp::mutable_key() { + set_has_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarManageDataOp.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarManageDataOp::release_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarManageDataOp.key) + if (!has_key()) { + return NULL; + } + clear_has_key(); + return key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarManageDataOp::set_allocated_key(::std::string* key) { + if (key != NULL) { + set_has_key(); + } else { + clear_has_key(); + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarManageDataOp.key) +} + +// optional bytes value = 3; +inline bool StellarManageDataOp::has_value() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StellarManageDataOp::set_has_value() { + _has_bits_[0] |= 0x00000004u; +} +inline void StellarManageDataOp::clear_has_value() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StellarManageDataOp::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_value(); +} +inline const ::std::string& StellarManageDataOp::value() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarManageDataOp.value) + return value_.GetNoArena(); +} +inline void StellarManageDataOp::set_value(const ::std::string& value) { + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarManageDataOp.value) +} +#if LANG_CXX11 +inline void StellarManageDataOp::set_value(::std::string&& value) { + set_has_value(); + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarManageDataOp.value) +} +#endif +inline void StellarManageDataOp::set_value(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarManageDataOp.value) +} +inline void StellarManageDataOp::set_value(const void* value, size_t size) { + set_has_value(); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarManageDataOp.value) +} +inline ::std::string* StellarManageDataOp::mutable_value() { + set_has_value(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarManageDataOp.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarManageDataOp::release_value() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarManageDataOp.value) + if (!has_value()) { + return NULL; + } + clear_has_value(); + return value_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarManageDataOp::set_allocated_value(::std::string* value) { + if (value != NULL) { + set_has_value(); + } else { + clear_has_value(); + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarManageDataOp.value) +} + +// ------------------------------------------------------------------- + +// StellarBumpSequenceOp + +// optional string source_account = 1; +inline bool StellarBumpSequenceOp::has_source_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarBumpSequenceOp::set_has_source_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarBumpSequenceOp::clear_has_source_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarBumpSequenceOp::clear_source_account() { + source_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_source_account(); +} +inline const ::std::string& StellarBumpSequenceOp::source_account() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarBumpSequenceOp.source_account) + return source_account_.GetNoArena(); +} +inline void StellarBumpSequenceOp::set_source_account(const ::std::string& value) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarBumpSequenceOp.source_account) +} +#if LANG_CXX11 +inline void StellarBumpSequenceOp::set_source_account(::std::string&& value) { + set_has_source_account(); + source_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarBumpSequenceOp.source_account) +} +#endif +inline void StellarBumpSequenceOp::set_source_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarBumpSequenceOp.source_account) +} +inline void StellarBumpSequenceOp::set_source_account(const char* value, size_t size) { + set_has_source_account(); + source_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarBumpSequenceOp.source_account) +} +inline ::std::string* StellarBumpSequenceOp::mutable_source_account() { + set_has_source_account(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarBumpSequenceOp.source_account) + return source_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarBumpSequenceOp::release_source_account() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarBumpSequenceOp.source_account) + if (!has_source_account()) { + return NULL; + } + clear_has_source_account(); + return source_account_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarBumpSequenceOp::set_allocated_source_account(::std::string* source_account) { + if (source_account != NULL) { + set_has_source_account(); + } else { + clear_has_source_account(); + } + source_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_account); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarBumpSequenceOp.source_account) +} + +// optional uint64 bump_to = 2; +inline bool StellarBumpSequenceOp::has_bump_to() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarBumpSequenceOp::set_has_bump_to() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarBumpSequenceOp::clear_has_bump_to() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarBumpSequenceOp::clear_bump_to() { + bump_to_ = GOOGLE_ULONGLONG(0); + clear_has_bump_to(); +} +inline ::google::protobuf::uint64 StellarBumpSequenceOp::bump_to() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarBumpSequenceOp.bump_to) + return bump_to_; +} +inline void StellarBumpSequenceOp::set_bump_to(::google::protobuf::uint64 value) { + set_has_bump_to(); + bump_to_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarBumpSequenceOp.bump_to) +} + +// ------------------------------------------------------------------- + +// StellarSignedTx + +// optional bytes public_key = 1; +inline bool StellarSignedTx::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StellarSignedTx::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void StellarSignedTx::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StellarSignedTx::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& StellarSignedTx::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignedTx.public_key) + return public_key_.GetNoArena(); +} +inline void StellarSignedTx::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignedTx.public_key) +} +#if LANG_CXX11 +inline void StellarSignedTx::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarSignedTx.public_key) +} +#endif +inline void StellarSignedTx::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarSignedTx.public_key) +} +inline void StellarSignedTx::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarSignedTx.public_key) +} +inline ::std::string* StellarSignedTx::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarSignedTx.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarSignedTx::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarSignedTx.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarSignedTx::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarSignedTx.public_key) +} + +// optional bytes signature = 2; +inline bool StellarSignedTx::has_signature() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StellarSignedTx::set_has_signature() { + _has_bits_[0] |= 0x00000002u; +} +inline void StellarSignedTx::clear_has_signature() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StellarSignedTx::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& StellarSignedTx::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.stellar.StellarSignedTx.signature) + return signature_.GetNoArena(); +} +inline void StellarSignedTx::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.stellar.StellarSignedTx.signature) +} +#if LANG_CXX11 +inline void StellarSignedTx::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.stellar.StellarSignedTx.signature) +} +#endif +inline void StellarSignedTx::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.stellar.StellarSignedTx.signature) +} +inline void StellarSignedTx::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.stellar.StellarSignedTx.signature) +} +inline ::std::string* StellarSignedTx::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.stellar.StellarSignedTx.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StellarSignedTx::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.stellar.StellarSignedTx.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StellarSignedTx::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.stellar.StellarSignedTx.signature) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace stellar +} // namespace messages +} // namespace trezor +} // namespace hw + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dstellar_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-tezos.pb.cc b/src/Core/hardware/trezor/protob/messages-tezos.pb.cc new file mode 100644 index 00000000..9fca9e35 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-tezos.pb.cc @@ -0,0 +1,4882 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-tezos.proto + +#include "messages-tezos.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dtezos_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtezos_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TezosSignTx_TezosContractID; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtezos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TezosSignTx_TezosDelegationOp; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtezos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TezosSignTx_TezosOriginationOp; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtezos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TezosSignTx_TezosRevealOp; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtezos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TezosSignTx_TezosTransactionOp; +} // namespace protobuf_messages_2dtezos_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace tezos { +class TezosGetAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TezosGetAddress_default_instance_; +class TezosAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TezosAddress_default_instance_; +class TezosGetPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TezosGetPublicKey_default_instance_; +class TezosPublicKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TezosPublicKey_default_instance_; +class TezosSignTx_TezosContractIDDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TezosSignTx_TezosContractID_default_instance_; +class TezosSignTx_TezosRevealOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TezosSignTx_TezosRevealOp_default_instance_; +class TezosSignTx_TezosTransactionOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TezosSignTx_TezosTransactionOp_default_instance_; +class TezosSignTx_TezosOriginationOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TezosSignTx_TezosOriginationOp_default_instance_; +class TezosSignTx_TezosDelegationOpDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TezosSignTx_TezosDelegationOp_default_instance_; +class TezosSignTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TezosSignTx_default_instance_; +class TezosSignedTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TezosSignedTx_default_instance_; +} // namespace tezos +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2dtezos_2eproto { +static void InitDefaultsTezosGetAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::tezos::_TezosGetAddress_default_instance_; + new (ptr) ::hw::trezor::messages::tezos::TezosGetAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::tezos::TezosGetAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TezosGetAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTezosGetAddress}, {}}; + +static void InitDefaultsTezosAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::tezos::_TezosAddress_default_instance_; + new (ptr) ::hw::trezor::messages::tezos::TezosAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::tezos::TezosAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TezosAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTezosAddress}, {}}; + +static void InitDefaultsTezosGetPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::tezos::_TezosGetPublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::tezos::TezosGetPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::tezos::TezosGetPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TezosGetPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTezosGetPublicKey}, {}}; + +static void InitDefaultsTezosPublicKey() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::tezos::_TezosPublicKey_default_instance_; + new (ptr) ::hw::trezor::messages::tezos::TezosPublicKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::tezos::TezosPublicKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TezosPublicKey = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTezosPublicKey}, {}}; + +static void InitDefaultsTezosSignTx_TezosContractID() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::tezos::_TezosSignTx_TezosContractID_default_instance_; + new (ptr) ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TezosSignTx_TezosContractID = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTezosSignTx_TezosContractID}, {}}; + +static void InitDefaultsTezosSignTx_TezosRevealOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::tezos::_TezosSignTx_TezosRevealOp_default_instance_; + new (ptr) ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TezosSignTx_TezosRevealOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTezosSignTx_TezosRevealOp}, { + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosContractID.base,}}; + +static void InitDefaultsTezosSignTx_TezosTransactionOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::tezos::_TezosSignTx_TezosTransactionOp_default_instance_; + new (ptr) ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TezosSignTx_TezosTransactionOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTezosSignTx_TezosTransactionOp}, { + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosContractID.base,}}; + +static void InitDefaultsTezosSignTx_TezosOriginationOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::tezos::_TezosSignTx_TezosOriginationOp_default_instance_; + new (ptr) ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TezosSignTx_TezosOriginationOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTezosSignTx_TezosOriginationOp}, { + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosContractID.base,}}; + +static void InitDefaultsTezosSignTx_TezosDelegationOp() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::tezos::_TezosSignTx_TezosDelegationOp_default_instance_; + new (ptr) ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TezosSignTx_TezosDelegationOp = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTezosSignTx_TezosDelegationOp}, { + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosContractID.base,}}; + +static void InitDefaultsTezosSignTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::tezos::_TezosSignTx_default_instance_; + new (ptr) ::hw::trezor::messages::tezos::TezosSignTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::tezos::TezosSignTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_TezosSignTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsTezosSignTx}, { + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosRevealOp.base, + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosTransactionOp.base, + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosOriginationOp.base, + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosDelegationOp.base,}}; + +static void InitDefaultsTezosSignedTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::hw::trezor::messages::tezos::_TezosSignedTx_default_instance_; + new (ptr) ::hw::trezor::messages::tezos::TezosSignedTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::hw::trezor::messages::tezos::TezosSignedTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TezosSignedTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTezosSignedTx}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_TezosGetAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_TezosAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_TezosGetPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_TezosPublicKey.base); + ::google::protobuf::internal::InitSCC(&scc_info_TezosSignTx_TezosContractID.base); + ::google::protobuf::internal::InitSCC(&scc_info_TezosSignTx_TezosRevealOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_TezosSignTx_TezosTransactionOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_TezosSignTx_TezosOriginationOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_TezosSignTx_TezosDelegationOp.base); + ::google::protobuf::internal::InitSCC(&scc_info_TezosSignTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_TezosSignedTx.base); +} + +::google::protobuf::Metadata file_level_metadata[11]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosGetAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosGetAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosGetAddress, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosGetAddress, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosAddress, address_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosGetPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosGetPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosGetPublicKey, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosGetPublicKey, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosPublicKey, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosPublicKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosPublicKey, public_key_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID, tag_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID, hash_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp, source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp, fee_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp, counter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp, gas_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp, storage_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp, public_key_), + 1, + 2, + 3, + 4, + 5, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp, source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp, fee_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp, counter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp, gas_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp, storage_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp, destination_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp, parameters_), + 1, + 3, + 4, + 5, + 6, + 7, + 2, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, fee_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, counter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, gas_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, storage_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, manager_pubkey_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, balance_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, spendable_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, delegatable_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, delegate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp, script_), + 3, + 4, + 5, + 6, + 7, + 0, + 8, + 9, + 10, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp, source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp, fee_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp, counter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp, gas_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp, storage_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp, delegate_), + 1, + 2, + 3, + 4, + 5, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx, branch_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx, reveal_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx, transaction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx, origination_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignTx, delegation_), + ~0u, + 0, + 1, + 2, + 3, + 4, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignedTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignedTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignedTx, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignedTx, sig_op_contents_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::hw::trezor::messages::tezos::TezosSignedTx, operation_hash_), + 0, + 1, + 2, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::hw::trezor::messages::tezos::TezosGetAddress)}, + { 9, 15, sizeof(::hw::trezor::messages::tezos::TezosAddress)}, + { 16, 23, sizeof(::hw::trezor::messages::tezos::TezosGetPublicKey)}, + { 25, 31, sizeof(::hw::trezor::messages::tezos::TezosPublicKey)}, + { 32, 39, sizeof(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID)}, + { 41, 52, sizeof(::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp)}, + { 58, 71, sizeof(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp)}, + { 79, 95, sizeof(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp)}, + { 106, 117, sizeof(::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp)}, + { 123, 134, sizeof(::hw::trezor::messages::tezos::TezosSignTx)}, + { 140, 148, sizeof(::hw::trezor::messages::tezos::TezosSignedTx)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::hw::trezor::messages::tezos::_TezosGetAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::tezos::_TezosAddress_default_instance_), + reinterpret_cast(&::hw::trezor::messages::tezos::_TezosGetPublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::tezos::_TezosPublicKey_default_instance_), + reinterpret_cast(&::hw::trezor::messages::tezos::_TezosSignTx_TezosContractID_default_instance_), + reinterpret_cast(&::hw::trezor::messages::tezos::_TezosSignTx_TezosRevealOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::tezos::_TezosSignTx_TezosTransactionOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::tezos::_TezosSignTx_TezosOriginationOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::tezos::_TezosSignTx_TezosDelegationOp_default_instance_), + reinterpret_cast(&::hw::trezor::messages::tezos::_TezosSignTx_default_instance_), + reinterpret_cast(&::hw::trezor::messages::tezos::_TezosSignedTx_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-tezos.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 11); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\024messages-tezos.proto\022\030hw.trezor.messag" + "es.tezos\":\n\017TezosGetAddress\022\021\n\taddress_n" + "\030\001 \003(\r\022\024\n\014show_display\030\002 \001(\010\"\037\n\014TezosAdd" + "ress\022\017\n\007address\030\001 \001(\t\"<\n\021TezosGetPublicK" + "ey\022\021\n\taddress_n\030\001 \003(\r\022\024\n\014show_display\030\002 " + "\001(\010\"$\n\016TezosPublicKey\022\022\n\npublic_key\030\001 \001(" + "\t\"\246\013\n\013TezosSignTx\022\021\n\taddress_n\030\001 \003(\r\022\016\n\006" + "branch\030\002 \001(\014\022C\n\006reveal\030\003 \001(\01323.hw.trezor" + ".messages.tezos.TezosSignTx.TezosRevealO" + "p\022M\n\013transaction\030\004 \001(\01328.hw.trezor.messa" + "ges.tezos.TezosSignTx.TezosTransactionOp" + "\022M\n\013origination\030\005 \001(\01328.hw.trezor.messag" + "es.tezos.TezosSignTx.TezosOriginationOp\022" + "K\n\ndelegation\030\006 \001(\01327.hw.trezor.messages" + ".tezos.TezosSignTx.TezosDelegationOp\032\250\001\n" + "\017TezosContractID\022T\n\003tag\030\001 \001(\0162G.hw.trezo" + "r.messages.tezos.TezosSignTx.TezosContra" + "ctID.TezosContractType\022\014\n\004hash\030\002 \001(\014\"1\n\021" + "TezosContractType\022\014\n\010Implicit\020\000\022\016\n\nOrigi" + "nated\020\001\032\262\001\n\rTezosRevealOp\022E\n\006source\030\001 \001(" + "\01325.hw.trezor.messages.tezos.TezosSignTx" + ".TezosContractID\022\013\n\003fee\030\002 \001(\004\022\017\n\007counter" + "\030\003 \001(\004\022\021\n\tgas_limit\030\004 \001(\004\022\025\n\rstorage_lim" + "it\030\005 \001(\004\022\022\n\npublic_key\030\006 \001(\014\032\223\002\n\022TezosTr" + "ansactionOp\022E\n\006source\030\001 \001(\01325.hw.trezor." + "messages.tezos.TezosSignTx.TezosContract" + "ID\022\013\n\003fee\030\002 \001(\004\022\017\n\007counter\030\003 \001(\004\022\021\n\tgas_" + "limit\030\004 \001(\004\022\025\n\rstorage_limit\030\005 \001(\004\022\016\n\006am" + "ount\030\006 \001(\004\022J\n\013destination\030\007 \001(\01325.hw.tre" + "zor.messages.tezos.TezosSignTx.TezosCont" + "ractID\022\022\n\nparameters\030\010 \001(\014\032\226\002\n\022TezosOrig" + "inationOp\022E\n\006source\030\001 \001(\01325.hw.trezor.me" + "ssages.tezos.TezosSignTx.TezosContractID" + "\022\013\n\003fee\030\002 \001(\004\022\017\n\007counter\030\003 \001(\004\022\021\n\tgas_li" + "mit\030\004 \001(\004\022\025\n\rstorage_limit\030\005 \001(\004\022\026\n\016mana" + "ger_pubkey\030\006 \001(\014\022\017\n\007balance\030\007 \001(\004\022\021\n\tspe" + "ndable\030\010 \001(\010\022\023\n\013delegatable\030\t \001(\010\022\020\n\010del" + "egate\030\n \001(\014\022\016\n\006script\030\013 \001(\014\032\264\001\n\021TezosDel" + "egationOp\022E\n\006source\030\001 \001(\01325.hw.trezor.me" + "ssages.tezos.TezosSignTx.TezosContractID" + "\022\013\n\003fee\030\002 \001(\004\022\017\n\007counter\030\003 \001(\004\022\021\n\tgas_li" + "mit\030\004 \001(\004\022\025\n\rstorage_limit\030\005 \001(\004\022\020\n\010dele" + "gate\030\006 \001(\014\"S\n\rTezosSignedTx\022\021\n\tsignature" + "\030\001 \001(\t\022\027\n\017sig_op_contents\030\002 \001(\014\022\026\n\016opera" + "tion_hash\030\003 \001(\tB9\n#com.satoshilabs.trezo" + "r.lib.protobufB\022TrezorMessageTezos" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1834); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-tezos.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dtezos_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace tezos { +const ::google::protobuf::EnumDescriptor* TezosSignTx_TezosContractID_TezosContractType_descriptor() { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2dtezos_2eproto::file_level_enum_descriptors[0]; +} +bool TezosSignTx_TezosContractID_TezosContractType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const TezosSignTx_TezosContractID_TezosContractType TezosSignTx_TezosContractID::Implicit; +const TezosSignTx_TezosContractID_TezosContractType TezosSignTx_TezosContractID::Originated; +const TezosSignTx_TezosContractID_TezosContractType TezosSignTx_TezosContractID::TezosContractType_MIN; +const TezosSignTx_TezosContractID_TezosContractType TezosSignTx_TezosContractID::TezosContractType_MAX; +const int TezosSignTx_TezosContractID::TezosContractType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void TezosGetAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TezosGetAddress::kAddressNFieldNumber; +const int TezosGetAddress::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TezosGetAddress::TezosGetAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtezos_2eproto::scc_info_TezosGetAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.tezos.TezosGetAddress) +} +TezosGetAddress::TezosGetAddress(const TezosGetAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.tezos.TezosGetAddress) +} + +void TezosGetAddress::SharedCtor() { + show_display_ = false; +} + +TezosGetAddress::~TezosGetAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.tezos.TezosGetAddress) + SharedDtor(); +} + +void TezosGetAddress::SharedDtor() { +} + +void TezosGetAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TezosGetAddress::descriptor() { + ::protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TezosGetAddress& TezosGetAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtezos_2eproto::scc_info_TezosGetAddress.base); + return *internal_default_instance(); +} + + +void TezosGetAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.tezos.TezosGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TezosGetAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.tezos.TezosGetAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.tezos.TezosGetAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.tezos.TezosGetAddress) + return false; +#undef DO_ +} + +void TezosGetAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.tezos.TezosGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.tezos.TezosGetAddress) +} + +::google::protobuf::uint8* TezosGetAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.tezos.TezosGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.tezos.TezosGetAddress) + return target; +} + +size_t TezosGetAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.tezos.TezosGetAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TezosGetAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.tezos.TezosGetAddress) + GOOGLE_DCHECK_NE(&from, this); + const TezosGetAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.tezos.TezosGetAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.tezos.TezosGetAddress) + MergeFrom(*source); + } +} + +void TezosGetAddress::MergeFrom(const TezosGetAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.tezos.TezosGetAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void TezosGetAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.tezos.TezosGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TezosGetAddress::CopyFrom(const TezosGetAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.tezos.TezosGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TezosGetAddress::IsInitialized() const { + return true; +} + +void TezosGetAddress::Swap(TezosGetAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void TezosGetAddress::InternalSwap(TezosGetAddress* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TezosGetAddress::GetMetadata() const { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TezosAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TezosAddress::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TezosAddress::TezosAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtezos_2eproto::scc_info_TezosAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.tezos.TezosAddress) +} +TezosAddress::TezosAddress(const TezosAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.tezos.TezosAddress) +} + +void TezosAddress::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TezosAddress::~TezosAddress() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.tezos.TezosAddress) + SharedDtor(); +} + +void TezosAddress::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TezosAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TezosAddress::descriptor() { + ::protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TezosAddress& TezosAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtezos_2eproto::scc_info_TezosAddress.base); + return *internal_default_instance(); +} + + +void TezosAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.tezos.TezosAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TezosAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.tezos.TezosAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.tezos.TezosAddress.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.tezos.TezosAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.tezos.TezosAddress) + return false; +#undef DO_ +} + +void TezosAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.tezos.TezosAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.tezos.TezosAddress.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.tezos.TezosAddress) +} + +::google::protobuf::uint8* TezosAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.tezos.TezosAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.tezos.TezosAddress.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.tezos.TezosAddress) + return target; +} + +size_t TezosAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.tezos.TezosAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TezosAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.tezos.TezosAddress) + GOOGLE_DCHECK_NE(&from, this); + const TezosAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.tezos.TezosAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.tezos.TezosAddress) + MergeFrom(*source); + } +} + +void TezosAddress::MergeFrom(const TezosAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.tezos.TezosAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_address()) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } +} + +void TezosAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.tezos.TezosAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TezosAddress::CopyFrom(const TezosAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.tezos.TezosAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TezosAddress::IsInitialized() const { + return true; +} + +void TezosAddress::Swap(TezosAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void TezosAddress::InternalSwap(TezosAddress* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TezosAddress::GetMetadata() const { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TezosGetPublicKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TezosGetPublicKey::kAddressNFieldNumber; +const int TezosGetPublicKey::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TezosGetPublicKey::TezosGetPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtezos_2eproto::scc_info_TezosGetPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.tezos.TezosGetPublicKey) +} +TezosGetPublicKey::TezosGetPublicKey(const TezosGetPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.tezos.TezosGetPublicKey) +} + +void TezosGetPublicKey::SharedCtor() { + show_display_ = false; +} + +TezosGetPublicKey::~TezosGetPublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.tezos.TezosGetPublicKey) + SharedDtor(); +} + +void TezosGetPublicKey::SharedDtor() { +} + +void TezosGetPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TezosGetPublicKey::descriptor() { + ::protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TezosGetPublicKey& TezosGetPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtezos_2eproto::scc_info_TezosGetPublicKey.base); + return *internal_default_instance(); +} + + +void TezosGetPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.tezos.TezosGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TezosGetPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.tezos.TezosGetPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.tezos.TezosGetPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.tezos.TezosGetPublicKey) + return false; +#undef DO_ +} + +void TezosGetPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.tezos.TezosGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.tezos.TezosGetPublicKey) +} + +::google::protobuf::uint8* TezosGetPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.tezos.TezosGetPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.tezos.TezosGetPublicKey) + return target; +} + +size_t TezosGetPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.tezos.TezosGetPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TezosGetPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.tezos.TezosGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const TezosGetPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.tezos.TezosGetPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.tezos.TezosGetPublicKey) + MergeFrom(*source); + } +} + +void TezosGetPublicKey::MergeFrom(const TezosGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.tezos.TezosGetPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void TezosGetPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.tezos.TezosGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TezosGetPublicKey::CopyFrom(const TezosGetPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.tezos.TezosGetPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TezosGetPublicKey::IsInitialized() const { + return true; +} + +void TezosGetPublicKey::Swap(TezosGetPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void TezosGetPublicKey::InternalSwap(TezosGetPublicKey* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TezosGetPublicKey::GetMetadata() const { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TezosPublicKey::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TezosPublicKey::kPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TezosPublicKey::TezosPublicKey() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtezos_2eproto::scc_info_TezosPublicKey.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.tezos.TezosPublicKey) +} +TezosPublicKey::TezosPublicKey(const TezosPublicKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.tezos.TezosPublicKey) +} + +void TezosPublicKey::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TezosPublicKey::~TezosPublicKey() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.tezos.TezosPublicKey) + SharedDtor(); +} + +void TezosPublicKey::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TezosPublicKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TezosPublicKey::descriptor() { + ::protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TezosPublicKey& TezosPublicKey::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtezos_2eproto::scc_info_TezosPublicKey.base); + return *internal_default_instance(); +} + + +void TezosPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.tezos.TezosPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TezosPublicKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.tezos.TezosPublicKey) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string public_key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_public_key())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->public_key().data(), static_cast(this->public_key().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.tezos.TezosPublicKey.public_key"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.tezos.TezosPublicKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.tezos.TezosPublicKey) + return false; +#undef DO_ +} + +void TezosPublicKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.tezos.TezosPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->public_key().data(), static_cast(this->public_key().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.tezos.TezosPublicKey.public_key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.tezos.TezosPublicKey) +} + +::google::protobuf::uint8* TezosPublicKey::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.tezos.TezosPublicKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string public_key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->public_key().data(), static_cast(this->public_key().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.tezos.TezosPublicKey.public_key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.tezos.TezosPublicKey) + return target; +} + +size_t TezosPublicKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.tezos.TezosPublicKey) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string public_key = 1; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->public_key()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TezosPublicKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.tezos.TezosPublicKey) + GOOGLE_DCHECK_NE(&from, this); + const TezosPublicKey* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.tezos.TezosPublicKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.tezos.TezosPublicKey) + MergeFrom(*source); + } +} + +void TezosPublicKey::MergeFrom(const TezosPublicKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.tezos.TezosPublicKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_public_key()) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } +} + +void TezosPublicKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.tezos.TezosPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TezosPublicKey::CopyFrom(const TezosPublicKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.tezos.TezosPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TezosPublicKey::IsInitialized() const { + return true; +} + +void TezosPublicKey::Swap(TezosPublicKey* other) { + if (other == this) return; + InternalSwap(other); +} +void TezosPublicKey::InternalSwap(TezosPublicKey* other) { + using std::swap; + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TezosPublicKey::GetMetadata() const { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TezosSignTx_TezosContractID::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TezosSignTx_TezosContractID::kTagFieldNumber; +const int TezosSignTx_TezosContractID::kHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TezosSignTx_TezosContractID::TezosSignTx_TezosContractID() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosContractID.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) +} +TezosSignTx_TezosContractID::TezosSignTx_TezosContractID(const TezosSignTx_TezosContractID& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_hash()) { + hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); + } + tag_ = from.tag_; + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) +} + +void TezosSignTx_TezosContractID::SharedCtor() { + hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tag_ = 0; +} + +TezosSignTx_TezosContractID::~TezosSignTx_TezosContractID() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + SharedDtor(); +} + +void TezosSignTx_TezosContractID::SharedDtor() { + hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TezosSignTx_TezosContractID::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TezosSignTx_TezosContractID::descriptor() { + ::protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TezosSignTx_TezosContractID& TezosSignTx_TezosContractID::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosContractID.base); + return *internal_default_instance(); +} + + +void TezosSignTx_TezosContractID::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + hash_.ClearNonDefaultToEmptyNoArena(); + } + tag_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TezosSignTx_TezosContractID::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID.TezosContractType tag = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hw::trezor::messages::tezos::TezosSignTx_TezosContractID_TezosContractType_IsValid(value)) { + set_tag(static_cast< ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID_TezosContractType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional bytes hash = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_hash())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + return false; +#undef DO_ +} + +void TezosSignTx_TezosContractID::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID.TezosContractType tag = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->tag(), output); + } + + // optional bytes hash = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->hash(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) +} + +::google::protobuf::uint8* TezosSignTx_TezosContractID::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID.TezosContractType tag = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->tag(), target); + } + + // optional bytes hash = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->hash(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + return target; +} + +size_t TezosSignTx_TezosContractID::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes hash = 2; + if (has_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->hash()); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID.TezosContractType tag = 1; + if (has_tag()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->tag()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TezosSignTx_TezosContractID::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + GOOGLE_DCHECK_NE(&from, this); + const TezosSignTx_TezosContractID* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + MergeFrom(*source); + } +} + +void TezosSignTx_TezosContractID::MergeFrom(const TezosSignTx_TezosContractID& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_hash(); + hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); + } + if (cached_has_bits & 0x00000002u) { + tag_ = from.tag_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TezosSignTx_TezosContractID::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TezosSignTx_TezosContractID::CopyFrom(const TezosSignTx_TezosContractID& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TezosSignTx_TezosContractID::IsInitialized() const { + return true; +} + +void TezosSignTx_TezosContractID::Swap(TezosSignTx_TezosContractID* other) { + if (other == this) return; + InternalSwap(other); +} +void TezosSignTx_TezosContractID::InternalSwap(TezosSignTx_TezosContractID* other) { + using std::swap; + hash_.Swap(&other->hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(tag_, other->tag_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TezosSignTx_TezosContractID::GetMetadata() const { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TezosSignTx_TezosRevealOp::InitAsDefaultInstance() { + ::hw::trezor::messages::tezos::_TezosSignTx_TezosRevealOp_default_instance_._instance.get_mutable()->source_ = const_cast< ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID*>( + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TezosSignTx_TezosRevealOp::kSourceFieldNumber; +const int TezosSignTx_TezosRevealOp::kFeeFieldNumber; +const int TezosSignTx_TezosRevealOp::kCounterFieldNumber; +const int TezosSignTx_TezosRevealOp::kGasLimitFieldNumber; +const int TezosSignTx_TezosRevealOp::kStorageLimitFieldNumber; +const int TezosSignTx_TezosRevealOp::kPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TezosSignTx_TezosRevealOp::TezosSignTx_TezosRevealOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosRevealOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) +} +TezosSignTx_TezosRevealOp::TezosSignTx_TezosRevealOp(const TezosSignTx_TezosRevealOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_public_key()) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (from.has_source()) { + source_ = new ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID(*from.source_); + } else { + source_ = NULL; + } + ::memcpy(&fee_, &from.fee_, + static_cast(reinterpret_cast(&storage_limit_) - + reinterpret_cast(&fee_)) + sizeof(storage_limit_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) +} + +void TezosSignTx_TezosRevealOp::SharedCtor() { + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&source_, 0, static_cast( + reinterpret_cast(&storage_limit_) - + reinterpret_cast(&source_)) + sizeof(storage_limit_)); +} + +TezosSignTx_TezosRevealOp::~TezosSignTx_TezosRevealOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + SharedDtor(); +} + +void TezosSignTx_TezosRevealOp::SharedDtor() { + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete source_; +} + +void TezosSignTx_TezosRevealOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TezosSignTx_TezosRevealOp::descriptor() { + ::protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TezosSignTx_TezosRevealOp& TezosSignTx_TezosRevealOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosRevealOp.base); + return *internal_default_instance(); +} + + +void TezosSignTx_TezosRevealOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + public_key_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(source_ != NULL); + source_->Clear(); + } + } + if (cached_has_bits & 60u) { + ::memset(&fee_, 0, static_cast( + reinterpret_cast(&storage_limit_) - + reinterpret_cast(&fee_)) + sizeof(storage_limit_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TezosSignTx_TezosRevealOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_source())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 fee = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 counter = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_counter(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &counter_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 gas_limit = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_gas_limit(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &gas_limit_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 storage_limit = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_storage_limit(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &storage_limit_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes public_key = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + return false; +#undef DO_ +} + +void TezosSignTx_TezosRevealOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_source(), output); + } + + // optional uint64 fee = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->fee(), output); + } + + // optional uint64 counter = 3; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->counter(), output); + } + + // optional uint64 gas_limit = 4; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->gas_limit(), output); + } + + // optional uint64 storage_limit = 5; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->storage_limit(), output); + } + + // optional bytes public_key = 6; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->public_key(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) +} + +::google::protobuf::uint8* TezosSignTx_TezosRevealOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_source(), deterministic, target); + } + + // optional uint64 fee = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->fee(), target); + } + + // optional uint64 counter = 3; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->counter(), target); + } + + // optional uint64 gas_limit = 4; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->gas_limit(), target); + } + + // optional uint64 storage_limit = 5; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->storage_limit(), target); + } + + // optional bytes public_key = 6; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->public_key(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + return target; +} + +size_t TezosSignTx_TezosRevealOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 63u) { + // optional bytes public_key = 6; + if (has_public_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *source_); + } + + // optional uint64 fee = 2; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->fee()); + } + + // optional uint64 counter = 3; + if (has_counter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->counter()); + } + + // optional uint64 gas_limit = 4; + if (has_gas_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->gas_limit()); + } + + // optional uint64 storage_limit = 5; + if (has_storage_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->storage_limit()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TezosSignTx_TezosRevealOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + GOOGLE_DCHECK_NE(&from, this); + const TezosSignTx_TezosRevealOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + MergeFrom(*source); + } +} + +void TezosSignTx_TezosRevealOp::MergeFrom(const TezosSignTx_TezosRevealOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_public_key(); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); + } + if (cached_has_bits & 0x00000002u) { + mutable_source()->::hw::trezor::messages::tezos::TezosSignTx_TezosContractID::MergeFrom(from.source()); + } + if (cached_has_bits & 0x00000004u) { + fee_ = from.fee_; + } + if (cached_has_bits & 0x00000008u) { + counter_ = from.counter_; + } + if (cached_has_bits & 0x00000010u) { + gas_limit_ = from.gas_limit_; + } + if (cached_has_bits & 0x00000020u) { + storage_limit_ = from.storage_limit_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TezosSignTx_TezosRevealOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TezosSignTx_TezosRevealOp::CopyFrom(const TezosSignTx_TezosRevealOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TezosSignTx_TezosRevealOp::IsInitialized() const { + return true; +} + +void TezosSignTx_TezosRevealOp::Swap(TezosSignTx_TezosRevealOp* other) { + if (other == this) return; + InternalSwap(other); +} +void TezosSignTx_TezosRevealOp::InternalSwap(TezosSignTx_TezosRevealOp* other) { + using std::swap; + public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(source_, other->source_); + swap(fee_, other->fee_); + swap(counter_, other->counter_); + swap(gas_limit_, other->gas_limit_); + swap(storage_limit_, other->storage_limit_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TezosSignTx_TezosRevealOp::GetMetadata() const { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TezosSignTx_TezosTransactionOp::InitAsDefaultInstance() { + ::hw::trezor::messages::tezos::_TezosSignTx_TezosTransactionOp_default_instance_._instance.get_mutable()->source_ = const_cast< ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID*>( + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID::internal_default_instance()); + ::hw::trezor::messages::tezos::_TezosSignTx_TezosTransactionOp_default_instance_._instance.get_mutable()->destination_ = const_cast< ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID*>( + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TezosSignTx_TezosTransactionOp::kSourceFieldNumber; +const int TezosSignTx_TezosTransactionOp::kFeeFieldNumber; +const int TezosSignTx_TezosTransactionOp::kCounterFieldNumber; +const int TezosSignTx_TezosTransactionOp::kGasLimitFieldNumber; +const int TezosSignTx_TezosTransactionOp::kStorageLimitFieldNumber; +const int TezosSignTx_TezosTransactionOp::kAmountFieldNumber; +const int TezosSignTx_TezosTransactionOp::kDestinationFieldNumber; +const int TezosSignTx_TezosTransactionOp::kParametersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TezosSignTx_TezosTransactionOp::TezosSignTx_TezosTransactionOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosTransactionOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) +} +TezosSignTx_TezosTransactionOp::TezosSignTx_TezosTransactionOp(const TezosSignTx_TezosTransactionOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + parameters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_parameters()) { + parameters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parameters_); + } + if (from.has_source()) { + source_ = new ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID(*from.source_); + } else { + source_ = NULL; + } + if (from.has_destination()) { + destination_ = new ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID(*from.destination_); + } else { + destination_ = NULL; + } + ::memcpy(&fee_, &from.fee_, + static_cast(reinterpret_cast(&amount_) - + reinterpret_cast(&fee_)) + sizeof(amount_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) +} + +void TezosSignTx_TezosTransactionOp::SharedCtor() { + parameters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&source_, 0, static_cast( + reinterpret_cast(&amount_) - + reinterpret_cast(&source_)) + sizeof(amount_)); +} + +TezosSignTx_TezosTransactionOp::~TezosSignTx_TezosTransactionOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + SharedDtor(); +} + +void TezosSignTx_TezosTransactionOp::SharedDtor() { + parameters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete source_; + if (this != internal_default_instance()) delete destination_; +} + +void TezosSignTx_TezosTransactionOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TezosSignTx_TezosTransactionOp::descriptor() { + ::protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TezosSignTx_TezosTransactionOp& TezosSignTx_TezosTransactionOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosTransactionOp.base); + return *internal_default_instance(); +} + + +void TezosSignTx_TezosTransactionOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + parameters_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(source_ != NULL); + source_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(destination_ != NULL); + destination_->Clear(); + } + } + if (cached_has_bits & 248u) { + ::memset(&fee_, 0, static_cast( + reinterpret_cast(&amount_) - + reinterpret_cast(&fee_)) + sizeof(amount_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TezosSignTx_TezosTransactionOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_source())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 fee = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 counter = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_counter(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &counter_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 gas_limit = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_gas_limit(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &gas_limit_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 storage_limit = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_storage_limit(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &storage_limit_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 amount = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID destination = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_destination())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes parameters = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_parameters())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + return false; +#undef DO_ +} + +void TezosSignTx_TezosTransactionOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_source(), output); + } + + // optional uint64 fee = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->fee(), output); + } + + // optional uint64 counter = 3; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->counter(), output); + } + + // optional uint64 gas_limit = 4; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->gas_limit(), output); + } + + // optional uint64 storage_limit = 5; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->storage_limit(), output); + } + + // optional uint64 amount = 6; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->amount(), output); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID destination = 7; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->_internal_destination(), output); + } + + // optional bytes parameters = 8; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 8, this->parameters(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) +} + +::google::protobuf::uint8* TezosSignTx_TezosTransactionOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_source(), deterministic, target); + } + + // optional uint64 fee = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->fee(), target); + } + + // optional uint64 counter = 3; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->counter(), target); + } + + // optional uint64 gas_limit = 4; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->gas_limit(), target); + } + + // optional uint64 storage_limit = 5; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->storage_limit(), target); + } + + // optional uint64 amount = 6; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->amount(), target); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID destination = 7; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->_internal_destination(), deterministic, target); + } + + // optional bytes parameters = 8; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 8, this->parameters(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + return target; +} + +size_t TezosSignTx_TezosTransactionOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional bytes parameters = 8; + if (has_parameters()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->parameters()); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *source_); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID destination = 7; + if (has_destination()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *destination_); + } + + // optional uint64 fee = 2; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->fee()); + } + + // optional uint64 counter = 3; + if (has_counter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->counter()); + } + + // optional uint64 gas_limit = 4; + if (has_gas_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->gas_limit()); + } + + // optional uint64 storage_limit = 5; + if (has_storage_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->storage_limit()); + } + + // optional uint64 amount = 6; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TezosSignTx_TezosTransactionOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + GOOGLE_DCHECK_NE(&from, this); + const TezosSignTx_TezosTransactionOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + MergeFrom(*source); + } +} + +void TezosSignTx_TezosTransactionOp::MergeFrom(const TezosSignTx_TezosTransactionOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_parameters(); + parameters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parameters_); + } + if (cached_has_bits & 0x00000002u) { + mutable_source()->::hw::trezor::messages::tezos::TezosSignTx_TezosContractID::MergeFrom(from.source()); + } + if (cached_has_bits & 0x00000004u) { + mutable_destination()->::hw::trezor::messages::tezos::TezosSignTx_TezosContractID::MergeFrom(from.destination()); + } + if (cached_has_bits & 0x00000008u) { + fee_ = from.fee_; + } + if (cached_has_bits & 0x00000010u) { + counter_ = from.counter_; + } + if (cached_has_bits & 0x00000020u) { + gas_limit_ = from.gas_limit_; + } + if (cached_has_bits & 0x00000040u) { + storage_limit_ = from.storage_limit_; + } + if (cached_has_bits & 0x00000080u) { + amount_ = from.amount_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TezosSignTx_TezosTransactionOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TezosSignTx_TezosTransactionOp::CopyFrom(const TezosSignTx_TezosTransactionOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TezosSignTx_TezosTransactionOp::IsInitialized() const { + return true; +} + +void TezosSignTx_TezosTransactionOp::Swap(TezosSignTx_TezosTransactionOp* other) { + if (other == this) return; + InternalSwap(other); +} +void TezosSignTx_TezosTransactionOp::InternalSwap(TezosSignTx_TezosTransactionOp* other) { + using std::swap; + parameters_.Swap(&other->parameters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(source_, other->source_); + swap(destination_, other->destination_); + swap(fee_, other->fee_); + swap(counter_, other->counter_); + swap(gas_limit_, other->gas_limit_); + swap(storage_limit_, other->storage_limit_); + swap(amount_, other->amount_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TezosSignTx_TezosTransactionOp::GetMetadata() const { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TezosSignTx_TezosOriginationOp::InitAsDefaultInstance() { + ::hw::trezor::messages::tezos::_TezosSignTx_TezosOriginationOp_default_instance_._instance.get_mutable()->source_ = const_cast< ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID*>( + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TezosSignTx_TezosOriginationOp::kSourceFieldNumber; +const int TezosSignTx_TezosOriginationOp::kFeeFieldNumber; +const int TezosSignTx_TezosOriginationOp::kCounterFieldNumber; +const int TezosSignTx_TezosOriginationOp::kGasLimitFieldNumber; +const int TezosSignTx_TezosOriginationOp::kStorageLimitFieldNumber; +const int TezosSignTx_TezosOriginationOp::kManagerPubkeyFieldNumber; +const int TezosSignTx_TezosOriginationOp::kBalanceFieldNumber; +const int TezosSignTx_TezosOriginationOp::kSpendableFieldNumber; +const int TezosSignTx_TezosOriginationOp::kDelegatableFieldNumber; +const int TezosSignTx_TezosOriginationOp::kDelegateFieldNumber; +const int TezosSignTx_TezosOriginationOp::kScriptFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TezosSignTx_TezosOriginationOp::TezosSignTx_TezosOriginationOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosOriginationOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) +} +TezosSignTx_TezosOriginationOp::TezosSignTx_TezosOriginationOp(const TezosSignTx_TezosOriginationOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + manager_pubkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_manager_pubkey()) { + manager_pubkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.manager_pubkey_); + } + delegate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_delegate()) { + delegate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.delegate_); + } + script_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_script()) { + script_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.script_); + } + if (from.has_source()) { + source_ = new ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID(*from.source_); + } else { + source_ = NULL; + } + ::memcpy(&fee_, &from.fee_, + static_cast(reinterpret_cast(&delegatable_) - + reinterpret_cast(&fee_)) + sizeof(delegatable_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) +} + +void TezosSignTx_TezosOriginationOp::SharedCtor() { + manager_pubkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + delegate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + script_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&source_, 0, static_cast( + reinterpret_cast(&delegatable_) - + reinterpret_cast(&source_)) + sizeof(delegatable_)); +} + +TezosSignTx_TezosOriginationOp::~TezosSignTx_TezosOriginationOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + SharedDtor(); +} + +void TezosSignTx_TezosOriginationOp::SharedDtor() { + manager_pubkey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + delegate_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + script_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete source_; +} + +void TezosSignTx_TezosOriginationOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TezosSignTx_TezosOriginationOp::descriptor() { + ::protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TezosSignTx_TezosOriginationOp& TezosSignTx_TezosOriginationOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosOriginationOp.base); + return *internal_default_instance(); +} + + +void TezosSignTx_TezosOriginationOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + manager_pubkey_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + delegate_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + script_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(source_ != NULL); + source_->Clear(); + } + } + if (cached_has_bits & 240u) { + ::memset(&fee_, 0, static_cast( + reinterpret_cast(&storage_limit_) - + reinterpret_cast(&fee_)) + sizeof(storage_limit_)); + } + if (cached_has_bits & 1792u) { + ::memset(&balance_, 0, static_cast( + reinterpret_cast(&delegatable_) - + reinterpret_cast(&balance_)) + sizeof(delegatable_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TezosSignTx_TezosOriginationOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_source())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 fee = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 counter = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_counter(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &counter_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 gas_limit = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_gas_limit(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &gas_limit_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 storage_limit = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_storage_limit(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &storage_limit_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes manager_pubkey = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_manager_pubkey())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 balance = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_balance(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &balance_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool spendable = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_spendable(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &spendable_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool delegatable = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_delegatable(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &delegatable_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes delegate = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_delegate())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes script = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_script())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + return false; +#undef DO_ +} + +void TezosSignTx_TezosOriginationOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_source(), output); + } + + // optional uint64 fee = 2; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->fee(), output); + } + + // optional uint64 counter = 3; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->counter(), output); + } + + // optional uint64 gas_limit = 4; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->gas_limit(), output); + } + + // optional uint64 storage_limit = 5; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->storage_limit(), output); + } + + // optional bytes manager_pubkey = 6; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->manager_pubkey(), output); + } + + // optional uint64 balance = 7; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->balance(), output); + } + + // optional bool spendable = 8; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->spendable(), output); + } + + // optional bool delegatable = 9; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->delegatable(), output); + } + + // optional bytes delegate = 10; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 10, this->delegate(), output); + } + + // optional bytes script = 11; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 11, this->script(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) +} + +::google::protobuf::uint8* TezosSignTx_TezosOriginationOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_source(), deterministic, target); + } + + // optional uint64 fee = 2; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->fee(), target); + } + + // optional uint64 counter = 3; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->counter(), target); + } + + // optional uint64 gas_limit = 4; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->gas_limit(), target); + } + + // optional uint64 storage_limit = 5; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->storage_limit(), target); + } + + // optional bytes manager_pubkey = 6; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->manager_pubkey(), target); + } + + // optional uint64 balance = 7; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->balance(), target); + } + + // optional bool spendable = 8; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->spendable(), target); + } + + // optional bool delegatable = 9; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->delegatable(), target); + } + + // optional bytes delegate = 10; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 10, this->delegate(), target); + } + + // optional bytes script = 11; + if (cached_has_bits & 0x00000004u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 11, this->script(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + return target; +} + +size_t TezosSignTx_TezosOriginationOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional bytes manager_pubkey = 6; + if (has_manager_pubkey()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->manager_pubkey()); + } + + // optional bytes delegate = 10; + if (has_delegate()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->delegate()); + } + + // optional bytes script = 11; + if (has_script()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->script()); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *source_); + } + + // optional uint64 fee = 2; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->fee()); + } + + // optional uint64 counter = 3; + if (has_counter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->counter()); + } + + // optional uint64 gas_limit = 4; + if (has_gas_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->gas_limit()); + } + + // optional uint64 storage_limit = 5; + if (has_storage_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->storage_limit()); + } + + } + if (_has_bits_[8 / 32] & 1792u) { + // optional uint64 balance = 7; + if (has_balance()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->balance()); + } + + // optional bool spendable = 8; + if (has_spendable()) { + total_size += 1 + 1; + } + + // optional bool delegatable = 9; + if (has_delegatable()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TezosSignTx_TezosOriginationOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + GOOGLE_DCHECK_NE(&from, this); + const TezosSignTx_TezosOriginationOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + MergeFrom(*source); + } +} + +void TezosSignTx_TezosOriginationOp::MergeFrom(const TezosSignTx_TezosOriginationOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_manager_pubkey(); + manager_pubkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.manager_pubkey_); + } + if (cached_has_bits & 0x00000002u) { + set_has_delegate(); + delegate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.delegate_); + } + if (cached_has_bits & 0x00000004u) { + set_has_script(); + script_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.script_); + } + if (cached_has_bits & 0x00000008u) { + mutable_source()->::hw::trezor::messages::tezos::TezosSignTx_TezosContractID::MergeFrom(from.source()); + } + if (cached_has_bits & 0x00000010u) { + fee_ = from.fee_; + } + if (cached_has_bits & 0x00000020u) { + counter_ = from.counter_; + } + if (cached_has_bits & 0x00000040u) { + gas_limit_ = from.gas_limit_; + } + if (cached_has_bits & 0x00000080u) { + storage_limit_ = from.storage_limit_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 1792u) { + if (cached_has_bits & 0x00000100u) { + balance_ = from.balance_; + } + if (cached_has_bits & 0x00000200u) { + spendable_ = from.spendable_; + } + if (cached_has_bits & 0x00000400u) { + delegatable_ = from.delegatable_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TezosSignTx_TezosOriginationOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TezosSignTx_TezosOriginationOp::CopyFrom(const TezosSignTx_TezosOriginationOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TezosSignTx_TezosOriginationOp::IsInitialized() const { + return true; +} + +void TezosSignTx_TezosOriginationOp::Swap(TezosSignTx_TezosOriginationOp* other) { + if (other == this) return; + InternalSwap(other); +} +void TezosSignTx_TezosOriginationOp::InternalSwap(TezosSignTx_TezosOriginationOp* other) { + using std::swap; + manager_pubkey_.Swap(&other->manager_pubkey_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + delegate_.Swap(&other->delegate_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + script_.Swap(&other->script_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(source_, other->source_); + swap(fee_, other->fee_); + swap(counter_, other->counter_); + swap(gas_limit_, other->gas_limit_); + swap(storage_limit_, other->storage_limit_); + swap(balance_, other->balance_); + swap(spendable_, other->spendable_); + swap(delegatable_, other->delegatable_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TezosSignTx_TezosOriginationOp::GetMetadata() const { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TezosSignTx_TezosDelegationOp::InitAsDefaultInstance() { + ::hw::trezor::messages::tezos::_TezosSignTx_TezosDelegationOp_default_instance_._instance.get_mutable()->source_ = const_cast< ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID*>( + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TezosSignTx_TezosDelegationOp::kSourceFieldNumber; +const int TezosSignTx_TezosDelegationOp::kFeeFieldNumber; +const int TezosSignTx_TezosDelegationOp::kCounterFieldNumber; +const int TezosSignTx_TezosDelegationOp::kGasLimitFieldNumber; +const int TezosSignTx_TezosDelegationOp::kStorageLimitFieldNumber; +const int TezosSignTx_TezosDelegationOp::kDelegateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TezosSignTx_TezosDelegationOp::TezosSignTx_TezosDelegationOp() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosDelegationOp.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) +} +TezosSignTx_TezosDelegationOp::TezosSignTx_TezosDelegationOp(const TezosSignTx_TezosDelegationOp& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + delegate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_delegate()) { + delegate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.delegate_); + } + if (from.has_source()) { + source_ = new ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID(*from.source_); + } else { + source_ = NULL; + } + ::memcpy(&fee_, &from.fee_, + static_cast(reinterpret_cast(&storage_limit_) - + reinterpret_cast(&fee_)) + sizeof(storage_limit_)); + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) +} + +void TezosSignTx_TezosDelegationOp::SharedCtor() { + delegate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&source_, 0, static_cast( + reinterpret_cast(&storage_limit_) - + reinterpret_cast(&source_)) + sizeof(storage_limit_)); +} + +TezosSignTx_TezosDelegationOp::~TezosSignTx_TezosDelegationOp() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + SharedDtor(); +} + +void TezosSignTx_TezosDelegationOp::SharedDtor() { + delegate_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete source_; +} + +void TezosSignTx_TezosDelegationOp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TezosSignTx_TezosDelegationOp::descriptor() { + ::protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TezosSignTx_TezosDelegationOp& TezosSignTx_TezosDelegationOp::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx_TezosDelegationOp.base); + return *internal_default_instance(); +} + + +void TezosSignTx_TezosDelegationOp::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + delegate_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(source_ != NULL); + source_->Clear(); + } + } + if (cached_has_bits & 60u) { + ::memset(&fee_, 0, static_cast( + reinterpret_cast(&storage_limit_) - + reinterpret_cast(&fee_)) + sizeof(storage_limit_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TezosSignTx_TezosDelegationOp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_source())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 fee = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_fee(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &fee_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 counter = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_counter(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &counter_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 gas_limit = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_gas_limit(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &gas_limit_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 storage_limit = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_storage_limit(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &storage_limit_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes delegate = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_delegate())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + return false; +#undef DO_ +} + +void TezosSignTx_TezosDelegationOp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_source(), output); + } + + // optional uint64 fee = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->fee(), output); + } + + // optional uint64 counter = 3; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->counter(), output); + } + + // optional uint64 gas_limit = 4; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->gas_limit(), output); + } + + // optional uint64 storage_limit = 5; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->storage_limit(), output); + } + + // optional bytes delegate = 6; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->delegate(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) +} + +::google::protobuf::uint8* TezosSignTx_TezosDelegationOp::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_source(), deterministic, target); + } + + // optional uint64 fee = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->fee(), target); + } + + // optional uint64 counter = 3; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->counter(), target); + } + + // optional uint64 gas_limit = 4; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->gas_limit(), target); + } + + // optional uint64 storage_limit = 5; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->storage_limit(), target); + } + + // optional bytes delegate = 6; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->delegate(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + return target; +} + +size_t TezosSignTx_TezosDelegationOp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 63u) { + // optional bytes delegate = 6; + if (has_delegate()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->delegate()); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + if (has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *source_); + } + + // optional uint64 fee = 2; + if (has_fee()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->fee()); + } + + // optional uint64 counter = 3; + if (has_counter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->counter()); + } + + // optional uint64 gas_limit = 4; + if (has_gas_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->gas_limit()); + } + + // optional uint64 storage_limit = 5; + if (has_storage_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->storage_limit()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TezosSignTx_TezosDelegationOp::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + GOOGLE_DCHECK_NE(&from, this); + const TezosSignTx_TezosDelegationOp* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + MergeFrom(*source); + } +} + +void TezosSignTx_TezosDelegationOp::MergeFrom(const TezosSignTx_TezosDelegationOp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_delegate(); + delegate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.delegate_); + } + if (cached_has_bits & 0x00000002u) { + mutable_source()->::hw::trezor::messages::tezos::TezosSignTx_TezosContractID::MergeFrom(from.source()); + } + if (cached_has_bits & 0x00000004u) { + fee_ = from.fee_; + } + if (cached_has_bits & 0x00000008u) { + counter_ = from.counter_; + } + if (cached_has_bits & 0x00000010u) { + gas_limit_ = from.gas_limit_; + } + if (cached_has_bits & 0x00000020u) { + storage_limit_ = from.storage_limit_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TezosSignTx_TezosDelegationOp::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TezosSignTx_TezosDelegationOp::CopyFrom(const TezosSignTx_TezosDelegationOp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TezosSignTx_TezosDelegationOp::IsInitialized() const { + return true; +} + +void TezosSignTx_TezosDelegationOp::Swap(TezosSignTx_TezosDelegationOp* other) { + if (other == this) return; + InternalSwap(other); +} +void TezosSignTx_TezosDelegationOp::InternalSwap(TezosSignTx_TezosDelegationOp* other) { + using std::swap; + delegate_.Swap(&other->delegate_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(source_, other->source_); + swap(fee_, other->fee_); + swap(counter_, other->counter_); + swap(gas_limit_, other->gas_limit_); + swap(storage_limit_, other->storage_limit_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TezosSignTx_TezosDelegationOp::GetMetadata() const { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TezosSignTx::InitAsDefaultInstance() { + ::hw::trezor::messages::tezos::_TezosSignTx_default_instance_._instance.get_mutable()->reveal_ = const_cast< ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp*>( + ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp::internal_default_instance()); + ::hw::trezor::messages::tezos::_TezosSignTx_default_instance_._instance.get_mutable()->transaction_ = const_cast< ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp*>( + ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp::internal_default_instance()); + ::hw::trezor::messages::tezos::_TezosSignTx_default_instance_._instance.get_mutable()->origination_ = const_cast< ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp*>( + ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp::internal_default_instance()); + ::hw::trezor::messages::tezos::_TezosSignTx_default_instance_._instance.get_mutable()->delegation_ = const_cast< ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp*>( + ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TezosSignTx::kAddressNFieldNumber; +const int TezosSignTx::kBranchFieldNumber; +const int TezosSignTx::kRevealFieldNumber; +const int TezosSignTx::kTransactionFieldNumber; +const int TezosSignTx::kOriginationFieldNumber; +const int TezosSignTx::kDelegationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TezosSignTx::TezosSignTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.tezos.TezosSignTx) +} +TezosSignTx::TezosSignTx(const TezosSignTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + branch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_branch()) { + branch_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.branch_); + } + if (from.has_reveal()) { + reveal_ = new ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp(*from.reveal_); + } else { + reveal_ = NULL; + } + if (from.has_transaction()) { + transaction_ = new ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp(*from.transaction_); + } else { + transaction_ = NULL; + } + if (from.has_origination()) { + origination_ = new ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp(*from.origination_); + } else { + origination_ = NULL; + } + if (from.has_delegation()) { + delegation_ = new ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp(*from.delegation_); + } else { + delegation_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.tezos.TezosSignTx) +} + +void TezosSignTx::SharedCtor() { + branch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&reveal_, 0, static_cast( + reinterpret_cast(&delegation_) - + reinterpret_cast(&reveal_)) + sizeof(delegation_)); +} + +TezosSignTx::~TezosSignTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.tezos.TezosSignTx) + SharedDtor(); +} + +void TezosSignTx::SharedDtor() { + branch_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete reveal_; + if (this != internal_default_instance()) delete transaction_; + if (this != internal_default_instance()) delete origination_; + if (this != internal_default_instance()) delete delegation_; +} + +void TezosSignTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TezosSignTx::descriptor() { + ::protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TezosSignTx& TezosSignTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtezos_2eproto::scc_info_TezosSignTx.base); + return *internal_default_instance(); +} + + +void TezosSignTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.tezos.TezosSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + branch_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(reveal_ != NULL); + reveal_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(transaction_ != NULL); + transaction_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(origination_ != NULL); + origination_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(delegation_ != NULL); + delegation_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TezosSignTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.tezos.TezosSignTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes branch = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_branch())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp reveal = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reveal())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp transaction = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transaction())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp origination = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_origination())); + } else { + goto handle_unusual; + } + break; + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp delegation = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_delegation())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.tezos.TezosSignTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.tezos.TezosSignTx) + return false; +#undef DO_ +} + +void TezosSignTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.tezos.TezosSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bytes branch = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->branch(), output); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp reveal = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_reveal(), output); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp transaction = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_transaction(), output); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp origination = 5; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->_internal_origination(), output); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp delegation = 6; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->_internal_delegation(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.tezos.TezosSignTx) +} + +::google::protobuf::uint8* TezosSignTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.tezos.TezosSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bytes branch = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->branch(), target); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp reveal = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_reveal(), deterministic, target); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp transaction = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_transaction(), deterministic, target); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp origination = 5; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->_internal_origination(), deterministic, target); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp delegation = 6; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->_internal_delegation(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.tezos.TezosSignTx) + return target; +} + +size_t TezosSignTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.tezos.TezosSignTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 31u) { + // optional bytes branch = 2; + if (has_branch()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->branch()); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp reveal = 3; + if (has_reveal()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reveal_); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp transaction = 4; + if (has_transaction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transaction_); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp origination = 5; + if (has_origination()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *origination_); + } + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp delegation = 6; + if (has_delegation()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *delegation_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TezosSignTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.tezos.TezosSignTx) + GOOGLE_DCHECK_NE(&from, this); + const TezosSignTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.tezos.TezosSignTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.tezos.TezosSignTx) + MergeFrom(*source); + } +} + +void TezosSignTx::MergeFrom(const TezosSignTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.tezos.TezosSignTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + set_has_branch(); + branch_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.branch_); + } + if (cached_has_bits & 0x00000002u) { + mutable_reveal()->::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp::MergeFrom(from.reveal()); + } + if (cached_has_bits & 0x00000004u) { + mutable_transaction()->::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp::MergeFrom(from.transaction()); + } + if (cached_has_bits & 0x00000008u) { + mutable_origination()->::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp::MergeFrom(from.origination()); + } + if (cached_has_bits & 0x00000010u) { + mutable_delegation()->::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp::MergeFrom(from.delegation()); + } + } +} + +void TezosSignTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.tezos.TezosSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TezosSignTx::CopyFrom(const TezosSignTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.tezos.TezosSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TezosSignTx::IsInitialized() const { + return true; +} + +void TezosSignTx::Swap(TezosSignTx* other) { + if (other == this) return; + InternalSwap(other); +} +void TezosSignTx::InternalSwap(TezosSignTx* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + branch_.Swap(&other->branch_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(reveal_, other->reveal_); + swap(transaction_, other->transaction_); + swap(origination_, other->origination_); + swap(delegation_, other->delegation_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TezosSignTx::GetMetadata() const { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TezosSignedTx::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TezosSignedTx::kSignatureFieldNumber; +const int TezosSignedTx::kSigOpContentsFieldNumber; +const int TezosSignedTx::kOperationHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TezosSignedTx::TezosSignedTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtezos_2eproto::scc_info_TezosSignedTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:hw.trezor.messages.tezos.TezosSignedTx) +} +TezosSignedTx::TezosSignedTx(const TezosSignedTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + sig_op_contents_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_sig_op_contents()) { + sig_op_contents_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sig_op_contents_); + } + operation_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_operation_hash()) { + operation_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.operation_hash_); + } + // @@protoc_insertion_point(copy_constructor:hw.trezor.messages.tezos.TezosSignedTx) +} + +void TezosSignedTx::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sig_op_contents_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + operation_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TezosSignedTx::~TezosSignedTx() { + // @@protoc_insertion_point(destructor:hw.trezor.messages.tezos.TezosSignedTx) + SharedDtor(); +} + +void TezosSignedTx::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sig_op_contents_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + operation_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TezosSignedTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TezosSignedTx::descriptor() { + ::protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TezosSignedTx& TezosSignedTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtezos_2eproto::scc_info_TezosSignedTx.base); + return *internal_default_instance(); +} + + +void TezosSignedTx::Clear() { +// @@protoc_insertion_point(message_clear_start:hw.trezor.messages.tezos.TezosSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + sig_op_contents_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + operation_hash_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TezosSignedTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:hw.trezor.messages.tezos.TezosSignedTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string signature = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_signature())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->signature().data(), static_cast(this->signature().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.tezos.TezosSignedTx.signature"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes sig_op_contents = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_sig_op_contents())); + } else { + goto handle_unusual; + } + break; + } + + // optional string operation_hash = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_operation_hash())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->operation_hash().data(), static_cast(this->operation_hash().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "hw.trezor.messages.tezos.TezosSignedTx.operation_hash"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:hw.trezor.messages.tezos.TezosSignedTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:hw.trezor.messages.tezos.TezosSignedTx) + return false; +#undef DO_ +} + +void TezosSignedTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:hw.trezor.messages.tezos.TezosSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string signature = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->signature().data(), static_cast(this->signature().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.tezos.TezosSignedTx.signature"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->signature(), output); + } + + // optional bytes sig_op_contents = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->sig_op_contents(), output); + } + + // optional string operation_hash = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->operation_hash().data(), static_cast(this->operation_hash().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.tezos.TezosSignedTx.operation_hash"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->operation_hash(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:hw.trezor.messages.tezos.TezosSignedTx) +} + +::google::protobuf::uint8* TezosSignedTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:hw.trezor.messages.tezos.TezosSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string signature = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->signature().data(), static_cast(this->signature().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.tezos.TezosSignedTx.signature"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->signature(), target); + } + + // optional bytes sig_op_contents = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->sig_op_contents(), target); + } + + // optional string operation_hash = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->operation_hash().data(), static_cast(this->operation_hash().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "hw.trezor.messages.tezos.TezosSignedTx.operation_hash"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->operation_hash(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:hw.trezor.messages.tezos.TezosSignedTx) + return target; +} + +size_t TezosSignedTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:hw.trezor.messages.tezos.TezosSignedTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->signature()); + } + + // optional bytes sig_op_contents = 2; + if (has_sig_op_contents()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->sig_op_contents()); + } + + // optional string operation_hash = 3; + if (has_operation_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->operation_hash()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TezosSignedTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:hw.trezor.messages.tezos.TezosSignedTx) + GOOGLE_DCHECK_NE(&from, this); + const TezosSignedTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:hw.trezor.messages.tezos.TezosSignedTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:hw.trezor.messages.tezos.TezosSignedTx) + MergeFrom(*source); + } +} + +void TezosSignedTx::MergeFrom(const TezosSignedTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:hw.trezor.messages.tezos.TezosSignedTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000002u) { + set_has_sig_op_contents(); + sig_op_contents_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sig_op_contents_); + } + if (cached_has_bits & 0x00000004u) { + set_has_operation_hash(); + operation_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.operation_hash_); + } + } +} + +void TezosSignedTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:hw.trezor.messages.tezos.TezosSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TezosSignedTx::CopyFrom(const TezosSignedTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:hw.trezor.messages.tezos.TezosSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TezosSignedTx::IsInitialized() const { + return true; +} + +void TezosSignedTx::Swap(TezosSignedTx* other) { + if (other == this) return; + InternalSwap(other); +} +void TezosSignedTx::InternalSwap(TezosSignedTx* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + sig_op_contents_.Swap(&other->sig_op_contents_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + operation_hash_.Swap(&other->operation_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TezosSignedTx::GetMetadata() const { + protobuf_messages_2dtezos_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtezos_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace tezos +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::tezos::TezosGetAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::tezos::TezosGetAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::tezos::TezosGetAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::tezos::TezosAddress* Arena::CreateMaybeMessage< ::hw::trezor::messages::tezos::TezosAddress >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::tezos::TezosAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::tezos::TezosGetPublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::tezos::TezosGetPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::tezos::TezosGetPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::tezos::TezosPublicKey* Arena::CreateMaybeMessage< ::hw::trezor::messages::tezos::TezosPublicKey >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::tezos::TezosPublicKey >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* Arena::CreateMaybeMessage< ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp* Arena::CreateMaybeMessage< ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::tezos::TezosSignTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::tezos::TezosSignTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::tezos::TezosSignTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::hw::trezor::messages::tezos::TezosSignedTx* Arena::CreateMaybeMessage< ::hw::trezor::messages::tezos::TezosSignedTx >(Arena* arena) { + return Arena::CreateInternal< ::hw::trezor::messages::tezos::TezosSignedTx >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-tezos.pb.h b/src/Core/hardware/trezor/protob/messages-tezos.pb.h new file mode 100644 index 00000000..60fced23 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-tezos.pb.h @@ -0,0 +1,4062 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-tezos.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dtezos_2eproto +#define PROTOBUF_INCLUDED_messages_2dtezos_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtezos_2eproto + +namespace protobuf_messages_2dtezos_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[11]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dtezos_2eproto +namespace hw { +namespace trezor { +namespace messages { +namespace tezos { +class TezosAddress; +class TezosAddressDefaultTypeInternal; +extern TezosAddressDefaultTypeInternal _TezosAddress_default_instance_; +class TezosGetAddress; +class TezosGetAddressDefaultTypeInternal; +extern TezosGetAddressDefaultTypeInternal _TezosGetAddress_default_instance_; +class TezosGetPublicKey; +class TezosGetPublicKeyDefaultTypeInternal; +extern TezosGetPublicKeyDefaultTypeInternal _TezosGetPublicKey_default_instance_; +class TezosPublicKey; +class TezosPublicKeyDefaultTypeInternal; +extern TezosPublicKeyDefaultTypeInternal _TezosPublicKey_default_instance_; +class TezosSignTx; +class TezosSignTxDefaultTypeInternal; +extern TezosSignTxDefaultTypeInternal _TezosSignTx_default_instance_; +class TezosSignTx_TezosContractID; +class TezosSignTx_TezosContractIDDefaultTypeInternal; +extern TezosSignTx_TezosContractIDDefaultTypeInternal _TezosSignTx_TezosContractID_default_instance_; +class TezosSignTx_TezosDelegationOp; +class TezosSignTx_TezosDelegationOpDefaultTypeInternal; +extern TezosSignTx_TezosDelegationOpDefaultTypeInternal _TezosSignTx_TezosDelegationOp_default_instance_; +class TezosSignTx_TezosOriginationOp; +class TezosSignTx_TezosOriginationOpDefaultTypeInternal; +extern TezosSignTx_TezosOriginationOpDefaultTypeInternal _TezosSignTx_TezosOriginationOp_default_instance_; +class TezosSignTx_TezosRevealOp; +class TezosSignTx_TezosRevealOpDefaultTypeInternal; +extern TezosSignTx_TezosRevealOpDefaultTypeInternal _TezosSignTx_TezosRevealOp_default_instance_; +class TezosSignTx_TezosTransactionOp; +class TezosSignTx_TezosTransactionOpDefaultTypeInternal; +extern TezosSignTx_TezosTransactionOpDefaultTypeInternal _TezosSignTx_TezosTransactionOp_default_instance_; +class TezosSignedTx; +class TezosSignedTxDefaultTypeInternal; +extern TezosSignedTxDefaultTypeInternal _TezosSignedTx_default_instance_; +} // namespace tezos +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +template<> ::hw::trezor::messages::tezos::TezosAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::tezos::TezosAddress>(Arena*); +template<> ::hw::trezor::messages::tezos::TezosGetAddress* Arena::CreateMaybeMessage<::hw::trezor::messages::tezos::TezosGetAddress>(Arena*); +template<> ::hw::trezor::messages::tezos::TezosGetPublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::tezos::TezosGetPublicKey>(Arena*); +template<> ::hw::trezor::messages::tezos::TezosPublicKey* Arena::CreateMaybeMessage<::hw::trezor::messages::tezos::TezosPublicKey>(Arena*); +template<> ::hw::trezor::messages::tezos::TezosSignTx* Arena::CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx>(Arena*); +template<> ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* Arena::CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosContractID>(Arena*); +template<> ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp* Arena::CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp>(Arena*); +template<> ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp* Arena::CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp>(Arena*); +template<> ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp* Arena::CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp>(Arena*); +template<> ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp* Arena::CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp>(Arena*); +template<> ::hw::trezor::messages::tezos::TezosSignedTx* Arena::CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignedTx>(Arena*); +} // namespace protobuf +} // namespace google +namespace hw { +namespace trezor { +namespace messages { +namespace tezos { + +enum TezosSignTx_TezosContractID_TezosContractType { + TezosSignTx_TezosContractID_TezosContractType_Implicit = 0, + TezosSignTx_TezosContractID_TezosContractType_Originated = 1 +}; +bool TezosSignTx_TezosContractID_TezosContractType_IsValid(int value); +const TezosSignTx_TezosContractID_TezosContractType TezosSignTx_TezosContractID_TezosContractType_TezosContractType_MIN = TezosSignTx_TezosContractID_TezosContractType_Implicit; +const TezosSignTx_TezosContractID_TezosContractType TezosSignTx_TezosContractID_TezosContractType_TezosContractType_MAX = TezosSignTx_TezosContractID_TezosContractType_Originated; +const int TezosSignTx_TezosContractID_TezosContractType_TezosContractType_ARRAYSIZE = TezosSignTx_TezosContractID_TezosContractType_TezosContractType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TezosSignTx_TezosContractID_TezosContractType_descriptor(); +inline const ::std::string& TezosSignTx_TezosContractID_TezosContractType_Name(TezosSignTx_TezosContractID_TezosContractType value) { + return ::google::protobuf::internal::NameOfEnum( + TezosSignTx_TezosContractID_TezosContractType_descriptor(), value); +} +inline bool TezosSignTx_TezosContractID_TezosContractType_Parse( + const ::std::string& name, TezosSignTx_TezosContractID_TezosContractType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TezosSignTx_TezosContractID_TezosContractType_descriptor(), name, value); +} +// =================================================================== + +class TezosGetAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.tezos.TezosGetAddress) */ { + public: + TezosGetAddress(); + virtual ~TezosGetAddress(); + + TezosGetAddress(const TezosGetAddress& from); + + inline TezosGetAddress& operator=(const TezosGetAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TezosGetAddress(TezosGetAddress&& from) noexcept + : TezosGetAddress() { + *this = ::std::move(from); + } + + inline TezosGetAddress& operator=(TezosGetAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TezosGetAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TezosGetAddress* internal_default_instance() { + return reinterpret_cast( + &_TezosGetAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(TezosGetAddress* other); + friend void swap(TezosGetAddress& a, TezosGetAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TezosGetAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + TezosGetAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TezosGetAddress& from); + void MergeFrom(const TezosGetAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TezosGetAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.tezos.TezosGetAddress) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dtezos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TezosAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.tezos.TezosAddress) */ { + public: + TezosAddress(); + virtual ~TezosAddress(); + + TezosAddress(const TezosAddress& from); + + inline TezosAddress& operator=(const TezosAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TezosAddress(TezosAddress&& from) noexcept + : TezosAddress() { + *this = ::std::move(from); + } + + inline TezosAddress& operator=(TezosAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TezosAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TezosAddress* internal_default_instance() { + return reinterpret_cast( + &_TezosAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(TezosAddress* other); + friend void swap(TezosAddress& a, TezosAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TezosAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + TezosAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TezosAddress& from); + void MergeFrom(const TezosAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TezosAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.tezos.TezosAddress) + private: + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dtezos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TezosGetPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.tezos.TezosGetPublicKey) */ { + public: + TezosGetPublicKey(); + virtual ~TezosGetPublicKey(); + + TezosGetPublicKey(const TezosGetPublicKey& from); + + inline TezosGetPublicKey& operator=(const TezosGetPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TezosGetPublicKey(TezosGetPublicKey&& from) noexcept + : TezosGetPublicKey() { + *this = ::std::move(from); + } + + inline TezosGetPublicKey& operator=(TezosGetPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TezosGetPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TezosGetPublicKey* internal_default_instance() { + return reinterpret_cast( + &_TezosGetPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(TezosGetPublicKey* other); + friend void swap(TezosGetPublicKey& a, TezosGetPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TezosGetPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + TezosGetPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TezosGetPublicKey& from); + void MergeFrom(const TezosGetPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TezosGetPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.tezos.TezosGetPublicKey) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dtezos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TezosPublicKey : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.tezos.TezosPublicKey) */ { + public: + TezosPublicKey(); + virtual ~TezosPublicKey(); + + TezosPublicKey(const TezosPublicKey& from); + + inline TezosPublicKey& operator=(const TezosPublicKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TezosPublicKey(TezosPublicKey&& from) noexcept + : TezosPublicKey() { + *this = ::std::move(from); + } + + inline TezosPublicKey& operator=(TezosPublicKey&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TezosPublicKey& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TezosPublicKey* internal_default_instance() { + return reinterpret_cast( + &_TezosPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(TezosPublicKey* other); + friend void swap(TezosPublicKey& a, TezosPublicKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TezosPublicKey* New() const final { + return CreateMaybeMessage(NULL); + } + + TezosPublicKey* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TezosPublicKey& from); + void MergeFrom(const TezosPublicKey& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TezosPublicKey* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string public_key = 1; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const char* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.tezos.TezosPublicKey) + private: + void set_has_public_key(); + void clear_has_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + friend struct ::protobuf_messages_2dtezos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TezosSignTx_TezosContractID : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) */ { + public: + TezosSignTx_TezosContractID(); + virtual ~TezosSignTx_TezosContractID(); + + TezosSignTx_TezosContractID(const TezosSignTx_TezosContractID& from); + + inline TezosSignTx_TezosContractID& operator=(const TezosSignTx_TezosContractID& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TezosSignTx_TezosContractID(TezosSignTx_TezosContractID&& from) noexcept + : TezosSignTx_TezosContractID() { + *this = ::std::move(from); + } + + inline TezosSignTx_TezosContractID& operator=(TezosSignTx_TezosContractID&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TezosSignTx_TezosContractID& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TezosSignTx_TezosContractID* internal_default_instance() { + return reinterpret_cast( + &_TezosSignTx_TezosContractID_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(TezosSignTx_TezosContractID* other); + friend void swap(TezosSignTx_TezosContractID& a, TezosSignTx_TezosContractID& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TezosSignTx_TezosContractID* New() const final { + return CreateMaybeMessage(NULL); + } + + TezosSignTx_TezosContractID* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TezosSignTx_TezosContractID& from); + void MergeFrom(const TezosSignTx_TezosContractID& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TezosSignTx_TezosContractID* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TezosSignTx_TezosContractID_TezosContractType TezosContractType; + static const TezosContractType Implicit = + TezosSignTx_TezosContractID_TezosContractType_Implicit; + static const TezosContractType Originated = + TezosSignTx_TezosContractID_TezosContractType_Originated; + static inline bool TezosContractType_IsValid(int value) { + return TezosSignTx_TezosContractID_TezosContractType_IsValid(value); + } + static const TezosContractType TezosContractType_MIN = + TezosSignTx_TezosContractID_TezosContractType_TezosContractType_MIN; + static const TezosContractType TezosContractType_MAX = + TezosSignTx_TezosContractID_TezosContractType_TezosContractType_MAX; + static const int TezosContractType_ARRAYSIZE = + TezosSignTx_TezosContractID_TezosContractType_TezosContractType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + TezosContractType_descriptor() { + return TezosSignTx_TezosContractID_TezosContractType_descriptor(); + } + static inline const ::std::string& TezosContractType_Name(TezosContractType value) { + return TezosSignTx_TezosContractID_TezosContractType_Name(value); + } + static inline bool TezosContractType_Parse(const ::std::string& name, + TezosContractType* value) { + return TezosSignTx_TezosContractID_TezosContractType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional bytes hash = 2; + bool has_hash() const; + void clear_hash(); + static const int kHashFieldNumber = 2; + const ::std::string& hash() const; + void set_hash(const ::std::string& value); + #if LANG_CXX11 + void set_hash(::std::string&& value); + #endif + void set_hash(const char* value); + void set_hash(const void* value, size_t size); + ::std::string* mutable_hash(); + ::std::string* release_hash(); + void set_allocated_hash(::std::string* hash); + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID.TezosContractType tag = 1; + bool has_tag() const; + void clear_tag(); + static const int kTagFieldNumber = 1; + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID_TezosContractType tag() const; + void set_tag(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID_TezosContractType value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.tezos.TezosSignTx.TezosContractID) + private: + void set_has_tag(); + void clear_has_tag(); + void set_has_hash(); + void clear_has_hash(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr hash_; + int tag_; + friend struct ::protobuf_messages_2dtezos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TezosSignTx_TezosRevealOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) */ { + public: + TezosSignTx_TezosRevealOp(); + virtual ~TezosSignTx_TezosRevealOp(); + + TezosSignTx_TezosRevealOp(const TezosSignTx_TezosRevealOp& from); + + inline TezosSignTx_TezosRevealOp& operator=(const TezosSignTx_TezosRevealOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TezosSignTx_TezosRevealOp(TezosSignTx_TezosRevealOp&& from) noexcept + : TezosSignTx_TezosRevealOp() { + *this = ::std::move(from); + } + + inline TezosSignTx_TezosRevealOp& operator=(TezosSignTx_TezosRevealOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TezosSignTx_TezosRevealOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TezosSignTx_TezosRevealOp* internal_default_instance() { + return reinterpret_cast( + &_TezosSignTx_TezosRevealOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(TezosSignTx_TezosRevealOp* other); + friend void swap(TezosSignTx_TezosRevealOp& a, TezosSignTx_TezosRevealOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TezosSignTx_TezosRevealOp* New() const final { + return CreateMaybeMessage(NULL); + } + + TezosSignTx_TezosRevealOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TezosSignTx_TezosRevealOp& from); + void MergeFrom(const TezosSignTx_TezosRevealOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TezosSignTx_TezosRevealOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes public_key = 6; + bool has_public_key() const; + void clear_public_key(); + static const int kPublicKeyFieldNumber = 6; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif + void set_public_key(const char* value); + void set_public_key(const void* value, size_t size); + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + bool has_source() const; + void clear_source(); + static const int kSourceFieldNumber = 1; + private: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& _internal_source() const; + public: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& source() const; + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* release_source(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* mutable_source(); + void set_allocated_source(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source); + + // optional uint64 fee = 2; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 2; + ::google::protobuf::uint64 fee() const; + void set_fee(::google::protobuf::uint64 value); + + // optional uint64 counter = 3; + bool has_counter() const; + void clear_counter(); + static const int kCounterFieldNumber = 3; + ::google::protobuf::uint64 counter() const; + void set_counter(::google::protobuf::uint64 value); + + // optional uint64 gas_limit = 4; + bool has_gas_limit() const; + void clear_gas_limit(); + static const int kGasLimitFieldNumber = 4; + ::google::protobuf::uint64 gas_limit() const; + void set_gas_limit(::google::protobuf::uint64 value); + + // optional uint64 storage_limit = 5; + bool has_storage_limit() const; + void clear_storage_limit(); + static const int kStorageLimitFieldNumber = 5; + ::google::protobuf::uint64 storage_limit() const; + void set_storage_limit(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp) + private: + void set_has_source(); + void clear_has_source(); + void set_has_fee(); + void clear_has_fee(); + void set_has_counter(); + void clear_has_counter(); + void set_has_gas_limit(); + void clear_has_gas_limit(); + void set_has_storage_limit(); + void clear_has_storage_limit(); + void set_has_public_key(); + void clear_has_public_key(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source_; + ::google::protobuf::uint64 fee_; + ::google::protobuf::uint64 counter_; + ::google::protobuf::uint64 gas_limit_; + ::google::protobuf::uint64 storage_limit_; + friend struct ::protobuf_messages_2dtezos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TezosSignTx_TezosTransactionOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) */ { + public: + TezosSignTx_TezosTransactionOp(); + virtual ~TezosSignTx_TezosTransactionOp(); + + TezosSignTx_TezosTransactionOp(const TezosSignTx_TezosTransactionOp& from); + + inline TezosSignTx_TezosTransactionOp& operator=(const TezosSignTx_TezosTransactionOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TezosSignTx_TezosTransactionOp(TezosSignTx_TezosTransactionOp&& from) noexcept + : TezosSignTx_TezosTransactionOp() { + *this = ::std::move(from); + } + + inline TezosSignTx_TezosTransactionOp& operator=(TezosSignTx_TezosTransactionOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TezosSignTx_TezosTransactionOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TezosSignTx_TezosTransactionOp* internal_default_instance() { + return reinterpret_cast( + &_TezosSignTx_TezosTransactionOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(TezosSignTx_TezosTransactionOp* other); + friend void swap(TezosSignTx_TezosTransactionOp& a, TezosSignTx_TezosTransactionOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TezosSignTx_TezosTransactionOp* New() const final { + return CreateMaybeMessage(NULL); + } + + TezosSignTx_TezosTransactionOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TezosSignTx_TezosTransactionOp& from); + void MergeFrom(const TezosSignTx_TezosTransactionOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TezosSignTx_TezosTransactionOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes parameters = 8; + bool has_parameters() const; + void clear_parameters(); + static const int kParametersFieldNumber = 8; + const ::std::string& parameters() const; + void set_parameters(const ::std::string& value); + #if LANG_CXX11 + void set_parameters(::std::string&& value); + #endif + void set_parameters(const char* value); + void set_parameters(const void* value, size_t size); + ::std::string* mutable_parameters(); + ::std::string* release_parameters(); + void set_allocated_parameters(::std::string* parameters); + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + bool has_source() const; + void clear_source(); + static const int kSourceFieldNumber = 1; + private: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& _internal_source() const; + public: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& source() const; + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* release_source(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* mutable_source(); + void set_allocated_source(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source); + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID destination = 7; + bool has_destination() const; + void clear_destination(); + static const int kDestinationFieldNumber = 7; + private: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& _internal_destination() const; + public: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& destination() const; + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* release_destination(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* mutable_destination(); + void set_allocated_destination(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* destination); + + // optional uint64 fee = 2; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 2; + ::google::protobuf::uint64 fee() const; + void set_fee(::google::protobuf::uint64 value); + + // optional uint64 counter = 3; + bool has_counter() const; + void clear_counter(); + static const int kCounterFieldNumber = 3; + ::google::protobuf::uint64 counter() const; + void set_counter(::google::protobuf::uint64 value); + + // optional uint64 gas_limit = 4; + bool has_gas_limit() const; + void clear_gas_limit(); + static const int kGasLimitFieldNumber = 4; + ::google::protobuf::uint64 gas_limit() const; + void set_gas_limit(::google::protobuf::uint64 value); + + // optional uint64 storage_limit = 5; + bool has_storage_limit() const; + void clear_storage_limit(); + static const int kStorageLimitFieldNumber = 5; + ::google::protobuf::uint64 storage_limit() const; + void set_storage_limit(::google::protobuf::uint64 value); + + // optional uint64 amount = 6; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 6; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp) + private: + void set_has_source(); + void clear_has_source(); + void set_has_fee(); + void clear_has_fee(); + void set_has_counter(); + void clear_has_counter(); + void set_has_gas_limit(); + void clear_has_gas_limit(); + void set_has_storage_limit(); + void clear_has_storage_limit(); + void set_has_amount(); + void clear_has_amount(); + void set_has_destination(); + void clear_has_destination(); + void set_has_parameters(); + void clear_has_parameters(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr parameters_; + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source_; + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* destination_; + ::google::protobuf::uint64 fee_; + ::google::protobuf::uint64 counter_; + ::google::protobuf::uint64 gas_limit_; + ::google::protobuf::uint64 storage_limit_; + ::google::protobuf::uint64 amount_; + friend struct ::protobuf_messages_2dtezos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TezosSignTx_TezosOriginationOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) */ { + public: + TezosSignTx_TezosOriginationOp(); + virtual ~TezosSignTx_TezosOriginationOp(); + + TezosSignTx_TezosOriginationOp(const TezosSignTx_TezosOriginationOp& from); + + inline TezosSignTx_TezosOriginationOp& operator=(const TezosSignTx_TezosOriginationOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TezosSignTx_TezosOriginationOp(TezosSignTx_TezosOriginationOp&& from) noexcept + : TezosSignTx_TezosOriginationOp() { + *this = ::std::move(from); + } + + inline TezosSignTx_TezosOriginationOp& operator=(TezosSignTx_TezosOriginationOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TezosSignTx_TezosOriginationOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TezosSignTx_TezosOriginationOp* internal_default_instance() { + return reinterpret_cast( + &_TezosSignTx_TezosOriginationOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(TezosSignTx_TezosOriginationOp* other); + friend void swap(TezosSignTx_TezosOriginationOp& a, TezosSignTx_TezosOriginationOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TezosSignTx_TezosOriginationOp* New() const final { + return CreateMaybeMessage(NULL); + } + + TezosSignTx_TezosOriginationOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TezosSignTx_TezosOriginationOp& from); + void MergeFrom(const TezosSignTx_TezosOriginationOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TezosSignTx_TezosOriginationOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes manager_pubkey = 6; + bool has_manager_pubkey() const; + void clear_manager_pubkey(); + static const int kManagerPubkeyFieldNumber = 6; + const ::std::string& manager_pubkey() const; + void set_manager_pubkey(const ::std::string& value); + #if LANG_CXX11 + void set_manager_pubkey(::std::string&& value); + #endif + void set_manager_pubkey(const char* value); + void set_manager_pubkey(const void* value, size_t size); + ::std::string* mutable_manager_pubkey(); + ::std::string* release_manager_pubkey(); + void set_allocated_manager_pubkey(::std::string* manager_pubkey); + + // optional bytes delegate = 10; + bool has_delegate() const; + void clear_delegate(); + static const int kDelegateFieldNumber = 10; + const ::std::string& delegate() const; + void set_delegate(const ::std::string& value); + #if LANG_CXX11 + void set_delegate(::std::string&& value); + #endif + void set_delegate(const char* value); + void set_delegate(const void* value, size_t size); + ::std::string* mutable_delegate(); + ::std::string* release_delegate(); + void set_allocated_delegate(::std::string* delegate); + + // optional bytes script = 11; + bool has_script() const; + void clear_script(); + static const int kScriptFieldNumber = 11; + const ::std::string& script() const; + void set_script(const ::std::string& value); + #if LANG_CXX11 + void set_script(::std::string&& value); + #endif + void set_script(const char* value); + void set_script(const void* value, size_t size); + ::std::string* mutable_script(); + ::std::string* release_script(); + void set_allocated_script(::std::string* script); + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + bool has_source() const; + void clear_source(); + static const int kSourceFieldNumber = 1; + private: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& _internal_source() const; + public: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& source() const; + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* release_source(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* mutable_source(); + void set_allocated_source(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source); + + // optional uint64 fee = 2; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 2; + ::google::protobuf::uint64 fee() const; + void set_fee(::google::protobuf::uint64 value); + + // optional uint64 counter = 3; + bool has_counter() const; + void clear_counter(); + static const int kCounterFieldNumber = 3; + ::google::protobuf::uint64 counter() const; + void set_counter(::google::protobuf::uint64 value); + + // optional uint64 gas_limit = 4; + bool has_gas_limit() const; + void clear_gas_limit(); + static const int kGasLimitFieldNumber = 4; + ::google::protobuf::uint64 gas_limit() const; + void set_gas_limit(::google::protobuf::uint64 value); + + // optional uint64 storage_limit = 5; + bool has_storage_limit() const; + void clear_storage_limit(); + static const int kStorageLimitFieldNumber = 5; + ::google::protobuf::uint64 storage_limit() const; + void set_storage_limit(::google::protobuf::uint64 value); + + // optional uint64 balance = 7; + bool has_balance() const; + void clear_balance(); + static const int kBalanceFieldNumber = 7; + ::google::protobuf::uint64 balance() const; + void set_balance(::google::protobuf::uint64 value); + + // optional bool spendable = 8; + bool has_spendable() const; + void clear_spendable(); + static const int kSpendableFieldNumber = 8; + bool spendable() const; + void set_spendable(bool value); + + // optional bool delegatable = 9; + bool has_delegatable() const; + void clear_delegatable(); + static const int kDelegatableFieldNumber = 9; + bool delegatable() const; + void set_delegatable(bool value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp) + private: + void set_has_source(); + void clear_has_source(); + void set_has_fee(); + void clear_has_fee(); + void set_has_counter(); + void clear_has_counter(); + void set_has_gas_limit(); + void clear_has_gas_limit(); + void set_has_storage_limit(); + void clear_has_storage_limit(); + void set_has_manager_pubkey(); + void clear_has_manager_pubkey(); + void set_has_balance(); + void clear_has_balance(); + void set_has_spendable(); + void clear_has_spendable(); + void set_has_delegatable(); + void clear_has_delegatable(); + void set_has_delegate(); + void clear_has_delegate(); + void set_has_script(); + void clear_has_script(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr manager_pubkey_; + ::google::protobuf::internal::ArenaStringPtr delegate_; + ::google::protobuf::internal::ArenaStringPtr script_; + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source_; + ::google::protobuf::uint64 fee_; + ::google::protobuf::uint64 counter_; + ::google::protobuf::uint64 gas_limit_; + ::google::protobuf::uint64 storage_limit_; + ::google::protobuf::uint64 balance_; + bool spendable_; + bool delegatable_; + friend struct ::protobuf_messages_2dtezos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TezosSignTx_TezosDelegationOp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) */ { + public: + TezosSignTx_TezosDelegationOp(); + virtual ~TezosSignTx_TezosDelegationOp(); + + TezosSignTx_TezosDelegationOp(const TezosSignTx_TezosDelegationOp& from); + + inline TezosSignTx_TezosDelegationOp& operator=(const TezosSignTx_TezosDelegationOp& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TezosSignTx_TezosDelegationOp(TezosSignTx_TezosDelegationOp&& from) noexcept + : TezosSignTx_TezosDelegationOp() { + *this = ::std::move(from); + } + + inline TezosSignTx_TezosDelegationOp& operator=(TezosSignTx_TezosDelegationOp&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TezosSignTx_TezosDelegationOp& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TezosSignTx_TezosDelegationOp* internal_default_instance() { + return reinterpret_cast( + &_TezosSignTx_TezosDelegationOp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(TezosSignTx_TezosDelegationOp* other); + friend void swap(TezosSignTx_TezosDelegationOp& a, TezosSignTx_TezosDelegationOp& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TezosSignTx_TezosDelegationOp* New() const final { + return CreateMaybeMessage(NULL); + } + + TezosSignTx_TezosDelegationOp* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TezosSignTx_TezosDelegationOp& from); + void MergeFrom(const TezosSignTx_TezosDelegationOp& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TezosSignTx_TezosDelegationOp* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes delegate = 6; + bool has_delegate() const; + void clear_delegate(); + static const int kDelegateFieldNumber = 6; + const ::std::string& delegate() const; + void set_delegate(const ::std::string& value); + #if LANG_CXX11 + void set_delegate(::std::string&& value); + #endif + void set_delegate(const char* value); + void set_delegate(const void* value, size_t size); + ::std::string* mutable_delegate(); + ::std::string* release_delegate(); + void set_allocated_delegate(::std::string* delegate); + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; + bool has_source() const; + void clear_source(); + static const int kSourceFieldNumber = 1; + private: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& _internal_source() const; + public: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& source() const; + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* release_source(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* mutable_source(); + void set_allocated_source(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source); + + // optional uint64 fee = 2; + bool has_fee() const; + void clear_fee(); + static const int kFeeFieldNumber = 2; + ::google::protobuf::uint64 fee() const; + void set_fee(::google::protobuf::uint64 value); + + // optional uint64 counter = 3; + bool has_counter() const; + void clear_counter(); + static const int kCounterFieldNumber = 3; + ::google::protobuf::uint64 counter() const; + void set_counter(::google::protobuf::uint64 value); + + // optional uint64 gas_limit = 4; + bool has_gas_limit() const; + void clear_gas_limit(); + static const int kGasLimitFieldNumber = 4; + ::google::protobuf::uint64 gas_limit() const; + void set_gas_limit(::google::protobuf::uint64 value); + + // optional uint64 storage_limit = 5; + bool has_storage_limit() const; + void clear_storage_limit(); + static const int kStorageLimitFieldNumber = 5; + ::google::protobuf::uint64 storage_limit() const; + void set_storage_limit(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp) + private: + void set_has_source(); + void clear_has_source(); + void set_has_fee(); + void clear_has_fee(); + void set_has_counter(); + void clear_has_counter(); + void set_has_gas_limit(); + void clear_has_gas_limit(); + void set_has_storage_limit(); + void clear_has_storage_limit(); + void set_has_delegate(); + void clear_has_delegate(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr delegate_; + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source_; + ::google::protobuf::uint64 fee_; + ::google::protobuf::uint64 counter_; + ::google::protobuf::uint64 gas_limit_; + ::google::protobuf::uint64 storage_limit_; + friend struct ::protobuf_messages_2dtezos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TezosSignTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.tezos.TezosSignTx) */ { + public: + TezosSignTx(); + virtual ~TezosSignTx(); + + TezosSignTx(const TezosSignTx& from); + + inline TezosSignTx& operator=(const TezosSignTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TezosSignTx(TezosSignTx&& from) noexcept + : TezosSignTx() { + *this = ::std::move(from); + } + + inline TezosSignTx& operator=(TezosSignTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TezosSignTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TezosSignTx* internal_default_instance() { + return reinterpret_cast( + &_TezosSignTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(TezosSignTx* other); + friend void swap(TezosSignTx& a, TezosSignTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TezosSignTx* New() const final { + return CreateMaybeMessage(NULL); + } + + TezosSignTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TezosSignTx& from); + void MergeFrom(const TezosSignTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TezosSignTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TezosSignTx_TezosContractID TezosContractID; + typedef TezosSignTx_TezosRevealOp TezosRevealOp; + typedef TezosSignTx_TezosTransactionOp TezosTransactionOp; + typedef TezosSignTx_TezosOriginationOp TezosOriginationOp; + typedef TezosSignTx_TezosDelegationOp TezosDelegationOp; + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes branch = 2; + bool has_branch() const; + void clear_branch(); + static const int kBranchFieldNumber = 2; + const ::std::string& branch() const; + void set_branch(const ::std::string& value); + #if LANG_CXX11 + void set_branch(::std::string&& value); + #endif + void set_branch(const char* value); + void set_branch(const void* value, size_t size); + ::std::string* mutable_branch(); + ::std::string* release_branch(); + void set_allocated_branch(::std::string* branch); + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp reveal = 3; + bool has_reveal() const; + void clear_reveal(); + static const int kRevealFieldNumber = 3; + private: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp& _internal_reveal() const; + public: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp& reveal() const; + ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp* release_reveal(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp* mutable_reveal(); + void set_allocated_reveal(::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp* reveal); + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp transaction = 4; + bool has_transaction() const; + void clear_transaction(); + static const int kTransactionFieldNumber = 4; + private: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp& _internal_transaction() const; + public: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp& transaction() const; + ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp* release_transaction(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp* mutable_transaction(); + void set_allocated_transaction(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp* transaction); + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp origination = 5; + bool has_origination() const; + void clear_origination(); + static const int kOriginationFieldNumber = 5; + private: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp& _internal_origination() const; + public: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp& origination() const; + ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp* release_origination(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp* mutable_origination(); + void set_allocated_origination(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp* origination); + + // optional .hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp delegation = 6; + bool has_delegation() const; + void clear_delegation(); + static const int kDelegationFieldNumber = 6; + private: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp& _internal_delegation() const; + public: + const ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp& delegation() const; + ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp* release_delegation(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp* mutable_delegation(); + void set_allocated_delegation(::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp* delegation); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.tezos.TezosSignTx) + private: + void set_has_branch(); + void clear_has_branch(); + void set_has_reveal(); + void clear_has_reveal(); + void set_has_transaction(); + void clear_has_transaction(); + void set_has_origination(); + void clear_has_origination(); + void set_has_delegation(); + void clear_has_delegation(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr branch_; + ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp* reveal_; + ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp* transaction_; + ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp* origination_; + ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp* delegation_; + friend struct ::protobuf_messages_2dtezos_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TezosSignedTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw.trezor.messages.tezos.TezosSignedTx) */ { + public: + TezosSignedTx(); + virtual ~TezosSignedTx(); + + TezosSignedTx(const TezosSignedTx& from); + + inline TezosSignedTx& operator=(const TezosSignedTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TezosSignedTx(TezosSignedTx&& from) noexcept + : TezosSignedTx() { + *this = ::std::move(from); + } + + inline TezosSignedTx& operator=(TezosSignedTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TezosSignedTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TezosSignedTx* internal_default_instance() { + return reinterpret_cast( + &_TezosSignedTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(TezosSignedTx* other); + friend void swap(TezosSignedTx& a, TezosSignedTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TezosSignedTx* New() const final { + return CreateMaybeMessage(NULL); + } + + TezosSignedTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TezosSignedTx& from); + void MergeFrom(const TezosSignedTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TezosSignedTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const char* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional bytes sig_op_contents = 2; + bool has_sig_op_contents() const; + void clear_sig_op_contents(); + static const int kSigOpContentsFieldNumber = 2; + const ::std::string& sig_op_contents() const; + void set_sig_op_contents(const ::std::string& value); + #if LANG_CXX11 + void set_sig_op_contents(::std::string&& value); + #endif + void set_sig_op_contents(const char* value); + void set_sig_op_contents(const void* value, size_t size); + ::std::string* mutable_sig_op_contents(); + ::std::string* release_sig_op_contents(); + void set_allocated_sig_op_contents(::std::string* sig_op_contents); + + // optional string operation_hash = 3; + bool has_operation_hash() const; + void clear_operation_hash(); + static const int kOperationHashFieldNumber = 3; + const ::std::string& operation_hash() const; + void set_operation_hash(const ::std::string& value); + #if LANG_CXX11 + void set_operation_hash(::std::string&& value); + #endif + void set_operation_hash(const char* value); + void set_operation_hash(const char* value, size_t size); + ::std::string* mutable_operation_hash(); + ::std::string* release_operation_hash(); + void set_allocated_operation_hash(::std::string* operation_hash); + + // @@protoc_insertion_point(class_scope:hw.trezor.messages.tezos.TezosSignedTx) + private: + void set_has_signature(); + void clear_has_signature(); + void set_has_sig_op_contents(); + void clear_has_sig_op_contents(); + void set_has_operation_hash(); + void clear_has_operation_hash(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr sig_op_contents_; + ::google::protobuf::internal::ArenaStringPtr operation_hash_; + friend struct ::protobuf_messages_2dtezos_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// TezosGetAddress + +// repeated uint32 address_n = 1; +inline int TezosGetAddress::address_n_size() const { + return address_n_.size(); +} +inline void TezosGetAddress::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 TezosGetAddress::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosGetAddress.address_n) + return address_n_.Get(index); +} +inline void TezosGetAddress::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosGetAddress.address_n) +} +inline void TezosGetAddress::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.tezos.TezosGetAddress.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +TezosGetAddress::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.tezos.TezosGetAddress.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +TezosGetAddress::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.tezos.TezosGetAddress.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool TezosGetAddress::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TezosGetAddress::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void TezosGetAddress::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TezosGetAddress::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool TezosGetAddress::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosGetAddress.show_display) + return show_display_; +} +inline void TezosGetAddress::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosGetAddress.show_display) +} + +// ------------------------------------------------------------------- + +// TezosAddress + +// optional string address = 1; +inline bool TezosAddress::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TezosAddress::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void TezosAddress::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TezosAddress::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& TezosAddress::address() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosAddress.address) + return address_.GetNoArena(); +} +inline void TezosAddress::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosAddress.address) +} +#if LANG_CXX11 +inline void TezosAddress::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosAddress.address) +} +#endif +inline void TezosAddress::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosAddress.address) +} +inline void TezosAddress::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosAddress.address) +} +inline ::std::string* TezosAddress::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosAddress.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosAddress::release_address() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosAddress.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosAddress::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosAddress.address) +} + +// ------------------------------------------------------------------- + +// TezosGetPublicKey + +// repeated uint32 address_n = 1; +inline int TezosGetPublicKey::address_n_size() const { + return address_n_.size(); +} +inline void TezosGetPublicKey::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 TezosGetPublicKey::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosGetPublicKey.address_n) + return address_n_.Get(index); +} +inline void TezosGetPublicKey::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosGetPublicKey.address_n) +} +inline void TezosGetPublicKey::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.tezos.TezosGetPublicKey.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +TezosGetPublicKey::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.tezos.TezosGetPublicKey.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +TezosGetPublicKey::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.tezos.TezosGetPublicKey.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool TezosGetPublicKey::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TezosGetPublicKey::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void TezosGetPublicKey::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TezosGetPublicKey::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool TezosGetPublicKey::show_display() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosGetPublicKey.show_display) + return show_display_; +} +inline void TezosGetPublicKey::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosGetPublicKey.show_display) +} + +// ------------------------------------------------------------------- + +// TezosPublicKey + +// optional string public_key = 1; +inline bool TezosPublicKey::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TezosPublicKey::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void TezosPublicKey::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TezosPublicKey::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& TezosPublicKey::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosPublicKey.public_key) + return public_key_.GetNoArena(); +} +inline void TezosPublicKey::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosPublicKey.public_key) +} +#if LANG_CXX11 +inline void TezosPublicKey::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosPublicKey.public_key) +} +#endif +inline void TezosPublicKey::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosPublicKey.public_key) +} +inline void TezosPublicKey::set_public_key(const char* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosPublicKey.public_key) +} +inline ::std::string* TezosPublicKey::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosPublicKey.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosPublicKey::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosPublicKey.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosPublicKey::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosPublicKey.public_key) +} + +// ------------------------------------------------------------------- + +// TezosSignTx_TezosContractID + +// optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID.TezosContractType tag = 1; +inline bool TezosSignTx_TezosContractID::has_tag() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TezosSignTx_TezosContractID::set_has_tag() { + _has_bits_[0] |= 0x00000002u; +} +inline void TezosSignTx_TezosContractID::clear_has_tag() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TezosSignTx_TezosContractID::clear_tag() { + tag_ = 0; + clear_has_tag(); +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID_TezosContractType TezosSignTx_TezosContractID::tag() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosContractID.tag) + return static_cast< ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID_TezosContractType >(tag_); +} +inline void TezosSignTx_TezosContractID::set_tag(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID_TezosContractType value) { + assert(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID_TezosContractType_IsValid(value)); + set_has_tag(); + tag_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosContractID.tag) +} + +// optional bytes hash = 2; +inline bool TezosSignTx_TezosContractID::has_hash() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TezosSignTx_TezosContractID::set_has_hash() { + _has_bits_[0] |= 0x00000001u; +} +inline void TezosSignTx_TezosContractID::clear_has_hash() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TezosSignTx_TezosContractID::clear_hash() { + hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_hash(); +} +inline const ::std::string& TezosSignTx_TezosContractID::hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosContractID.hash) + return hash_.GetNoArena(); +} +inline void TezosSignTx_TezosContractID::set_hash(const ::std::string& value) { + set_has_hash(); + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosContractID.hash) +} +#if LANG_CXX11 +inline void TezosSignTx_TezosContractID::set_hash(::std::string&& value) { + set_has_hash(); + hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosSignTx.TezosContractID.hash) +} +#endif +inline void TezosSignTx_TezosContractID::set_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_hash(); + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosSignTx.TezosContractID.hash) +} +inline void TezosSignTx_TezosContractID::set_hash(const void* value, size_t size) { + set_has_hash(); + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosSignTx.TezosContractID.hash) +} +inline ::std::string* TezosSignTx_TezosContractID::mutable_hash() { + set_has_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosContractID.hash) + return hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosSignTx_TezosContractID::release_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosContractID.hash) + if (!has_hash()) { + return NULL; + } + clear_has_hash(); + return hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosSignTx_TezosContractID::set_allocated_hash(::std::string* hash) { + if (hash != NULL) { + set_has_hash(); + } else { + clear_has_hash(); + } + hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosContractID.hash) +} + +// ------------------------------------------------------------------- + +// TezosSignTx_TezosRevealOp + +// optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; +inline bool TezosSignTx_TezosRevealOp::has_source() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TezosSignTx_TezosRevealOp::set_has_source() { + _has_bits_[0] |= 0x00000002u; +} +inline void TezosSignTx_TezosRevealOp::clear_has_source() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TezosSignTx_TezosRevealOp::clear_source() { + if (source_ != NULL) source_->Clear(); + clear_has_source(); +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& TezosSignTx_TezosRevealOp::_internal_source() const { + return *source_; +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& TezosSignTx_TezosRevealOp::source() const { + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* p = source_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.source) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::tezos::_TezosSignTx_TezosContractID_default_instance_); +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* TezosSignTx_TezosRevealOp::release_source() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.source) + clear_has_source(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* temp = source_; + source_ = NULL; + return temp; +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* TezosSignTx_TezosRevealOp::mutable_source() { + set_has_source(); + if (source_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosContractID>(GetArenaNoVirtual()); + source_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.source) + return source_; +} +inline void TezosSignTx_TezosRevealOp::set_allocated_source(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete source_; + } + if (source) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + source = ::google::protobuf::internal::GetOwnedMessage( + message_arena, source, submessage_arena); + } + set_has_source(); + } else { + clear_has_source(); + } + source_ = source; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.source) +} + +// optional uint64 fee = 2; +inline bool TezosSignTx_TezosRevealOp::has_fee() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TezosSignTx_TezosRevealOp::set_has_fee() { + _has_bits_[0] |= 0x00000004u; +} +inline void TezosSignTx_TezosRevealOp::clear_has_fee() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TezosSignTx_TezosRevealOp::clear_fee() { + fee_ = GOOGLE_ULONGLONG(0); + clear_has_fee(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosRevealOp::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.fee) + return fee_; +} +inline void TezosSignTx_TezosRevealOp::set_fee(::google::protobuf::uint64 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.fee) +} + +// optional uint64 counter = 3; +inline bool TezosSignTx_TezosRevealOp::has_counter() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TezosSignTx_TezosRevealOp::set_has_counter() { + _has_bits_[0] |= 0x00000008u; +} +inline void TezosSignTx_TezosRevealOp::clear_has_counter() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TezosSignTx_TezosRevealOp::clear_counter() { + counter_ = GOOGLE_ULONGLONG(0); + clear_has_counter(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosRevealOp::counter() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.counter) + return counter_; +} +inline void TezosSignTx_TezosRevealOp::set_counter(::google::protobuf::uint64 value) { + set_has_counter(); + counter_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.counter) +} + +// optional uint64 gas_limit = 4; +inline bool TezosSignTx_TezosRevealOp::has_gas_limit() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TezosSignTx_TezosRevealOp::set_has_gas_limit() { + _has_bits_[0] |= 0x00000010u; +} +inline void TezosSignTx_TezosRevealOp::clear_has_gas_limit() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TezosSignTx_TezosRevealOp::clear_gas_limit() { + gas_limit_ = GOOGLE_ULONGLONG(0); + clear_has_gas_limit(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosRevealOp::gas_limit() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.gas_limit) + return gas_limit_; +} +inline void TezosSignTx_TezosRevealOp::set_gas_limit(::google::protobuf::uint64 value) { + set_has_gas_limit(); + gas_limit_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.gas_limit) +} + +// optional uint64 storage_limit = 5; +inline bool TezosSignTx_TezosRevealOp::has_storage_limit() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TezosSignTx_TezosRevealOp::set_has_storage_limit() { + _has_bits_[0] |= 0x00000020u; +} +inline void TezosSignTx_TezosRevealOp::clear_has_storage_limit() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TezosSignTx_TezosRevealOp::clear_storage_limit() { + storage_limit_ = GOOGLE_ULONGLONG(0); + clear_has_storage_limit(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosRevealOp::storage_limit() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.storage_limit) + return storage_limit_; +} +inline void TezosSignTx_TezosRevealOp::set_storage_limit(::google::protobuf::uint64 value) { + set_has_storage_limit(); + storage_limit_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.storage_limit) +} + +// optional bytes public_key = 6; +inline bool TezosSignTx_TezosRevealOp::has_public_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TezosSignTx_TezosRevealOp::set_has_public_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void TezosSignTx_TezosRevealOp::clear_has_public_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TezosSignTx_TezosRevealOp::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_public_key(); +} +inline const ::std::string& TezosSignTx_TezosRevealOp::public_key() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.public_key) + return public_key_.GetNoArena(); +} +inline void TezosSignTx_TezosRevealOp::set_public_key(const ::std::string& value) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.public_key) +} +#if LANG_CXX11 +inline void TezosSignTx_TezosRevealOp::set_public_key(::std::string&& value) { + set_has_public_key(); + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.public_key) +} +#endif +inline void TezosSignTx_TezosRevealOp::set_public_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.public_key) +} +inline void TezosSignTx_TezosRevealOp::set_public_key(const void* value, size_t size) { + set_has_public_key(); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.public_key) +} +inline ::std::string* TezosSignTx_TezosRevealOp::mutable_public_key() { + set_has_public_key(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosSignTx_TezosRevealOp::release_public_key() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.public_key) + if (!has_public_key()) { + return NULL; + } + clear_has_public_key(); + return public_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosSignTx_TezosRevealOp::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + set_has_public_key(); + } else { + clear_has_public_key(); + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp.public_key) +} + +// ------------------------------------------------------------------- + +// TezosSignTx_TezosTransactionOp + +// optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; +inline bool TezosSignTx_TezosTransactionOp::has_source() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TezosSignTx_TezosTransactionOp::set_has_source() { + _has_bits_[0] |= 0x00000002u; +} +inline void TezosSignTx_TezosTransactionOp::clear_has_source() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TezosSignTx_TezosTransactionOp::clear_source() { + if (source_ != NULL) source_->Clear(); + clear_has_source(); +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& TezosSignTx_TezosTransactionOp::_internal_source() const { + return *source_; +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& TezosSignTx_TezosTransactionOp::source() const { + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* p = source_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.source) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::tezos::_TezosSignTx_TezosContractID_default_instance_); +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* TezosSignTx_TezosTransactionOp::release_source() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.source) + clear_has_source(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* temp = source_; + source_ = NULL; + return temp; +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* TezosSignTx_TezosTransactionOp::mutable_source() { + set_has_source(); + if (source_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosContractID>(GetArenaNoVirtual()); + source_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.source) + return source_; +} +inline void TezosSignTx_TezosTransactionOp::set_allocated_source(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete source_; + } + if (source) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + source = ::google::protobuf::internal::GetOwnedMessage( + message_arena, source, submessage_arena); + } + set_has_source(); + } else { + clear_has_source(); + } + source_ = source; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.source) +} + +// optional uint64 fee = 2; +inline bool TezosSignTx_TezosTransactionOp::has_fee() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TezosSignTx_TezosTransactionOp::set_has_fee() { + _has_bits_[0] |= 0x00000008u; +} +inline void TezosSignTx_TezosTransactionOp::clear_has_fee() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TezosSignTx_TezosTransactionOp::clear_fee() { + fee_ = GOOGLE_ULONGLONG(0); + clear_has_fee(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosTransactionOp::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.fee) + return fee_; +} +inline void TezosSignTx_TezosTransactionOp::set_fee(::google::protobuf::uint64 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.fee) +} + +// optional uint64 counter = 3; +inline bool TezosSignTx_TezosTransactionOp::has_counter() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TezosSignTx_TezosTransactionOp::set_has_counter() { + _has_bits_[0] |= 0x00000010u; +} +inline void TezosSignTx_TezosTransactionOp::clear_has_counter() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TezosSignTx_TezosTransactionOp::clear_counter() { + counter_ = GOOGLE_ULONGLONG(0); + clear_has_counter(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosTransactionOp::counter() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.counter) + return counter_; +} +inline void TezosSignTx_TezosTransactionOp::set_counter(::google::protobuf::uint64 value) { + set_has_counter(); + counter_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.counter) +} + +// optional uint64 gas_limit = 4; +inline bool TezosSignTx_TezosTransactionOp::has_gas_limit() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TezosSignTx_TezosTransactionOp::set_has_gas_limit() { + _has_bits_[0] |= 0x00000020u; +} +inline void TezosSignTx_TezosTransactionOp::clear_has_gas_limit() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TezosSignTx_TezosTransactionOp::clear_gas_limit() { + gas_limit_ = GOOGLE_ULONGLONG(0); + clear_has_gas_limit(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosTransactionOp::gas_limit() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.gas_limit) + return gas_limit_; +} +inline void TezosSignTx_TezosTransactionOp::set_gas_limit(::google::protobuf::uint64 value) { + set_has_gas_limit(); + gas_limit_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.gas_limit) +} + +// optional uint64 storage_limit = 5; +inline bool TezosSignTx_TezosTransactionOp::has_storage_limit() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void TezosSignTx_TezosTransactionOp::set_has_storage_limit() { + _has_bits_[0] |= 0x00000040u; +} +inline void TezosSignTx_TezosTransactionOp::clear_has_storage_limit() { + _has_bits_[0] &= ~0x00000040u; +} +inline void TezosSignTx_TezosTransactionOp::clear_storage_limit() { + storage_limit_ = GOOGLE_ULONGLONG(0); + clear_has_storage_limit(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosTransactionOp::storage_limit() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.storage_limit) + return storage_limit_; +} +inline void TezosSignTx_TezosTransactionOp::set_storage_limit(::google::protobuf::uint64 value) { + set_has_storage_limit(); + storage_limit_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.storage_limit) +} + +// optional uint64 amount = 6; +inline bool TezosSignTx_TezosTransactionOp::has_amount() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void TezosSignTx_TezosTransactionOp::set_has_amount() { + _has_bits_[0] |= 0x00000080u; +} +inline void TezosSignTx_TezosTransactionOp::clear_has_amount() { + _has_bits_[0] &= ~0x00000080u; +} +inline void TezosSignTx_TezosTransactionOp::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosTransactionOp::amount() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.amount) + return amount_; +} +inline void TezosSignTx_TezosTransactionOp::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.amount) +} + +// optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID destination = 7; +inline bool TezosSignTx_TezosTransactionOp::has_destination() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TezosSignTx_TezosTransactionOp::set_has_destination() { + _has_bits_[0] |= 0x00000004u; +} +inline void TezosSignTx_TezosTransactionOp::clear_has_destination() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TezosSignTx_TezosTransactionOp::clear_destination() { + if (destination_ != NULL) destination_->Clear(); + clear_has_destination(); +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& TezosSignTx_TezosTransactionOp::_internal_destination() const { + return *destination_; +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& TezosSignTx_TezosTransactionOp::destination() const { + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* p = destination_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.destination) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::tezos::_TezosSignTx_TezosContractID_default_instance_); +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* TezosSignTx_TezosTransactionOp::release_destination() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.destination) + clear_has_destination(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* temp = destination_; + destination_ = NULL; + return temp; +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* TezosSignTx_TezosTransactionOp::mutable_destination() { + set_has_destination(); + if (destination_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosContractID>(GetArenaNoVirtual()); + destination_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.destination) + return destination_; +} +inline void TezosSignTx_TezosTransactionOp::set_allocated_destination(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* destination) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete destination_; + } + if (destination) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + destination = ::google::protobuf::internal::GetOwnedMessage( + message_arena, destination, submessage_arena); + } + set_has_destination(); + } else { + clear_has_destination(); + } + destination_ = destination; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.destination) +} + +// optional bytes parameters = 8; +inline bool TezosSignTx_TezosTransactionOp::has_parameters() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TezosSignTx_TezosTransactionOp::set_has_parameters() { + _has_bits_[0] |= 0x00000001u; +} +inline void TezosSignTx_TezosTransactionOp::clear_has_parameters() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TezosSignTx_TezosTransactionOp::clear_parameters() { + parameters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_parameters(); +} +inline const ::std::string& TezosSignTx_TezosTransactionOp::parameters() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.parameters) + return parameters_.GetNoArena(); +} +inline void TezosSignTx_TezosTransactionOp::set_parameters(const ::std::string& value) { + set_has_parameters(); + parameters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.parameters) +} +#if LANG_CXX11 +inline void TezosSignTx_TezosTransactionOp::set_parameters(::std::string&& value) { + set_has_parameters(); + parameters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.parameters) +} +#endif +inline void TezosSignTx_TezosTransactionOp::set_parameters(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_parameters(); + parameters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.parameters) +} +inline void TezosSignTx_TezosTransactionOp::set_parameters(const void* value, size_t size) { + set_has_parameters(); + parameters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.parameters) +} +inline ::std::string* TezosSignTx_TezosTransactionOp::mutable_parameters() { + set_has_parameters(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.parameters) + return parameters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosSignTx_TezosTransactionOp::release_parameters() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.parameters) + if (!has_parameters()) { + return NULL; + } + clear_has_parameters(); + return parameters_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosSignTx_TezosTransactionOp::set_allocated_parameters(::std::string* parameters) { + if (parameters != NULL) { + set_has_parameters(); + } else { + clear_has_parameters(); + } + parameters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parameters); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp.parameters) +} + +// ------------------------------------------------------------------- + +// TezosSignTx_TezosOriginationOp + +// optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; +inline bool TezosSignTx_TezosOriginationOp::has_source() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TezosSignTx_TezosOriginationOp::set_has_source() { + _has_bits_[0] |= 0x00000008u; +} +inline void TezosSignTx_TezosOriginationOp::clear_has_source() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TezosSignTx_TezosOriginationOp::clear_source() { + if (source_ != NULL) source_->Clear(); + clear_has_source(); +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& TezosSignTx_TezosOriginationOp::_internal_source() const { + return *source_; +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& TezosSignTx_TezosOriginationOp::source() const { + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* p = source_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.source) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::tezos::_TezosSignTx_TezosContractID_default_instance_); +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* TezosSignTx_TezosOriginationOp::release_source() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.source) + clear_has_source(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* temp = source_; + source_ = NULL; + return temp; +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* TezosSignTx_TezosOriginationOp::mutable_source() { + set_has_source(); + if (source_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosContractID>(GetArenaNoVirtual()); + source_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.source) + return source_; +} +inline void TezosSignTx_TezosOriginationOp::set_allocated_source(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete source_; + } + if (source) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + source = ::google::protobuf::internal::GetOwnedMessage( + message_arena, source, submessage_arena); + } + set_has_source(); + } else { + clear_has_source(); + } + source_ = source; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.source) +} + +// optional uint64 fee = 2; +inline bool TezosSignTx_TezosOriginationOp::has_fee() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TezosSignTx_TezosOriginationOp::set_has_fee() { + _has_bits_[0] |= 0x00000010u; +} +inline void TezosSignTx_TezosOriginationOp::clear_has_fee() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TezosSignTx_TezosOriginationOp::clear_fee() { + fee_ = GOOGLE_ULONGLONG(0); + clear_has_fee(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosOriginationOp::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.fee) + return fee_; +} +inline void TezosSignTx_TezosOriginationOp::set_fee(::google::protobuf::uint64 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.fee) +} + +// optional uint64 counter = 3; +inline bool TezosSignTx_TezosOriginationOp::has_counter() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TezosSignTx_TezosOriginationOp::set_has_counter() { + _has_bits_[0] |= 0x00000020u; +} +inline void TezosSignTx_TezosOriginationOp::clear_has_counter() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TezosSignTx_TezosOriginationOp::clear_counter() { + counter_ = GOOGLE_ULONGLONG(0); + clear_has_counter(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosOriginationOp::counter() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.counter) + return counter_; +} +inline void TezosSignTx_TezosOriginationOp::set_counter(::google::protobuf::uint64 value) { + set_has_counter(); + counter_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.counter) +} + +// optional uint64 gas_limit = 4; +inline bool TezosSignTx_TezosOriginationOp::has_gas_limit() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void TezosSignTx_TezosOriginationOp::set_has_gas_limit() { + _has_bits_[0] |= 0x00000040u; +} +inline void TezosSignTx_TezosOriginationOp::clear_has_gas_limit() { + _has_bits_[0] &= ~0x00000040u; +} +inline void TezosSignTx_TezosOriginationOp::clear_gas_limit() { + gas_limit_ = GOOGLE_ULONGLONG(0); + clear_has_gas_limit(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosOriginationOp::gas_limit() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.gas_limit) + return gas_limit_; +} +inline void TezosSignTx_TezosOriginationOp::set_gas_limit(::google::protobuf::uint64 value) { + set_has_gas_limit(); + gas_limit_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.gas_limit) +} + +// optional uint64 storage_limit = 5; +inline bool TezosSignTx_TezosOriginationOp::has_storage_limit() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void TezosSignTx_TezosOriginationOp::set_has_storage_limit() { + _has_bits_[0] |= 0x00000080u; +} +inline void TezosSignTx_TezosOriginationOp::clear_has_storage_limit() { + _has_bits_[0] &= ~0x00000080u; +} +inline void TezosSignTx_TezosOriginationOp::clear_storage_limit() { + storage_limit_ = GOOGLE_ULONGLONG(0); + clear_has_storage_limit(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosOriginationOp::storage_limit() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.storage_limit) + return storage_limit_; +} +inline void TezosSignTx_TezosOriginationOp::set_storage_limit(::google::protobuf::uint64 value) { + set_has_storage_limit(); + storage_limit_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.storage_limit) +} + +// optional bytes manager_pubkey = 6; +inline bool TezosSignTx_TezosOriginationOp::has_manager_pubkey() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TezosSignTx_TezosOriginationOp::set_has_manager_pubkey() { + _has_bits_[0] |= 0x00000001u; +} +inline void TezosSignTx_TezosOriginationOp::clear_has_manager_pubkey() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TezosSignTx_TezosOriginationOp::clear_manager_pubkey() { + manager_pubkey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_manager_pubkey(); +} +inline const ::std::string& TezosSignTx_TezosOriginationOp::manager_pubkey() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.manager_pubkey) + return manager_pubkey_.GetNoArena(); +} +inline void TezosSignTx_TezosOriginationOp::set_manager_pubkey(const ::std::string& value) { + set_has_manager_pubkey(); + manager_pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.manager_pubkey) +} +#if LANG_CXX11 +inline void TezosSignTx_TezosOriginationOp::set_manager_pubkey(::std::string&& value) { + set_has_manager_pubkey(); + manager_pubkey_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.manager_pubkey) +} +#endif +inline void TezosSignTx_TezosOriginationOp::set_manager_pubkey(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_manager_pubkey(); + manager_pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.manager_pubkey) +} +inline void TezosSignTx_TezosOriginationOp::set_manager_pubkey(const void* value, size_t size) { + set_has_manager_pubkey(); + manager_pubkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.manager_pubkey) +} +inline ::std::string* TezosSignTx_TezosOriginationOp::mutable_manager_pubkey() { + set_has_manager_pubkey(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.manager_pubkey) + return manager_pubkey_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosSignTx_TezosOriginationOp::release_manager_pubkey() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.manager_pubkey) + if (!has_manager_pubkey()) { + return NULL; + } + clear_has_manager_pubkey(); + return manager_pubkey_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosSignTx_TezosOriginationOp::set_allocated_manager_pubkey(::std::string* manager_pubkey) { + if (manager_pubkey != NULL) { + set_has_manager_pubkey(); + } else { + clear_has_manager_pubkey(); + } + manager_pubkey_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), manager_pubkey); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.manager_pubkey) +} + +// optional uint64 balance = 7; +inline bool TezosSignTx_TezosOriginationOp::has_balance() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void TezosSignTx_TezosOriginationOp::set_has_balance() { + _has_bits_[0] |= 0x00000100u; +} +inline void TezosSignTx_TezosOriginationOp::clear_has_balance() { + _has_bits_[0] &= ~0x00000100u; +} +inline void TezosSignTx_TezosOriginationOp::clear_balance() { + balance_ = GOOGLE_ULONGLONG(0); + clear_has_balance(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosOriginationOp::balance() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.balance) + return balance_; +} +inline void TezosSignTx_TezosOriginationOp::set_balance(::google::protobuf::uint64 value) { + set_has_balance(); + balance_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.balance) +} + +// optional bool spendable = 8; +inline bool TezosSignTx_TezosOriginationOp::has_spendable() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void TezosSignTx_TezosOriginationOp::set_has_spendable() { + _has_bits_[0] |= 0x00000200u; +} +inline void TezosSignTx_TezosOriginationOp::clear_has_spendable() { + _has_bits_[0] &= ~0x00000200u; +} +inline void TezosSignTx_TezosOriginationOp::clear_spendable() { + spendable_ = false; + clear_has_spendable(); +} +inline bool TezosSignTx_TezosOriginationOp::spendable() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.spendable) + return spendable_; +} +inline void TezosSignTx_TezosOriginationOp::set_spendable(bool value) { + set_has_spendable(); + spendable_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.spendable) +} + +// optional bool delegatable = 9; +inline bool TezosSignTx_TezosOriginationOp::has_delegatable() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void TezosSignTx_TezosOriginationOp::set_has_delegatable() { + _has_bits_[0] |= 0x00000400u; +} +inline void TezosSignTx_TezosOriginationOp::clear_has_delegatable() { + _has_bits_[0] &= ~0x00000400u; +} +inline void TezosSignTx_TezosOriginationOp::clear_delegatable() { + delegatable_ = false; + clear_has_delegatable(); +} +inline bool TezosSignTx_TezosOriginationOp::delegatable() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.delegatable) + return delegatable_; +} +inline void TezosSignTx_TezosOriginationOp::set_delegatable(bool value) { + set_has_delegatable(); + delegatable_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.delegatable) +} + +// optional bytes delegate = 10; +inline bool TezosSignTx_TezosOriginationOp::has_delegate() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TezosSignTx_TezosOriginationOp::set_has_delegate() { + _has_bits_[0] |= 0x00000002u; +} +inline void TezosSignTx_TezosOriginationOp::clear_has_delegate() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TezosSignTx_TezosOriginationOp::clear_delegate() { + delegate_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_delegate(); +} +inline const ::std::string& TezosSignTx_TezosOriginationOp::delegate() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.delegate) + return delegate_.GetNoArena(); +} +inline void TezosSignTx_TezosOriginationOp::set_delegate(const ::std::string& value) { + set_has_delegate(); + delegate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.delegate) +} +#if LANG_CXX11 +inline void TezosSignTx_TezosOriginationOp::set_delegate(::std::string&& value) { + set_has_delegate(); + delegate_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.delegate) +} +#endif +inline void TezosSignTx_TezosOriginationOp::set_delegate(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_delegate(); + delegate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.delegate) +} +inline void TezosSignTx_TezosOriginationOp::set_delegate(const void* value, size_t size) { + set_has_delegate(); + delegate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.delegate) +} +inline ::std::string* TezosSignTx_TezosOriginationOp::mutable_delegate() { + set_has_delegate(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.delegate) + return delegate_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosSignTx_TezosOriginationOp::release_delegate() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.delegate) + if (!has_delegate()) { + return NULL; + } + clear_has_delegate(); + return delegate_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosSignTx_TezosOriginationOp::set_allocated_delegate(::std::string* delegate) { + if (delegate != NULL) { + set_has_delegate(); + } else { + clear_has_delegate(); + } + delegate_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delegate); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.delegate) +} + +// optional bytes script = 11; +inline bool TezosSignTx_TezosOriginationOp::has_script() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TezosSignTx_TezosOriginationOp::set_has_script() { + _has_bits_[0] |= 0x00000004u; +} +inline void TezosSignTx_TezosOriginationOp::clear_has_script() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TezosSignTx_TezosOriginationOp::clear_script() { + script_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_script(); +} +inline const ::std::string& TezosSignTx_TezosOriginationOp::script() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.script) + return script_.GetNoArena(); +} +inline void TezosSignTx_TezosOriginationOp::set_script(const ::std::string& value) { + set_has_script(); + script_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.script) +} +#if LANG_CXX11 +inline void TezosSignTx_TezosOriginationOp::set_script(::std::string&& value) { + set_has_script(); + script_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.script) +} +#endif +inline void TezosSignTx_TezosOriginationOp::set_script(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_script(); + script_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.script) +} +inline void TezosSignTx_TezosOriginationOp::set_script(const void* value, size_t size) { + set_has_script(); + script_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.script) +} +inline ::std::string* TezosSignTx_TezosOriginationOp::mutable_script() { + set_has_script(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.script) + return script_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosSignTx_TezosOriginationOp::release_script() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.script) + if (!has_script()) { + return NULL; + } + clear_has_script(); + return script_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosSignTx_TezosOriginationOp::set_allocated_script(::std::string* script) { + if (script != NULL) { + set_has_script(); + } else { + clear_has_script(); + } + script_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), script); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp.script) +} + +// ------------------------------------------------------------------- + +// TezosSignTx_TezosDelegationOp + +// optional .hw.trezor.messages.tezos.TezosSignTx.TezosContractID source = 1; +inline bool TezosSignTx_TezosDelegationOp::has_source() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TezosSignTx_TezosDelegationOp::set_has_source() { + _has_bits_[0] |= 0x00000002u; +} +inline void TezosSignTx_TezosDelegationOp::clear_has_source() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TezosSignTx_TezosDelegationOp::clear_source() { + if (source_ != NULL) source_->Clear(); + clear_has_source(); +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& TezosSignTx_TezosDelegationOp::_internal_source() const { + return *source_; +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID& TezosSignTx_TezosDelegationOp::source() const { + const ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* p = source_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.source) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::tezos::_TezosSignTx_TezosContractID_default_instance_); +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* TezosSignTx_TezosDelegationOp::release_source() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.source) + clear_has_source(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* temp = source_; + source_ = NULL; + return temp; +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* TezosSignTx_TezosDelegationOp::mutable_source() { + set_has_source(); + if (source_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosContractID>(GetArenaNoVirtual()); + source_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.source) + return source_; +} +inline void TezosSignTx_TezosDelegationOp::set_allocated_source(::hw::trezor::messages::tezos::TezosSignTx_TezosContractID* source) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete source_; + } + if (source) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + source = ::google::protobuf::internal::GetOwnedMessage( + message_arena, source, submessage_arena); + } + set_has_source(); + } else { + clear_has_source(); + } + source_ = source; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.source) +} + +// optional uint64 fee = 2; +inline bool TezosSignTx_TezosDelegationOp::has_fee() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TezosSignTx_TezosDelegationOp::set_has_fee() { + _has_bits_[0] |= 0x00000004u; +} +inline void TezosSignTx_TezosDelegationOp::clear_has_fee() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TezosSignTx_TezosDelegationOp::clear_fee() { + fee_ = GOOGLE_ULONGLONG(0); + clear_has_fee(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosDelegationOp::fee() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.fee) + return fee_; +} +inline void TezosSignTx_TezosDelegationOp::set_fee(::google::protobuf::uint64 value) { + set_has_fee(); + fee_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.fee) +} + +// optional uint64 counter = 3; +inline bool TezosSignTx_TezosDelegationOp::has_counter() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TezosSignTx_TezosDelegationOp::set_has_counter() { + _has_bits_[0] |= 0x00000008u; +} +inline void TezosSignTx_TezosDelegationOp::clear_has_counter() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TezosSignTx_TezosDelegationOp::clear_counter() { + counter_ = GOOGLE_ULONGLONG(0); + clear_has_counter(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosDelegationOp::counter() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.counter) + return counter_; +} +inline void TezosSignTx_TezosDelegationOp::set_counter(::google::protobuf::uint64 value) { + set_has_counter(); + counter_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.counter) +} + +// optional uint64 gas_limit = 4; +inline bool TezosSignTx_TezosDelegationOp::has_gas_limit() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TezosSignTx_TezosDelegationOp::set_has_gas_limit() { + _has_bits_[0] |= 0x00000010u; +} +inline void TezosSignTx_TezosDelegationOp::clear_has_gas_limit() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TezosSignTx_TezosDelegationOp::clear_gas_limit() { + gas_limit_ = GOOGLE_ULONGLONG(0); + clear_has_gas_limit(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosDelegationOp::gas_limit() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.gas_limit) + return gas_limit_; +} +inline void TezosSignTx_TezosDelegationOp::set_gas_limit(::google::protobuf::uint64 value) { + set_has_gas_limit(); + gas_limit_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.gas_limit) +} + +// optional uint64 storage_limit = 5; +inline bool TezosSignTx_TezosDelegationOp::has_storage_limit() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TezosSignTx_TezosDelegationOp::set_has_storage_limit() { + _has_bits_[0] |= 0x00000020u; +} +inline void TezosSignTx_TezosDelegationOp::clear_has_storage_limit() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TezosSignTx_TezosDelegationOp::clear_storage_limit() { + storage_limit_ = GOOGLE_ULONGLONG(0); + clear_has_storage_limit(); +} +inline ::google::protobuf::uint64 TezosSignTx_TezosDelegationOp::storage_limit() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.storage_limit) + return storage_limit_; +} +inline void TezosSignTx_TezosDelegationOp::set_storage_limit(::google::protobuf::uint64 value) { + set_has_storage_limit(); + storage_limit_ = value; + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.storage_limit) +} + +// optional bytes delegate = 6; +inline bool TezosSignTx_TezosDelegationOp::has_delegate() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TezosSignTx_TezosDelegationOp::set_has_delegate() { + _has_bits_[0] |= 0x00000001u; +} +inline void TezosSignTx_TezosDelegationOp::clear_has_delegate() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TezosSignTx_TezosDelegationOp::clear_delegate() { + delegate_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_delegate(); +} +inline const ::std::string& TezosSignTx_TezosDelegationOp::delegate() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.delegate) + return delegate_.GetNoArena(); +} +inline void TezosSignTx_TezosDelegationOp::set_delegate(const ::std::string& value) { + set_has_delegate(); + delegate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.delegate) +} +#if LANG_CXX11 +inline void TezosSignTx_TezosDelegationOp::set_delegate(::std::string&& value) { + set_has_delegate(); + delegate_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.delegate) +} +#endif +inline void TezosSignTx_TezosDelegationOp::set_delegate(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_delegate(); + delegate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.delegate) +} +inline void TezosSignTx_TezosDelegationOp::set_delegate(const void* value, size_t size) { + set_has_delegate(); + delegate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.delegate) +} +inline ::std::string* TezosSignTx_TezosDelegationOp::mutable_delegate() { + set_has_delegate(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.delegate) + return delegate_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosSignTx_TezosDelegationOp::release_delegate() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.delegate) + if (!has_delegate()) { + return NULL; + } + clear_has_delegate(); + return delegate_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosSignTx_TezosDelegationOp::set_allocated_delegate(::std::string* delegate) { + if (delegate != NULL) { + set_has_delegate(); + } else { + clear_has_delegate(); + } + delegate_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delegate); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp.delegate) +} + +// ------------------------------------------------------------------- + +// TezosSignTx + +// repeated uint32 address_n = 1; +inline int TezosSignTx::address_n_size() const { + return address_n_.size(); +} +inline void TezosSignTx::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 TezosSignTx::address_n(int index) const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.address_n) + return address_n_.Get(index); +} +inline void TezosSignTx::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.address_n) +} +inline void TezosSignTx::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:hw.trezor.messages.tezos.TezosSignTx.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +TezosSignTx::address_n() const { + // @@protoc_insertion_point(field_list:hw.trezor.messages.tezos.TezosSignTx.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +TezosSignTx::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:hw.trezor.messages.tezos.TezosSignTx.address_n) + return &address_n_; +} + +// optional bytes branch = 2; +inline bool TezosSignTx::has_branch() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TezosSignTx::set_has_branch() { + _has_bits_[0] |= 0x00000001u; +} +inline void TezosSignTx::clear_has_branch() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TezosSignTx::clear_branch() { + branch_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_branch(); +} +inline const ::std::string& TezosSignTx::branch() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.branch) + return branch_.GetNoArena(); +} +inline void TezosSignTx::set_branch(const ::std::string& value) { + set_has_branch(); + branch_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignTx.branch) +} +#if LANG_CXX11 +inline void TezosSignTx::set_branch(::std::string&& value) { + set_has_branch(); + branch_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosSignTx.branch) +} +#endif +inline void TezosSignTx::set_branch(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_branch(); + branch_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosSignTx.branch) +} +inline void TezosSignTx::set_branch(const void* value, size_t size) { + set_has_branch(); + branch_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosSignTx.branch) +} +inline ::std::string* TezosSignTx::mutable_branch() { + set_has_branch(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.branch) + return branch_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosSignTx::release_branch() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.branch) + if (!has_branch()) { + return NULL; + } + clear_has_branch(); + return branch_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosSignTx::set_allocated_branch(::std::string* branch) { + if (branch != NULL) { + set_has_branch(); + } else { + clear_has_branch(); + } + branch_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), branch); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.branch) +} + +// optional .hw.trezor.messages.tezos.TezosSignTx.TezosRevealOp reveal = 3; +inline bool TezosSignTx::has_reveal() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TezosSignTx::set_has_reveal() { + _has_bits_[0] |= 0x00000002u; +} +inline void TezosSignTx::clear_has_reveal() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TezosSignTx::clear_reveal() { + if (reveal_ != NULL) reveal_->Clear(); + clear_has_reveal(); +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp& TezosSignTx::_internal_reveal() const { + return *reveal_; +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp& TezosSignTx::reveal() const { + const ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp* p = reveal_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.reveal) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::tezos::_TezosSignTx_TezosRevealOp_default_instance_); +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp* TezosSignTx::release_reveal() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.reveal) + clear_has_reveal(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp* temp = reveal_; + reveal_ = NULL; + return temp; +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp* TezosSignTx::mutable_reveal() { + set_has_reveal(); + if (reveal_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp>(GetArenaNoVirtual()); + reveal_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.reveal) + return reveal_; +} +inline void TezosSignTx::set_allocated_reveal(::hw::trezor::messages::tezos::TezosSignTx_TezosRevealOp* reveal) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reveal_; + } + if (reveal) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + reveal = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reveal, submessage_arena); + } + set_has_reveal(); + } else { + clear_has_reveal(); + } + reveal_ = reveal; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.reveal) +} + +// optional .hw.trezor.messages.tezos.TezosSignTx.TezosTransactionOp transaction = 4; +inline bool TezosSignTx::has_transaction() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TezosSignTx::set_has_transaction() { + _has_bits_[0] |= 0x00000004u; +} +inline void TezosSignTx::clear_has_transaction() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TezosSignTx::clear_transaction() { + if (transaction_ != NULL) transaction_->Clear(); + clear_has_transaction(); +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp& TezosSignTx::_internal_transaction() const { + return *transaction_; +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp& TezosSignTx::transaction() const { + const ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp* p = transaction_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.transaction) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::tezos::_TezosSignTx_TezosTransactionOp_default_instance_); +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp* TezosSignTx::release_transaction() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.transaction) + clear_has_transaction(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp* temp = transaction_; + transaction_ = NULL; + return temp; +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp* TezosSignTx::mutable_transaction() { + set_has_transaction(); + if (transaction_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp>(GetArenaNoVirtual()); + transaction_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.transaction) + return transaction_; +} +inline void TezosSignTx::set_allocated_transaction(::hw::trezor::messages::tezos::TezosSignTx_TezosTransactionOp* transaction) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transaction_; + } + if (transaction) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transaction = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transaction, submessage_arena); + } + set_has_transaction(); + } else { + clear_has_transaction(); + } + transaction_ = transaction; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.transaction) +} + +// optional .hw.trezor.messages.tezos.TezosSignTx.TezosOriginationOp origination = 5; +inline bool TezosSignTx::has_origination() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TezosSignTx::set_has_origination() { + _has_bits_[0] |= 0x00000008u; +} +inline void TezosSignTx::clear_has_origination() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TezosSignTx::clear_origination() { + if (origination_ != NULL) origination_->Clear(); + clear_has_origination(); +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp& TezosSignTx::_internal_origination() const { + return *origination_; +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp& TezosSignTx::origination() const { + const ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp* p = origination_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.origination) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::tezos::_TezosSignTx_TezosOriginationOp_default_instance_); +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp* TezosSignTx::release_origination() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.origination) + clear_has_origination(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp* temp = origination_; + origination_ = NULL; + return temp; +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp* TezosSignTx::mutable_origination() { + set_has_origination(); + if (origination_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp>(GetArenaNoVirtual()); + origination_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.origination) + return origination_; +} +inline void TezosSignTx::set_allocated_origination(::hw::trezor::messages::tezos::TezosSignTx_TezosOriginationOp* origination) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete origination_; + } + if (origination) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + origination = ::google::protobuf::internal::GetOwnedMessage( + message_arena, origination, submessage_arena); + } + set_has_origination(); + } else { + clear_has_origination(); + } + origination_ = origination; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.origination) +} + +// optional .hw.trezor.messages.tezos.TezosSignTx.TezosDelegationOp delegation = 6; +inline bool TezosSignTx::has_delegation() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TezosSignTx::set_has_delegation() { + _has_bits_[0] |= 0x00000010u; +} +inline void TezosSignTx::clear_has_delegation() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TezosSignTx::clear_delegation() { + if (delegation_ != NULL) delegation_->Clear(); + clear_has_delegation(); +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp& TezosSignTx::_internal_delegation() const { + return *delegation_; +} +inline const ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp& TezosSignTx::delegation() const { + const ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp* p = delegation_; + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignTx.delegation) + return p != NULL ? *p : *reinterpret_cast( + &::hw::trezor::messages::tezos::_TezosSignTx_TezosDelegationOp_default_instance_); +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp* TezosSignTx::release_delegation() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignTx.delegation) + clear_has_delegation(); + ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp* temp = delegation_; + delegation_ = NULL; + return temp; +} +inline ::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp* TezosSignTx::mutable_delegation() { + set_has_delegation(); + if (delegation_ == NULL) { + auto* p = CreateMaybeMessage<::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp>(GetArenaNoVirtual()); + delegation_ = p; + } + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignTx.delegation) + return delegation_; +} +inline void TezosSignTx::set_allocated_delegation(::hw::trezor::messages::tezos::TezosSignTx_TezosDelegationOp* delegation) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete delegation_; + } + if (delegation) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + delegation = ::google::protobuf::internal::GetOwnedMessage( + message_arena, delegation, submessage_arena); + } + set_has_delegation(); + } else { + clear_has_delegation(); + } + delegation_ = delegation; + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignTx.delegation) +} + +// ------------------------------------------------------------------- + +// TezosSignedTx + +// optional string signature = 1; +inline bool TezosSignedTx::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TezosSignedTx::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void TezosSignedTx::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TezosSignedTx::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& TezosSignedTx::signature() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignedTx.signature) + return signature_.GetNoArena(); +} +inline void TezosSignedTx::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignedTx.signature) +} +#if LANG_CXX11 +inline void TezosSignedTx::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosSignedTx.signature) +} +#endif +inline void TezosSignedTx::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosSignedTx.signature) +} +inline void TezosSignedTx::set_signature(const char* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosSignedTx.signature) +} +inline ::std::string* TezosSignedTx::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignedTx.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosSignedTx::release_signature() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignedTx.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosSignedTx::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignedTx.signature) +} + +// optional bytes sig_op_contents = 2; +inline bool TezosSignedTx::has_sig_op_contents() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TezosSignedTx::set_has_sig_op_contents() { + _has_bits_[0] |= 0x00000002u; +} +inline void TezosSignedTx::clear_has_sig_op_contents() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TezosSignedTx::clear_sig_op_contents() { + sig_op_contents_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_sig_op_contents(); +} +inline const ::std::string& TezosSignedTx::sig_op_contents() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignedTx.sig_op_contents) + return sig_op_contents_.GetNoArena(); +} +inline void TezosSignedTx::set_sig_op_contents(const ::std::string& value) { + set_has_sig_op_contents(); + sig_op_contents_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignedTx.sig_op_contents) +} +#if LANG_CXX11 +inline void TezosSignedTx::set_sig_op_contents(::std::string&& value) { + set_has_sig_op_contents(); + sig_op_contents_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosSignedTx.sig_op_contents) +} +#endif +inline void TezosSignedTx::set_sig_op_contents(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_sig_op_contents(); + sig_op_contents_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosSignedTx.sig_op_contents) +} +inline void TezosSignedTx::set_sig_op_contents(const void* value, size_t size) { + set_has_sig_op_contents(); + sig_op_contents_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosSignedTx.sig_op_contents) +} +inline ::std::string* TezosSignedTx::mutable_sig_op_contents() { + set_has_sig_op_contents(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignedTx.sig_op_contents) + return sig_op_contents_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosSignedTx::release_sig_op_contents() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignedTx.sig_op_contents) + if (!has_sig_op_contents()) { + return NULL; + } + clear_has_sig_op_contents(); + return sig_op_contents_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosSignedTx::set_allocated_sig_op_contents(::std::string* sig_op_contents) { + if (sig_op_contents != NULL) { + set_has_sig_op_contents(); + } else { + clear_has_sig_op_contents(); + } + sig_op_contents_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sig_op_contents); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignedTx.sig_op_contents) +} + +// optional string operation_hash = 3; +inline bool TezosSignedTx::has_operation_hash() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TezosSignedTx::set_has_operation_hash() { + _has_bits_[0] |= 0x00000004u; +} +inline void TezosSignedTx::clear_has_operation_hash() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TezosSignedTx::clear_operation_hash() { + operation_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_operation_hash(); +} +inline const ::std::string& TezosSignedTx::operation_hash() const { + // @@protoc_insertion_point(field_get:hw.trezor.messages.tezos.TezosSignedTx.operation_hash) + return operation_hash_.GetNoArena(); +} +inline void TezosSignedTx::set_operation_hash(const ::std::string& value) { + set_has_operation_hash(); + operation_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:hw.trezor.messages.tezos.TezosSignedTx.operation_hash) +} +#if LANG_CXX11 +inline void TezosSignedTx::set_operation_hash(::std::string&& value) { + set_has_operation_hash(); + operation_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:hw.trezor.messages.tezos.TezosSignedTx.operation_hash) +} +#endif +inline void TezosSignedTx::set_operation_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_operation_hash(); + operation_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:hw.trezor.messages.tezos.TezosSignedTx.operation_hash) +} +inline void TezosSignedTx::set_operation_hash(const char* value, size_t size) { + set_has_operation_hash(); + operation_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:hw.trezor.messages.tezos.TezosSignedTx.operation_hash) +} +inline ::std::string* TezosSignedTx::mutable_operation_hash() { + set_has_operation_hash(); + // @@protoc_insertion_point(field_mutable:hw.trezor.messages.tezos.TezosSignedTx.operation_hash) + return operation_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TezosSignedTx::release_operation_hash() { + // @@protoc_insertion_point(field_release:hw.trezor.messages.tezos.TezosSignedTx.operation_hash) + if (!has_operation_hash()) { + return NULL; + } + clear_has_operation_hash(); + return operation_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TezosSignedTx::set_allocated_operation_hash(::std::string* operation_hash) { + if (operation_hash != NULL) { + set_has_operation_hash(); + } else { + clear_has_operation_hash(); + } + operation_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), operation_hash); + // @@protoc_insertion_point(field_set_allocated:hw.trezor.messages.tezos.TezosSignedTx.operation_hash) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace tezos +} // namespace messages +} // namespace trezor +} // namespace hw + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID_TezosContractType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID_TezosContractType>() { + return ::hw::trezor::messages::tezos::TezosSignTx_TezosContractID_TezosContractType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dtezos_2eproto diff --git a/src/Core/hardware/trezor/protob/messages-tron.pb.cc b/src/Core/hardware/trezor/protob/messages-tron.pb.cc new file mode 100644 index 00000000..780ea618 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-tron.pb.cc @@ -0,0 +1,8733 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-tron.proto + +#include "messages-tron.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_messages_2dtron_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronAccountUpdateContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronFreezeBalanceContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronParticipateAssetIssueContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronProposalApproveContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronProposalDeleteContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronTransferAssetContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronTransferContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronUnfreezeAssetContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronUnfreezeBalanceContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronUpdateAssetContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronVoteWitnessContract_TronVote; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronWithdrawBalanceContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronWitnessCreateContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronWitnessUpdateContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<16> scc_info_TronSignTx_TronContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TronSignTx_TronContract_TronAssetIssueContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TronSignTx_TronContract_TronProposalCreateContract; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TronSignTx_TronContract_TronVoteWitnessContract; +} // namespace protobuf_messages_2dtron_2eproto +class TronGetAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronGetAddress_default_instance_; +class TronAddressDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronAddress_default_instance_; +class TronSignTx_TronContract_TronAccountUpdateContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronAccountUpdateContract_default_instance_; +class TronSignTx_TronContract_TronTransferContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronTransferContract_default_instance_; +class TronSignTx_TronContract_TronTransferAssetContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronTransferAssetContract_default_instance_; +class TronSignTx_TronContract_TronVoteWitnessContract_TronVoteDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronVoteWitnessContract_TronVote_default_instance_; +class TronSignTx_TronContract_TronVoteWitnessContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronVoteWitnessContract_default_instance_; +class TronSignTx_TronContract_TronWitnessCreateContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronWitnessCreateContract_default_instance_; +class TronSignTx_TronContract_TronWitnessUpdateContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronWitnessUpdateContract_default_instance_; +class TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupplyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply_default_instance_; +class TronSignTx_TronContract_TronAssetIssueContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronAssetIssueContract_default_instance_; +class TronSignTx_TronContract_TronParticipateAssetIssueContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronParticipateAssetIssueContract_default_instance_; +class TronSignTx_TronContract_TronFreezeBalanceContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronFreezeBalanceContract_default_instance_; +class TronSignTx_TronContract_TronUnfreezeBalanceContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronUnfreezeBalanceContract_default_instance_; +class TronSignTx_TronContract_TronUnfreezeAssetContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronUnfreezeAssetContract_default_instance_; +class TronSignTx_TronContract_TronWithdrawBalanceContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronWithdrawBalanceContract_default_instance_; +class TronSignTx_TronContract_TronUpdateAssetContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronUpdateAssetContract_default_instance_; +class TronSignTx_TronContract_TronProposalCreateContract_TronProposalParametersDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters_default_instance_; +class TronSignTx_TronContract_TronProposalCreateContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronProposalCreateContract_default_instance_; +class TronSignTx_TronContract_TronProposalApproveContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronProposalApproveContract_default_instance_; +class TronSignTx_TronContract_TronProposalDeleteContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_TronProposalDeleteContract_default_instance_; +class TronSignTx_TronContractDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_TronContract_default_instance_; +class TronSignTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignTx_default_instance_; +class TronSignedTxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TronSignedTx_default_instance_; +namespace protobuf_messages_2dtron_2eproto { +static void InitDefaultsTronGetAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronGetAddress_default_instance_; + new (ptr) ::TronGetAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronGetAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronGetAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronGetAddress}, {}}; + +static void InitDefaultsTronAddress() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronAddress_default_instance_; + new (ptr) ::TronAddress(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronAddress::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronAddress = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronAddress}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronAccountUpdateContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronAccountUpdateContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronAccountUpdateContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronAccountUpdateContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronAccountUpdateContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronAccountUpdateContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronTransferContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronTransferContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronTransferContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronTransferContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronTransferContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronTransferContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronTransferAssetContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronTransferAssetContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronTransferAssetContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronTransferAssetContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronTransferAssetContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronTransferAssetContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronVoteWitnessContract_TronVote() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronVoteWitnessContract_TronVote_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronVoteWitnessContract_TronVote = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronVoteWitnessContract_TronVote}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronVoteWitnessContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronVoteWitnessContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronVoteWitnessContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronVoteWitnessContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TronSignTx_TronContract_TronVoteWitnessContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTronSignTx_TronContract_TronVoteWitnessContract}, { + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronVoteWitnessContract_TronVote.base,}}; + +static void InitDefaultsTronSignTx_TronContract_TronWitnessCreateContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronWitnessCreateContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronWitnessCreateContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronWitnessCreateContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronWitnessCreateContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronWitnessCreateContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronWitnessUpdateContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronWitnessUpdateContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronWitnessUpdateContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronWitnessUpdateContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronWitnessUpdateContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronWitnessUpdateContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronAssetIssueContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronAssetIssueContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronAssetIssueContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronAssetIssueContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TronSignTx_TronContract_TronAssetIssueContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTronSignTx_TronContract_TronAssetIssueContract}, { + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply.base,}}; + +static void InitDefaultsTronSignTx_TronContract_TronParticipateAssetIssueContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronParticipateAssetIssueContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronParticipateAssetIssueContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronParticipateAssetIssueContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronParticipateAssetIssueContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronParticipateAssetIssueContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronFreezeBalanceContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronFreezeBalanceContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronFreezeBalanceContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronFreezeBalanceContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronFreezeBalanceContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronFreezeBalanceContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronUnfreezeBalanceContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronUnfreezeBalanceContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronUnfreezeBalanceContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronUnfreezeBalanceContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronUnfreezeBalanceContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronUnfreezeBalanceContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronUnfreezeAssetContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronUnfreezeAssetContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronUnfreezeAssetContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronUnfreezeAssetContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronUnfreezeAssetContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronUnfreezeAssetContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronWithdrawBalanceContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronWithdrawBalanceContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronWithdrawBalanceContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronWithdrawBalanceContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronWithdrawBalanceContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronWithdrawBalanceContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronUpdateAssetContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronUpdateAssetContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronUpdateAssetContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronUpdateAssetContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronUpdateAssetContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronUpdateAssetContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronProposalCreateContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronProposalCreateContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronProposalCreateContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronProposalCreateContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TronSignTx_TronContract_TronProposalCreateContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTronSignTx_TronContract_TronProposalCreateContract}, { + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters.base,}}; + +static void InitDefaultsTronSignTx_TronContract_TronProposalApproveContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronProposalApproveContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronProposalApproveContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronProposalApproveContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronProposalApproveContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronProposalApproveContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract_TronProposalDeleteContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_TronProposalDeleteContract_default_instance_; + new (ptr) ::TronSignTx_TronContract_TronProposalDeleteContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract_TronProposalDeleteContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignTx_TronContract_TronProposalDeleteContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignTx_TronContract_TronProposalDeleteContract}, {}}; + +static void InitDefaultsTronSignTx_TronContract() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_TronContract_default_instance_; + new (ptr) ::TronSignTx_TronContract(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx_TronContract::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<16> scc_info_TronSignTx_TronContract = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 16, InitDefaultsTronSignTx_TronContract}, { + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronTransferContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronTransferAssetContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronVoteWitnessContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronWitnessCreateContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronAssetIssueContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronWitnessUpdateContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronParticipateAssetIssueContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronAccountUpdateContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronFreezeBalanceContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronUnfreezeBalanceContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronWithdrawBalanceContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronUnfreezeAssetContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronUpdateAssetContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalCreateContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalApproveContract.base, + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalDeleteContract.base,}}; + +static void InitDefaultsTronSignTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignTx_default_instance_; + new (ptr) ::TronSignTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TronSignTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTronSignTx}, { + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract.base,}}; + +static void InitDefaultsTronSignedTx() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TronSignedTx_default_instance_; + new (ptr) ::TronSignedTx(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::TronSignedTx::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TronSignedTx = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTronSignedTx}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_TronGetAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronAddress.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronAccountUpdateContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronTransferContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronTransferAssetContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronVoteWitnessContract_TronVote.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronVoteWitnessContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronWitnessCreateContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronWitnessUpdateContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronAssetIssueContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronParticipateAssetIssueContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronFreezeBalanceContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronUnfreezeBalanceContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronUnfreezeAssetContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronWithdrawBalanceContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronUpdateAssetContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronProposalCreateContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronProposalApproveContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract_TronProposalDeleteContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx_TronContract.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignTx.base); + ::google::protobuf::internal::InitSCC(&scc_info_TronSignedTx.base); +} + +::google::protobuf::Metadata file_level_metadata[24]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronGetAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronGetAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronGetAddress, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronGetAddress, show_display_), + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronAddress, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronAddress, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronAddress, address_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAccountUpdateContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAccountUpdateContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAccountUpdateContract, account_name_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronTransferContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronTransferContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronTransferContract, to_address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronTransferContract, amount_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronTransferAssetContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronTransferAssetContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronTransferAssetContract, asset_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronTransferAssetContract, to_address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronTransferAssetContract, amount_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronVoteWitnessContract_TronVote, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronVoteWitnessContract_TronVote, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronVoteWitnessContract_TronVote, vote_address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronVoteWitnessContract_TronVote, vote_count_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronVoteWitnessContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronVoteWitnessContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronVoteWitnessContract, votes_), + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronWitnessCreateContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronWitnessCreateContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronWitnessCreateContract, url_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronWitnessUpdateContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronWitnessUpdateContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronWitnessUpdateContract, update_url_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply, frozen_amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply, frozen_days_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, abbr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, total_supply_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, frozen_supply_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, trx_num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, start_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, end_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, description_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronAssetIssueContract, url_), + 0, + 1, + 4, + ~0u, + 5, + 6, + 7, + 8, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronParticipateAssetIssueContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronParticipateAssetIssueContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronParticipateAssetIssueContract, to_address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronParticipateAssetIssueContract, asset_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronParticipateAssetIssueContract, amount_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronFreezeBalanceContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronFreezeBalanceContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronFreezeBalanceContract, frozen_balance_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronFreezeBalanceContract, frozen_duration_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronUnfreezeBalanceContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronUnfreezeBalanceContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronUnfreezeAssetContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronUnfreezeAssetContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronWithdrawBalanceContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronWithdrawBalanceContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronUpdateAssetContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronUpdateAssetContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronUpdateAssetContract, description_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronUpdateAssetContract, url_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters, value_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalCreateContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalCreateContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalCreateContract, parameters_), + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalApproveContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalApproveContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalApproveContract, proposal_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalApproveContract, is_add_approval_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalDeleteContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalDeleteContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract_TronProposalDeleteContract, proposal_id_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, transfer_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, transfer_asset_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, vote_witness_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, witness_create_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, asset_issue_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, witness_update_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, participate_asset_issue_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, account_update_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, freeze_balance_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, unfreeze_balance_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, withdraw_balance_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, unfreeze_asset_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, update_asset_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, proposal_create_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, proposal_approve_contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx_TronContract, proposal_delete_contract_), + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx, address_n_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx, ref_block_bytes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx, ref_block_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx, expiration_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx, contract_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignTx, timestamp_), + ~0u, + 0, + 1, + 4, + 2, + 3, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignedTx, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignedTx, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignedTx, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::TronSignedTx, serialized_tx_), + 0, + 1, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::TronGetAddress)}, + { 9, 15, sizeof(::TronAddress)}, + { 16, 22, sizeof(::TronSignTx_TronContract_TronAccountUpdateContract)}, + { 23, 30, sizeof(::TronSignTx_TronContract_TronTransferContract)}, + { 32, 40, sizeof(::TronSignTx_TronContract_TronTransferAssetContract)}, + { 43, 50, sizeof(::TronSignTx_TronContract_TronVoteWitnessContract_TronVote)}, + { 52, 58, sizeof(::TronSignTx_TronContract_TronVoteWitnessContract)}, + { 59, 65, sizeof(::TronSignTx_TronContract_TronWitnessCreateContract)}, + { 66, 72, sizeof(::TronSignTx_TronContract_TronWitnessUpdateContract)}, + { 73, 80, sizeof(::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply)}, + { 82, 97, sizeof(::TronSignTx_TronContract_TronAssetIssueContract)}, + { 107, 115, sizeof(::TronSignTx_TronContract_TronParticipateAssetIssueContract)}, + { 118, 125, sizeof(::TronSignTx_TronContract_TronFreezeBalanceContract)}, + { 127, 132, sizeof(::TronSignTx_TronContract_TronUnfreezeBalanceContract)}, + { 132, 137, sizeof(::TronSignTx_TronContract_TronUnfreezeAssetContract)}, + { 137, 142, sizeof(::TronSignTx_TronContract_TronWithdrawBalanceContract)}, + { 142, 149, sizeof(::TronSignTx_TronContract_TronUpdateAssetContract)}, + { 151, 158, sizeof(::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters)}, + { 160, 166, sizeof(::TronSignTx_TronContract_TronProposalCreateContract)}, + { 167, 174, sizeof(::TronSignTx_TronContract_TronProposalApproveContract)}, + { 176, 182, sizeof(::TronSignTx_TronContract_TronProposalDeleteContract)}, + { 183, 204, sizeof(::TronSignTx_TronContract)}, + { 220, 232, sizeof(::TronSignTx)}, + { 239, 246, sizeof(::TronSignedTx)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::_TronGetAddress_default_instance_), + reinterpret_cast(&::_TronAddress_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronAccountUpdateContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronTransferContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronTransferAssetContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronVoteWitnessContract_TronVote_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronVoteWitnessContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronWitnessCreateContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronWitnessUpdateContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronAssetIssueContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronParticipateAssetIssueContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronFreezeBalanceContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronUnfreezeBalanceContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronUnfreezeAssetContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronWithdrawBalanceContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronUpdateAssetContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronProposalCreateContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronProposalApproveContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_TronProposalDeleteContract_default_instance_), + reinterpret_cast(&::_TronSignTx_TronContract_default_instance_), + reinterpret_cast(&::_TronSignTx_default_instance_), + reinterpret_cast(&::_TronSignedTx_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages-tron.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 24); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\023messages-tron.proto\"9\n\016TronGetAddress\022" + "\021\n\taddress_n\030\001 \003(\r\022\024\n\014show_display\030\002 \001(\010" + "\"\036\n\013TronAddress\022\017\n\007address\030\001 \001(\t\"\231\027\n\nTro" + "nSignTx\022\021\n\taddress_n\030\001 \003(\r\022\027\n\017ref_block_" + "bytes\030\002 \001(\014\022\026\n\016ref_block_hash\030\003 \001(\014\022\022\n\ne" + "xpiration\030\004 \001(\004\022\014\n\004data\030\005 \001(\t\022*\n\010contrac" + "t\030\006 \001(\0132\030.TronSignTx.TronContract\022\021\n\ttim" + "estamp\030\007 \001(\004\032\345\025\n\014TronContract\022H\n\021transfe" + "r_contract\030\001 \001(\0132-.TronSignTx.TronContra" + "ct.TronTransferContract\022S\n\027transfer_asse" + "t_contract\030\002 \001(\01322.TronSignTx.TronContra" + "ct.TronTransferAssetContract\022O\n\025vote_wit" + "ness_contract\030\004 \001(\01320.TronSignTx.TronCon" + "tract.TronVoteWitnessContract\022S\n\027witness" + "_create_contract\030\005 \001(\01322.TronSignTx.Tron" + "Contract.TronWitnessCreateContract\022M\n\024as" + "set_issue_contract\030\006 \001(\0132/.TronSignTx.Tr" + "onContract.TronAssetIssueContract\022S\n\027wit" + "ness_update_contract\030\010 \001(\01322.TronSignTx." + "TronContract.TronWitnessUpdateContract\022d" + "\n participate_asset_issue_contract\030\t \001(\013" + "2:.TronSignTx.TronContract.TronParticipa" + "teAssetIssueContract\022S\n\027account_update_c" + "ontract\030\n \001(\01322.TronSignTx.TronContract." + "TronAccountUpdateContract\022S\n\027freeze_bala" + "nce_contract\030\013 \001(\01322.TronSignTx.TronCont" + "ract.TronFreezeBalanceContract\022W\n\031unfree" + "ze_balance_contract\030\014 \001(\01324.TronSignTx.T" + "ronContract.TronUnfreezeBalanceContract\022" + "W\n\031withdraw_balance_contract\030\r \001(\01324.Tro" + "nSignTx.TronContract.TronWithdrawBalance" + "Contract\022S\n\027unfreeze_asset_contract\030\016 \001(" + "\01322.TronSignTx.TronContract.TronUnfreeze" + "AssetContract\022O\n\025update_asset_contract\030\017" + " \001(\01320.TronSignTx.TronContract.TronUpdat" + "eAssetContract\022U\n\030proposal_create_contra" + "ct\030\020 \001(\01323.TronSignTx.TronContract.TronP" + "roposalCreateContract\022W\n\031proposal_approv" + "e_contract\030\021 \001(\01324.TronSignTx.TronContra" + "ct.TronProposalApproveContract\022U\n\030propos" + "al_delete_contract\030\022 \001(\01323.TronSignTx.Tr" + "onContract.TronProposalDeleteContract\0321\n" + "\031TronAccountUpdateContract\022\024\n\014account_na" + "me\030\001 \001(\t\032:\n\024TronTransferContract\022\022\n\nto_a" + "ddress\030\001 \001(\014\022\016\n\006amount\030\002 \001(\004\032S\n\031TronTran" + "sferAssetContract\022\022\n\nasset_name\030\001 \001(\t\022\022\n" + "\nto_address\030\002 \001(\014\022\016\n\006amount\030\003 \001(\004\032\231\001\n\027Tr" + "onVoteWitnessContract\022H\n\005votes\030\001 \003(\01329.T" + "ronSignTx.TronContract.TronVoteWitnessCo" + "ntract.TronVote\0324\n\010TronVote\022\024\n\014vote_addr" + "ess\030\001 \001(\014\022\022\n\nvote_count\030\002 \001(\004\032(\n\031TronWit" + "nessCreateContract\022\013\n\003url\030\001 \001(\t\032/\n\031TronW" + "itnessUpdateContract\022\022\n\nupdate_url\030\002 \001(\t" + "\032\311\002\n\026TronAssetIssueContract\022\014\n\004name\030\002 \001(" + "\t\022\014\n\004abbr\030\003 \001(\t\022\024\n\014total_supply\030\004 \001(\004\022W\n" + "\rfrozen_supply\030\005 \003(\0132@.TronSignTx.TronCo" + "ntract.TronAssetIssueContract.TronFrozen" + "Supply\022\017\n\007trx_num\030\006 \001(\r\022\013\n\003num\030\007 \001(\r\022\022\n\n" + "start_time\030\010 \001(\004\022\020\n\010end_time\030\t \001(\004\022\023\n\013de" + "scription\030\n \001(\t\022\013\n\003url\030\013 \001(\t\032>\n\020TronFroz" + "enSupply\022\025\n\rfrozen_amount\030\001 \001(\004\022\023\n\013froze" + "n_days\030\002 \001(\004\032[\n!TronParticipateAssetIssu" + "eContract\022\022\n\nto_address\030\001 \001(\014\022\022\n\nasset_n" + "ame\030\002 \001(\t\022\016\n\006amount\030\003 \001(\004\032L\n\031TronFreezeB" + "alanceContract\022\026\n\016frozen_balance\030\001 \001(\004\022\027" + "\n\017frozen_duration\030\002 \001(\004\032\035\n\033TronUnfreezeB" + "alanceContract\032\033\n\031TronUnfreezeAssetContr" + "act\032\035\n\033TronWithdrawBalanceContract\032;\n\027Tr" + "onUpdateAssetContract\022\023\n\013description\030\001 \001" + "(\t\022\013\n\003url\030\002 \001(\t\032\262\001\n\032TronProposalCreateCo" + "ntract\022^\n\nparameters\030\001 \003(\0132J.TronSignTx." + "TronContract.TronProposalCreateContract." + "TronProposalParameters\0324\n\026TronProposalPa" + "rameters\022\013\n\003key\030\001 \001(\004\022\r\n\005value\030\002 \001(\004\032K\n\033" + "TronProposalApproveContract\022\023\n\013proposal_" + "id\030\001 \001(\004\022\027\n\017is_add_approval\030\002 \001(\010\0321\n\032Tro" + "nProposalDeleteContract\022\023\n\013proposal_id\030\001" + " \001(\004\"8\n\014TronSignedTx\022\021\n\tsignature\030\001 \001(\014\022" + "\025\n\rserialized_tx\030\002 \001(\014B8\n#com.satoshilab" + "s.trezor.lib.protobufB\021TrezorMessageTron" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 3200); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages-tron.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2dtron_2eproto + +// =================================================================== + +void TronGetAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronGetAddress::kAddressNFieldNumber; +const int TronGetAddress::kShowDisplayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronGetAddress::TronGetAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronGetAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronGetAddress) +} +TronGetAddress::TronGetAddress(const TronGetAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + show_display_ = from.show_display_; + // @@protoc_insertion_point(copy_constructor:TronGetAddress) +} + +void TronGetAddress::SharedCtor() { + show_display_ = false; +} + +TronGetAddress::~TronGetAddress() { + // @@protoc_insertion_point(destructor:TronGetAddress) + SharedDtor(); +} + +void TronGetAddress::SharedDtor() { +} + +void TronGetAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronGetAddress::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronGetAddress& TronGetAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronGetAddress.base); + return *internal_default_instance(); +} + + +void TronGetAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:TronGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + show_display_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronGetAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronGetAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool show_display = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_show_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &show_display_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronGetAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronGetAddress) + return false; +#undef DO_ +} + +void TronGetAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->show_display(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronGetAddress) +} + +::google::protobuf::uint8* TronGetAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronGetAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bool show_display = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->show_display(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronGetAddress) + return target; +} + +size_t TronGetAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronGetAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + // optional bool show_display = 2; + if (has_show_display()) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronGetAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronGetAddress) + GOOGLE_DCHECK_NE(&from, this); + const TronGetAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronGetAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronGetAddress) + MergeFrom(*source); + } +} + +void TronGetAddress::MergeFrom(const TronGetAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronGetAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + if (from.has_show_display()) { + set_show_display(from.show_display()); + } +} + +void TronGetAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronGetAddress::CopyFrom(const TronGetAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronGetAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronGetAddress::IsInitialized() const { + return true; +} + +void TronGetAddress::Swap(TronGetAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void TronGetAddress::InternalSwap(TronGetAddress* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + swap(show_display_, other->show_display_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronGetAddress::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronAddress::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronAddress::kAddressFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronAddress::TronAddress() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronAddress.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronAddress) +} +TronAddress::TronAddress(const TronAddress& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_address()) { + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } + // @@protoc_insertion_point(copy_constructor:TronAddress) +} + +void TronAddress::SharedCtor() { + address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TronAddress::~TronAddress() { + // @@protoc_insertion_point(destructor:TronAddress) + SharedDtor(); +} + +void TronAddress::SharedDtor() { + address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TronAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronAddress::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronAddress& TronAddress::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronAddress.base); + return *internal_default_instance(); +} + + +void TronAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:TronAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + address_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronAddress) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronAddress.address"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronAddress) + return false; +#undef DO_ +} + +void TronAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronAddress.address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->address(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronAddress) +} + +::google::protobuf::uint8* TronAddress::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronAddress) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->address().data(), static_cast(this->address().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronAddress.address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->address(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronAddress) + return target; +} + +size_t TronAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronAddress) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string address = 1; + if (has_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->address()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronAddress::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronAddress) + GOOGLE_DCHECK_NE(&from, this); + const TronAddress* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronAddress) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronAddress) + MergeFrom(*source); + } +} + +void TronAddress::MergeFrom(const TronAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronAddress) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_address()) { + set_has_address(); + address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_); + } +} + +void TronAddress::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronAddress::CopyFrom(const TronAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronAddress::IsInitialized() const { + return true; +} + +void TronAddress::Swap(TronAddress* other) { + if (other == this) return; + InternalSwap(other); +} +void TronAddress::InternalSwap(TronAddress* other) { + using std::swap; + address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronAddress::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronAccountUpdateContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronAccountUpdateContract::kAccountNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronAccountUpdateContract::TronSignTx_TronContract_TronAccountUpdateContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronAccountUpdateContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronAccountUpdateContract) +} +TronSignTx_TronContract_TronAccountUpdateContract::TronSignTx_TronContract_TronAccountUpdateContract(const TronSignTx_TronContract_TronAccountUpdateContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + account_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_account_name()) { + account_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.account_name_); + } + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronAccountUpdateContract) +} + +void TronSignTx_TronContract_TronAccountUpdateContract::SharedCtor() { + account_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TronSignTx_TronContract_TronAccountUpdateContract::~TronSignTx_TronContract_TronAccountUpdateContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronAccountUpdateContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronAccountUpdateContract::SharedDtor() { + account_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TronSignTx_TronContract_TronAccountUpdateContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronAccountUpdateContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronAccountUpdateContract& TronSignTx_TronContract_TronAccountUpdateContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronAccountUpdateContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronAccountUpdateContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronAccountUpdateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + account_name_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronAccountUpdateContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronAccountUpdateContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string account_name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_account_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->account_name().data(), static_cast(this->account_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.TronContract.TronAccountUpdateContract.account_name"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronAccountUpdateContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronAccountUpdateContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronAccountUpdateContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronAccountUpdateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string account_name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->account_name().data(), static_cast(this->account_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronAccountUpdateContract.account_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->account_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronAccountUpdateContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronAccountUpdateContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronAccountUpdateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string account_name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->account_name().data(), static_cast(this->account_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronAccountUpdateContract.account_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->account_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronAccountUpdateContract) + return target; +} + +size_t TronSignTx_TronContract_TronAccountUpdateContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronAccountUpdateContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string account_name = 1; + if (has_account_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->account_name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronAccountUpdateContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronAccountUpdateContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronAccountUpdateContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronAccountUpdateContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronAccountUpdateContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronAccountUpdateContract::MergeFrom(const TronSignTx_TronContract_TronAccountUpdateContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronAccountUpdateContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_account_name()) { + set_has_account_name(); + account_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.account_name_); + } +} + +void TronSignTx_TronContract_TronAccountUpdateContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronAccountUpdateContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronAccountUpdateContract::CopyFrom(const TronSignTx_TronContract_TronAccountUpdateContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronAccountUpdateContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronAccountUpdateContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronAccountUpdateContract::Swap(TronSignTx_TronContract_TronAccountUpdateContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronAccountUpdateContract::InternalSwap(TronSignTx_TronContract_TronAccountUpdateContract* other) { + using std::swap; + account_name_.Swap(&other->account_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronAccountUpdateContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronTransferContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronTransferContract::kToAddressFieldNumber; +const int TronSignTx_TronContract_TronTransferContract::kAmountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronTransferContract::TronSignTx_TronContract_TronTransferContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronTransferContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronTransferContract) +} +TronSignTx_TronContract_TronTransferContract::TronSignTx_TronContract_TronTransferContract(const TronSignTx_TronContract_TronTransferContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + to_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_to_address()) { + to_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_address_); + } + amount_ = from.amount_; + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronTransferContract) +} + +void TronSignTx_TronContract_TronTransferContract::SharedCtor() { + to_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_ = GOOGLE_ULONGLONG(0); +} + +TronSignTx_TronContract_TronTransferContract::~TronSignTx_TronContract_TronTransferContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronTransferContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronTransferContract::SharedDtor() { + to_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TronSignTx_TronContract_TronTransferContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronTransferContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronTransferContract& TronSignTx_TronContract_TronTransferContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronTransferContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronTransferContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronTransferContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + to_address_.ClearNonDefaultToEmptyNoArena(); + } + amount_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronTransferContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronTransferContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes to_address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_to_address())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 amount = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronTransferContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronTransferContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronTransferContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronTransferContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes to_address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->to_address(), output); + } + + // optional uint64 amount = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->amount(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronTransferContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronTransferContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronTransferContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes to_address = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->to_address(), target); + } + + // optional uint64 amount = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->amount(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronTransferContract) + return target; +} + +size_t TronSignTx_TronContract_TronTransferContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronTransferContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes to_address = 1; + if (has_to_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->to_address()); + } + + // optional uint64 amount = 2; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronTransferContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronTransferContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronTransferContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronTransferContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronTransferContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronTransferContract::MergeFrom(const TronSignTx_TronContract_TronTransferContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronTransferContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_to_address(); + to_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_address_); + } + if (cached_has_bits & 0x00000002u) { + amount_ = from.amount_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TronSignTx_TronContract_TronTransferContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronTransferContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronTransferContract::CopyFrom(const TronSignTx_TronContract_TronTransferContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronTransferContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronTransferContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronTransferContract::Swap(TronSignTx_TronContract_TronTransferContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronTransferContract::InternalSwap(TronSignTx_TronContract_TronTransferContract* other) { + using std::swap; + to_address_.Swap(&other->to_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(amount_, other->amount_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronTransferContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronTransferAssetContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronTransferAssetContract::kAssetNameFieldNumber; +const int TronSignTx_TronContract_TronTransferAssetContract::kToAddressFieldNumber; +const int TronSignTx_TronContract_TronTransferAssetContract::kAmountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronTransferAssetContract::TronSignTx_TronContract_TronTransferAssetContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronTransferAssetContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronTransferAssetContract) +} +TronSignTx_TronContract_TronTransferAssetContract::TronSignTx_TronContract_TronTransferAssetContract(const TronSignTx_TronContract_TronTransferAssetContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + asset_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_asset_name()) { + asset_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_name_); + } + to_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_to_address()) { + to_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_address_); + } + amount_ = from.amount_; + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronTransferAssetContract) +} + +void TronSignTx_TronContract_TronTransferAssetContract::SharedCtor() { + asset_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + to_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_ = GOOGLE_ULONGLONG(0); +} + +TronSignTx_TronContract_TronTransferAssetContract::~TronSignTx_TronContract_TronTransferAssetContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronTransferAssetContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronTransferAssetContract::SharedDtor() { + asset_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + to_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TronSignTx_TronContract_TronTransferAssetContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronTransferAssetContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronTransferAssetContract& TronSignTx_TronContract_TronTransferAssetContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronTransferAssetContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronTransferAssetContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronTransferAssetContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + asset_name_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + to_address_.ClearNonDefaultToEmptyNoArena(); + } + } + amount_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronTransferAssetContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronTransferAssetContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string asset_name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_asset_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->asset_name().data(), static_cast(this->asset_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.TronContract.TronTransferAssetContract.asset_name"); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes to_address = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_to_address())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 amount = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronTransferAssetContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronTransferAssetContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronTransferAssetContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronTransferAssetContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string asset_name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->asset_name().data(), static_cast(this->asset_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronTransferAssetContract.asset_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->asset_name(), output); + } + + // optional bytes to_address = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->to_address(), output); + } + + // optional uint64 amount = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->amount(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronTransferAssetContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronTransferAssetContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronTransferAssetContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string asset_name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->asset_name().data(), static_cast(this->asset_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronTransferAssetContract.asset_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->asset_name(), target); + } + + // optional bytes to_address = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->to_address(), target); + } + + // optional uint64 amount = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->amount(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronTransferAssetContract) + return target; +} + +size_t TronSignTx_TronContract_TronTransferAssetContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronTransferAssetContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string asset_name = 1; + if (has_asset_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->asset_name()); + } + + // optional bytes to_address = 2; + if (has_to_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->to_address()); + } + + // optional uint64 amount = 3; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronTransferAssetContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronTransferAssetContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronTransferAssetContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronTransferAssetContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronTransferAssetContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronTransferAssetContract::MergeFrom(const TronSignTx_TronContract_TronTransferAssetContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronTransferAssetContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_asset_name(); + asset_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_name_); + } + if (cached_has_bits & 0x00000002u) { + set_has_to_address(); + to_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_address_); + } + if (cached_has_bits & 0x00000004u) { + amount_ = from.amount_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TronSignTx_TronContract_TronTransferAssetContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronTransferAssetContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronTransferAssetContract::CopyFrom(const TronSignTx_TronContract_TronTransferAssetContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronTransferAssetContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronTransferAssetContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronTransferAssetContract::Swap(TronSignTx_TronContract_TronTransferAssetContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronTransferAssetContract::InternalSwap(TronSignTx_TronContract_TronTransferAssetContract* other) { + using std::swap; + asset_name_.Swap(&other->asset_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + to_address_.Swap(&other->to_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(amount_, other->amount_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronTransferAssetContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronVoteWitnessContract_TronVote::kVoteAddressFieldNumber; +const int TronSignTx_TronContract_TronVoteWitnessContract_TronVote::kVoteCountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronVoteWitnessContract_TronVote::TronSignTx_TronContract_TronVoteWitnessContract_TronVote() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronVoteWitnessContract_TronVote.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) +} +TronSignTx_TronContract_TronVoteWitnessContract_TronVote::TronSignTx_TronContract_TronVoteWitnessContract_TronVote(const TronSignTx_TronContract_TronVoteWitnessContract_TronVote& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + vote_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_vote_address()) { + vote_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vote_address_); + } + vote_count_ = from.vote_count_; + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) +} + +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::SharedCtor() { + vote_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + vote_count_ = GOOGLE_ULONGLONG(0); +} + +TronSignTx_TronContract_TronVoteWitnessContract_TronVote::~TronSignTx_TronContract_TronVoteWitnessContract_TronVote() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + SharedDtor(); +} + +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::SharedDtor() { + vote_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronVoteWitnessContract_TronVote::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronVoteWitnessContract_TronVote& TronSignTx_TronContract_TronVoteWitnessContract_TronVote::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronVoteWitnessContract_TronVote.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + vote_address_.ClearNonDefaultToEmptyNoArena(); + } + vote_count_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronVoteWitnessContract_TronVote::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes vote_address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_vote_address())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 vote_count = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_vote_count(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &vote_count_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes vote_address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->vote_address(), output); + } + + // optional uint64 vote_count = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->vote_count(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronVoteWitnessContract_TronVote::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes vote_address = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->vote_address(), target); + } + + // optional uint64 vote_count = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->vote_count(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + return target; +} + +size_t TronSignTx_TronContract_TronVoteWitnessContract_TronVote::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes vote_address = 1; + if (has_vote_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->vote_address()); + } + + // optional uint64 vote_count = 2; + if (has_vote_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->vote_count()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronVoteWitnessContract_TronVote* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::MergeFrom(const TronSignTx_TronContract_TronVoteWitnessContract_TronVote& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_vote_address(); + vote_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vote_address_); + } + if (cached_has_bits & 0x00000002u) { + vote_count_ = from.vote_count_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::CopyFrom(const TronSignTx_TronContract_TronVoteWitnessContract_TronVote& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronVoteWitnessContract_TronVote::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::Swap(TronSignTx_TronContract_TronVoteWitnessContract_TronVote* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::InternalSwap(TronSignTx_TronContract_TronVoteWitnessContract_TronVote* other) { + using std::swap; + vote_address_.Swap(&other->vote_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(vote_count_, other->vote_count_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronVoteWitnessContract_TronVote::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronVoteWitnessContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronVoteWitnessContract::kVotesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronVoteWitnessContract::TronSignTx_TronContract_TronVoteWitnessContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronVoteWitnessContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronVoteWitnessContract) +} +TronSignTx_TronContract_TronVoteWitnessContract::TronSignTx_TronContract_TronVoteWitnessContract(const TronSignTx_TronContract_TronVoteWitnessContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + votes_(from.votes_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronVoteWitnessContract) +} + +void TronSignTx_TronContract_TronVoteWitnessContract::SharedCtor() { +} + +TronSignTx_TronContract_TronVoteWitnessContract::~TronSignTx_TronContract_TronVoteWitnessContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronVoteWitnessContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronVoteWitnessContract::SharedDtor() { +} + +void TronSignTx_TronContract_TronVoteWitnessContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronVoteWitnessContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronVoteWitnessContract& TronSignTx_TronContract_TronVoteWitnessContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronVoteWitnessContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronVoteWitnessContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronVoteWitnessContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + votes_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronVoteWitnessContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronVoteWitnessContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .TronSignTx.TronContract.TronVoteWitnessContract.TronVote votes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_votes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronVoteWitnessContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronVoteWitnessContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronVoteWitnessContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronVoteWitnessContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .TronSignTx.TronContract.TronVoteWitnessContract.TronVote votes = 1; + for (unsigned int i = 0, + n = static_cast(this->votes_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->votes(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronVoteWitnessContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronVoteWitnessContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronVoteWitnessContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .TronSignTx.TronContract.TronVoteWitnessContract.TronVote votes = 1; + for (unsigned int i = 0, + n = static_cast(this->votes_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->votes(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronVoteWitnessContract) + return target; +} + +size_t TronSignTx_TronContract_TronVoteWitnessContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronVoteWitnessContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .TronSignTx.TronContract.TronVoteWitnessContract.TronVote votes = 1; + { + unsigned int count = static_cast(this->votes_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->votes(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronVoteWitnessContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronVoteWitnessContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronVoteWitnessContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronVoteWitnessContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronVoteWitnessContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronVoteWitnessContract::MergeFrom(const TronSignTx_TronContract_TronVoteWitnessContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronVoteWitnessContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + votes_.MergeFrom(from.votes_); +} + +void TronSignTx_TronContract_TronVoteWitnessContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronVoteWitnessContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronVoteWitnessContract::CopyFrom(const TronSignTx_TronContract_TronVoteWitnessContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronVoteWitnessContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronVoteWitnessContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronVoteWitnessContract::Swap(TronSignTx_TronContract_TronVoteWitnessContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronVoteWitnessContract::InternalSwap(TronSignTx_TronContract_TronVoteWitnessContract* other) { + using std::swap; + CastToBase(&votes_)->InternalSwap(CastToBase(&other->votes_)); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronVoteWitnessContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronWitnessCreateContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronWitnessCreateContract::kUrlFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronWitnessCreateContract::TronSignTx_TronContract_TronWitnessCreateContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronWitnessCreateContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronWitnessCreateContract) +} +TronSignTx_TronContract_TronWitnessCreateContract::TronSignTx_TronContract_TronWitnessCreateContract(const TronSignTx_TronContract_TronWitnessCreateContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_url()) { + url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); + } + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronWitnessCreateContract) +} + +void TronSignTx_TronContract_TronWitnessCreateContract::SharedCtor() { + url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TronSignTx_TronContract_TronWitnessCreateContract::~TronSignTx_TronContract_TronWitnessCreateContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronWitnessCreateContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronWitnessCreateContract::SharedDtor() { + url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TronSignTx_TronContract_TronWitnessCreateContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronWitnessCreateContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronWitnessCreateContract& TronSignTx_TronContract_TronWitnessCreateContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronWitnessCreateContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronWitnessCreateContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronWitnessCreateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + url_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronWitnessCreateContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronWitnessCreateContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string url = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_url())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.TronContract.TronWitnessCreateContract.url"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronWitnessCreateContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronWitnessCreateContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronWitnessCreateContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronWitnessCreateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string url = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronWitnessCreateContract.url"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->url(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronWitnessCreateContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronWitnessCreateContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronWitnessCreateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string url = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronWitnessCreateContract.url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->url(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronWitnessCreateContract) + return target; +} + +size_t TronSignTx_TronContract_TronWitnessCreateContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronWitnessCreateContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string url = 1; + if (has_url()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->url()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronWitnessCreateContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronWitnessCreateContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronWitnessCreateContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronWitnessCreateContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronWitnessCreateContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronWitnessCreateContract::MergeFrom(const TronSignTx_TronContract_TronWitnessCreateContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronWitnessCreateContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_url()) { + set_has_url(); + url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); + } +} + +void TronSignTx_TronContract_TronWitnessCreateContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronWitnessCreateContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronWitnessCreateContract::CopyFrom(const TronSignTx_TronContract_TronWitnessCreateContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronWitnessCreateContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronWitnessCreateContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronWitnessCreateContract::Swap(TronSignTx_TronContract_TronWitnessCreateContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronWitnessCreateContract::InternalSwap(TronSignTx_TronContract_TronWitnessCreateContract* other) { + using std::swap; + url_.Swap(&other->url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronWitnessCreateContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronWitnessUpdateContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronWitnessUpdateContract::kUpdateUrlFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronWitnessUpdateContract::TronSignTx_TronContract_TronWitnessUpdateContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronWitnessUpdateContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronWitnessUpdateContract) +} +TronSignTx_TronContract_TronWitnessUpdateContract::TronSignTx_TronContract_TronWitnessUpdateContract(const TronSignTx_TronContract_TronWitnessUpdateContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + update_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_update_url()) { + update_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.update_url_); + } + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronWitnessUpdateContract) +} + +void TronSignTx_TronContract_TronWitnessUpdateContract::SharedCtor() { + update_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TronSignTx_TronContract_TronWitnessUpdateContract::~TronSignTx_TronContract_TronWitnessUpdateContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronWitnessUpdateContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronWitnessUpdateContract::SharedDtor() { + update_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TronSignTx_TronContract_TronWitnessUpdateContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronWitnessUpdateContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronWitnessUpdateContract& TronSignTx_TronContract_TronWitnessUpdateContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronWitnessUpdateContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronWitnessUpdateContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronWitnessUpdateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + update_url_.ClearNonDefaultToEmptyNoArena(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronWitnessUpdateContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronWitnessUpdateContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string update_url = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_update_url())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->update_url().data(), static_cast(this->update_url().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.TronContract.TronWitnessUpdateContract.update_url"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronWitnessUpdateContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronWitnessUpdateContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronWitnessUpdateContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronWitnessUpdateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string update_url = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->update_url().data(), static_cast(this->update_url().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronWitnessUpdateContract.update_url"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->update_url(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronWitnessUpdateContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronWitnessUpdateContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronWitnessUpdateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string update_url = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->update_url().data(), static_cast(this->update_url().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronWitnessUpdateContract.update_url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->update_url(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronWitnessUpdateContract) + return target; +} + +size_t TronSignTx_TronContract_TronWitnessUpdateContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronWitnessUpdateContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string update_url = 2; + if (has_update_url()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->update_url()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronWitnessUpdateContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronWitnessUpdateContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronWitnessUpdateContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronWitnessUpdateContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronWitnessUpdateContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronWitnessUpdateContract::MergeFrom(const TronSignTx_TronContract_TronWitnessUpdateContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronWitnessUpdateContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_update_url()) { + set_has_update_url(); + update_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.update_url_); + } +} + +void TronSignTx_TronContract_TronWitnessUpdateContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronWitnessUpdateContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronWitnessUpdateContract::CopyFrom(const TronSignTx_TronContract_TronWitnessUpdateContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronWitnessUpdateContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronWitnessUpdateContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronWitnessUpdateContract::Swap(TronSignTx_TronContract_TronWitnessUpdateContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronWitnessUpdateContract::InternalSwap(TronSignTx_TronContract_TronWitnessUpdateContract* other) { + using std::swap; + update_url_.Swap(&other->update_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronWitnessUpdateContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::kFrozenAmountFieldNumber; +const int TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::kFrozenDaysFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) +} +TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply(const TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&frozen_amount_, &from.frozen_amount_, + static_cast(reinterpret_cast(&frozen_days_) - + reinterpret_cast(&frozen_amount_)) + sizeof(frozen_days_)); + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) +} + +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::SharedCtor() { + ::memset(&frozen_amount_, 0, static_cast( + reinterpret_cast(&frozen_days_) - + reinterpret_cast(&frozen_amount_)) + sizeof(frozen_days_)); +} + +TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::~TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + SharedDtor(); +} + +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::SharedDtor() { +} + +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&frozen_amount_, 0, static_cast( + reinterpret_cast(&frozen_days_) - + reinterpret_cast(&frozen_amount_)) + sizeof(frozen_days_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 frozen_amount = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_frozen_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &frozen_amount_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 frozen_days = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_frozen_days(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &frozen_days_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 frozen_amount = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->frozen_amount(), output); + } + + // optional uint64 frozen_days = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->frozen_days(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 frozen_amount = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->frozen_amount(), target); + } + + // optional uint64 frozen_days = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->frozen_days(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + return target; +} + +size_t TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional uint64 frozen_amount = 1; + if (has_frozen_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->frozen_amount()); + } + + // optional uint64 frozen_days = 2; + if (has_frozen_days()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->frozen_days()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::MergeFrom(const TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + frozen_amount_ = from.frozen_amount_; + } + if (cached_has_bits & 0x00000002u) { + frozen_days_ = from.frozen_days_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::CopyFrom(const TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::Swap(TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::InternalSwap(TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* other) { + using std::swap; + swap(frozen_amount_, other->frozen_amount_); + swap(frozen_days_, other->frozen_days_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronAssetIssueContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronAssetIssueContract::kNameFieldNumber; +const int TronSignTx_TronContract_TronAssetIssueContract::kAbbrFieldNumber; +const int TronSignTx_TronContract_TronAssetIssueContract::kTotalSupplyFieldNumber; +const int TronSignTx_TronContract_TronAssetIssueContract::kFrozenSupplyFieldNumber; +const int TronSignTx_TronContract_TronAssetIssueContract::kTrxNumFieldNumber; +const int TronSignTx_TronContract_TronAssetIssueContract::kNumFieldNumber; +const int TronSignTx_TronContract_TronAssetIssueContract::kStartTimeFieldNumber; +const int TronSignTx_TronContract_TronAssetIssueContract::kEndTimeFieldNumber; +const int TronSignTx_TronContract_TronAssetIssueContract::kDescriptionFieldNumber; +const int TronSignTx_TronContract_TronAssetIssueContract::kUrlFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronAssetIssueContract::TronSignTx_TronContract_TronAssetIssueContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronAssetIssueContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronAssetIssueContract) +} +TronSignTx_TronContract_TronAssetIssueContract::TronSignTx_TronContract_TronAssetIssueContract(const TronSignTx_TronContract_TronAssetIssueContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + frozen_supply_(from.frozen_supply_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_name()) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + abbr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_abbr()) { + abbr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.abbr_); + } + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_description()) { + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_url()) { + url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); + } + ::memcpy(&total_supply_, &from.total_supply_, + static_cast(reinterpret_cast(&end_time_) - + reinterpret_cast(&total_supply_)) + sizeof(end_time_)); + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronAssetIssueContract) +} + +void TronSignTx_TronContract_TronAssetIssueContract::SharedCtor() { + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + abbr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&total_supply_, 0, static_cast( + reinterpret_cast(&end_time_) - + reinterpret_cast(&total_supply_)) + sizeof(end_time_)); +} + +TronSignTx_TronContract_TronAssetIssueContract::~TronSignTx_TronContract_TronAssetIssueContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronAssetIssueContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronAssetIssueContract::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + abbr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TronSignTx_TronContract_TronAssetIssueContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronAssetIssueContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronAssetIssueContract& TronSignTx_TronContract_TronAssetIssueContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronAssetIssueContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronAssetIssueContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronAssetIssueContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + frozen_supply_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + name_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + abbr_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + description_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + url_.ClearNonDefaultToEmptyNoArena(); + } + } + if (cached_has_bits & 240u) { + ::memset(&total_supply_, 0, static_cast( + reinterpret_cast(&start_time_) - + reinterpret_cast(&total_supply_)) + sizeof(start_time_)); + } + end_time_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronAssetIssueContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronAssetIssueContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.TronContract.TronAssetIssueContract.name"); + } else { + goto handle_unusual; + } + break; + } + + // optional string abbr = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_abbr())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->abbr().data(), static_cast(this->abbr().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.TronContract.TronAssetIssueContract.abbr"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 total_supply = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_total_supply(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &total_supply_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply frozen_supply = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_frozen_supply())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 trx_num = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_trx_num(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &trx_num_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 num = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_num(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &num_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 start_time = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_start_time(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &start_time_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 end_time = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_end_time(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &end_time_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string description = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_description())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.TronContract.TronAssetIssueContract.description"); + } else { + goto handle_unusual; + } + break; + } + + // optional string url = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_url())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.TronContract.TronAssetIssueContract.url"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronAssetIssueContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronAssetIssueContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronAssetIssueContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronAssetIssueContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string name = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronAssetIssueContract.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // optional string abbr = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->abbr().data(), static_cast(this->abbr().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronAssetIssueContract.abbr"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->abbr(), output); + } + + // optional uint64 total_supply = 4; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->total_supply(), output); + } + + // repeated .TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply frozen_supply = 5; + for (unsigned int i = 0, + n = static_cast(this->frozen_supply_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->frozen_supply(static_cast(i)), + output); + } + + // optional uint32 trx_num = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->trx_num(), output); + } + + // optional uint32 num = 7; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->num(), output); + } + + // optional uint64 start_time = 8; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->start_time(), output); + } + + // optional uint64 end_time = 9; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->end_time(), output); + } + + // optional string description = 10; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronAssetIssueContract.description"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 10, this->description(), output); + } + + // optional string url = 11; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronAssetIssueContract.url"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 11, this->url(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronAssetIssueContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronAssetIssueContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronAssetIssueContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string name = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronAssetIssueContract.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // optional string abbr = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->abbr().data(), static_cast(this->abbr().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronAssetIssueContract.abbr"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->abbr(), target); + } + + // optional uint64 total_supply = 4; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->total_supply(), target); + } + + // repeated .TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply frozen_supply = 5; + for (unsigned int i = 0, + n = static_cast(this->frozen_supply_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->frozen_supply(static_cast(i)), deterministic, target); + } + + // optional uint32 trx_num = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->trx_num(), target); + } + + // optional uint32 num = 7; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->num(), target); + } + + // optional uint64 start_time = 8; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->start_time(), target); + } + + // optional uint64 end_time = 9; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->end_time(), target); + } + + // optional string description = 10; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronAssetIssueContract.description"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 10, this->description(), target); + } + + // optional string url = 11; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronAssetIssueContract.url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 11, this->url(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronAssetIssueContract) + return target; +} + +size_t TronSignTx_TronContract_TronAssetIssueContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronAssetIssueContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply frozen_supply = 5; + { + unsigned int count = static_cast(this->frozen_supply_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->frozen_supply(static_cast(i))); + } + } + + if (_has_bits_[0 / 32] & 255u) { + // optional string name = 2; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional string abbr = 3; + if (has_abbr()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->abbr()); + } + + // optional string description = 10; + if (has_description()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->description()); + } + + // optional string url = 11; + if (has_url()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->url()); + } + + // optional uint64 total_supply = 4; + if (has_total_supply()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->total_supply()); + } + + // optional uint32 trx_num = 6; + if (has_trx_num()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->trx_num()); + } + + // optional uint32 num = 7; + if (has_num()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num()); + } + + // optional uint64 start_time = 8; + if (has_start_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->start_time()); + } + + } + // optional uint64 end_time = 9; + if (has_end_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->end_time()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronAssetIssueContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronAssetIssueContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronAssetIssueContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronAssetIssueContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronAssetIssueContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronAssetIssueContract::MergeFrom(const TronSignTx_TronContract_TronAssetIssueContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronAssetIssueContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + frozen_supply_.MergeFrom(from.frozen_supply_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_name(); + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (cached_has_bits & 0x00000002u) { + set_has_abbr(); + abbr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.abbr_); + } + if (cached_has_bits & 0x00000004u) { + set_has_description(); + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + if (cached_has_bits & 0x00000008u) { + set_has_url(); + url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); + } + if (cached_has_bits & 0x00000010u) { + total_supply_ = from.total_supply_; + } + if (cached_has_bits & 0x00000020u) { + trx_num_ = from.trx_num_; + } + if (cached_has_bits & 0x00000040u) { + num_ = from.num_; + } + if (cached_has_bits & 0x00000080u) { + start_time_ = from.start_time_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x00000100u) { + set_end_time(from.end_time()); + } +} + +void TronSignTx_TronContract_TronAssetIssueContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronAssetIssueContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronAssetIssueContract::CopyFrom(const TronSignTx_TronContract_TronAssetIssueContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronAssetIssueContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronAssetIssueContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronAssetIssueContract::Swap(TronSignTx_TronContract_TronAssetIssueContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronAssetIssueContract::InternalSwap(TronSignTx_TronContract_TronAssetIssueContract* other) { + using std::swap; + CastToBase(&frozen_supply_)->InternalSwap(CastToBase(&other->frozen_supply_)); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + abbr_.Swap(&other->abbr_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + url_.Swap(&other->url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(total_supply_, other->total_supply_); + swap(trx_num_, other->trx_num_); + swap(num_, other->num_); + swap(start_time_, other->start_time_); + swap(end_time_, other->end_time_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronAssetIssueContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronParticipateAssetIssueContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronParticipateAssetIssueContract::kToAddressFieldNumber; +const int TronSignTx_TronContract_TronParticipateAssetIssueContract::kAssetNameFieldNumber; +const int TronSignTx_TronContract_TronParticipateAssetIssueContract::kAmountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronParticipateAssetIssueContract::TronSignTx_TronContract_TronParticipateAssetIssueContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronParticipateAssetIssueContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronParticipateAssetIssueContract) +} +TronSignTx_TronContract_TronParticipateAssetIssueContract::TronSignTx_TronContract_TronParticipateAssetIssueContract(const TronSignTx_TronContract_TronParticipateAssetIssueContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + to_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_to_address()) { + to_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_address_); + } + asset_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_asset_name()) { + asset_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_name_); + } + amount_ = from.amount_; + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronParticipateAssetIssueContract) +} + +void TronSignTx_TronContract_TronParticipateAssetIssueContract::SharedCtor() { + to_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + asset_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_ = GOOGLE_ULONGLONG(0); +} + +TronSignTx_TronContract_TronParticipateAssetIssueContract::~TronSignTx_TronContract_TronParticipateAssetIssueContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronParticipateAssetIssueContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronParticipateAssetIssueContract::SharedDtor() { + to_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + asset_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TronSignTx_TronContract_TronParticipateAssetIssueContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronParticipateAssetIssueContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronParticipateAssetIssueContract& TronSignTx_TronContract_TronParticipateAssetIssueContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronParticipateAssetIssueContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronParticipateAssetIssueContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronParticipateAssetIssueContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + to_address_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + asset_name_.ClearNonDefaultToEmptyNoArena(); + } + } + amount_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronParticipateAssetIssueContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronParticipateAssetIssueContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes to_address = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_to_address())); + } else { + goto handle_unusual; + } + break; + } + + // optional string asset_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_asset_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->asset_name().data(), static_cast(this->asset_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.TronContract.TronParticipateAssetIssueContract.asset_name"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 amount = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_amount(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronParticipateAssetIssueContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronParticipateAssetIssueContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronParticipateAssetIssueContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronParticipateAssetIssueContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes to_address = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->to_address(), output); + } + + // optional string asset_name = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->asset_name().data(), static_cast(this->asset_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronParticipateAssetIssueContract.asset_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->asset_name(), output); + } + + // optional uint64 amount = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->amount(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronParticipateAssetIssueContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronParticipateAssetIssueContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronParticipateAssetIssueContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes to_address = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->to_address(), target); + } + + // optional string asset_name = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->asset_name().data(), static_cast(this->asset_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronParticipateAssetIssueContract.asset_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->asset_name(), target); + } + + // optional uint64 amount = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->amount(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronParticipateAssetIssueContract) + return target; +} + +size_t TronSignTx_TronContract_TronParticipateAssetIssueContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronParticipateAssetIssueContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bytes to_address = 1; + if (has_to_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->to_address()); + } + + // optional string asset_name = 2; + if (has_asset_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->asset_name()); + } + + // optional uint64 amount = 3; + if (has_amount()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->amount()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronParticipateAssetIssueContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronParticipateAssetIssueContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronParticipateAssetIssueContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronParticipateAssetIssueContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronParticipateAssetIssueContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronParticipateAssetIssueContract::MergeFrom(const TronSignTx_TronContract_TronParticipateAssetIssueContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronParticipateAssetIssueContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_to_address(); + to_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.to_address_); + } + if (cached_has_bits & 0x00000002u) { + set_has_asset_name(); + asset_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_name_); + } + if (cached_has_bits & 0x00000004u) { + amount_ = from.amount_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TronSignTx_TronContract_TronParticipateAssetIssueContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronParticipateAssetIssueContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronParticipateAssetIssueContract::CopyFrom(const TronSignTx_TronContract_TronParticipateAssetIssueContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronParticipateAssetIssueContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronParticipateAssetIssueContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronParticipateAssetIssueContract::Swap(TronSignTx_TronContract_TronParticipateAssetIssueContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronParticipateAssetIssueContract::InternalSwap(TronSignTx_TronContract_TronParticipateAssetIssueContract* other) { + using std::swap; + to_address_.Swap(&other->to_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + asset_name_.Swap(&other->asset_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(amount_, other->amount_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronParticipateAssetIssueContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronFreezeBalanceContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronFreezeBalanceContract::kFrozenBalanceFieldNumber; +const int TronSignTx_TronContract_TronFreezeBalanceContract::kFrozenDurationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronFreezeBalanceContract::TronSignTx_TronContract_TronFreezeBalanceContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronFreezeBalanceContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronFreezeBalanceContract) +} +TronSignTx_TronContract_TronFreezeBalanceContract::TronSignTx_TronContract_TronFreezeBalanceContract(const TronSignTx_TronContract_TronFreezeBalanceContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&frozen_balance_, &from.frozen_balance_, + static_cast(reinterpret_cast(&frozen_duration_) - + reinterpret_cast(&frozen_balance_)) + sizeof(frozen_duration_)); + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronFreezeBalanceContract) +} + +void TronSignTx_TronContract_TronFreezeBalanceContract::SharedCtor() { + ::memset(&frozen_balance_, 0, static_cast( + reinterpret_cast(&frozen_duration_) - + reinterpret_cast(&frozen_balance_)) + sizeof(frozen_duration_)); +} + +TronSignTx_TronContract_TronFreezeBalanceContract::~TronSignTx_TronContract_TronFreezeBalanceContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronFreezeBalanceContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronFreezeBalanceContract::SharedDtor() { +} + +void TronSignTx_TronContract_TronFreezeBalanceContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronFreezeBalanceContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronFreezeBalanceContract& TronSignTx_TronContract_TronFreezeBalanceContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronFreezeBalanceContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronFreezeBalanceContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronFreezeBalanceContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&frozen_balance_, 0, static_cast( + reinterpret_cast(&frozen_duration_) - + reinterpret_cast(&frozen_balance_)) + sizeof(frozen_duration_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronFreezeBalanceContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronFreezeBalanceContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 frozen_balance = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_frozen_balance(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &frozen_balance_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 frozen_duration = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_frozen_duration(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &frozen_duration_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronFreezeBalanceContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronFreezeBalanceContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronFreezeBalanceContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronFreezeBalanceContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 frozen_balance = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->frozen_balance(), output); + } + + // optional uint64 frozen_duration = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->frozen_duration(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronFreezeBalanceContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronFreezeBalanceContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronFreezeBalanceContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 frozen_balance = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->frozen_balance(), target); + } + + // optional uint64 frozen_duration = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->frozen_duration(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronFreezeBalanceContract) + return target; +} + +size_t TronSignTx_TronContract_TronFreezeBalanceContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronFreezeBalanceContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional uint64 frozen_balance = 1; + if (has_frozen_balance()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->frozen_balance()); + } + + // optional uint64 frozen_duration = 2; + if (has_frozen_duration()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->frozen_duration()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronFreezeBalanceContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronFreezeBalanceContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronFreezeBalanceContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronFreezeBalanceContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronFreezeBalanceContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronFreezeBalanceContract::MergeFrom(const TronSignTx_TronContract_TronFreezeBalanceContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronFreezeBalanceContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + frozen_balance_ = from.frozen_balance_; + } + if (cached_has_bits & 0x00000002u) { + frozen_duration_ = from.frozen_duration_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TronSignTx_TronContract_TronFreezeBalanceContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronFreezeBalanceContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronFreezeBalanceContract::CopyFrom(const TronSignTx_TronContract_TronFreezeBalanceContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronFreezeBalanceContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronFreezeBalanceContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronFreezeBalanceContract::Swap(TronSignTx_TronContract_TronFreezeBalanceContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronFreezeBalanceContract::InternalSwap(TronSignTx_TronContract_TronFreezeBalanceContract* other) { + using std::swap; + swap(frozen_balance_, other->frozen_balance_); + swap(frozen_duration_, other->frozen_duration_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronFreezeBalanceContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronUnfreezeBalanceContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronUnfreezeBalanceContract::TronSignTx_TronContract_TronUnfreezeBalanceContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronUnfreezeBalanceContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronUnfreezeBalanceContract) +} +TronSignTx_TronContract_TronUnfreezeBalanceContract::TronSignTx_TronContract_TronUnfreezeBalanceContract(const TronSignTx_TronContract_TronUnfreezeBalanceContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronUnfreezeBalanceContract) +} + +void TronSignTx_TronContract_TronUnfreezeBalanceContract::SharedCtor() { +} + +TronSignTx_TronContract_TronUnfreezeBalanceContract::~TronSignTx_TronContract_TronUnfreezeBalanceContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronUnfreezeBalanceContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronUnfreezeBalanceContract::SharedDtor() { +} + +void TronSignTx_TronContract_TronUnfreezeBalanceContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronUnfreezeBalanceContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronUnfreezeBalanceContract& TronSignTx_TronContract_TronUnfreezeBalanceContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronUnfreezeBalanceContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronUnfreezeBalanceContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronUnfreezeBalanceContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronUnfreezeBalanceContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronUnfreezeBalanceContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronUnfreezeBalanceContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronUnfreezeBalanceContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronUnfreezeBalanceContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronUnfreezeBalanceContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronUnfreezeBalanceContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronUnfreezeBalanceContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronUnfreezeBalanceContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronUnfreezeBalanceContract) + return target; +} + +size_t TronSignTx_TronContract_TronUnfreezeBalanceContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronUnfreezeBalanceContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronUnfreezeBalanceContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronUnfreezeBalanceContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronUnfreezeBalanceContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronUnfreezeBalanceContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronUnfreezeBalanceContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronUnfreezeBalanceContract::MergeFrom(const TronSignTx_TronContract_TronUnfreezeBalanceContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronUnfreezeBalanceContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void TronSignTx_TronContract_TronUnfreezeBalanceContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronUnfreezeBalanceContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronUnfreezeBalanceContract::CopyFrom(const TronSignTx_TronContract_TronUnfreezeBalanceContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronUnfreezeBalanceContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronUnfreezeBalanceContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronUnfreezeBalanceContract::Swap(TronSignTx_TronContract_TronUnfreezeBalanceContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronUnfreezeBalanceContract::InternalSwap(TronSignTx_TronContract_TronUnfreezeBalanceContract* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronUnfreezeBalanceContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronUnfreezeAssetContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronUnfreezeAssetContract::TronSignTx_TronContract_TronUnfreezeAssetContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronUnfreezeAssetContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronUnfreezeAssetContract) +} +TronSignTx_TronContract_TronUnfreezeAssetContract::TronSignTx_TronContract_TronUnfreezeAssetContract(const TronSignTx_TronContract_TronUnfreezeAssetContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronUnfreezeAssetContract) +} + +void TronSignTx_TronContract_TronUnfreezeAssetContract::SharedCtor() { +} + +TronSignTx_TronContract_TronUnfreezeAssetContract::~TronSignTx_TronContract_TronUnfreezeAssetContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronUnfreezeAssetContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronUnfreezeAssetContract::SharedDtor() { +} + +void TronSignTx_TronContract_TronUnfreezeAssetContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronUnfreezeAssetContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronUnfreezeAssetContract& TronSignTx_TronContract_TronUnfreezeAssetContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronUnfreezeAssetContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronUnfreezeAssetContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronUnfreezeAssetContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronUnfreezeAssetContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronUnfreezeAssetContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronUnfreezeAssetContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronUnfreezeAssetContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronUnfreezeAssetContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronUnfreezeAssetContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronUnfreezeAssetContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronUnfreezeAssetContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronUnfreezeAssetContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronUnfreezeAssetContract) + return target; +} + +size_t TronSignTx_TronContract_TronUnfreezeAssetContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronUnfreezeAssetContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronUnfreezeAssetContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronUnfreezeAssetContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronUnfreezeAssetContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronUnfreezeAssetContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronUnfreezeAssetContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronUnfreezeAssetContract::MergeFrom(const TronSignTx_TronContract_TronUnfreezeAssetContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronUnfreezeAssetContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void TronSignTx_TronContract_TronUnfreezeAssetContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronUnfreezeAssetContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronUnfreezeAssetContract::CopyFrom(const TronSignTx_TronContract_TronUnfreezeAssetContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronUnfreezeAssetContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronUnfreezeAssetContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronUnfreezeAssetContract::Swap(TronSignTx_TronContract_TronUnfreezeAssetContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronUnfreezeAssetContract::InternalSwap(TronSignTx_TronContract_TronUnfreezeAssetContract* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronUnfreezeAssetContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronWithdrawBalanceContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronWithdrawBalanceContract::TronSignTx_TronContract_TronWithdrawBalanceContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronWithdrawBalanceContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronWithdrawBalanceContract) +} +TronSignTx_TronContract_TronWithdrawBalanceContract::TronSignTx_TronContract_TronWithdrawBalanceContract(const TronSignTx_TronContract_TronWithdrawBalanceContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronWithdrawBalanceContract) +} + +void TronSignTx_TronContract_TronWithdrawBalanceContract::SharedCtor() { +} + +TronSignTx_TronContract_TronWithdrawBalanceContract::~TronSignTx_TronContract_TronWithdrawBalanceContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronWithdrawBalanceContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronWithdrawBalanceContract::SharedDtor() { +} + +void TronSignTx_TronContract_TronWithdrawBalanceContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronWithdrawBalanceContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronWithdrawBalanceContract& TronSignTx_TronContract_TronWithdrawBalanceContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronWithdrawBalanceContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronWithdrawBalanceContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronWithdrawBalanceContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronWithdrawBalanceContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronWithdrawBalanceContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronWithdrawBalanceContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronWithdrawBalanceContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronWithdrawBalanceContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronWithdrawBalanceContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronWithdrawBalanceContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronWithdrawBalanceContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronWithdrawBalanceContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronWithdrawBalanceContract) + return target; +} + +size_t TronSignTx_TronContract_TronWithdrawBalanceContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronWithdrawBalanceContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronWithdrawBalanceContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronWithdrawBalanceContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronWithdrawBalanceContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronWithdrawBalanceContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronWithdrawBalanceContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronWithdrawBalanceContract::MergeFrom(const TronSignTx_TronContract_TronWithdrawBalanceContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronWithdrawBalanceContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void TronSignTx_TronContract_TronWithdrawBalanceContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronWithdrawBalanceContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronWithdrawBalanceContract::CopyFrom(const TronSignTx_TronContract_TronWithdrawBalanceContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronWithdrawBalanceContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronWithdrawBalanceContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronWithdrawBalanceContract::Swap(TronSignTx_TronContract_TronWithdrawBalanceContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronWithdrawBalanceContract::InternalSwap(TronSignTx_TronContract_TronWithdrawBalanceContract* other) { + using std::swap; + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronWithdrawBalanceContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronUpdateAssetContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronUpdateAssetContract::kDescriptionFieldNumber; +const int TronSignTx_TronContract_TronUpdateAssetContract::kUrlFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronUpdateAssetContract::TronSignTx_TronContract_TronUpdateAssetContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronUpdateAssetContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronUpdateAssetContract) +} +TronSignTx_TronContract_TronUpdateAssetContract::TronSignTx_TronContract_TronUpdateAssetContract(const TronSignTx_TronContract_TronUpdateAssetContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_description()) { + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_url()) { + url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); + } + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronUpdateAssetContract) +} + +void TronSignTx_TronContract_TronUpdateAssetContract::SharedCtor() { + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TronSignTx_TronContract_TronUpdateAssetContract::~TronSignTx_TronContract_TronUpdateAssetContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronUpdateAssetContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronUpdateAssetContract::SharedDtor() { + description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TronSignTx_TronContract_TronUpdateAssetContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronUpdateAssetContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronUpdateAssetContract& TronSignTx_TronContract_TronUpdateAssetContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronUpdateAssetContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronUpdateAssetContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronUpdateAssetContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + description_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + url_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronUpdateAssetContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronUpdateAssetContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string description = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_description())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.TronContract.TronUpdateAssetContract.description"); + } else { + goto handle_unusual; + } + break; + } + + // optional string url = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_url())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.TronContract.TronUpdateAssetContract.url"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronUpdateAssetContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronUpdateAssetContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronUpdateAssetContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronUpdateAssetContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string description = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronUpdateAssetContract.description"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->description(), output); + } + + // optional string url = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronUpdateAssetContract.url"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->url(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronUpdateAssetContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronUpdateAssetContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronUpdateAssetContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string description = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronUpdateAssetContract.description"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->description(), target); + } + + // optional string url = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.TronContract.TronUpdateAssetContract.url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->url(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronUpdateAssetContract) + return target; +} + +size_t TronSignTx_TronContract_TronUpdateAssetContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronUpdateAssetContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional string description = 1; + if (has_description()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->description()); + } + + // optional string url = 2; + if (has_url()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->url()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronUpdateAssetContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronUpdateAssetContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronUpdateAssetContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronUpdateAssetContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronUpdateAssetContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronUpdateAssetContract::MergeFrom(const TronSignTx_TronContract_TronUpdateAssetContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronUpdateAssetContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_description(); + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + if (cached_has_bits & 0x00000002u) { + set_has_url(); + url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); + } + } +} + +void TronSignTx_TronContract_TronUpdateAssetContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronUpdateAssetContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronUpdateAssetContract::CopyFrom(const TronSignTx_TronContract_TronUpdateAssetContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronUpdateAssetContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronUpdateAssetContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronUpdateAssetContract::Swap(TronSignTx_TronContract_TronUpdateAssetContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronUpdateAssetContract::InternalSwap(TronSignTx_TronContract_TronUpdateAssetContract* other) { + using std::swap; + description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + url_.Swap(&other->url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronUpdateAssetContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::kKeyFieldNumber; +const int TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) +} +TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters(const TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&key_, &from.key_, + static_cast(reinterpret_cast(&value_) - + reinterpret_cast(&key_)) + sizeof(value_)); + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) +} + +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::SharedCtor() { + ::memset(&key_, 0, static_cast( + reinterpret_cast(&value_) - + reinterpret_cast(&key_)) + sizeof(value_)); +} + +TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::~TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + SharedDtor(); +} + +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::SharedDtor() { +} + +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&key_, 0, static_cast( + reinterpret_cast(&value_) - + reinterpret_cast(&key_)) + sizeof(value_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_key(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &key_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_value(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &value_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 key = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->key(), output); + } + + // optional uint64 value = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 key = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->key(), target); + } + + // optional uint64 value = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->value(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + return target; +} + +size_t TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional uint64 key = 1; + if (has_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->key()); + } + + // optional uint64 value = 2; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->value()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::MergeFrom(const TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + key_ = from.key_; + } + if (cached_has_bits & 0x00000002u) { + value_ = from.value_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::CopyFrom(const TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::Swap(TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::InternalSwap(TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* other) { + using std::swap; + swap(key_, other->key_); + swap(value_, other->value_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronProposalCreateContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronProposalCreateContract::kParametersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronProposalCreateContract::TronSignTx_TronContract_TronProposalCreateContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalCreateContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronProposalCreateContract) +} +TronSignTx_TronContract_TronProposalCreateContract::TronSignTx_TronContract_TronProposalCreateContract(const TronSignTx_TronContract_TronProposalCreateContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + parameters_(from.parameters_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronProposalCreateContract) +} + +void TronSignTx_TronContract_TronProposalCreateContract::SharedCtor() { +} + +TronSignTx_TronContract_TronProposalCreateContract::~TronSignTx_TronContract_TronProposalCreateContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronProposalCreateContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronProposalCreateContract::SharedDtor() { +} + +void TronSignTx_TronContract_TronProposalCreateContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronProposalCreateContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronProposalCreateContract& TronSignTx_TronContract_TronProposalCreateContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalCreateContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronProposalCreateContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronProposalCreateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + parameters_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronProposalCreateContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronProposalCreateContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters parameters = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_parameters())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronProposalCreateContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronProposalCreateContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronProposalCreateContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronProposalCreateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters parameters = 1; + for (unsigned int i = 0, + n = static_cast(this->parameters_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->parameters(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronProposalCreateContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronProposalCreateContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronProposalCreateContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters parameters = 1; + for (unsigned int i = 0, + n = static_cast(this->parameters_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->parameters(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronProposalCreateContract) + return target; +} + +size_t TronSignTx_TronContract_TronProposalCreateContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronProposalCreateContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters parameters = 1; + { + unsigned int count = static_cast(this->parameters_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->parameters(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronProposalCreateContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronProposalCreateContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronProposalCreateContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronProposalCreateContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronProposalCreateContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronProposalCreateContract::MergeFrom(const TronSignTx_TronContract_TronProposalCreateContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronProposalCreateContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + parameters_.MergeFrom(from.parameters_); +} + +void TronSignTx_TronContract_TronProposalCreateContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronProposalCreateContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronProposalCreateContract::CopyFrom(const TronSignTx_TronContract_TronProposalCreateContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronProposalCreateContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronProposalCreateContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronProposalCreateContract::Swap(TronSignTx_TronContract_TronProposalCreateContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronProposalCreateContract::InternalSwap(TronSignTx_TronContract_TronProposalCreateContract* other) { + using std::swap; + CastToBase(¶meters_)->InternalSwap(CastToBase(&other->parameters_)); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronProposalCreateContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronProposalApproveContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronProposalApproveContract::kProposalIdFieldNumber; +const int TronSignTx_TronContract_TronProposalApproveContract::kIsAddApprovalFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronProposalApproveContract::TronSignTx_TronContract_TronProposalApproveContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalApproveContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronProposalApproveContract) +} +TronSignTx_TronContract_TronProposalApproveContract::TronSignTx_TronContract_TronProposalApproveContract(const TronSignTx_TronContract_TronProposalApproveContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&proposal_id_, &from.proposal_id_, + static_cast(reinterpret_cast(&is_add_approval_) - + reinterpret_cast(&proposal_id_)) + sizeof(is_add_approval_)); + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronProposalApproveContract) +} + +void TronSignTx_TronContract_TronProposalApproveContract::SharedCtor() { + ::memset(&proposal_id_, 0, static_cast( + reinterpret_cast(&is_add_approval_) - + reinterpret_cast(&proposal_id_)) + sizeof(is_add_approval_)); +} + +TronSignTx_TronContract_TronProposalApproveContract::~TronSignTx_TronContract_TronProposalApproveContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronProposalApproveContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronProposalApproveContract::SharedDtor() { +} + +void TronSignTx_TronContract_TronProposalApproveContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronProposalApproveContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronProposalApproveContract& TronSignTx_TronContract_TronProposalApproveContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalApproveContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronProposalApproveContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronProposalApproveContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&proposal_id_, 0, static_cast( + reinterpret_cast(&is_add_approval_) - + reinterpret_cast(&proposal_id_)) + sizeof(is_add_approval_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronProposalApproveContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronProposalApproveContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proposal_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_proposal_id(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proposal_id_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool is_add_approval = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_is_add_approval(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_add_approval_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronProposalApproveContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronProposalApproveContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronProposalApproveContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronProposalApproveContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 proposal_id = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proposal_id(), output); + } + + // optional bool is_add_approval = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_add_approval(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronProposalApproveContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronProposalApproveContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronProposalApproveContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 proposal_id = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proposal_id(), target); + } + + // optional bool is_add_approval = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_add_approval(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronProposalApproveContract) + return target; +} + +size_t TronSignTx_TronContract_TronProposalApproveContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronProposalApproveContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional uint64 proposal_id = 1; + if (has_proposal_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proposal_id()); + } + + // optional bool is_add_approval = 2; + if (has_is_add_approval()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronProposalApproveContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronProposalApproveContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronProposalApproveContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronProposalApproveContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronProposalApproveContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronProposalApproveContract::MergeFrom(const TronSignTx_TronContract_TronProposalApproveContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronProposalApproveContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + proposal_id_ = from.proposal_id_; + } + if (cached_has_bits & 0x00000002u) { + is_add_approval_ = from.is_add_approval_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TronSignTx_TronContract_TronProposalApproveContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronProposalApproveContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronProposalApproveContract::CopyFrom(const TronSignTx_TronContract_TronProposalApproveContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronProposalApproveContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronProposalApproveContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronProposalApproveContract::Swap(TronSignTx_TronContract_TronProposalApproveContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronProposalApproveContract::InternalSwap(TronSignTx_TronContract_TronProposalApproveContract* other) { + using std::swap; + swap(proposal_id_, other->proposal_id_); + swap(is_add_approval_, other->is_add_approval_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronProposalApproveContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract_TronProposalDeleteContract::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract_TronProposalDeleteContract::kProposalIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract_TronProposalDeleteContract::TronSignTx_TronContract_TronProposalDeleteContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalDeleteContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract.TronProposalDeleteContract) +} +TronSignTx_TronContract_TronProposalDeleteContract::TronSignTx_TronContract_TronProposalDeleteContract(const TronSignTx_TronContract_TronProposalDeleteContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + proposal_id_ = from.proposal_id_; + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract.TronProposalDeleteContract) +} + +void TronSignTx_TronContract_TronProposalDeleteContract::SharedCtor() { + proposal_id_ = GOOGLE_ULONGLONG(0); +} + +TronSignTx_TronContract_TronProposalDeleteContract::~TronSignTx_TronContract_TronProposalDeleteContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract.TronProposalDeleteContract) + SharedDtor(); +} + +void TronSignTx_TronContract_TronProposalDeleteContract::SharedDtor() { +} + +void TronSignTx_TronContract_TronProposalDeleteContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract_TronProposalDeleteContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract_TronProposalDeleteContract& TronSignTx_TronContract_TronProposalDeleteContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract_TronProposalDeleteContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract_TronProposalDeleteContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract.TronProposalDeleteContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + proposal_id_ = GOOGLE_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract_TronProposalDeleteContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract.TronProposalDeleteContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proposal_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_proposal_id(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proposal_id_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract.TronProposalDeleteContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract.TronProposalDeleteContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract_TronProposalDeleteContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract.TronProposalDeleteContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 proposal_id = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proposal_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract.TronProposalDeleteContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract_TronProposalDeleteContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract.TronProposalDeleteContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 proposal_id = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proposal_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract.TronProposalDeleteContract) + return target; +} + +size_t TronSignTx_TronContract_TronProposalDeleteContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract.TronProposalDeleteContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional uint64 proposal_id = 1; + if (has_proposal_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proposal_id()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract_TronProposalDeleteContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract.TronProposalDeleteContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract_TronProposalDeleteContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract.TronProposalDeleteContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract.TronProposalDeleteContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract_TronProposalDeleteContract::MergeFrom(const TronSignTx_TronContract_TronProposalDeleteContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract.TronProposalDeleteContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_proposal_id()) { + set_proposal_id(from.proposal_id()); + } +} + +void TronSignTx_TronContract_TronProposalDeleteContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract.TronProposalDeleteContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract_TronProposalDeleteContract::CopyFrom(const TronSignTx_TronContract_TronProposalDeleteContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract.TronProposalDeleteContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract_TronProposalDeleteContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract_TronProposalDeleteContract::Swap(TronSignTx_TronContract_TronProposalDeleteContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract_TronProposalDeleteContract::InternalSwap(TronSignTx_TronContract_TronProposalDeleteContract* other) { + using std::swap; + swap(proposal_id_, other->proposal_id_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract_TronProposalDeleteContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx_TronContract::InitAsDefaultInstance() { + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->transfer_contract_ = const_cast< ::TronSignTx_TronContract_TronTransferContract*>( + ::TronSignTx_TronContract_TronTransferContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->transfer_asset_contract_ = const_cast< ::TronSignTx_TronContract_TronTransferAssetContract*>( + ::TronSignTx_TronContract_TronTransferAssetContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->vote_witness_contract_ = const_cast< ::TronSignTx_TronContract_TronVoteWitnessContract*>( + ::TronSignTx_TronContract_TronVoteWitnessContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->witness_create_contract_ = const_cast< ::TronSignTx_TronContract_TronWitnessCreateContract*>( + ::TronSignTx_TronContract_TronWitnessCreateContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->asset_issue_contract_ = const_cast< ::TronSignTx_TronContract_TronAssetIssueContract*>( + ::TronSignTx_TronContract_TronAssetIssueContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->witness_update_contract_ = const_cast< ::TronSignTx_TronContract_TronWitnessUpdateContract*>( + ::TronSignTx_TronContract_TronWitnessUpdateContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->participate_asset_issue_contract_ = const_cast< ::TronSignTx_TronContract_TronParticipateAssetIssueContract*>( + ::TronSignTx_TronContract_TronParticipateAssetIssueContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->account_update_contract_ = const_cast< ::TronSignTx_TronContract_TronAccountUpdateContract*>( + ::TronSignTx_TronContract_TronAccountUpdateContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->freeze_balance_contract_ = const_cast< ::TronSignTx_TronContract_TronFreezeBalanceContract*>( + ::TronSignTx_TronContract_TronFreezeBalanceContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->unfreeze_balance_contract_ = const_cast< ::TronSignTx_TronContract_TronUnfreezeBalanceContract*>( + ::TronSignTx_TronContract_TronUnfreezeBalanceContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->withdraw_balance_contract_ = const_cast< ::TronSignTx_TronContract_TronWithdrawBalanceContract*>( + ::TronSignTx_TronContract_TronWithdrawBalanceContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->unfreeze_asset_contract_ = const_cast< ::TronSignTx_TronContract_TronUnfreezeAssetContract*>( + ::TronSignTx_TronContract_TronUnfreezeAssetContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->update_asset_contract_ = const_cast< ::TronSignTx_TronContract_TronUpdateAssetContract*>( + ::TronSignTx_TronContract_TronUpdateAssetContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->proposal_create_contract_ = const_cast< ::TronSignTx_TronContract_TronProposalCreateContract*>( + ::TronSignTx_TronContract_TronProposalCreateContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->proposal_approve_contract_ = const_cast< ::TronSignTx_TronContract_TronProposalApproveContract*>( + ::TronSignTx_TronContract_TronProposalApproveContract::internal_default_instance()); + ::_TronSignTx_TronContract_default_instance_._instance.get_mutable()->proposal_delete_contract_ = const_cast< ::TronSignTx_TronContract_TronProposalDeleteContract*>( + ::TronSignTx_TronContract_TronProposalDeleteContract::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx_TronContract::kTransferContractFieldNumber; +const int TronSignTx_TronContract::kTransferAssetContractFieldNumber; +const int TronSignTx_TronContract::kVoteWitnessContractFieldNumber; +const int TronSignTx_TronContract::kWitnessCreateContractFieldNumber; +const int TronSignTx_TronContract::kAssetIssueContractFieldNumber; +const int TronSignTx_TronContract::kWitnessUpdateContractFieldNumber; +const int TronSignTx_TronContract::kParticipateAssetIssueContractFieldNumber; +const int TronSignTx_TronContract::kAccountUpdateContractFieldNumber; +const int TronSignTx_TronContract::kFreezeBalanceContractFieldNumber; +const int TronSignTx_TronContract::kUnfreezeBalanceContractFieldNumber; +const int TronSignTx_TronContract::kWithdrawBalanceContractFieldNumber; +const int TronSignTx_TronContract::kUnfreezeAssetContractFieldNumber; +const int TronSignTx_TronContract::kUpdateAssetContractFieldNumber; +const int TronSignTx_TronContract::kProposalCreateContractFieldNumber; +const int TronSignTx_TronContract::kProposalApproveContractFieldNumber; +const int TronSignTx_TronContract::kProposalDeleteContractFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx_TronContract::TronSignTx_TronContract() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx.TronContract) +} +TronSignTx_TronContract::TronSignTx_TronContract(const TronSignTx_TronContract& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_transfer_contract()) { + transfer_contract_ = new ::TronSignTx_TronContract_TronTransferContract(*from.transfer_contract_); + } else { + transfer_contract_ = NULL; + } + if (from.has_transfer_asset_contract()) { + transfer_asset_contract_ = new ::TronSignTx_TronContract_TronTransferAssetContract(*from.transfer_asset_contract_); + } else { + transfer_asset_contract_ = NULL; + } + if (from.has_vote_witness_contract()) { + vote_witness_contract_ = new ::TronSignTx_TronContract_TronVoteWitnessContract(*from.vote_witness_contract_); + } else { + vote_witness_contract_ = NULL; + } + if (from.has_witness_create_contract()) { + witness_create_contract_ = new ::TronSignTx_TronContract_TronWitnessCreateContract(*from.witness_create_contract_); + } else { + witness_create_contract_ = NULL; + } + if (from.has_asset_issue_contract()) { + asset_issue_contract_ = new ::TronSignTx_TronContract_TronAssetIssueContract(*from.asset_issue_contract_); + } else { + asset_issue_contract_ = NULL; + } + if (from.has_witness_update_contract()) { + witness_update_contract_ = new ::TronSignTx_TronContract_TronWitnessUpdateContract(*from.witness_update_contract_); + } else { + witness_update_contract_ = NULL; + } + if (from.has_participate_asset_issue_contract()) { + participate_asset_issue_contract_ = new ::TronSignTx_TronContract_TronParticipateAssetIssueContract(*from.participate_asset_issue_contract_); + } else { + participate_asset_issue_contract_ = NULL; + } + if (from.has_account_update_contract()) { + account_update_contract_ = new ::TronSignTx_TronContract_TronAccountUpdateContract(*from.account_update_contract_); + } else { + account_update_contract_ = NULL; + } + if (from.has_freeze_balance_contract()) { + freeze_balance_contract_ = new ::TronSignTx_TronContract_TronFreezeBalanceContract(*from.freeze_balance_contract_); + } else { + freeze_balance_contract_ = NULL; + } + if (from.has_unfreeze_balance_contract()) { + unfreeze_balance_contract_ = new ::TronSignTx_TronContract_TronUnfreezeBalanceContract(*from.unfreeze_balance_contract_); + } else { + unfreeze_balance_contract_ = NULL; + } + if (from.has_withdraw_balance_contract()) { + withdraw_balance_contract_ = new ::TronSignTx_TronContract_TronWithdrawBalanceContract(*from.withdraw_balance_contract_); + } else { + withdraw_balance_contract_ = NULL; + } + if (from.has_unfreeze_asset_contract()) { + unfreeze_asset_contract_ = new ::TronSignTx_TronContract_TronUnfreezeAssetContract(*from.unfreeze_asset_contract_); + } else { + unfreeze_asset_contract_ = NULL; + } + if (from.has_update_asset_contract()) { + update_asset_contract_ = new ::TronSignTx_TronContract_TronUpdateAssetContract(*from.update_asset_contract_); + } else { + update_asset_contract_ = NULL; + } + if (from.has_proposal_create_contract()) { + proposal_create_contract_ = new ::TronSignTx_TronContract_TronProposalCreateContract(*from.proposal_create_contract_); + } else { + proposal_create_contract_ = NULL; + } + if (from.has_proposal_approve_contract()) { + proposal_approve_contract_ = new ::TronSignTx_TronContract_TronProposalApproveContract(*from.proposal_approve_contract_); + } else { + proposal_approve_contract_ = NULL; + } + if (from.has_proposal_delete_contract()) { + proposal_delete_contract_ = new ::TronSignTx_TronContract_TronProposalDeleteContract(*from.proposal_delete_contract_); + } else { + proposal_delete_contract_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:TronSignTx.TronContract) +} + +void TronSignTx_TronContract::SharedCtor() { + ::memset(&transfer_contract_, 0, static_cast( + reinterpret_cast(&proposal_delete_contract_) - + reinterpret_cast(&transfer_contract_)) + sizeof(proposal_delete_contract_)); +} + +TronSignTx_TronContract::~TronSignTx_TronContract() { + // @@protoc_insertion_point(destructor:TronSignTx.TronContract) + SharedDtor(); +} + +void TronSignTx_TronContract::SharedDtor() { + if (this != internal_default_instance()) delete transfer_contract_; + if (this != internal_default_instance()) delete transfer_asset_contract_; + if (this != internal_default_instance()) delete vote_witness_contract_; + if (this != internal_default_instance()) delete witness_create_contract_; + if (this != internal_default_instance()) delete asset_issue_contract_; + if (this != internal_default_instance()) delete witness_update_contract_; + if (this != internal_default_instance()) delete participate_asset_issue_contract_; + if (this != internal_default_instance()) delete account_update_contract_; + if (this != internal_default_instance()) delete freeze_balance_contract_; + if (this != internal_default_instance()) delete unfreeze_balance_contract_; + if (this != internal_default_instance()) delete withdraw_balance_contract_; + if (this != internal_default_instance()) delete unfreeze_asset_contract_; + if (this != internal_default_instance()) delete update_asset_contract_; + if (this != internal_default_instance()) delete proposal_create_contract_; + if (this != internal_default_instance()) delete proposal_approve_contract_; + if (this != internal_default_instance()) delete proposal_delete_contract_; +} + +void TronSignTx_TronContract::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx_TronContract::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx_TronContract& TronSignTx_TronContract::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx_TronContract.base); + return *internal_default_instance(); +} + + +void TronSignTx_TronContract::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx.TronContract) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(transfer_contract_ != NULL); + transfer_contract_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(transfer_asset_contract_ != NULL); + transfer_asset_contract_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(vote_witness_contract_ != NULL); + vote_witness_contract_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(witness_create_contract_ != NULL); + witness_create_contract_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(asset_issue_contract_ != NULL); + asset_issue_contract_->Clear(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(witness_update_contract_ != NULL); + witness_update_contract_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(participate_asset_issue_contract_ != NULL); + participate_asset_issue_contract_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(account_update_contract_ != NULL); + account_update_contract_->Clear(); + } + } + if (cached_has_bits & 65280u) { + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(freeze_balance_contract_ != NULL); + freeze_balance_contract_->Clear(); + } + if (cached_has_bits & 0x00000200u) { + GOOGLE_DCHECK(unfreeze_balance_contract_ != NULL); + unfreeze_balance_contract_->Clear(); + } + if (cached_has_bits & 0x00000400u) { + GOOGLE_DCHECK(withdraw_balance_contract_ != NULL); + withdraw_balance_contract_->Clear(); + } + if (cached_has_bits & 0x00000800u) { + GOOGLE_DCHECK(unfreeze_asset_contract_ != NULL); + unfreeze_asset_contract_->Clear(); + } + if (cached_has_bits & 0x00001000u) { + GOOGLE_DCHECK(update_asset_contract_ != NULL); + update_asset_contract_->Clear(); + } + if (cached_has_bits & 0x00002000u) { + GOOGLE_DCHECK(proposal_create_contract_ != NULL); + proposal_create_contract_->Clear(); + } + if (cached_has_bits & 0x00004000u) { + GOOGLE_DCHECK(proposal_approve_contract_ != NULL); + proposal_approve_contract_->Clear(); + } + if (cached_has_bits & 0x00008000u) { + GOOGLE_DCHECK(proposal_delete_contract_ != NULL); + proposal_delete_contract_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx_TronContract::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx.TronContract) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .TronSignTx.TronContract.TronTransferContract transfer_contract = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transfer_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronTransferAssetContract transfer_asset_contract = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transfer_asset_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronVoteWitnessContract vote_witness_contract = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_vote_witness_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronWitnessCreateContract witness_create_contract = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_witness_create_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronAssetIssueContract asset_issue_contract = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_asset_issue_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronWitnessUpdateContract witness_update_contract = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_witness_update_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronParticipateAssetIssueContract participate_asset_issue_contract = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_participate_asset_issue_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronAccountUpdateContract account_update_contract = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_account_update_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronFreezeBalanceContract freeze_balance_contract = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_freeze_balance_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronUnfreezeBalanceContract unfreeze_balance_contract = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_unfreeze_balance_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronWithdrawBalanceContract withdraw_balance_contract = 13; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_withdraw_balance_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronUnfreezeAssetContract unfreeze_asset_contract = 14; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_unfreeze_asset_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronUpdateAssetContract update_asset_contract = 15; + case 15: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_update_asset_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronProposalCreateContract proposal_create_contract = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_proposal_create_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronProposalApproveContract proposal_approve_contract = 17; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_proposal_approve_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract.TronProposalDeleteContract proposal_delete_contract = 18; + case 18: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_proposal_delete_contract())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx.TronContract) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx.TronContract) + return false; +#undef DO_ +} + +void TronSignTx_TronContract::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx.TronContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .TronSignTx.TronContract.TronTransferContract transfer_contract = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->_internal_transfer_contract(), output); + } + + // optional .TronSignTx.TronContract.TronTransferAssetContract transfer_asset_contract = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->_internal_transfer_asset_contract(), output); + } + + // optional .TronSignTx.TronContract.TronVoteWitnessContract vote_witness_contract = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_vote_witness_contract(), output); + } + + // optional .TronSignTx.TronContract.TronWitnessCreateContract witness_create_contract = 5; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->_internal_witness_create_contract(), output); + } + + // optional .TronSignTx.TronContract.TronAssetIssueContract asset_issue_contract = 6; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->_internal_asset_issue_contract(), output); + } + + // optional .TronSignTx.TronContract.TronWitnessUpdateContract witness_update_contract = 8; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, this->_internal_witness_update_contract(), output); + } + + // optional .TronSignTx.TronContract.TronParticipateAssetIssueContract participate_asset_issue_contract = 9; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, this->_internal_participate_asset_issue_contract(), output); + } + + // optional .TronSignTx.TronContract.TronAccountUpdateContract account_update_contract = 10; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, this->_internal_account_update_contract(), output); + } + + // optional .TronSignTx.TronContract.TronFreezeBalanceContract freeze_balance_contract = 11; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, this->_internal_freeze_balance_contract(), output); + } + + // optional .TronSignTx.TronContract.TronUnfreezeBalanceContract unfreeze_balance_contract = 12; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 12, this->_internal_unfreeze_balance_contract(), output); + } + + // optional .TronSignTx.TronContract.TronWithdrawBalanceContract withdraw_balance_contract = 13; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 13, this->_internal_withdraw_balance_contract(), output); + } + + // optional .TronSignTx.TronContract.TronUnfreezeAssetContract unfreeze_asset_contract = 14; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 14, this->_internal_unfreeze_asset_contract(), output); + } + + // optional .TronSignTx.TronContract.TronUpdateAssetContract update_asset_contract = 15; + if (cached_has_bits & 0x00001000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 15, this->_internal_update_asset_contract(), output); + } + + // optional .TronSignTx.TronContract.TronProposalCreateContract proposal_create_contract = 16; + if (cached_has_bits & 0x00002000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 16, this->_internal_proposal_create_contract(), output); + } + + // optional .TronSignTx.TronContract.TronProposalApproveContract proposal_approve_contract = 17; + if (cached_has_bits & 0x00004000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 17, this->_internal_proposal_approve_contract(), output); + } + + // optional .TronSignTx.TronContract.TronProposalDeleteContract proposal_delete_contract = 18; + if (cached_has_bits & 0x00008000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 18, this->_internal_proposal_delete_contract(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx.TronContract) +} + +::google::protobuf::uint8* TronSignTx_TronContract::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx.TronContract) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .TronSignTx.TronContract.TronTransferContract transfer_contract = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->_internal_transfer_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronTransferAssetContract transfer_asset_contract = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->_internal_transfer_asset_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronVoteWitnessContract vote_witness_contract = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_vote_witness_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronWitnessCreateContract witness_create_contract = 5; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->_internal_witness_create_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronAssetIssueContract asset_issue_contract = 6; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->_internal_asset_issue_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronWitnessUpdateContract witness_update_contract = 8; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, this->_internal_witness_update_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronParticipateAssetIssueContract participate_asset_issue_contract = 9; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, this->_internal_participate_asset_issue_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronAccountUpdateContract account_update_contract = 10; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, this->_internal_account_update_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronFreezeBalanceContract freeze_balance_contract = 11; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 11, this->_internal_freeze_balance_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronUnfreezeBalanceContract unfreeze_balance_contract = 12; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 12, this->_internal_unfreeze_balance_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronWithdrawBalanceContract withdraw_balance_contract = 13; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 13, this->_internal_withdraw_balance_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronUnfreezeAssetContract unfreeze_asset_contract = 14; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 14, this->_internal_unfreeze_asset_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronUpdateAssetContract update_asset_contract = 15; + if (cached_has_bits & 0x00001000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 15, this->_internal_update_asset_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronProposalCreateContract proposal_create_contract = 16; + if (cached_has_bits & 0x00002000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 16, this->_internal_proposal_create_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronProposalApproveContract proposal_approve_contract = 17; + if (cached_has_bits & 0x00004000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 17, this->_internal_proposal_approve_contract(), deterministic, target); + } + + // optional .TronSignTx.TronContract.TronProposalDeleteContract proposal_delete_contract = 18; + if (cached_has_bits & 0x00008000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 18, this->_internal_proposal_delete_contract(), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx.TronContract) + return target; +} + +size_t TronSignTx_TronContract::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx.TronContract) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional .TronSignTx.TronContract.TronTransferContract transfer_contract = 1; + if (has_transfer_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transfer_contract_); + } + + // optional .TronSignTx.TronContract.TronTransferAssetContract transfer_asset_contract = 2; + if (has_transfer_asset_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *transfer_asset_contract_); + } + + // optional .TronSignTx.TronContract.TronVoteWitnessContract vote_witness_contract = 4; + if (has_vote_witness_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *vote_witness_contract_); + } + + // optional .TronSignTx.TronContract.TronWitnessCreateContract witness_create_contract = 5; + if (has_witness_create_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *witness_create_contract_); + } + + // optional .TronSignTx.TronContract.TronAssetIssueContract asset_issue_contract = 6; + if (has_asset_issue_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *asset_issue_contract_); + } + + // optional .TronSignTx.TronContract.TronWitnessUpdateContract witness_update_contract = 8; + if (has_witness_update_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *witness_update_contract_); + } + + // optional .TronSignTx.TronContract.TronParticipateAssetIssueContract participate_asset_issue_contract = 9; + if (has_participate_asset_issue_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *participate_asset_issue_contract_); + } + + // optional .TronSignTx.TronContract.TronAccountUpdateContract account_update_contract = 10; + if (has_account_update_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *account_update_contract_); + } + + } + if (_has_bits_[8 / 32] & 65280u) { + // optional .TronSignTx.TronContract.TronFreezeBalanceContract freeze_balance_contract = 11; + if (has_freeze_balance_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *freeze_balance_contract_); + } + + // optional .TronSignTx.TronContract.TronUnfreezeBalanceContract unfreeze_balance_contract = 12; + if (has_unfreeze_balance_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *unfreeze_balance_contract_); + } + + // optional .TronSignTx.TronContract.TronWithdrawBalanceContract withdraw_balance_contract = 13; + if (has_withdraw_balance_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *withdraw_balance_contract_); + } + + // optional .TronSignTx.TronContract.TronUnfreezeAssetContract unfreeze_asset_contract = 14; + if (has_unfreeze_asset_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *unfreeze_asset_contract_); + } + + // optional .TronSignTx.TronContract.TronUpdateAssetContract update_asset_contract = 15; + if (has_update_asset_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *update_asset_contract_); + } + + // optional .TronSignTx.TronContract.TronProposalCreateContract proposal_create_contract = 16; + if (has_proposal_create_contract()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *proposal_create_contract_); + } + + // optional .TronSignTx.TronContract.TronProposalApproveContract proposal_approve_contract = 17; + if (has_proposal_approve_contract()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *proposal_approve_contract_); + } + + // optional .TronSignTx.TronContract.TronProposalDeleteContract proposal_delete_contract = 18; + if (has_proposal_delete_contract()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *proposal_delete_contract_); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx_TronContract::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx.TronContract) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx_TronContract* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx.TronContract) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx.TronContract) + MergeFrom(*source); + } +} + +void TronSignTx_TronContract::MergeFrom(const TronSignTx_TronContract& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx.TronContract) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + mutable_transfer_contract()->::TronSignTx_TronContract_TronTransferContract::MergeFrom(from.transfer_contract()); + } + if (cached_has_bits & 0x00000002u) { + mutable_transfer_asset_contract()->::TronSignTx_TronContract_TronTransferAssetContract::MergeFrom(from.transfer_asset_contract()); + } + if (cached_has_bits & 0x00000004u) { + mutable_vote_witness_contract()->::TronSignTx_TronContract_TronVoteWitnessContract::MergeFrom(from.vote_witness_contract()); + } + if (cached_has_bits & 0x00000008u) { + mutable_witness_create_contract()->::TronSignTx_TronContract_TronWitnessCreateContract::MergeFrom(from.witness_create_contract()); + } + if (cached_has_bits & 0x00000010u) { + mutable_asset_issue_contract()->::TronSignTx_TronContract_TronAssetIssueContract::MergeFrom(from.asset_issue_contract()); + } + if (cached_has_bits & 0x00000020u) { + mutable_witness_update_contract()->::TronSignTx_TronContract_TronWitnessUpdateContract::MergeFrom(from.witness_update_contract()); + } + if (cached_has_bits & 0x00000040u) { + mutable_participate_asset_issue_contract()->::TronSignTx_TronContract_TronParticipateAssetIssueContract::MergeFrom(from.participate_asset_issue_contract()); + } + if (cached_has_bits & 0x00000080u) { + mutable_account_update_contract()->::TronSignTx_TronContract_TronAccountUpdateContract::MergeFrom(from.account_update_contract()); + } + } + if (cached_has_bits & 65280u) { + if (cached_has_bits & 0x00000100u) { + mutable_freeze_balance_contract()->::TronSignTx_TronContract_TronFreezeBalanceContract::MergeFrom(from.freeze_balance_contract()); + } + if (cached_has_bits & 0x00000200u) { + mutable_unfreeze_balance_contract()->::TronSignTx_TronContract_TronUnfreezeBalanceContract::MergeFrom(from.unfreeze_balance_contract()); + } + if (cached_has_bits & 0x00000400u) { + mutable_withdraw_balance_contract()->::TronSignTx_TronContract_TronWithdrawBalanceContract::MergeFrom(from.withdraw_balance_contract()); + } + if (cached_has_bits & 0x00000800u) { + mutable_unfreeze_asset_contract()->::TronSignTx_TronContract_TronUnfreezeAssetContract::MergeFrom(from.unfreeze_asset_contract()); + } + if (cached_has_bits & 0x00001000u) { + mutable_update_asset_contract()->::TronSignTx_TronContract_TronUpdateAssetContract::MergeFrom(from.update_asset_contract()); + } + if (cached_has_bits & 0x00002000u) { + mutable_proposal_create_contract()->::TronSignTx_TronContract_TronProposalCreateContract::MergeFrom(from.proposal_create_contract()); + } + if (cached_has_bits & 0x00004000u) { + mutable_proposal_approve_contract()->::TronSignTx_TronContract_TronProposalApproveContract::MergeFrom(from.proposal_approve_contract()); + } + if (cached_has_bits & 0x00008000u) { + mutable_proposal_delete_contract()->::TronSignTx_TronContract_TronProposalDeleteContract::MergeFrom(from.proposal_delete_contract()); + } + } +} + +void TronSignTx_TronContract::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx.TronContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx_TronContract::CopyFrom(const TronSignTx_TronContract& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx.TronContract) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx_TronContract::IsInitialized() const { + return true; +} + +void TronSignTx_TronContract::Swap(TronSignTx_TronContract* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx_TronContract::InternalSwap(TronSignTx_TronContract* other) { + using std::swap; + swap(transfer_contract_, other->transfer_contract_); + swap(transfer_asset_contract_, other->transfer_asset_contract_); + swap(vote_witness_contract_, other->vote_witness_contract_); + swap(witness_create_contract_, other->witness_create_contract_); + swap(asset_issue_contract_, other->asset_issue_contract_); + swap(witness_update_contract_, other->witness_update_contract_); + swap(participate_asset_issue_contract_, other->participate_asset_issue_contract_); + swap(account_update_contract_, other->account_update_contract_); + swap(freeze_balance_contract_, other->freeze_balance_contract_); + swap(unfreeze_balance_contract_, other->unfreeze_balance_contract_); + swap(withdraw_balance_contract_, other->withdraw_balance_contract_); + swap(unfreeze_asset_contract_, other->unfreeze_asset_contract_); + swap(update_asset_contract_, other->update_asset_contract_); + swap(proposal_create_contract_, other->proposal_create_contract_); + swap(proposal_approve_contract_, other->proposal_approve_contract_); + swap(proposal_delete_contract_, other->proposal_delete_contract_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx_TronContract::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignTx::InitAsDefaultInstance() { + ::_TronSignTx_default_instance_._instance.get_mutable()->contract_ = const_cast< ::TronSignTx_TronContract*>( + ::TronSignTx_TronContract::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignTx::kAddressNFieldNumber; +const int TronSignTx::kRefBlockBytesFieldNumber; +const int TronSignTx::kRefBlockHashFieldNumber; +const int TronSignTx::kExpirationFieldNumber; +const int TronSignTx::kDataFieldNumber; +const int TronSignTx::kContractFieldNumber; +const int TronSignTx::kTimestampFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignTx::TronSignTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignTx) +} +TronSignTx::TronSignTx(const TronSignTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + address_n_(from.address_n_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ref_block_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_ref_block_bytes()) { + ref_block_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ref_block_bytes_); + } + ref_block_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_ref_block_hash()) { + ref_block_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ref_block_hash_); + } + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data()) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + if (from.has_contract()) { + contract_ = new ::TronSignTx_TronContract(*from.contract_); + } else { + contract_ = NULL; + } + ::memcpy(&expiration_, &from.expiration_, + static_cast(reinterpret_cast(×tamp_) - + reinterpret_cast(&expiration_)) + sizeof(timestamp_)); + // @@protoc_insertion_point(copy_constructor:TronSignTx) +} + +void TronSignTx::SharedCtor() { + ref_block_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ref_block_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&contract_, 0, static_cast( + reinterpret_cast(×tamp_) - + reinterpret_cast(&contract_)) + sizeof(timestamp_)); +} + +TronSignTx::~TronSignTx() { + // @@protoc_insertion_point(destructor:TronSignTx) + SharedDtor(); +} + +void TronSignTx::SharedDtor() { + ref_block_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ref_block_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete contract_; +} + +void TronSignTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignTx::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignTx& TronSignTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignTx.base); + return *internal_default_instance(); +} + + +void TronSignTx::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + address_n_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + ref_block_bytes_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + ref_block_hash_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000004u) { + data_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(contract_ != NULL); + contract_->Clear(); + } + } + if (cached_has_bits & 48u) { + ::memset(&expiration_, 0, static_cast( + reinterpret_cast(×tamp_) - + reinterpret_cast(&expiration_)) + sizeof(timestamp_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 address_n = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_address_n()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_address_n()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes ref_block_bytes = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_ref_block_bytes())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes ref_block_hash = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_ref_block_hash())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 expiration = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_expiration(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &expiration_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string data = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_data())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->data().data(), static_cast(this->data().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "TronSignTx.data"); + } else { + goto handle_unusual; + } + break; + } + + // optional .TronSignTx.TronContract contract = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_contract())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint64 timestamp = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_timestamp(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, ×tamp_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignTx) + return false; +#undef DO_ +} + +void TronSignTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + for (int i = 0, n = this->address_n_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->address_n(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional bytes ref_block_bytes = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->ref_block_bytes(), output); + } + + // optional bytes ref_block_hash = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->ref_block_hash(), output); + } + + // optional uint64 expiration = 4; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->expiration(), output); + } + + // optional string data = 5; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->data().data(), static_cast(this->data().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.data"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->data(), output); + } + + // optional .TronSignTx.TronContract contract = 6; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->_internal_contract(), output); + } + + // optional uint64 timestamp = 7; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->timestamp(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignTx) +} + +::google::protobuf::uint8* TronSignTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 address_n = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->address_n_, target); + + cached_has_bits = _has_bits_[0]; + // optional bytes ref_block_bytes = 2; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->ref_block_bytes(), target); + } + + // optional bytes ref_block_hash = 3; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->ref_block_hash(), target); + } + + // optional uint64 expiration = 4; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->expiration(), target); + } + + // optional string data = 5; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->data().data(), static_cast(this->data().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "TronSignTx.data"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->data(), target); + } + + // optional .TronSignTx.TronContract contract = 6; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->_internal_contract(), deterministic, target); + } + + // optional uint64 timestamp = 7; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->timestamp(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignTx) + return target; +} + +size_t TronSignTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 address_n = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->address_n_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->address_n_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 63u) { + // optional bytes ref_block_bytes = 2; + if (has_ref_block_bytes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->ref_block_bytes()); + } + + // optional bytes ref_block_hash = 3; + if (has_ref_block_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->ref_block_hash()); + } + + // optional string data = 5; + if (has_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->data()); + } + + // optional .TronSignTx.TronContract contract = 6; + if (has_contract()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *contract_); + } + + // optional uint64 expiration = 4; + if (has_expiration()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->expiration()); + } + + // optional uint64 timestamp = 7; + if (has_timestamp()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->timestamp()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignTx) + GOOGLE_DCHECK_NE(&from, this); + const TronSignTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignTx) + MergeFrom(*source); + } +} + +void TronSignTx::MergeFrom(const TronSignTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + address_n_.MergeFrom(from.address_n_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_ref_block_bytes(); + ref_block_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ref_block_bytes_); + } + if (cached_has_bits & 0x00000002u) { + set_has_ref_block_hash(); + ref_block_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ref_block_hash_); + } + if (cached_has_bits & 0x00000004u) { + set_has_data(); + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + if (cached_has_bits & 0x00000008u) { + mutable_contract()->::TronSignTx_TronContract::MergeFrom(from.contract()); + } + if (cached_has_bits & 0x00000010u) { + expiration_ = from.expiration_; + } + if (cached_has_bits & 0x00000020u) { + timestamp_ = from.timestamp_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TronSignTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignTx::CopyFrom(const TronSignTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignTx::IsInitialized() const { + return true; +} + +void TronSignTx::Swap(TronSignTx* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignTx::InternalSwap(TronSignTx* other) { + using std::swap; + address_n_.InternalSwap(&other->address_n_); + ref_block_bytes_.Swap(&other->ref_block_bytes_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + ref_block_hash_.Swap(&other->ref_block_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(contract_, other->contract_); + swap(expiration_, other->expiration_); + swap(timestamp_, other->timestamp_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignTx::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TronSignedTx::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TronSignedTx::kSignatureFieldNumber; +const int TronSignedTx::kSerializedTxFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TronSignedTx::TronSignedTx() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_messages_2dtron_2eproto::scc_info_TronSignedTx.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:TronSignedTx) +} +TronSignedTx::TronSignedTx(const TronSignedTx& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_signature()) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + serialized_tx_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_serialized_tx()) { + serialized_tx_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialized_tx_); + } + // @@protoc_insertion_point(copy_constructor:TronSignedTx) +} + +void TronSignedTx::SharedCtor() { + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + serialized_tx_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TronSignedTx::~TronSignedTx() { + // @@protoc_insertion_point(destructor:TronSignedTx) + SharedDtor(); +} + +void TronSignedTx::SharedDtor() { + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + serialized_tx_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TronSignedTx::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TronSignedTx::descriptor() { + ::protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TronSignedTx& TronSignedTx::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_messages_2dtron_2eproto::scc_info_TronSignedTx.base); + return *internal_default_instance(); +} + + +void TronSignedTx::Clear() { +// @@protoc_insertion_point(message_clear_start:TronSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + signature_.ClearNonDefaultToEmptyNoArena(); + } + if (cached_has_bits & 0x00000002u) { + serialized_tx_.ClearNonDefaultToEmptyNoArena(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TronSignedTx::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:TronSignedTx) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes signature = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes serialized_tx = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_serialized_tx())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:TronSignedTx) + return true; +failure: + // @@protoc_insertion_point(parse_failure:TronSignedTx) + return false; +#undef DO_ +} + +void TronSignedTx::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:TronSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->signature(), output); + } + + // optional bytes serialized_tx = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->serialized_tx(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:TronSignedTx) +} + +::google::protobuf::uint8* TronSignedTx::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:TronSignedTx) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes signature = 1; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->signature(), target); + } + + // optional bytes serialized_tx = 2; + if (cached_has_bits & 0x00000002u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->serialized_tx(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TronSignedTx) + return target; +} + +size_t TronSignedTx::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TronSignedTx) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bytes signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); + } + + // optional bytes serialized_tx = 2; + if (has_serialized_tx()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->serialized_tx()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TronSignedTx::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:TronSignedTx) + GOOGLE_DCHECK_NE(&from, this); + const TronSignedTx* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:TronSignedTx) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:TronSignedTx) + MergeFrom(*source); + } +} + +void TronSignedTx::MergeFrom(const TronSignedTx& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TronSignedTx) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + set_has_signature(); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); + } + if (cached_has_bits & 0x00000002u) { + set_has_serialized_tx(); + serialized_tx_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialized_tx_); + } + } +} + +void TronSignedTx::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:TronSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TronSignedTx::CopyFrom(const TronSignedTx& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TronSignedTx) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TronSignedTx::IsInitialized() const { + return true; +} + +void TronSignedTx::Swap(TronSignedTx* other) { + if (other == this) return; + InternalSwap(other); +} +void TronSignedTx::InternalSwap(TronSignedTx* other) { + using std::swap; + signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + serialized_tx_.Swap(&other->serialized_tx_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TronSignedTx::GetMetadata() const { + protobuf_messages_2dtron_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_messages_2dtron_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronGetAddress* Arena::CreateMaybeMessage< ::TronGetAddress >(Arena* arena) { + return Arena::CreateInternal< ::TronGetAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronAddress* Arena::CreateMaybeMessage< ::TronAddress >(Arena* arena) { + return Arena::CreateInternal< ::TronAddress >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronAccountUpdateContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronAccountUpdateContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronAccountUpdateContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronTransferContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronTransferContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronTransferContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronTransferAssetContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronTransferAssetContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronTransferAssetContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronVoteWitnessContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronVoteWitnessContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronVoteWitnessContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronWitnessCreateContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronWitnessCreateContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronWitnessCreateContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronWitnessUpdateContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronWitnessUpdateContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronWitnessUpdateContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronAssetIssueContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronAssetIssueContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronAssetIssueContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronParticipateAssetIssueContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronParticipateAssetIssueContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronParticipateAssetIssueContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronFreezeBalanceContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronFreezeBalanceContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronFreezeBalanceContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronUnfreezeBalanceContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronUnfreezeBalanceContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronUnfreezeBalanceContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronUnfreezeAssetContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronUnfreezeAssetContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronUnfreezeAssetContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronWithdrawBalanceContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronWithdrawBalanceContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronWithdrawBalanceContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronUpdateAssetContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronUpdateAssetContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronUpdateAssetContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronProposalCreateContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronProposalCreateContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronProposalCreateContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronProposalApproveContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronProposalApproveContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronProposalApproveContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract_TronProposalDeleteContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract_TronProposalDeleteContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract_TronProposalDeleteContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx_TronContract* Arena::CreateMaybeMessage< ::TronSignTx_TronContract >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx_TronContract >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignTx* Arena::CreateMaybeMessage< ::TronSignTx >(Arena* arena) { + return Arena::CreateInternal< ::TronSignTx >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::TronSignedTx* Arena::CreateMaybeMessage< ::TronSignedTx >(Arena* arena) { + return Arena::CreateInternal< ::TronSignedTx >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages-tron.pb.h b/src/Core/hardware/trezor/protob/messages-tron.pb.h new file mode 100644 index 00000000..3afcb626 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages-tron.pb.h @@ -0,0 +1,6762 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages-tron.proto + +#ifndef PROTOBUF_INCLUDED_messages_2dtron_2eproto +#define PROTOBUF_INCLUDED_messages_2dtron_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2dtron_2eproto + +namespace protobuf_messages_2dtron_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[24]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2dtron_2eproto +class TronAddress; +class TronAddressDefaultTypeInternal; +extern TronAddressDefaultTypeInternal _TronAddress_default_instance_; +class TronGetAddress; +class TronGetAddressDefaultTypeInternal; +extern TronGetAddressDefaultTypeInternal _TronGetAddress_default_instance_; +class TronSignTx; +class TronSignTxDefaultTypeInternal; +extern TronSignTxDefaultTypeInternal _TronSignTx_default_instance_; +class TronSignTx_TronContract; +class TronSignTx_TronContractDefaultTypeInternal; +extern TronSignTx_TronContractDefaultTypeInternal _TronSignTx_TronContract_default_instance_; +class TronSignTx_TronContract_TronAccountUpdateContract; +class TronSignTx_TronContract_TronAccountUpdateContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronAccountUpdateContractDefaultTypeInternal _TronSignTx_TronContract_TronAccountUpdateContract_default_instance_; +class TronSignTx_TronContract_TronAssetIssueContract; +class TronSignTx_TronContract_TronAssetIssueContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronAssetIssueContractDefaultTypeInternal _TronSignTx_TronContract_TronAssetIssueContract_default_instance_; +class TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply; +class TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupplyDefaultTypeInternal; +extern TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupplyDefaultTypeInternal _TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply_default_instance_; +class TronSignTx_TronContract_TronFreezeBalanceContract; +class TronSignTx_TronContract_TronFreezeBalanceContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronFreezeBalanceContractDefaultTypeInternal _TronSignTx_TronContract_TronFreezeBalanceContract_default_instance_; +class TronSignTx_TronContract_TronParticipateAssetIssueContract; +class TronSignTx_TronContract_TronParticipateAssetIssueContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronParticipateAssetIssueContractDefaultTypeInternal _TronSignTx_TronContract_TronParticipateAssetIssueContract_default_instance_; +class TronSignTx_TronContract_TronProposalApproveContract; +class TronSignTx_TronContract_TronProposalApproveContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronProposalApproveContractDefaultTypeInternal _TronSignTx_TronContract_TronProposalApproveContract_default_instance_; +class TronSignTx_TronContract_TronProposalCreateContract; +class TronSignTx_TronContract_TronProposalCreateContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronProposalCreateContractDefaultTypeInternal _TronSignTx_TronContract_TronProposalCreateContract_default_instance_; +class TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters; +class TronSignTx_TronContract_TronProposalCreateContract_TronProposalParametersDefaultTypeInternal; +extern TronSignTx_TronContract_TronProposalCreateContract_TronProposalParametersDefaultTypeInternal _TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters_default_instance_; +class TronSignTx_TronContract_TronProposalDeleteContract; +class TronSignTx_TronContract_TronProposalDeleteContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronProposalDeleteContractDefaultTypeInternal _TronSignTx_TronContract_TronProposalDeleteContract_default_instance_; +class TronSignTx_TronContract_TronTransferAssetContract; +class TronSignTx_TronContract_TronTransferAssetContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronTransferAssetContractDefaultTypeInternal _TronSignTx_TronContract_TronTransferAssetContract_default_instance_; +class TronSignTx_TronContract_TronTransferContract; +class TronSignTx_TronContract_TronTransferContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronTransferContractDefaultTypeInternal _TronSignTx_TronContract_TronTransferContract_default_instance_; +class TronSignTx_TronContract_TronUnfreezeAssetContract; +class TronSignTx_TronContract_TronUnfreezeAssetContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronUnfreezeAssetContractDefaultTypeInternal _TronSignTx_TronContract_TronUnfreezeAssetContract_default_instance_; +class TronSignTx_TronContract_TronUnfreezeBalanceContract; +class TronSignTx_TronContract_TronUnfreezeBalanceContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronUnfreezeBalanceContractDefaultTypeInternal _TronSignTx_TronContract_TronUnfreezeBalanceContract_default_instance_; +class TronSignTx_TronContract_TronUpdateAssetContract; +class TronSignTx_TronContract_TronUpdateAssetContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronUpdateAssetContractDefaultTypeInternal _TronSignTx_TronContract_TronUpdateAssetContract_default_instance_; +class TronSignTx_TronContract_TronVoteWitnessContract; +class TronSignTx_TronContract_TronVoteWitnessContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronVoteWitnessContractDefaultTypeInternal _TronSignTx_TronContract_TronVoteWitnessContract_default_instance_; +class TronSignTx_TronContract_TronVoteWitnessContract_TronVote; +class TronSignTx_TronContract_TronVoteWitnessContract_TronVoteDefaultTypeInternal; +extern TronSignTx_TronContract_TronVoteWitnessContract_TronVoteDefaultTypeInternal _TronSignTx_TronContract_TronVoteWitnessContract_TronVote_default_instance_; +class TronSignTx_TronContract_TronWithdrawBalanceContract; +class TronSignTx_TronContract_TronWithdrawBalanceContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronWithdrawBalanceContractDefaultTypeInternal _TronSignTx_TronContract_TronWithdrawBalanceContract_default_instance_; +class TronSignTx_TronContract_TronWitnessCreateContract; +class TronSignTx_TronContract_TronWitnessCreateContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronWitnessCreateContractDefaultTypeInternal _TronSignTx_TronContract_TronWitnessCreateContract_default_instance_; +class TronSignTx_TronContract_TronWitnessUpdateContract; +class TronSignTx_TronContract_TronWitnessUpdateContractDefaultTypeInternal; +extern TronSignTx_TronContract_TronWitnessUpdateContractDefaultTypeInternal _TronSignTx_TronContract_TronWitnessUpdateContract_default_instance_; +class TronSignedTx; +class TronSignedTxDefaultTypeInternal; +extern TronSignedTxDefaultTypeInternal _TronSignedTx_default_instance_; +namespace google { +namespace protobuf { +template<> ::TronAddress* Arena::CreateMaybeMessage<::TronAddress>(Arena*); +template<> ::TronGetAddress* Arena::CreateMaybeMessage<::TronGetAddress>(Arena*); +template<> ::TronSignTx* Arena::CreateMaybeMessage<::TronSignTx>(Arena*); +template<> ::TronSignTx_TronContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract>(Arena*); +template<> ::TronSignTx_TronContract_TronAccountUpdateContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronAccountUpdateContract>(Arena*); +template<> ::TronSignTx_TronContract_TronAssetIssueContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronAssetIssueContract>(Arena*); +template<> ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply>(Arena*); +template<> ::TronSignTx_TronContract_TronFreezeBalanceContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronFreezeBalanceContract>(Arena*); +template<> ::TronSignTx_TronContract_TronParticipateAssetIssueContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronParticipateAssetIssueContract>(Arena*); +template<> ::TronSignTx_TronContract_TronProposalApproveContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronProposalApproveContract>(Arena*); +template<> ::TronSignTx_TronContract_TronProposalCreateContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronProposalCreateContract>(Arena*); +template<> ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters>(Arena*); +template<> ::TronSignTx_TronContract_TronProposalDeleteContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronProposalDeleteContract>(Arena*); +template<> ::TronSignTx_TronContract_TronTransferAssetContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronTransferAssetContract>(Arena*); +template<> ::TronSignTx_TronContract_TronTransferContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronTransferContract>(Arena*); +template<> ::TronSignTx_TronContract_TronUnfreezeAssetContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronUnfreezeAssetContract>(Arena*); +template<> ::TronSignTx_TronContract_TronUnfreezeBalanceContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronUnfreezeBalanceContract>(Arena*); +template<> ::TronSignTx_TronContract_TronUpdateAssetContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronUpdateAssetContract>(Arena*); +template<> ::TronSignTx_TronContract_TronVoteWitnessContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronVoteWitnessContract>(Arena*); +template<> ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronVoteWitnessContract_TronVote>(Arena*); +template<> ::TronSignTx_TronContract_TronWithdrawBalanceContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronWithdrawBalanceContract>(Arena*); +template<> ::TronSignTx_TronContract_TronWitnessCreateContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronWitnessCreateContract>(Arena*); +template<> ::TronSignTx_TronContract_TronWitnessUpdateContract* Arena::CreateMaybeMessage<::TronSignTx_TronContract_TronWitnessUpdateContract>(Arena*); +template<> ::TronSignedTx* Arena::CreateMaybeMessage<::TronSignedTx>(Arena*); +} // namespace protobuf +} // namespace google + +// =================================================================== + +class TronGetAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronGetAddress) */ { + public: + TronGetAddress(); + virtual ~TronGetAddress(); + + TronGetAddress(const TronGetAddress& from); + + inline TronGetAddress& operator=(const TronGetAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronGetAddress(TronGetAddress&& from) noexcept + : TronGetAddress() { + *this = ::std::move(from); + } + + inline TronGetAddress& operator=(TronGetAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronGetAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronGetAddress* internal_default_instance() { + return reinterpret_cast( + &_TronGetAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(TronGetAddress* other); + friend void swap(TronGetAddress& a, TronGetAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronGetAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + TronGetAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronGetAddress& from); + void MergeFrom(const TronGetAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronGetAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bool show_display = 2; + bool has_show_display() const; + void clear_show_display(); + static const int kShowDisplayFieldNumber = 2; + bool show_display() const; + void set_show_display(bool value); + + // @@protoc_insertion_point(class_scope:TronGetAddress) + private: + void set_has_show_display(); + void clear_has_show_display(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + bool show_display_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronAddress : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronAddress) */ { + public: + TronAddress(); + virtual ~TronAddress(); + + TronAddress(const TronAddress& from); + + inline TronAddress& operator=(const TronAddress& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronAddress(TronAddress&& from) noexcept + : TronAddress() { + *this = ::std::move(from); + } + + inline TronAddress& operator=(TronAddress&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronAddress& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronAddress* internal_default_instance() { + return reinterpret_cast( + &_TronAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(TronAddress* other); + friend void swap(TronAddress& a, TronAddress& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronAddress* New() const final { + return CreateMaybeMessage(NULL); + } + + TronAddress* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronAddress& from); + void MergeFrom(const TronAddress& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronAddress* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string address = 1; + bool has_address() const; + void clear_address(); + static const int kAddressFieldNumber = 1; + const ::std::string& address() const; + void set_address(const ::std::string& value); + #if LANG_CXX11 + void set_address(::std::string&& value); + #endif + void set_address(const char* value); + void set_address(const char* value, size_t size); + ::std::string* mutable_address(); + ::std::string* release_address(); + void set_allocated_address(::std::string* address); + + // @@protoc_insertion_point(class_scope:TronAddress) + private: + void set_has_address(); + void clear_has_address(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr address_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronAccountUpdateContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronAccountUpdateContract) */ { + public: + TronSignTx_TronContract_TronAccountUpdateContract(); + virtual ~TronSignTx_TronContract_TronAccountUpdateContract(); + + TronSignTx_TronContract_TronAccountUpdateContract(const TronSignTx_TronContract_TronAccountUpdateContract& from); + + inline TronSignTx_TronContract_TronAccountUpdateContract& operator=(const TronSignTx_TronContract_TronAccountUpdateContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronAccountUpdateContract(TronSignTx_TronContract_TronAccountUpdateContract&& from) noexcept + : TronSignTx_TronContract_TronAccountUpdateContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronAccountUpdateContract& operator=(TronSignTx_TronContract_TronAccountUpdateContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronAccountUpdateContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronAccountUpdateContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronAccountUpdateContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(TronSignTx_TronContract_TronAccountUpdateContract* other); + friend void swap(TronSignTx_TronContract_TronAccountUpdateContract& a, TronSignTx_TronContract_TronAccountUpdateContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronAccountUpdateContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronAccountUpdateContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronAccountUpdateContract& from); + void MergeFrom(const TronSignTx_TronContract_TronAccountUpdateContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronAccountUpdateContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string account_name = 1; + bool has_account_name() const; + void clear_account_name(); + static const int kAccountNameFieldNumber = 1; + const ::std::string& account_name() const; + void set_account_name(const ::std::string& value); + #if LANG_CXX11 + void set_account_name(::std::string&& value); + #endif + void set_account_name(const char* value); + void set_account_name(const char* value, size_t size); + ::std::string* mutable_account_name(); + ::std::string* release_account_name(); + void set_allocated_account_name(::std::string* account_name); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronAccountUpdateContract) + private: + void set_has_account_name(); + void clear_has_account_name(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr account_name_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronTransferContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronTransferContract) */ { + public: + TronSignTx_TronContract_TronTransferContract(); + virtual ~TronSignTx_TronContract_TronTransferContract(); + + TronSignTx_TronContract_TronTransferContract(const TronSignTx_TronContract_TronTransferContract& from); + + inline TronSignTx_TronContract_TronTransferContract& operator=(const TronSignTx_TronContract_TronTransferContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronTransferContract(TronSignTx_TronContract_TronTransferContract&& from) noexcept + : TronSignTx_TronContract_TronTransferContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronTransferContract& operator=(TronSignTx_TronContract_TronTransferContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronTransferContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronTransferContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronTransferContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(TronSignTx_TronContract_TronTransferContract* other); + friend void swap(TronSignTx_TronContract_TronTransferContract& a, TronSignTx_TronContract_TronTransferContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronTransferContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronTransferContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronTransferContract& from); + void MergeFrom(const TronSignTx_TronContract_TronTransferContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronTransferContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes to_address = 1; + bool has_to_address() const; + void clear_to_address(); + static const int kToAddressFieldNumber = 1; + const ::std::string& to_address() const; + void set_to_address(const ::std::string& value); + #if LANG_CXX11 + void set_to_address(::std::string&& value); + #endif + void set_to_address(const char* value); + void set_to_address(const void* value, size_t size); + ::std::string* mutable_to_address(); + ::std::string* release_to_address(); + void set_allocated_to_address(::std::string* to_address); + + // optional uint64 amount = 2; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 2; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronTransferContract) + private: + void set_has_to_address(); + void clear_has_to_address(); + void set_has_amount(); + void clear_has_amount(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr to_address_; + ::google::protobuf::uint64 amount_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronTransferAssetContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronTransferAssetContract) */ { + public: + TronSignTx_TronContract_TronTransferAssetContract(); + virtual ~TronSignTx_TronContract_TronTransferAssetContract(); + + TronSignTx_TronContract_TronTransferAssetContract(const TronSignTx_TronContract_TronTransferAssetContract& from); + + inline TronSignTx_TronContract_TronTransferAssetContract& operator=(const TronSignTx_TronContract_TronTransferAssetContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronTransferAssetContract(TronSignTx_TronContract_TronTransferAssetContract&& from) noexcept + : TronSignTx_TronContract_TronTransferAssetContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronTransferAssetContract& operator=(TronSignTx_TronContract_TronTransferAssetContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronTransferAssetContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronTransferAssetContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronTransferAssetContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(TronSignTx_TronContract_TronTransferAssetContract* other); + friend void swap(TronSignTx_TronContract_TronTransferAssetContract& a, TronSignTx_TronContract_TronTransferAssetContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronTransferAssetContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronTransferAssetContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronTransferAssetContract& from); + void MergeFrom(const TronSignTx_TronContract_TronTransferAssetContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronTransferAssetContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string asset_name = 1; + bool has_asset_name() const; + void clear_asset_name(); + static const int kAssetNameFieldNumber = 1; + const ::std::string& asset_name() const; + void set_asset_name(const ::std::string& value); + #if LANG_CXX11 + void set_asset_name(::std::string&& value); + #endif + void set_asset_name(const char* value); + void set_asset_name(const char* value, size_t size); + ::std::string* mutable_asset_name(); + ::std::string* release_asset_name(); + void set_allocated_asset_name(::std::string* asset_name); + + // optional bytes to_address = 2; + bool has_to_address() const; + void clear_to_address(); + static const int kToAddressFieldNumber = 2; + const ::std::string& to_address() const; + void set_to_address(const ::std::string& value); + #if LANG_CXX11 + void set_to_address(::std::string&& value); + #endif + void set_to_address(const char* value); + void set_to_address(const void* value, size_t size); + ::std::string* mutable_to_address(); + ::std::string* release_to_address(); + void set_allocated_to_address(::std::string* to_address); + + // optional uint64 amount = 3; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 3; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronTransferAssetContract) + private: + void set_has_asset_name(); + void clear_has_asset_name(); + void set_has_to_address(); + void clear_has_to_address(); + void set_has_amount(); + void clear_has_amount(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr asset_name_; + ::google::protobuf::internal::ArenaStringPtr to_address_; + ::google::protobuf::uint64 amount_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronVoteWitnessContract_TronVote : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) */ { + public: + TronSignTx_TronContract_TronVoteWitnessContract_TronVote(); + virtual ~TronSignTx_TronContract_TronVoteWitnessContract_TronVote(); + + TronSignTx_TronContract_TronVoteWitnessContract_TronVote(const TronSignTx_TronContract_TronVoteWitnessContract_TronVote& from); + + inline TronSignTx_TronContract_TronVoteWitnessContract_TronVote& operator=(const TronSignTx_TronContract_TronVoteWitnessContract_TronVote& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronVoteWitnessContract_TronVote(TronSignTx_TronContract_TronVoteWitnessContract_TronVote&& from) noexcept + : TronSignTx_TronContract_TronVoteWitnessContract_TronVote() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronVoteWitnessContract_TronVote& operator=(TronSignTx_TronContract_TronVoteWitnessContract_TronVote&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronVoteWitnessContract_TronVote& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronVoteWitnessContract_TronVote* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronVoteWitnessContract_TronVote_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(TronSignTx_TronContract_TronVoteWitnessContract_TronVote* other); + friend void swap(TronSignTx_TronContract_TronVoteWitnessContract_TronVote& a, TronSignTx_TronContract_TronVoteWitnessContract_TronVote& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronVoteWitnessContract_TronVote* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronVoteWitnessContract_TronVote* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronVoteWitnessContract_TronVote& from); + void MergeFrom(const TronSignTx_TronContract_TronVoteWitnessContract_TronVote& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronVoteWitnessContract_TronVote* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes vote_address = 1; + bool has_vote_address() const; + void clear_vote_address(); + static const int kVoteAddressFieldNumber = 1; + const ::std::string& vote_address() const; + void set_vote_address(const ::std::string& value); + #if LANG_CXX11 + void set_vote_address(::std::string&& value); + #endif + void set_vote_address(const char* value); + void set_vote_address(const void* value, size_t size); + ::std::string* mutable_vote_address(); + ::std::string* release_vote_address(); + void set_allocated_vote_address(::std::string* vote_address); + + // optional uint64 vote_count = 2; + bool has_vote_count() const; + void clear_vote_count(); + static const int kVoteCountFieldNumber = 2; + ::google::protobuf::uint64 vote_count() const; + void set_vote_count(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronVoteWitnessContract.TronVote) + private: + void set_has_vote_address(); + void clear_has_vote_address(); + void set_has_vote_count(); + void clear_has_vote_count(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr vote_address_; + ::google::protobuf::uint64 vote_count_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronVoteWitnessContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronVoteWitnessContract) */ { + public: + TronSignTx_TronContract_TronVoteWitnessContract(); + virtual ~TronSignTx_TronContract_TronVoteWitnessContract(); + + TronSignTx_TronContract_TronVoteWitnessContract(const TronSignTx_TronContract_TronVoteWitnessContract& from); + + inline TronSignTx_TronContract_TronVoteWitnessContract& operator=(const TronSignTx_TronContract_TronVoteWitnessContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronVoteWitnessContract(TronSignTx_TronContract_TronVoteWitnessContract&& from) noexcept + : TronSignTx_TronContract_TronVoteWitnessContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronVoteWitnessContract& operator=(TronSignTx_TronContract_TronVoteWitnessContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronVoteWitnessContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronVoteWitnessContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronVoteWitnessContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(TronSignTx_TronContract_TronVoteWitnessContract* other); + friend void swap(TronSignTx_TronContract_TronVoteWitnessContract& a, TronSignTx_TronContract_TronVoteWitnessContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronVoteWitnessContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronVoteWitnessContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronVoteWitnessContract& from); + void MergeFrom(const TronSignTx_TronContract_TronVoteWitnessContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronVoteWitnessContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TronSignTx_TronContract_TronVoteWitnessContract_TronVote TronVote; + + // accessors ------------------------------------------------------- + + // repeated .TronSignTx.TronContract.TronVoteWitnessContract.TronVote votes = 1; + int votes_size() const; + void clear_votes(); + static const int kVotesFieldNumber = 1; + ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote* mutable_votes(int index); + ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote >* + mutable_votes(); + const ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote& votes(int index) const; + ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote* add_votes(); + const ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote >& + votes() const; + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronVoteWitnessContract) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote > votes_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronWitnessCreateContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronWitnessCreateContract) */ { + public: + TronSignTx_TronContract_TronWitnessCreateContract(); + virtual ~TronSignTx_TronContract_TronWitnessCreateContract(); + + TronSignTx_TronContract_TronWitnessCreateContract(const TronSignTx_TronContract_TronWitnessCreateContract& from); + + inline TronSignTx_TronContract_TronWitnessCreateContract& operator=(const TronSignTx_TronContract_TronWitnessCreateContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronWitnessCreateContract(TronSignTx_TronContract_TronWitnessCreateContract&& from) noexcept + : TronSignTx_TronContract_TronWitnessCreateContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronWitnessCreateContract& operator=(TronSignTx_TronContract_TronWitnessCreateContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronWitnessCreateContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronWitnessCreateContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronWitnessCreateContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(TronSignTx_TronContract_TronWitnessCreateContract* other); + friend void swap(TronSignTx_TronContract_TronWitnessCreateContract& a, TronSignTx_TronContract_TronWitnessCreateContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronWitnessCreateContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronWitnessCreateContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronWitnessCreateContract& from); + void MergeFrom(const TronSignTx_TronContract_TronWitnessCreateContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronWitnessCreateContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string url = 1; + bool has_url() const; + void clear_url(); + static const int kUrlFieldNumber = 1; + const ::std::string& url() const; + void set_url(const ::std::string& value); + #if LANG_CXX11 + void set_url(::std::string&& value); + #endif + void set_url(const char* value); + void set_url(const char* value, size_t size); + ::std::string* mutable_url(); + ::std::string* release_url(); + void set_allocated_url(::std::string* url); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronWitnessCreateContract) + private: + void set_has_url(); + void clear_has_url(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr url_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronWitnessUpdateContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronWitnessUpdateContract) */ { + public: + TronSignTx_TronContract_TronWitnessUpdateContract(); + virtual ~TronSignTx_TronContract_TronWitnessUpdateContract(); + + TronSignTx_TronContract_TronWitnessUpdateContract(const TronSignTx_TronContract_TronWitnessUpdateContract& from); + + inline TronSignTx_TronContract_TronWitnessUpdateContract& operator=(const TronSignTx_TronContract_TronWitnessUpdateContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronWitnessUpdateContract(TronSignTx_TronContract_TronWitnessUpdateContract&& from) noexcept + : TronSignTx_TronContract_TronWitnessUpdateContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronWitnessUpdateContract& operator=(TronSignTx_TronContract_TronWitnessUpdateContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronWitnessUpdateContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronWitnessUpdateContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronWitnessUpdateContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(TronSignTx_TronContract_TronWitnessUpdateContract* other); + friend void swap(TronSignTx_TronContract_TronWitnessUpdateContract& a, TronSignTx_TronContract_TronWitnessUpdateContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronWitnessUpdateContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronWitnessUpdateContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronWitnessUpdateContract& from); + void MergeFrom(const TronSignTx_TronContract_TronWitnessUpdateContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronWitnessUpdateContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string update_url = 2; + bool has_update_url() const; + void clear_update_url(); + static const int kUpdateUrlFieldNumber = 2; + const ::std::string& update_url() const; + void set_update_url(const ::std::string& value); + #if LANG_CXX11 + void set_update_url(::std::string&& value); + #endif + void set_update_url(const char* value); + void set_update_url(const char* value, size_t size); + ::std::string* mutable_update_url(); + ::std::string* release_update_url(); + void set_allocated_update_url(::std::string* update_url); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronWitnessUpdateContract) + private: + void set_has_update_url(); + void clear_has_update_url(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr update_url_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) */ { + public: + TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply(); + virtual ~TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply(); + + TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply(const TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& from); + + inline TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& operator=(const TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply(TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply&& from) noexcept + : TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& operator=(TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* other); + friend void swap(TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& a, TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& from); + void MergeFrom(const TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 frozen_amount = 1; + bool has_frozen_amount() const; + void clear_frozen_amount(); + static const int kFrozenAmountFieldNumber = 1; + ::google::protobuf::uint64 frozen_amount() const; + void set_frozen_amount(::google::protobuf::uint64 value); + + // optional uint64 frozen_days = 2; + bool has_frozen_days() const; + void clear_frozen_days(); + static const int kFrozenDaysFieldNumber = 2; + ::google::protobuf::uint64 frozen_days() const; + void set_frozen_days(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply) + private: + void set_has_frozen_amount(); + void clear_has_frozen_amount(); + void set_has_frozen_days(); + void clear_has_frozen_days(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 frozen_amount_; + ::google::protobuf::uint64 frozen_days_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronAssetIssueContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronAssetIssueContract) */ { + public: + TronSignTx_TronContract_TronAssetIssueContract(); + virtual ~TronSignTx_TronContract_TronAssetIssueContract(); + + TronSignTx_TronContract_TronAssetIssueContract(const TronSignTx_TronContract_TronAssetIssueContract& from); + + inline TronSignTx_TronContract_TronAssetIssueContract& operator=(const TronSignTx_TronContract_TronAssetIssueContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronAssetIssueContract(TronSignTx_TronContract_TronAssetIssueContract&& from) noexcept + : TronSignTx_TronContract_TronAssetIssueContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronAssetIssueContract& operator=(TronSignTx_TronContract_TronAssetIssueContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronAssetIssueContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronAssetIssueContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronAssetIssueContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(TronSignTx_TronContract_TronAssetIssueContract* other); + friend void swap(TronSignTx_TronContract_TronAssetIssueContract& a, TronSignTx_TronContract_TronAssetIssueContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronAssetIssueContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronAssetIssueContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronAssetIssueContract& from); + void MergeFrom(const TronSignTx_TronContract_TronAssetIssueContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronAssetIssueContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply TronFrozenSupply; + + // accessors ------------------------------------------------------- + + // repeated .TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply frozen_supply = 5; + int frozen_supply_size() const; + void clear_frozen_supply(); + static const int kFrozenSupplyFieldNumber = 5; + ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* mutable_frozen_supply(int index); + ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply >* + mutable_frozen_supply(); + const ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& frozen_supply(int index) const; + ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* add_frozen_supply(); + const ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply >& + frozen_supply() const; + + // optional string name = 2; + bool has_name() const; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // optional string abbr = 3; + bool has_abbr() const; + void clear_abbr(); + static const int kAbbrFieldNumber = 3; + const ::std::string& abbr() const; + void set_abbr(const ::std::string& value); + #if LANG_CXX11 + void set_abbr(::std::string&& value); + #endif + void set_abbr(const char* value); + void set_abbr(const char* value, size_t size); + ::std::string* mutable_abbr(); + ::std::string* release_abbr(); + void set_allocated_abbr(::std::string* abbr); + + // optional string description = 10; + bool has_description() const; + void clear_description(); + static const int kDescriptionFieldNumber = 10; + const ::std::string& description() const; + void set_description(const ::std::string& value); + #if LANG_CXX11 + void set_description(::std::string&& value); + #endif + void set_description(const char* value); + void set_description(const char* value, size_t size); + ::std::string* mutable_description(); + ::std::string* release_description(); + void set_allocated_description(::std::string* description); + + // optional string url = 11; + bool has_url() const; + void clear_url(); + static const int kUrlFieldNumber = 11; + const ::std::string& url() const; + void set_url(const ::std::string& value); + #if LANG_CXX11 + void set_url(::std::string&& value); + #endif + void set_url(const char* value); + void set_url(const char* value, size_t size); + ::std::string* mutable_url(); + ::std::string* release_url(); + void set_allocated_url(::std::string* url); + + // optional uint64 total_supply = 4; + bool has_total_supply() const; + void clear_total_supply(); + static const int kTotalSupplyFieldNumber = 4; + ::google::protobuf::uint64 total_supply() const; + void set_total_supply(::google::protobuf::uint64 value); + + // optional uint32 trx_num = 6; + bool has_trx_num() const; + void clear_trx_num(); + static const int kTrxNumFieldNumber = 6; + ::google::protobuf::uint32 trx_num() const; + void set_trx_num(::google::protobuf::uint32 value); + + // optional uint32 num = 7; + bool has_num() const; + void clear_num(); + static const int kNumFieldNumber = 7; + ::google::protobuf::uint32 num() const; + void set_num(::google::protobuf::uint32 value); + + // optional uint64 start_time = 8; + bool has_start_time() const; + void clear_start_time(); + static const int kStartTimeFieldNumber = 8; + ::google::protobuf::uint64 start_time() const; + void set_start_time(::google::protobuf::uint64 value); + + // optional uint64 end_time = 9; + bool has_end_time() const; + void clear_end_time(); + static const int kEndTimeFieldNumber = 9; + ::google::protobuf::uint64 end_time() const; + void set_end_time(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronAssetIssueContract) + private: + void set_has_name(); + void clear_has_name(); + void set_has_abbr(); + void clear_has_abbr(); + void set_has_total_supply(); + void clear_has_total_supply(); + void set_has_trx_num(); + void clear_has_trx_num(); + void set_has_num(); + void clear_has_num(); + void set_has_start_time(); + void clear_has_start_time(); + void set_has_end_time(); + void clear_has_end_time(); + void set_has_description(); + void clear_has_description(); + void set_has_url(); + void clear_has_url(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply > frozen_supply_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr abbr_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::google::protobuf::internal::ArenaStringPtr url_; + ::google::protobuf::uint64 total_supply_; + ::google::protobuf::uint32 trx_num_; + ::google::protobuf::uint32 num_; + ::google::protobuf::uint64 start_time_; + ::google::protobuf::uint64 end_time_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronParticipateAssetIssueContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronParticipateAssetIssueContract) */ { + public: + TronSignTx_TronContract_TronParticipateAssetIssueContract(); + virtual ~TronSignTx_TronContract_TronParticipateAssetIssueContract(); + + TronSignTx_TronContract_TronParticipateAssetIssueContract(const TronSignTx_TronContract_TronParticipateAssetIssueContract& from); + + inline TronSignTx_TronContract_TronParticipateAssetIssueContract& operator=(const TronSignTx_TronContract_TronParticipateAssetIssueContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronParticipateAssetIssueContract(TronSignTx_TronContract_TronParticipateAssetIssueContract&& from) noexcept + : TronSignTx_TronContract_TronParticipateAssetIssueContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronParticipateAssetIssueContract& operator=(TronSignTx_TronContract_TronParticipateAssetIssueContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronParticipateAssetIssueContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronParticipateAssetIssueContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronParticipateAssetIssueContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(TronSignTx_TronContract_TronParticipateAssetIssueContract* other); + friend void swap(TronSignTx_TronContract_TronParticipateAssetIssueContract& a, TronSignTx_TronContract_TronParticipateAssetIssueContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronParticipateAssetIssueContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronParticipateAssetIssueContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronParticipateAssetIssueContract& from); + void MergeFrom(const TronSignTx_TronContract_TronParticipateAssetIssueContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronParticipateAssetIssueContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes to_address = 1; + bool has_to_address() const; + void clear_to_address(); + static const int kToAddressFieldNumber = 1; + const ::std::string& to_address() const; + void set_to_address(const ::std::string& value); + #if LANG_CXX11 + void set_to_address(::std::string&& value); + #endif + void set_to_address(const char* value); + void set_to_address(const void* value, size_t size); + ::std::string* mutable_to_address(); + ::std::string* release_to_address(); + void set_allocated_to_address(::std::string* to_address); + + // optional string asset_name = 2; + bool has_asset_name() const; + void clear_asset_name(); + static const int kAssetNameFieldNumber = 2; + const ::std::string& asset_name() const; + void set_asset_name(const ::std::string& value); + #if LANG_CXX11 + void set_asset_name(::std::string&& value); + #endif + void set_asset_name(const char* value); + void set_asset_name(const char* value, size_t size); + ::std::string* mutable_asset_name(); + ::std::string* release_asset_name(); + void set_allocated_asset_name(::std::string* asset_name); + + // optional uint64 amount = 3; + bool has_amount() const; + void clear_amount(); + static const int kAmountFieldNumber = 3; + ::google::protobuf::uint64 amount() const; + void set_amount(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronParticipateAssetIssueContract) + private: + void set_has_to_address(); + void clear_has_to_address(); + void set_has_asset_name(); + void clear_has_asset_name(); + void set_has_amount(); + void clear_has_amount(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr to_address_; + ::google::protobuf::internal::ArenaStringPtr asset_name_; + ::google::protobuf::uint64 amount_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronFreezeBalanceContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronFreezeBalanceContract) */ { + public: + TronSignTx_TronContract_TronFreezeBalanceContract(); + virtual ~TronSignTx_TronContract_TronFreezeBalanceContract(); + + TronSignTx_TronContract_TronFreezeBalanceContract(const TronSignTx_TronContract_TronFreezeBalanceContract& from); + + inline TronSignTx_TronContract_TronFreezeBalanceContract& operator=(const TronSignTx_TronContract_TronFreezeBalanceContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronFreezeBalanceContract(TronSignTx_TronContract_TronFreezeBalanceContract&& from) noexcept + : TronSignTx_TronContract_TronFreezeBalanceContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronFreezeBalanceContract& operator=(TronSignTx_TronContract_TronFreezeBalanceContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronFreezeBalanceContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronFreezeBalanceContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronFreezeBalanceContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(TronSignTx_TronContract_TronFreezeBalanceContract* other); + friend void swap(TronSignTx_TronContract_TronFreezeBalanceContract& a, TronSignTx_TronContract_TronFreezeBalanceContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronFreezeBalanceContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronFreezeBalanceContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronFreezeBalanceContract& from); + void MergeFrom(const TronSignTx_TronContract_TronFreezeBalanceContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronFreezeBalanceContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 frozen_balance = 1; + bool has_frozen_balance() const; + void clear_frozen_balance(); + static const int kFrozenBalanceFieldNumber = 1; + ::google::protobuf::uint64 frozen_balance() const; + void set_frozen_balance(::google::protobuf::uint64 value); + + // optional uint64 frozen_duration = 2; + bool has_frozen_duration() const; + void clear_frozen_duration(); + static const int kFrozenDurationFieldNumber = 2; + ::google::protobuf::uint64 frozen_duration() const; + void set_frozen_duration(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronFreezeBalanceContract) + private: + void set_has_frozen_balance(); + void clear_has_frozen_balance(); + void set_has_frozen_duration(); + void clear_has_frozen_duration(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 frozen_balance_; + ::google::protobuf::uint64 frozen_duration_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronUnfreezeBalanceContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronUnfreezeBalanceContract) */ { + public: + TronSignTx_TronContract_TronUnfreezeBalanceContract(); + virtual ~TronSignTx_TronContract_TronUnfreezeBalanceContract(); + + TronSignTx_TronContract_TronUnfreezeBalanceContract(const TronSignTx_TronContract_TronUnfreezeBalanceContract& from); + + inline TronSignTx_TronContract_TronUnfreezeBalanceContract& operator=(const TronSignTx_TronContract_TronUnfreezeBalanceContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronUnfreezeBalanceContract(TronSignTx_TronContract_TronUnfreezeBalanceContract&& from) noexcept + : TronSignTx_TronContract_TronUnfreezeBalanceContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronUnfreezeBalanceContract& operator=(TronSignTx_TronContract_TronUnfreezeBalanceContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronUnfreezeBalanceContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronUnfreezeBalanceContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronUnfreezeBalanceContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(TronSignTx_TronContract_TronUnfreezeBalanceContract* other); + friend void swap(TronSignTx_TronContract_TronUnfreezeBalanceContract& a, TronSignTx_TronContract_TronUnfreezeBalanceContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronUnfreezeBalanceContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronUnfreezeBalanceContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronUnfreezeBalanceContract& from); + void MergeFrom(const TronSignTx_TronContract_TronUnfreezeBalanceContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronUnfreezeBalanceContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronUnfreezeBalanceContract) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronUnfreezeAssetContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronUnfreezeAssetContract) */ { + public: + TronSignTx_TronContract_TronUnfreezeAssetContract(); + virtual ~TronSignTx_TronContract_TronUnfreezeAssetContract(); + + TronSignTx_TronContract_TronUnfreezeAssetContract(const TronSignTx_TronContract_TronUnfreezeAssetContract& from); + + inline TronSignTx_TronContract_TronUnfreezeAssetContract& operator=(const TronSignTx_TronContract_TronUnfreezeAssetContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronUnfreezeAssetContract(TronSignTx_TronContract_TronUnfreezeAssetContract&& from) noexcept + : TronSignTx_TronContract_TronUnfreezeAssetContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronUnfreezeAssetContract& operator=(TronSignTx_TronContract_TronUnfreezeAssetContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronUnfreezeAssetContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronUnfreezeAssetContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronUnfreezeAssetContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(TronSignTx_TronContract_TronUnfreezeAssetContract* other); + friend void swap(TronSignTx_TronContract_TronUnfreezeAssetContract& a, TronSignTx_TronContract_TronUnfreezeAssetContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronUnfreezeAssetContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronUnfreezeAssetContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronUnfreezeAssetContract& from); + void MergeFrom(const TronSignTx_TronContract_TronUnfreezeAssetContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronUnfreezeAssetContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronUnfreezeAssetContract) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronWithdrawBalanceContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronWithdrawBalanceContract) */ { + public: + TronSignTx_TronContract_TronWithdrawBalanceContract(); + virtual ~TronSignTx_TronContract_TronWithdrawBalanceContract(); + + TronSignTx_TronContract_TronWithdrawBalanceContract(const TronSignTx_TronContract_TronWithdrawBalanceContract& from); + + inline TronSignTx_TronContract_TronWithdrawBalanceContract& operator=(const TronSignTx_TronContract_TronWithdrawBalanceContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronWithdrawBalanceContract(TronSignTx_TronContract_TronWithdrawBalanceContract&& from) noexcept + : TronSignTx_TronContract_TronWithdrawBalanceContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronWithdrawBalanceContract& operator=(TronSignTx_TronContract_TronWithdrawBalanceContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronWithdrawBalanceContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronWithdrawBalanceContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronWithdrawBalanceContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(TronSignTx_TronContract_TronWithdrawBalanceContract* other); + friend void swap(TronSignTx_TronContract_TronWithdrawBalanceContract& a, TronSignTx_TronContract_TronWithdrawBalanceContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronWithdrawBalanceContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronWithdrawBalanceContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronWithdrawBalanceContract& from); + void MergeFrom(const TronSignTx_TronContract_TronWithdrawBalanceContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronWithdrawBalanceContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronWithdrawBalanceContract) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronUpdateAssetContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronUpdateAssetContract) */ { + public: + TronSignTx_TronContract_TronUpdateAssetContract(); + virtual ~TronSignTx_TronContract_TronUpdateAssetContract(); + + TronSignTx_TronContract_TronUpdateAssetContract(const TronSignTx_TronContract_TronUpdateAssetContract& from); + + inline TronSignTx_TronContract_TronUpdateAssetContract& operator=(const TronSignTx_TronContract_TronUpdateAssetContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronUpdateAssetContract(TronSignTx_TronContract_TronUpdateAssetContract&& from) noexcept + : TronSignTx_TronContract_TronUpdateAssetContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronUpdateAssetContract& operator=(TronSignTx_TronContract_TronUpdateAssetContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronUpdateAssetContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronUpdateAssetContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronUpdateAssetContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(TronSignTx_TronContract_TronUpdateAssetContract* other); + friend void swap(TronSignTx_TronContract_TronUpdateAssetContract& a, TronSignTx_TronContract_TronUpdateAssetContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronUpdateAssetContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronUpdateAssetContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronUpdateAssetContract& from); + void MergeFrom(const TronSignTx_TronContract_TronUpdateAssetContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronUpdateAssetContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string description = 1; + bool has_description() const; + void clear_description(); + static const int kDescriptionFieldNumber = 1; + const ::std::string& description() const; + void set_description(const ::std::string& value); + #if LANG_CXX11 + void set_description(::std::string&& value); + #endif + void set_description(const char* value); + void set_description(const char* value, size_t size); + ::std::string* mutable_description(); + ::std::string* release_description(); + void set_allocated_description(::std::string* description); + + // optional string url = 2; + bool has_url() const; + void clear_url(); + static const int kUrlFieldNumber = 2; + const ::std::string& url() const; + void set_url(const ::std::string& value); + #if LANG_CXX11 + void set_url(::std::string&& value); + #endif + void set_url(const char* value); + void set_url(const char* value, size_t size); + ::std::string* mutable_url(); + ::std::string* release_url(); + void set_allocated_url(::std::string* url); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronUpdateAssetContract) + private: + void set_has_description(); + void clear_has_description(); + void set_has_url(); + void clear_has_url(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::google::protobuf::internal::ArenaStringPtr url_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) */ { + public: + TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters(); + virtual ~TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters(); + + TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters(const TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& from); + + inline TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& operator=(const TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters(TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters&& from) noexcept + : TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& operator=(TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* other); + friend void swap(TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& a, TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& from); + void MergeFrom(const TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 key = 1; + bool has_key() const; + void clear_key(); + static const int kKeyFieldNumber = 1; + ::google::protobuf::uint64 key() const; + void set_key(::google::protobuf::uint64 value); + + // optional uint64 value = 2; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 2; + ::google::protobuf::uint64 value() const; + void set_value(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters) + private: + void set_has_key(); + void clear_has_key(); + void set_has_value(); + void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 key_; + ::google::protobuf::uint64 value_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronProposalCreateContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronProposalCreateContract) */ { + public: + TronSignTx_TronContract_TronProposalCreateContract(); + virtual ~TronSignTx_TronContract_TronProposalCreateContract(); + + TronSignTx_TronContract_TronProposalCreateContract(const TronSignTx_TronContract_TronProposalCreateContract& from); + + inline TronSignTx_TronContract_TronProposalCreateContract& operator=(const TronSignTx_TronContract_TronProposalCreateContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronProposalCreateContract(TronSignTx_TronContract_TronProposalCreateContract&& from) noexcept + : TronSignTx_TronContract_TronProposalCreateContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronProposalCreateContract& operator=(TronSignTx_TronContract_TronProposalCreateContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronProposalCreateContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronProposalCreateContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronProposalCreateContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + void Swap(TronSignTx_TronContract_TronProposalCreateContract* other); + friend void swap(TronSignTx_TronContract_TronProposalCreateContract& a, TronSignTx_TronContract_TronProposalCreateContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronProposalCreateContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronProposalCreateContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronProposalCreateContract& from); + void MergeFrom(const TronSignTx_TronContract_TronProposalCreateContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronProposalCreateContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters TronProposalParameters; + + // accessors ------------------------------------------------------- + + // repeated .TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters parameters = 1; + int parameters_size() const; + void clear_parameters(); + static const int kParametersFieldNumber = 1; + ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* mutable_parameters(int index); + ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters >* + mutable_parameters(); + const ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& parameters(int index) const; + ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* add_parameters(); + const ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters >& + parameters() const; + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronProposalCreateContract) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters > parameters_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronProposalApproveContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronProposalApproveContract) */ { + public: + TronSignTx_TronContract_TronProposalApproveContract(); + virtual ~TronSignTx_TronContract_TronProposalApproveContract(); + + TronSignTx_TronContract_TronProposalApproveContract(const TronSignTx_TronContract_TronProposalApproveContract& from); + + inline TronSignTx_TronContract_TronProposalApproveContract& operator=(const TronSignTx_TronContract_TronProposalApproveContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronProposalApproveContract(TronSignTx_TronContract_TronProposalApproveContract&& from) noexcept + : TronSignTx_TronContract_TronProposalApproveContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronProposalApproveContract& operator=(TronSignTx_TronContract_TronProposalApproveContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronProposalApproveContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronProposalApproveContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronProposalApproveContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + void Swap(TronSignTx_TronContract_TronProposalApproveContract* other); + friend void swap(TronSignTx_TronContract_TronProposalApproveContract& a, TronSignTx_TronContract_TronProposalApproveContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronProposalApproveContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronProposalApproveContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronProposalApproveContract& from); + void MergeFrom(const TronSignTx_TronContract_TronProposalApproveContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronProposalApproveContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proposal_id = 1; + bool has_proposal_id() const; + void clear_proposal_id(); + static const int kProposalIdFieldNumber = 1; + ::google::protobuf::uint64 proposal_id() const; + void set_proposal_id(::google::protobuf::uint64 value); + + // optional bool is_add_approval = 2; + bool has_is_add_approval() const; + void clear_is_add_approval(); + static const int kIsAddApprovalFieldNumber = 2; + bool is_add_approval() const; + void set_is_add_approval(bool value); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronProposalApproveContract) + private: + void set_has_proposal_id(); + void clear_has_proposal_id(); + void set_has_is_add_approval(); + void clear_has_is_add_approval(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 proposal_id_; + bool is_add_approval_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract_TronProposalDeleteContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract.TronProposalDeleteContract) */ { + public: + TronSignTx_TronContract_TronProposalDeleteContract(); + virtual ~TronSignTx_TronContract_TronProposalDeleteContract(); + + TronSignTx_TronContract_TronProposalDeleteContract(const TronSignTx_TronContract_TronProposalDeleteContract& from); + + inline TronSignTx_TronContract_TronProposalDeleteContract& operator=(const TronSignTx_TronContract_TronProposalDeleteContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract_TronProposalDeleteContract(TronSignTx_TronContract_TronProposalDeleteContract&& from) noexcept + : TronSignTx_TronContract_TronProposalDeleteContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract_TronProposalDeleteContract& operator=(TronSignTx_TronContract_TronProposalDeleteContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract_TronProposalDeleteContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract_TronProposalDeleteContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_TronProposalDeleteContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + void Swap(TronSignTx_TronContract_TronProposalDeleteContract* other); + friend void swap(TronSignTx_TronContract_TronProposalDeleteContract& a, TronSignTx_TronContract_TronProposalDeleteContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract_TronProposalDeleteContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract_TronProposalDeleteContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract_TronProposalDeleteContract& from); + void MergeFrom(const TronSignTx_TronContract_TronProposalDeleteContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract_TronProposalDeleteContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proposal_id = 1; + bool has_proposal_id() const; + void clear_proposal_id(); + static const int kProposalIdFieldNumber = 1; + ::google::protobuf::uint64 proposal_id() const; + void set_proposal_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract.TronProposalDeleteContract) + private: + void set_has_proposal_id(); + void clear_has_proposal_id(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint64 proposal_id_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx_TronContract : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx.TronContract) */ { + public: + TronSignTx_TronContract(); + virtual ~TronSignTx_TronContract(); + + TronSignTx_TronContract(const TronSignTx_TronContract& from); + + inline TronSignTx_TronContract& operator=(const TronSignTx_TronContract& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx_TronContract(TronSignTx_TronContract&& from) noexcept + : TronSignTx_TronContract() { + *this = ::std::move(from); + } + + inline TronSignTx_TronContract& operator=(TronSignTx_TronContract&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx_TronContract& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx_TronContract* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_TronContract_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + void Swap(TronSignTx_TronContract* other); + friend void swap(TronSignTx_TronContract& a, TronSignTx_TronContract& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx_TronContract* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx_TronContract* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx_TronContract& from); + void MergeFrom(const TronSignTx_TronContract& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx_TronContract* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TronSignTx_TronContract_TronAccountUpdateContract TronAccountUpdateContract; + typedef TronSignTx_TronContract_TronTransferContract TronTransferContract; + typedef TronSignTx_TronContract_TronTransferAssetContract TronTransferAssetContract; + typedef TronSignTx_TronContract_TronVoteWitnessContract TronVoteWitnessContract; + typedef TronSignTx_TronContract_TronWitnessCreateContract TronWitnessCreateContract; + typedef TronSignTx_TronContract_TronWitnessUpdateContract TronWitnessUpdateContract; + typedef TronSignTx_TronContract_TronAssetIssueContract TronAssetIssueContract; + typedef TronSignTx_TronContract_TronParticipateAssetIssueContract TronParticipateAssetIssueContract; + typedef TronSignTx_TronContract_TronFreezeBalanceContract TronFreezeBalanceContract; + typedef TronSignTx_TronContract_TronUnfreezeBalanceContract TronUnfreezeBalanceContract; + typedef TronSignTx_TronContract_TronUnfreezeAssetContract TronUnfreezeAssetContract; + typedef TronSignTx_TronContract_TronWithdrawBalanceContract TronWithdrawBalanceContract; + typedef TronSignTx_TronContract_TronUpdateAssetContract TronUpdateAssetContract; + typedef TronSignTx_TronContract_TronProposalCreateContract TronProposalCreateContract; + typedef TronSignTx_TronContract_TronProposalApproveContract TronProposalApproveContract; + typedef TronSignTx_TronContract_TronProposalDeleteContract TronProposalDeleteContract; + + // accessors ------------------------------------------------------- + + // optional .TronSignTx.TronContract.TronTransferContract transfer_contract = 1; + bool has_transfer_contract() const; + void clear_transfer_contract(); + static const int kTransferContractFieldNumber = 1; + private: + const ::TronSignTx_TronContract_TronTransferContract& _internal_transfer_contract() const; + public: + const ::TronSignTx_TronContract_TronTransferContract& transfer_contract() const; + ::TronSignTx_TronContract_TronTransferContract* release_transfer_contract(); + ::TronSignTx_TronContract_TronTransferContract* mutable_transfer_contract(); + void set_allocated_transfer_contract(::TronSignTx_TronContract_TronTransferContract* transfer_contract); + + // optional .TronSignTx.TronContract.TronTransferAssetContract transfer_asset_contract = 2; + bool has_transfer_asset_contract() const; + void clear_transfer_asset_contract(); + static const int kTransferAssetContractFieldNumber = 2; + private: + const ::TronSignTx_TronContract_TronTransferAssetContract& _internal_transfer_asset_contract() const; + public: + const ::TronSignTx_TronContract_TronTransferAssetContract& transfer_asset_contract() const; + ::TronSignTx_TronContract_TronTransferAssetContract* release_transfer_asset_contract(); + ::TronSignTx_TronContract_TronTransferAssetContract* mutable_transfer_asset_contract(); + void set_allocated_transfer_asset_contract(::TronSignTx_TronContract_TronTransferAssetContract* transfer_asset_contract); + + // optional .TronSignTx.TronContract.TronVoteWitnessContract vote_witness_contract = 4; + bool has_vote_witness_contract() const; + void clear_vote_witness_contract(); + static const int kVoteWitnessContractFieldNumber = 4; + private: + const ::TronSignTx_TronContract_TronVoteWitnessContract& _internal_vote_witness_contract() const; + public: + const ::TronSignTx_TronContract_TronVoteWitnessContract& vote_witness_contract() const; + ::TronSignTx_TronContract_TronVoteWitnessContract* release_vote_witness_contract(); + ::TronSignTx_TronContract_TronVoteWitnessContract* mutable_vote_witness_contract(); + void set_allocated_vote_witness_contract(::TronSignTx_TronContract_TronVoteWitnessContract* vote_witness_contract); + + // optional .TronSignTx.TronContract.TronWitnessCreateContract witness_create_contract = 5; + bool has_witness_create_contract() const; + void clear_witness_create_contract(); + static const int kWitnessCreateContractFieldNumber = 5; + private: + const ::TronSignTx_TronContract_TronWitnessCreateContract& _internal_witness_create_contract() const; + public: + const ::TronSignTx_TronContract_TronWitnessCreateContract& witness_create_contract() const; + ::TronSignTx_TronContract_TronWitnessCreateContract* release_witness_create_contract(); + ::TronSignTx_TronContract_TronWitnessCreateContract* mutable_witness_create_contract(); + void set_allocated_witness_create_contract(::TronSignTx_TronContract_TronWitnessCreateContract* witness_create_contract); + + // optional .TronSignTx.TronContract.TronAssetIssueContract asset_issue_contract = 6; + bool has_asset_issue_contract() const; + void clear_asset_issue_contract(); + static const int kAssetIssueContractFieldNumber = 6; + private: + const ::TronSignTx_TronContract_TronAssetIssueContract& _internal_asset_issue_contract() const; + public: + const ::TronSignTx_TronContract_TronAssetIssueContract& asset_issue_contract() const; + ::TronSignTx_TronContract_TronAssetIssueContract* release_asset_issue_contract(); + ::TronSignTx_TronContract_TronAssetIssueContract* mutable_asset_issue_contract(); + void set_allocated_asset_issue_contract(::TronSignTx_TronContract_TronAssetIssueContract* asset_issue_contract); + + // optional .TronSignTx.TronContract.TronWitnessUpdateContract witness_update_contract = 8; + bool has_witness_update_contract() const; + void clear_witness_update_contract(); + static const int kWitnessUpdateContractFieldNumber = 8; + private: + const ::TronSignTx_TronContract_TronWitnessUpdateContract& _internal_witness_update_contract() const; + public: + const ::TronSignTx_TronContract_TronWitnessUpdateContract& witness_update_contract() const; + ::TronSignTx_TronContract_TronWitnessUpdateContract* release_witness_update_contract(); + ::TronSignTx_TronContract_TronWitnessUpdateContract* mutable_witness_update_contract(); + void set_allocated_witness_update_contract(::TronSignTx_TronContract_TronWitnessUpdateContract* witness_update_contract); + + // optional .TronSignTx.TronContract.TronParticipateAssetIssueContract participate_asset_issue_contract = 9; + bool has_participate_asset_issue_contract() const; + void clear_participate_asset_issue_contract(); + static const int kParticipateAssetIssueContractFieldNumber = 9; + private: + const ::TronSignTx_TronContract_TronParticipateAssetIssueContract& _internal_participate_asset_issue_contract() const; + public: + const ::TronSignTx_TronContract_TronParticipateAssetIssueContract& participate_asset_issue_contract() const; + ::TronSignTx_TronContract_TronParticipateAssetIssueContract* release_participate_asset_issue_contract(); + ::TronSignTx_TronContract_TronParticipateAssetIssueContract* mutable_participate_asset_issue_contract(); + void set_allocated_participate_asset_issue_contract(::TronSignTx_TronContract_TronParticipateAssetIssueContract* participate_asset_issue_contract); + + // optional .TronSignTx.TronContract.TronAccountUpdateContract account_update_contract = 10; + bool has_account_update_contract() const; + void clear_account_update_contract(); + static const int kAccountUpdateContractFieldNumber = 10; + private: + const ::TronSignTx_TronContract_TronAccountUpdateContract& _internal_account_update_contract() const; + public: + const ::TronSignTx_TronContract_TronAccountUpdateContract& account_update_contract() const; + ::TronSignTx_TronContract_TronAccountUpdateContract* release_account_update_contract(); + ::TronSignTx_TronContract_TronAccountUpdateContract* mutable_account_update_contract(); + void set_allocated_account_update_contract(::TronSignTx_TronContract_TronAccountUpdateContract* account_update_contract); + + // optional .TronSignTx.TronContract.TronFreezeBalanceContract freeze_balance_contract = 11; + bool has_freeze_balance_contract() const; + void clear_freeze_balance_contract(); + static const int kFreezeBalanceContractFieldNumber = 11; + private: + const ::TronSignTx_TronContract_TronFreezeBalanceContract& _internal_freeze_balance_contract() const; + public: + const ::TronSignTx_TronContract_TronFreezeBalanceContract& freeze_balance_contract() const; + ::TronSignTx_TronContract_TronFreezeBalanceContract* release_freeze_balance_contract(); + ::TronSignTx_TronContract_TronFreezeBalanceContract* mutable_freeze_balance_contract(); + void set_allocated_freeze_balance_contract(::TronSignTx_TronContract_TronFreezeBalanceContract* freeze_balance_contract); + + // optional .TronSignTx.TronContract.TronUnfreezeBalanceContract unfreeze_balance_contract = 12; + bool has_unfreeze_balance_contract() const; + void clear_unfreeze_balance_contract(); + static const int kUnfreezeBalanceContractFieldNumber = 12; + private: + const ::TronSignTx_TronContract_TronUnfreezeBalanceContract& _internal_unfreeze_balance_contract() const; + public: + const ::TronSignTx_TronContract_TronUnfreezeBalanceContract& unfreeze_balance_contract() const; + ::TronSignTx_TronContract_TronUnfreezeBalanceContract* release_unfreeze_balance_contract(); + ::TronSignTx_TronContract_TronUnfreezeBalanceContract* mutable_unfreeze_balance_contract(); + void set_allocated_unfreeze_balance_contract(::TronSignTx_TronContract_TronUnfreezeBalanceContract* unfreeze_balance_contract); + + // optional .TronSignTx.TronContract.TronWithdrawBalanceContract withdraw_balance_contract = 13; + bool has_withdraw_balance_contract() const; + void clear_withdraw_balance_contract(); + static const int kWithdrawBalanceContractFieldNumber = 13; + private: + const ::TronSignTx_TronContract_TronWithdrawBalanceContract& _internal_withdraw_balance_contract() const; + public: + const ::TronSignTx_TronContract_TronWithdrawBalanceContract& withdraw_balance_contract() const; + ::TronSignTx_TronContract_TronWithdrawBalanceContract* release_withdraw_balance_contract(); + ::TronSignTx_TronContract_TronWithdrawBalanceContract* mutable_withdraw_balance_contract(); + void set_allocated_withdraw_balance_contract(::TronSignTx_TronContract_TronWithdrawBalanceContract* withdraw_balance_contract); + + // optional .TronSignTx.TronContract.TronUnfreezeAssetContract unfreeze_asset_contract = 14; + bool has_unfreeze_asset_contract() const; + void clear_unfreeze_asset_contract(); + static const int kUnfreezeAssetContractFieldNumber = 14; + private: + const ::TronSignTx_TronContract_TronUnfreezeAssetContract& _internal_unfreeze_asset_contract() const; + public: + const ::TronSignTx_TronContract_TronUnfreezeAssetContract& unfreeze_asset_contract() const; + ::TronSignTx_TronContract_TronUnfreezeAssetContract* release_unfreeze_asset_contract(); + ::TronSignTx_TronContract_TronUnfreezeAssetContract* mutable_unfreeze_asset_contract(); + void set_allocated_unfreeze_asset_contract(::TronSignTx_TronContract_TronUnfreezeAssetContract* unfreeze_asset_contract); + + // optional .TronSignTx.TronContract.TronUpdateAssetContract update_asset_contract = 15; + bool has_update_asset_contract() const; + void clear_update_asset_contract(); + static const int kUpdateAssetContractFieldNumber = 15; + private: + const ::TronSignTx_TronContract_TronUpdateAssetContract& _internal_update_asset_contract() const; + public: + const ::TronSignTx_TronContract_TronUpdateAssetContract& update_asset_contract() const; + ::TronSignTx_TronContract_TronUpdateAssetContract* release_update_asset_contract(); + ::TronSignTx_TronContract_TronUpdateAssetContract* mutable_update_asset_contract(); + void set_allocated_update_asset_contract(::TronSignTx_TronContract_TronUpdateAssetContract* update_asset_contract); + + // optional .TronSignTx.TronContract.TronProposalCreateContract proposal_create_contract = 16; + bool has_proposal_create_contract() const; + void clear_proposal_create_contract(); + static const int kProposalCreateContractFieldNumber = 16; + private: + const ::TronSignTx_TronContract_TronProposalCreateContract& _internal_proposal_create_contract() const; + public: + const ::TronSignTx_TronContract_TronProposalCreateContract& proposal_create_contract() const; + ::TronSignTx_TronContract_TronProposalCreateContract* release_proposal_create_contract(); + ::TronSignTx_TronContract_TronProposalCreateContract* mutable_proposal_create_contract(); + void set_allocated_proposal_create_contract(::TronSignTx_TronContract_TronProposalCreateContract* proposal_create_contract); + + // optional .TronSignTx.TronContract.TronProposalApproveContract proposal_approve_contract = 17; + bool has_proposal_approve_contract() const; + void clear_proposal_approve_contract(); + static const int kProposalApproveContractFieldNumber = 17; + private: + const ::TronSignTx_TronContract_TronProposalApproveContract& _internal_proposal_approve_contract() const; + public: + const ::TronSignTx_TronContract_TronProposalApproveContract& proposal_approve_contract() const; + ::TronSignTx_TronContract_TronProposalApproveContract* release_proposal_approve_contract(); + ::TronSignTx_TronContract_TronProposalApproveContract* mutable_proposal_approve_contract(); + void set_allocated_proposal_approve_contract(::TronSignTx_TronContract_TronProposalApproveContract* proposal_approve_contract); + + // optional .TronSignTx.TronContract.TronProposalDeleteContract proposal_delete_contract = 18; + bool has_proposal_delete_contract() const; + void clear_proposal_delete_contract(); + static const int kProposalDeleteContractFieldNumber = 18; + private: + const ::TronSignTx_TronContract_TronProposalDeleteContract& _internal_proposal_delete_contract() const; + public: + const ::TronSignTx_TronContract_TronProposalDeleteContract& proposal_delete_contract() const; + ::TronSignTx_TronContract_TronProposalDeleteContract* release_proposal_delete_contract(); + ::TronSignTx_TronContract_TronProposalDeleteContract* mutable_proposal_delete_contract(); + void set_allocated_proposal_delete_contract(::TronSignTx_TronContract_TronProposalDeleteContract* proposal_delete_contract); + + // @@protoc_insertion_point(class_scope:TronSignTx.TronContract) + private: + void set_has_transfer_contract(); + void clear_has_transfer_contract(); + void set_has_transfer_asset_contract(); + void clear_has_transfer_asset_contract(); + void set_has_vote_witness_contract(); + void clear_has_vote_witness_contract(); + void set_has_witness_create_contract(); + void clear_has_witness_create_contract(); + void set_has_asset_issue_contract(); + void clear_has_asset_issue_contract(); + void set_has_witness_update_contract(); + void clear_has_witness_update_contract(); + void set_has_participate_asset_issue_contract(); + void clear_has_participate_asset_issue_contract(); + void set_has_account_update_contract(); + void clear_has_account_update_contract(); + void set_has_freeze_balance_contract(); + void clear_has_freeze_balance_contract(); + void set_has_unfreeze_balance_contract(); + void clear_has_unfreeze_balance_contract(); + void set_has_withdraw_balance_contract(); + void clear_has_withdraw_balance_contract(); + void set_has_unfreeze_asset_contract(); + void clear_has_unfreeze_asset_contract(); + void set_has_update_asset_contract(); + void clear_has_update_asset_contract(); + void set_has_proposal_create_contract(); + void clear_has_proposal_create_contract(); + void set_has_proposal_approve_contract(); + void clear_has_proposal_approve_contract(); + void set_has_proposal_delete_contract(); + void clear_has_proposal_delete_contract(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::TronSignTx_TronContract_TronTransferContract* transfer_contract_; + ::TronSignTx_TronContract_TronTransferAssetContract* transfer_asset_contract_; + ::TronSignTx_TronContract_TronVoteWitnessContract* vote_witness_contract_; + ::TronSignTx_TronContract_TronWitnessCreateContract* witness_create_contract_; + ::TronSignTx_TronContract_TronAssetIssueContract* asset_issue_contract_; + ::TronSignTx_TronContract_TronWitnessUpdateContract* witness_update_contract_; + ::TronSignTx_TronContract_TronParticipateAssetIssueContract* participate_asset_issue_contract_; + ::TronSignTx_TronContract_TronAccountUpdateContract* account_update_contract_; + ::TronSignTx_TronContract_TronFreezeBalanceContract* freeze_balance_contract_; + ::TronSignTx_TronContract_TronUnfreezeBalanceContract* unfreeze_balance_contract_; + ::TronSignTx_TronContract_TronWithdrawBalanceContract* withdraw_balance_contract_; + ::TronSignTx_TronContract_TronUnfreezeAssetContract* unfreeze_asset_contract_; + ::TronSignTx_TronContract_TronUpdateAssetContract* update_asset_contract_; + ::TronSignTx_TronContract_TronProposalCreateContract* proposal_create_contract_; + ::TronSignTx_TronContract_TronProposalApproveContract* proposal_approve_contract_; + ::TronSignTx_TronContract_TronProposalDeleteContract* proposal_delete_contract_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignTx) */ { + public: + TronSignTx(); + virtual ~TronSignTx(); + + TronSignTx(const TronSignTx& from); + + inline TronSignTx& operator=(const TronSignTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignTx(TronSignTx&& from) noexcept + : TronSignTx() { + *this = ::std::move(from); + } + + inline TronSignTx& operator=(TronSignTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignTx* internal_default_instance() { + return reinterpret_cast( + &_TronSignTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + void Swap(TronSignTx* other); + friend void swap(TronSignTx& a, TronSignTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignTx* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignTx& from); + void MergeFrom(const TronSignTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TronSignTx_TronContract TronContract; + + // accessors ------------------------------------------------------- + + // repeated uint32 address_n = 1; + int address_n_size() const; + void clear_address_n(); + static const int kAddressNFieldNumber = 1; + ::google::protobuf::uint32 address_n(int index) const; + void set_address_n(int index, ::google::protobuf::uint32 value); + void add_address_n(::google::protobuf::uint32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + address_n() const; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_address_n(); + + // optional bytes ref_block_bytes = 2; + bool has_ref_block_bytes() const; + void clear_ref_block_bytes(); + static const int kRefBlockBytesFieldNumber = 2; + const ::std::string& ref_block_bytes() const; + void set_ref_block_bytes(const ::std::string& value); + #if LANG_CXX11 + void set_ref_block_bytes(::std::string&& value); + #endif + void set_ref_block_bytes(const char* value); + void set_ref_block_bytes(const void* value, size_t size); + ::std::string* mutable_ref_block_bytes(); + ::std::string* release_ref_block_bytes(); + void set_allocated_ref_block_bytes(::std::string* ref_block_bytes); + + // optional bytes ref_block_hash = 3; + bool has_ref_block_hash() const; + void clear_ref_block_hash(); + static const int kRefBlockHashFieldNumber = 3; + const ::std::string& ref_block_hash() const; + void set_ref_block_hash(const ::std::string& value); + #if LANG_CXX11 + void set_ref_block_hash(::std::string&& value); + #endif + void set_ref_block_hash(const char* value); + void set_ref_block_hash(const void* value, size_t size); + ::std::string* mutable_ref_block_hash(); + ::std::string* release_ref_block_hash(); + void set_allocated_ref_block_hash(::std::string* ref_block_hash); + + // optional string data = 5; + bool has_data() const; + void clear_data(); + static const int kDataFieldNumber = 5; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const char* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // optional .TronSignTx.TronContract contract = 6; + bool has_contract() const; + void clear_contract(); + static const int kContractFieldNumber = 6; + private: + const ::TronSignTx_TronContract& _internal_contract() const; + public: + const ::TronSignTx_TronContract& contract() const; + ::TronSignTx_TronContract* release_contract(); + ::TronSignTx_TronContract* mutable_contract(); + void set_allocated_contract(::TronSignTx_TronContract* contract); + + // optional uint64 expiration = 4; + bool has_expiration() const; + void clear_expiration(); + static const int kExpirationFieldNumber = 4; + ::google::protobuf::uint64 expiration() const; + void set_expiration(::google::protobuf::uint64 value); + + // optional uint64 timestamp = 7; + bool has_timestamp() const; + void clear_timestamp(); + static const int kTimestampFieldNumber = 7; + ::google::protobuf::uint64 timestamp() const; + void set_timestamp(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:TronSignTx) + private: + void set_has_ref_block_bytes(); + void clear_has_ref_block_bytes(); + void set_has_ref_block_hash(); + void clear_has_ref_block_hash(); + void set_has_expiration(); + void clear_has_expiration(); + void set_has_data(); + void clear_has_data(); + void set_has_contract(); + void clear_has_contract(); + void set_has_timestamp(); + void clear_has_timestamp(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > address_n_; + ::google::protobuf::internal::ArenaStringPtr ref_block_bytes_; + ::google::protobuf::internal::ArenaStringPtr ref_block_hash_; + ::google::protobuf::internal::ArenaStringPtr data_; + ::TronSignTx_TronContract* contract_; + ::google::protobuf::uint64 expiration_; + ::google::protobuf::uint64 timestamp_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TronSignedTx : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:TronSignedTx) */ { + public: + TronSignedTx(); + virtual ~TronSignedTx(); + + TronSignedTx(const TronSignedTx& from); + + inline TronSignedTx& operator=(const TronSignedTx& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TronSignedTx(TronSignedTx&& from) noexcept + : TronSignedTx() { + *this = ::std::move(from); + } + + inline TronSignedTx& operator=(TronSignedTx&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TronSignedTx& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TronSignedTx* internal_default_instance() { + return reinterpret_cast( + &_TronSignedTx_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + void Swap(TronSignedTx* other); + friend void swap(TronSignedTx& a, TronSignedTx& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TronSignedTx* New() const final { + return CreateMaybeMessage(NULL); + } + + TronSignedTx* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TronSignedTx& from); + void MergeFrom(const TronSignedTx& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TronSignedTx* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif + void set_signature(const char* value); + void set_signature(const void* value, size_t size); + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); + + // optional bytes serialized_tx = 2; + bool has_serialized_tx() const; + void clear_serialized_tx(); + static const int kSerializedTxFieldNumber = 2; + const ::std::string& serialized_tx() const; + void set_serialized_tx(const ::std::string& value); + #if LANG_CXX11 + void set_serialized_tx(::std::string&& value); + #endif + void set_serialized_tx(const char* value); + void set_serialized_tx(const void* value, size_t size); + ::std::string* mutable_serialized_tx(); + ::std::string* release_serialized_tx(); + void set_allocated_serialized_tx(::std::string* serialized_tx); + + // @@protoc_insertion_point(class_scope:TronSignedTx) + private: + void set_has_signature(); + void clear_has_signature(); + void set_has_serialized_tx(); + void clear_has_serialized_tx(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr serialized_tx_; + friend struct ::protobuf_messages_2dtron_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// TronGetAddress + +// repeated uint32 address_n = 1; +inline int TronGetAddress::address_n_size() const { + return address_n_.size(); +} +inline void TronGetAddress::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 TronGetAddress::address_n(int index) const { + // @@protoc_insertion_point(field_get:TronGetAddress.address_n) + return address_n_.Get(index); +} +inline void TronGetAddress::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:TronGetAddress.address_n) +} +inline void TronGetAddress::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:TronGetAddress.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +TronGetAddress::address_n() const { + // @@protoc_insertion_point(field_list:TronGetAddress.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +TronGetAddress::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:TronGetAddress.address_n) + return &address_n_; +} + +// optional bool show_display = 2; +inline bool TronGetAddress::has_show_display() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronGetAddress::set_has_show_display() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronGetAddress::clear_has_show_display() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronGetAddress::clear_show_display() { + show_display_ = false; + clear_has_show_display(); +} +inline bool TronGetAddress::show_display() const { + // @@protoc_insertion_point(field_get:TronGetAddress.show_display) + return show_display_; +} +inline void TronGetAddress::set_show_display(bool value) { + set_has_show_display(); + show_display_ = value; + // @@protoc_insertion_point(field_set:TronGetAddress.show_display) +} + +// ------------------------------------------------------------------- + +// TronAddress + +// optional string address = 1; +inline bool TronAddress::has_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronAddress::set_has_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronAddress::clear_has_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronAddress::clear_address() { + address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_address(); +} +inline const ::std::string& TronAddress::address() const { + // @@protoc_insertion_point(field_get:TronAddress.address) + return address_.GetNoArena(); +} +inline void TronAddress::set_address(const ::std::string& value) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronAddress.address) +} +#if LANG_CXX11 +inline void TronAddress::set_address(::std::string&& value) { + set_has_address(); + address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronAddress.address) +} +#endif +inline void TronAddress::set_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronAddress.address) +} +inline void TronAddress::set_address(const char* value, size_t size) { + set_has_address(); + address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronAddress.address) +} +inline ::std::string* TronAddress::mutable_address() { + set_has_address(); + // @@protoc_insertion_point(field_mutable:TronAddress.address) + return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronAddress::release_address() { + // @@protoc_insertion_point(field_release:TronAddress.address) + if (!has_address()) { + return NULL; + } + clear_has_address(); + return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronAddress::set_allocated_address(::std::string* address) { + if (address != NULL) { + set_has_address(); + } else { + clear_has_address(); + } + address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); + // @@protoc_insertion_point(field_set_allocated:TronAddress.address) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronAccountUpdateContract + +// optional string account_name = 1; +inline bool TronSignTx_TronContract_TronAccountUpdateContract::has_account_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronAccountUpdateContract::set_has_account_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronAccountUpdateContract::clear_has_account_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronAccountUpdateContract::clear_account_name() { + account_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_account_name(); +} +inline const ::std::string& TronSignTx_TronContract_TronAccountUpdateContract::account_name() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAccountUpdateContract.account_name) + return account_name_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronAccountUpdateContract::set_account_name(const ::std::string& value) { + set_has_account_name(); + account_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAccountUpdateContract.account_name) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronAccountUpdateContract::set_account_name(::std::string&& value) { + set_has_account_name(); + account_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronAccountUpdateContract.account_name) +} +#endif +inline void TronSignTx_TronContract_TronAccountUpdateContract::set_account_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_account_name(); + account_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronAccountUpdateContract.account_name) +} +inline void TronSignTx_TronContract_TronAccountUpdateContract::set_account_name(const char* value, size_t size) { + set_has_account_name(); + account_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronAccountUpdateContract.account_name) +} +inline ::std::string* TronSignTx_TronContract_TronAccountUpdateContract::mutable_account_name() { + set_has_account_name(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronAccountUpdateContract.account_name) + return account_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronAccountUpdateContract::release_account_name() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronAccountUpdateContract.account_name) + if (!has_account_name()) { + return NULL; + } + clear_has_account_name(); + return account_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronAccountUpdateContract::set_allocated_account_name(::std::string* account_name) { + if (account_name != NULL) { + set_has_account_name(); + } else { + clear_has_account_name(); + } + account_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), account_name); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronAccountUpdateContract.account_name) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronTransferContract + +// optional bytes to_address = 1; +inline bool TronSignTx_TronContract_TronTransferContract::has_to_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronTransferContract::set_has_to_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronTransferContract::clear_has_to_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronTransferContract::clear_to_address() { + to_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_to_address(); +} +inline const ::std::string& TronSignTx_TronContract_TronTransferContract::to_address() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronTransferContract.to_address) + return to_address_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronTransferContract::set_to_address(const ::std::string& value) { + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronTransferContract.to_address) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronTransferContract::set_to_address(::std::string&& value) { + set_has_to_address(); + to_address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronTransferContract.to_address) +} +#endif +inline void TronSignTx_TronContract_TronTransferContract::set_to_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronTransferContract.to_address) +} +inline void TronSignTx_TronContract_TronTransferContract::set_to_address(const void* value, size_t size) { + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronTransferContract.to_address) +} +inline ::std::string* TronSignTx_TronContract_TronTransferContract::mutable_to_address() { + set_has_to_address(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronTransferContract.to_address) + return to_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronTransferContract::release_to_address() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronTransferContract.to_address) + if (!has_to_address()) { + return NULL; + } + clear_has_to_address(); + return to_address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronTransferContract::set_allocated_to_address(::std::string* to_address) { + if (to_address != NULL) { + set_has_to_address(); + } else { + clear_has_to_address(); + } + to_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), to_address); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronTransferContract.to_address) +} + +// optional uint64 amount = 2; +inline bool TronSignTx_TronContract_TronTransferContract::has_amount() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx_TronContract_TronTransferContract::set_has_amount() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx_TronContract_TronTransferContract::clear_has_amount() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx_TronContract_TronTransferContract::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronTransferContract::amount() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronTransferContract.amount) + return amount_; +} +inline void TronSignTx_TronContract_TronTransferContract::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronTransferContract.amount) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronTransferAssetContract + +// optional string asset_name = 1; +inline bool TronSignTx_TronContract_TronTransferAssetContract::has_asset_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronTransferAssetContract::set_has_asset_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronTransferAssetContract::clear_has_asset_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronTransferAssetContract::clear_asset_name() { + asset_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_asset_name(); +} +inline const ::std::string& TronSignTx_TronContract_TronTransferAssetContract::asset_name() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronTransferAssetContract.asset_name) + return asset_name_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronTransferAssetContract::set_asset_name(const ::std::string& value) { + set_has_asset_name(); + asset_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronTransferAssetContract.asset_name) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronTransferAssetContract::set_asset_name(::std::string&& value) { + set_has_asset_name(); + asset_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronTransferAssetContract.asset_name) +} +#endif +inline void TronSignTx_TronContract_TronTransferAssetContract::set_asset_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_asset_name(); + asset_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronTransferAssetContract.asset_name) +} +inline void TronSignTx_TronContract_TronTransferAssetContract::set_asset_name(const char* value, size_t size) { + set_has_asset_name(); + asset_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronTransferAssetContract.asset_name) +} +inline ::std::string* TronSignTx_TronContract_TronTransferAssetContract::mutable_asset_name() { + set_has_asset_name(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronTransferAssetContract.asset_name) + return asset_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronTransferAssetContract::release_asset_name() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronTransferAssetContract.asset_name) + if (!has_asset_name()) { + return NULL; + } + clear_has_asset_name(); + return asset_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronTransferAssetContract::set_allocated_asset_name(::std::string* asset_name) { + if (asset_name != NULL) { + set_has_asset_name(); + } else { + clear_has_asset_name(); + } + asset_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), asset_name); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronTransferAssetContract.asset_name) +} + +// optional bytes to_address = 2; +inline bool TronSignTx_TronContract_TronTransferAssetContract::has_to_address() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx_TronContract_TronTransferAssetContract::set_has_to_address() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx_TronContract_TronTransferAssetContract::clear_has_to_address() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx_TronContract_TronTransferAssetContract::clear_to_address() { + to_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_to_address(); +} +inline const ::std::string& TronSignTx_TronContract_TronTransferAssetContract::to_address() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronTransferAssetContract.to_address) + return to_address_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronTransferAssetContract::set_to_address(const ::std::string& value) { + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronTransferAssetContract.to_address) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronTransferAssetContract::set_to_address(::std::string&& value) { + set_has_to_address(); + to_address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronTransferAssetContract.to_address) +} +#endif +inline void TronSignTx_TronContract_TronTransferAssetContract::set_to_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronTransferAssetContract.to_address) +} +inline void TronSignTx_TronContract_TronTransferAssetContract::set_to_address(const void* value, size_t size) { + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronTransferAssetContract.to_address) +} +inline ::std::string* TronSignTx_TronContract_TronTransferAssetContract::mutable_to_address() { + set_has_to_address(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronTransferAssetContract.to_address) + return to_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronTransferAssetContract::release_to_address() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronTransferAssetContract.to_address) + if (!has_to_address()) { + return NULL; + } + clear_has_to_address(); + return to_address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronTransferAssetContract::set_allocated_to_address(::std::string* to_address) { + if (to_address != NULL) { + set_has_to_address(); + } else { + clear_has_to_address(); + } + to_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), to_address); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronTransferAssetContract.to_address) +} + +// optional uint64 amount = 3; +inline bool TronSignTx_TronContract_TronTransferAssetContract::has_amount() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TronSignTx_TronContract_TronTransferAssetContract::set_has_amount() { + _has_bits_[0] |= 0x00000004u; +} +inline void TronSignTx_TronContract_TronTransferAssetContract::clear_has_amount() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TronSignTx_TronContract_TronTransferAssetContract::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronTransferAssetContract::amount() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronTransferAssetContract.amount) + return amount_; +} +inline void TronSignTx_TronContract_TronTransferAssetContract::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronTransferAssetContract.amount) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronVoteWitnessContract_TronVote + +// optional bytes vote_address = 1; +inline bool TronSignTx_TronContract_TronVoteWitnessContract_TronVote::has_vote_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::set_has_vote_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::clear_has_vote_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::clear_vote_address() { + vote_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_vote_address(); +} +inline const ::std::string& TronSignTx_TronContract_TronVoteWitnessContract_TronVote::vote_address() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronVoteWitnessContract.TronVote.vote_address) + return vote_address_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::set_vote_address(const ::std::string& value) { + set_has_vote_address(); + vote_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronVoteWitnessContract.TronVote.vote_address) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::set_vote_address(::std::string&& value) { + set_has_vote_address(); + vote_address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronVoteWitnessContract.TronVote.vote_address) +} +#endif +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::set_vote_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_vote_address(); + vote_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronVoteWitnessContract.TronVote.vote_address) +} +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::set_vote_address(const void* value, size_t size) { + set_has_vote_address(); + vote_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronVoteWitnessContract.TronVote.vote_address) +} +inline ::std::string* TronSignTx_TronContract_TronVoteWitnessContract_TronVote::mutable_vote_address() { + set_has_vote_address(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronVoteWitnessContract.TronVote.vote_address) + return vote_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronVoteWitnessContract_TronVote::release_vote_address() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronVoteWitnessContract.TronVote.vote_address) + if (!has_vote_address()) { + return NULL; + } + clear_has_vote_address(); + return vote_address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::set_allocated_vote_address(::std::string* vote_address) { + if (vote_address != NULL) { + set_has_vote_address(); + } else { + clear_has_vote_address(); + } + vote_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), vote_address); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronVoteWitnessContract.TronVote.vote_address) +} + +// optional uint64 vote_count = 2; +inline bool TronSignTx_TronContract_TronVoteWitnessContract_TronVote::has_vote_count() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::set_has_vote_count() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::clear_has_vote_count() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::clear_vote_count() { + vote_count_ = GOOGLE_ULONGLONG(0); + clear_has_vote_count(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronVoteWitnessContract_TronVote::vote_count() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronVoteWitnessContract.TronVote.vote_count) + return vote_count_; +} +inline void TronSignTx_TronContract_TronVoteWitnessContract_TronVote::set_vote_count(::google::protobuf::uint64 value) { + set_has_vote_count(); + vote_count_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronVoteWitnessContract.TronVote.vote_count) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronVoteWitnessContract + +// repeated .TronSignTx.TronContract.TronVoteWitnessContract.TronVote votes = 1; +inline int TronSignTx_TronContract_TronVoteWitnessContract::votes_size() const { + return votes_.size(); +} +inline void TronSignTx_TronContract_TronVoteWitnessContract::clear_votes() { + votes_.Clear(); +} +inline ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote* TronSignTx_TronContract_TronVoteWitnessContract::mutable_votes(int index) { + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronVoteWitnessContract.votes) + return votes_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote >* +TronSignTx_TronContract_TronVoteWitnessContract::mutable_votes() { + // @@protoc_insertion_point(field_mutable_list:TronSignTx.TronContract.TronVoteWitnessContract.votes) + return &votes_; +} +inline const ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote& TronSignTx_TronContract_TronVoteWitnessContract::votes(int index) const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronVoteWitnessContract.votes) + return votes_.Get(index); +} +inline ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote* TronSignTx_TronContract_TronVoteWitnessContract::add_votes() { + // @@protoc_insertion_point(field_add:TronSignTx.TronContract.TronVoteWitnessContract.votes) + return votes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronVoteWitnessContract_TronVote >& +TronSignTx_TronContract_TronVoteWitnessContract::votes() const { + // @@protoc_insertion_point(field_list:TronSignTx.TronContract.TronVoteWitnessContract.votes) + return votes_; +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronWitnessCreateContract + +// optional string url = 1; +inline bool TronSignTx_TronContract_TronWitnessCreateContract::has_url() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronWitnessCreateContract::set_has_url() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronWitnessCreateContract::clear_has_url() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronWitnessCreateContract::clear_url() { + url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_url(); +} +inline const ::std::string& TronSignTx_TronContract_TronWitnessCreateContract::url() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronWitnessCreateContract.url) + return url_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronWitnessCreateContract::set_url(const ::std::string& value) { + set_has_url(); + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronWitnessCreateContract.url) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronWitnessCreateContract::set_url(::std::string&& value) { + set_has_url(); + url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronWitnessCreateContract.url) +} +#endif +inline void TronSignTx_TronContract_TronWitnessCreateContract::set_url(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_url(); + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronWitnessCreateContract.url) +} +inline void TronSignTx_TronContract_TronWitnessCreateContract::set_url(const char* value, size_t size) { + set_has_url(); + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronWitnessCreateContract.url) +} +inline ::std::string* TronSignTx_TronContract_TronWitnessCreateContract::mutable_url() { + set_has_url(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronWitnessCreateContract.url) + return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronWitnessCreateContract::release_url() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronWitnessCreateContract.url) + if (!has_url()) { + return NULL; + } + clear_has_url(); + return url_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronWitnessCreateContract::set_allocated_url(::std::string* url) { + if (url != NULL) { + set_has_url(); + } else { + clear_has_url(); + } + url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronWitnessCreateContract.url) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronWitnessUpdateContract + +// optional string update_url = 2; +inline bool TronSignTx_TronContract_TronWitnessUpdateContract::has_update_url() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronWitnessUpdateContract::set_has_update_url() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronWitnessUpdateContract::clear_has_update_url() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronWitnessUpdateContract::clear_update_url() { + update_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_update_url(); +} +inline const ::std::string& TronSignTx_TronContract_TronWitnessUpdateContract::update_url() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronWitnessUpdateContract.update_url) + return update_url_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronWitnessUpdateContract::set_update_url(const ::std::string& value) { + set_has_update_url(); + update_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronWitnessUpdateContract.update_url) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronWitnessUpdateContract::set_update_url(::std::string&& value) { + set_has_update_url(); + update_url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronWitnessUpdateContract.update_url) +} +#endif +inline void TronSignTx_TronContract_TronWitnessUpdateContract::set_update_url(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_update_url(); + update_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronWitnessUpdateContract.update_url) +} +inline void TronSignTx_TronContract_TronWitnessUpdateContract::set_update_url(const char* value, size_t size) { + set_has_update_url(); + update_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronWitnessUpdateContract.update_url) +} +inline ::std::string* TronSignTx_TronContract_TronWitnessUpdateContract::mutable_update_url() { + set_has_update_url(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronWitnessUpdateContract.update_url) + return update_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronWitnessUpdateContract::release_update_url() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronWitnessUpdateContract.update_url) + if (!has_update_url()) { + return NULL; + } + clear_has_update_url(); + return update_url_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronWitnessUpdateContract::set_allocated_update_url(::std::string* update_url) { + if (update_url != NULL) { + set_has_update_url(); + } else { + clear_has_update_url(); + } + update_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), update_url); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronWitnessUpdateContract.update_url) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply + +// optional uint64 frozen_amount = 1; +inline bool TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::has_frozen_amount() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::set_has_frozen_amount() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::clear_has_frozen_amount() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::clear_frozen_amount() { + frozen_amount_ = GOOGLE_ULONGLONG(0); + clear_has_frozen_amount(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::frozen_amount() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply.frozen_amount) + return frozen_amount_; +} +inline void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::set_frozen_amount(::google::protobuf::uint64 value) { + set_has_frozen_amount(); + frozen_amount_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply.frozen_amount) +} + +// optional uint64 frozen_days = 2; +inline bool TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::has_frozen_days() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::set_has_frozen_days() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::clear_has_frozen_days() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::clear_frozen_days() { + frozen_days_ = GOOGLE_ULONGLONG(0); + clear_has_frozen_days(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::frozen_days() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply.frozen_days) + return frozen_days_; +} +inline void TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply::set_frozen_days(::google::protobuf::uint64 value) { + set_has_frozen_days(); + frozen_days_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply.frozen_days) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronAssetIssueContract + +// optional string name = 2; +inline bool TronSignTx_TronContract_TronAssetIssueContract::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_name(); +} +inline const ::std::string& TronSignTx_TronContract_TronAssetIssueContract::name() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.name) + return name_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_name(const ::std::string& value) { + set_has_name(); + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAssetIssueContract.name) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronAssetIssueContract::set_name(::std::string&& value) { + set_has_name(); + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronAssetIssueContract.name) +} +#endif +inline void TronSignTx_TronContract_TronAssetIssueContract::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_name(); + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronAssetIssueContract.name) +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_name(const char* value, size_t size) { + set_has_name(); + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronAssetIssueContract.name) +} +inline ::std::string* TronSignTx_TronContract_TronAssetIssueContract::mutable_name() { + set_has_name(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronAssetIssueContract.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronAssetIssueContract::release_name() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronAssetIssueContract.name) + if (!has_name()) { + return NULL; + } + clear_has_name(); + return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_allocated_name(::std::string* name) { + if (name != NULL) { + set_has_name(); + } else { + clear_has_name(); + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronAssetIssueContract.name) +} + +// optional string abbr = 3; +inline bool TronSignTx_TronContract_TronAssetIssueContract::has_abbr() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_has_abbr() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_has_abbr() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_abbr() { + abbr_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_abbr(); +} +inline const ::std::string& TronSignTx_TronContract_TronAssetIssueContract::abbr() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.abbr) + return abbr_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_abbr(const ::std::string& value) { + set_has_abbr(); + abbr_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAssetIssueContract.abbr) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronAssetIssueContract::set_abbr(::std::string&& value) { + set_has_abbr(); + abbr_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronAssetIssueContract.abbr) +} +#endif +inline void TronSignTx_TronContract_TronAssetIssueContract::set_abbr(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_abbr(); + abbr_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronAssetIssueContract.abbr) +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_abbr(const char* value, size_t size) { + set_has_abbr(); + abbr_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronAssetIssueContract.abbr) +} +inline ::std::string* TronSignTx_TronContract_TronAssetIssueContract::mutable_abbr() { + set_has_abbr(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronAssetIssueContract.abbr) + return abbr_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronAssetIssueContract::release_abbr() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronAssetIssueContract.abbr) + if (!has_abbr()) { + return NULL; + } + clear_has_abbr(); + return abbr_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_allocated_abbr(::std::string* abbr) { + if (abbr != NULL) { + set_has_abbr(); + } else { + clear_has_abbr(); + } + abbr_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), abbr); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronAssetIssueContract.abbr) +} + +// optional uint64 total_supply = 4; +inline bool TronSignTx_TronContract_TronAssetIssueContract::has_total_supply() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_has_total_supply() { + _has_bits_[0] |= 0x00000010u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_has_total_supply() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_total_supply() { + total_supply_ = GOOGLE_ULONGLONG(0); + clear_has_total_supply(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronAssetIssueContract::total_supply() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.total_supply) + return total_supply_; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_total_supply(::google::protobuf::uint64 value) { + set_has_total_supply(); + total_supply_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAssetIssueContract.total_supply) +} + +// repeated .TronSignTx.TronContract.TronAssetIssueContract.TronFrozenSupply frozen_supply = 5; +inline int TronSignTx_TronContract_TronAssetIssueContract::frozen_supply_size() const { + return frozen_supply_.size(); +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_frozen_supply() { + frozen_supply_.Clear(); +} +inline ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* TronSignTx_TronContract_TronAssetIssueContract::mutable_frozen_supply(int index) { + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronAssetIssueContract.frozen_supply) + return frozen_supply_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply >* +TronSignTx_TronContract_TronAssetIssueContract::mutable_frozen_supply() { + // @@protoc_insertion_point(field_mutable_list:TronSignTx.TronContract.TronAssetIssueContract.frozen_supply) + return &frozen_supply_; +} +inline const ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply& TronSignTx_TronContract_TronAssetIssueContract::frozen_supply(int index) const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.frozen_supply) + return frozen_supply_.Get(index); +} +inline ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply* TronSignTx_TronContract_TronAssetIssueContract::add_frozen_supply() { + // @@protoc_insertion_point(field_add:TronSignTx.TronContract.TronAssetIssueContract.frozen_supply) + return frozen_supply_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronAssetIssueContract_TronFrozenSupply >& +TronSignTx_TronContract_TronAssetIssueContract::frozen_supply() const { + // @@protoc_insertion_point(field_list:TronSignTx.TronContract.TronAssetIssueContract.frozen_supply) + return frozen_supply_; +} + +// optional uint32 trx_num = 6; +inline bool TronSignTx_TronContract_TronAssetIssueContract::has_trx_num() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_has_trx_num() { + _has_bits_[0] |= 0x00000020u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_has_trx_num() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_trx_num() { + trx_num_ = 0u; + clear_has_trx_num(); +} +inline ::google::protobuf::uint32 TronSignTx_TronContract_TronAssetIssueContract::trx_num() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.trx_num) + return trx_num_; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_trx_num(::google::protobuf::uint32 value) { + set_has_trx_num(); + trx_num_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAssetIssueContract.trx_num) +} + +// optional uint32 num = 7; +inline bool TronSignTx_TronContract_TronAssetIssueContract::has_num() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_has_num() { + _has_bits_[0] |= 0x00000040u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_has_num() { + _has_bits_[0] &= ~0x00000040u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_num() { + num_ = 0u; + clear_has_num(); +} +inline ::google::protobuf::uint32 TronSignTx_TronContract_TronAssetIssueContract::num() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.num) + return num_; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_num(::google::protobuf::uint32 value) { + set_has_num(); + num_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAssetIssueContract.num) +} + +// optional uint64 start_time = 8; +inline bool TronSignTx_TronContract_TronAssetIssueContract::has_start_time() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_has_start_time() { + _has_bits_[0] |= 0x00000080u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_has_start_time() { + _has_bits_[0] &= ~0x00000080u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_start_time() { + start_time_ = GOOGLE_ULONGLONG(0); + clear_has_start_time(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronAssetIssueContract::start_time() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.start_time) + return start_time_; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_start_time(::google::protobuf::uint64 value) { + set_has_start_time(); + start_time_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAssetIssueContract.start_time) +} + +// optional uint64 end_time = 9; +inline bool TronSignTx_TronContract_TronAssetIssueContract::has_end_time() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_has_end_time() { + _has_bits_[0] |= 0x00000100u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_has_end_time() { + _has_bits_[0] &= ~0x00000100u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_end_time() { + end_time_ = GOOGLE_ULONGLONG(0); + clear_has_end_time(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronAssetIssueContract::end_time() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.end_time) + return end_time_; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_end_time(::google::protobuf::uint64 value) { + set_has_end_time(); + end_time_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAssetIssueContract.end_time) +} + +// optional string description = 10; +inline bool TronSignTx_TronContract_TronAssetIssueContract::has_description() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_has_description() { + _has_bits_[0] |= 0x00000004u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_has_description() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_description() { + description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_description(); +} +inline const ::std::string& TronSignTx_TronContract_TronAssetIssueContract::description() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.description) + return description_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_description(const ::std::string& value) { + set_has_description(); + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAssetIssueContract.description) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronAssetIssueContract::set_description(::std::string&& value) { + set_has_description(); + description_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronAssetIssueContract.description) +} +#endif +inline void TronSignTx_TronContract_TronAssetIssueContract::set_description(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_description(); + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronAssetIssueContract.description) +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_description(const char* value, size_t size) { + set_has_description(); + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronAssetIssueContract.description) +} +inline ::std::string* TronSignTx_TronContract_TronAssetIssueContract::mutable_description() { + set_has_description(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronAssetIssueContract.description) + return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronAssetIssueContract::release_description() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronAssetIssueContract.description) + if (!has_description()) { + return NULL; + } + clear_has_description(); + return description_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_allocated_description(::std::string* description) { + if (description != NULL) { + set_has_description(); + } else { + clear_has_description(); + } + description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronAssetIssueContract.description) +} + +// optional string url = 11; +inline bool TronSignTx_TronContract_TronAssetIssueContract::has_url() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_has_url() { + _has_bits_[0] |= 0x00000008u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_has_url() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TronSignTx_TronContract_TronAssetIssueContract::clear_url() { + url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_url(); +} +inline const ::std::string& TronSignTx_TronContract_TronAssetIssueContract::url() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronAssetIssueContract.url) + return url_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_url(const ::std::string& value) { + set_has_url(); + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronAssetIssueContract.url) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronAssetIssueContract::set_url(::std::string&& value) { + set_has_url(); + url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronAssetIssueContract.url) +} +#endif +inline void TronSignTx_TronContract_TronAssetIssueContract::set_url(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_url(); + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronAssetIssueContract.url) +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_url(const char* value, size_t size) { + set_has_url(); + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronAssetIssueContract.url) +} +inline ::std::string* TronSignTx_TronContract_TronAssetIssueContract::mutable_url() { + set_has_url(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronAssetIssueContract.url) + return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronAssetIssueContract::release_url() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronAssetIssueContract.url) + if (!has_url()) { + return NULL; + } + clear_has_url(); + return url_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronAssetIssueContract::set_allocated_url(::std::string* url) { + if (url != NULL) { + set_has_url(); + } else { + clear_has_url(); + } + url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronAssetIssueContract.url) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronParticipateAssetIssueContract + +// optional bytes to_address = 1; +inline bool TronSignTx_TronContract_TronParticipateAssetIssueContract::has_to_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_has_to_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::clear_has_to_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::clear_to_address() { + to_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_to_address(); +} +inline const ::std::string& TronSignTx_TronContract_TronParticipateAssetIssueContract::to_address() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronParticipateAssetIssueContract.to_address) + return to_address_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_to_address(const ::std::string& value) { + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronParticipateAssetIssueContract.to_address) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_to_address(::std::string&& value) { + set_has_to_address(); + to_address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronParticipateAssetIssueContract.to_address) +} +#endif +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_to_address(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronParticipateAssetIssueContract.to_address) +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_to_address(const void* value, size_t size) { + set_has_to_address(); + to_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronParticipateAssetIssueContract.to_address) +} +inline ::std::string* TronSignTx_TronContract_TronParticipateAssetIssueContract::mutable_to_address() { + set_has_to_address(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronParticipateAssetIssueContract.to_address) + return to_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronParticipateAssetIssueContract::release_to_address() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronParticipateAssetIssueContract.to_address) + if (!has_to_address()) { + return NULL; + } + clear_has_to_address(); + return to_address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_allocated_to_address(::std::string* to_address) { + if (to_address != NULL) { + set_has_to_address(); + } else { + clear_has_to_address(); + } + to_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), to_address); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronParticipateAssetIssueContract.to_address) +} + +// optional string asset_name = 2; +inline bool TronSignTx_TronContract_TronParticipateAssetIssueContract::has_asset_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_has_asset_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::clear_has_asset_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::clear_asset_name() { + asset_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_asset_name(); +} +inline const ::std::string& TronSignTx_TronContract_TronParticipateAssetIssueContract::asset_name() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronParticipateAssetIssueContract.asset_name) + return asset_name_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_asset_name(const ::std::string& value) { + set_has_asset_name(); + asset_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronParticipateAssetIssueContract.asset_name) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_asset_name(::std::string&& value) { + set_has_asset_name(); + asset_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronParticipateAssetIssueContract.asset_name) +} +#endif +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_asset_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_asset_name(); + asset_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronParticipateAssetIssueContract.asset_name) +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_asset_name(const char* value, size_t size) { + set_has_asset_name(); + asset_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronParticipateAssetIssueContract.asset_name) +} +inline ::std::string* TronSignTx_TronContract_TronParticipateAssetIssueContract::mutable_asset_name() { + set_has_asset_name(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronParticipateAssetIssueContract.asset_name) + return asset_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronParticipateAssetIssueContract::release_asset_name() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronParticipateAssetIssueContract.asset_name) + if (!has_asset_name()) { + return NULL; + } + clear_has_asset_name(); + return asset_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_allocated_asset_name(::std::string* asset_name) { + if (asset_name != NULL) { + set_has_asset_name(); + } else { + clear_has_asset_name(); + } + asset_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), asset_name); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronParticipateAssetIssueContract.asset_name) +} + +// optional uint64 amount = 3; +inline bool TronSignTx_TronContract_TronParticipateAssetIssueContract::has_amount() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_has_amount() { + _has_bits_[0] |= 0x00000004u; +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::clear_has_amount() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::clear_amount() { + amount_ = GOOGLE_ULONGLONG(0); + clear_has_amount(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronParticipateAssetIssueContract::amount() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronParticipateAssetIssueContract.amount) + return amount_; +} +inline void TronSignTx_TronContract_TronParticipateAssetIssueContract::set_amount(::google::protobuf::uint64 value) { + set_has_amount(); + amount_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronParticipateAssetIssueContract.amount) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronFreezeBalanceContract + +// optional uint64 frozen_balance = 1; +inline bool TronSignTx_TronContract_TronFreezeBalanceContract::has_frozen_balance() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronFreezeBalanceContract::set_has_frozen_balance() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronFreezeBalanceContract::clear_has_frozen_balance() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronFreezeBalanceContract::clear_frozen_balance() { + frozen_balance_ = GOOGLE_ULONGLONG(0); + clear_has_frozen_balance(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronFreezeBalanceContract::frozen_balance() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronFreezeBalanceContract.frozen_balance) + return frozen_balance_; +} +inline void TronSignTx_TronContract_TronFreezeBalanceContract::set_frozen_balance(::google::protobuf::uint64 value) { + set_has_frozen_balance(); + frozen_balance_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronFreezeBalanceContract.frozen_balance) +} + +// optional uint64 frozen_duration = 2; +inline bool TronSignTx_TronContract_TronFreezeBalanceContract::has_frozen_duration() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx_TronContract_TronFreezeBalanceContract::set_has_frozen_duration() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx_TronContract_TronFreezeBalanceContract::clear_has_frozen_duration() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx_TronContract_TronFreezeBalanceContract::clear_frozen_duration() { + frozen_duration_ = GOOGLE_ULONGLONG(0); + clear_has_frozen_duration(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronFreezeBalanceContract::frozen_duration() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronFreezeBalanceContract.frozen_duration) + return frozen_duration_; +} +inline void TronSignTx_TronContract_TronFreezeBalanceContract::set_frozen_duration(::google::protobuf::uint64 value) { + set_has_frozen_duration(); + frozen_duration_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronFreezeBalanceContract.frozen_duration) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronUnfreezeBalanceContract + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronUnfreezeAssetContract + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronWithdrawBalanceContract + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronUpdateAssetContract + +// optional string description = 1; +inline bool TronSignTx_TronContract_TronUpdateAssetContract::has_description() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_has_description() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::clear_has_description() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::clear_description() { + description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_description(); +} +inline const ::std::string& TronSignTx_TronContract_TronUpdateAssetContract::description() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronUpdateAssetContract.description) + return description_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_description(const ::std::string& value) { + set_has_description(); + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronUpdateAssetContract.description) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_description(::std::string&& value) { + set_has_description(); + description_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronUpdateAssetContract.description) +} +#endif +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_description(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_description(); + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronUpdateAssetContract.description) +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_description(const char* value, size_t size) { + set_has_description(); + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronUpdateAssetContract.description) +} +inline ::std::string* TronSignTx_TronContract_TronUpdateAssetContract::mutable_description() { + set_has_description(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronUpdateAssetContract.description) + return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronUpdateAssetContract::release_description() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronUpdateAssetContract.description) + if (!has_description()) { + return NULL; + } + clear_has_description(); + return description_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_allocated_description(::std::string* description) { + if (description != NULL) { + set_has_description(); + } else { + clear_has_description(); + } + description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronUpdateAssetContract.description) +} + +// optional string url = 2; +inline bool TronSignTx_TronContract_TronUpdateAssetContract::has_url() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_has_url() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::clear_has_url() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::clear_url() { + url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_url(); +} +inline const ::std::string& TronSignTx_TronContract_TronUpdateAssetContract::url() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronUpdateAssetContract.url) + return url_.GetNoArena(); +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_url(const ::std::string& value) { + set_has_url(); + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronUpdateAssetContract.url) +} +#if LANG_CXX11 +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_url(::std::string&& value) { + set_has_url(); + url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.TronContract.TronUpdateAssetContract.url) +} +#endif +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_url(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_url(); + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.TronContract.TronUpdateAssetContract.url) +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_url(const char* value, size_t size) { + set_has_url(); + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.TronContract.TronUpdateAssetContract.url) +} +inline ::std::string* TronSignTx_TronContract_TronUpdateAssetContract::mutable_url() { + set_has_url(); + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronUpdateAssetContract.url) + return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx_TronContract_TronUpdateAssetContract::release_url() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.TronUpdateAssetContract.url) + if (!has_url()) { + return NULL; + } + clear_has_url(); + return url_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx_TronContract_TronUpdateAssetContract::set_allocated_url(::std::string* url) { + if (url != NULL) { + set_has_url(); + } else { + clear_has_url(); + } + url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.TronUpdateAssetContract.url) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters + +// optional uint64 key = 1; +inline bool TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::has_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::set_has_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::clear_has_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::clear_key() { + key_ = GOOGLE_ULONGLONG(0); + clear_has_key(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::key() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters.key) + return key_; +} +inline void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::set_key(::google::protobuf::uint64 value) { + set_has_key(); + key_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters.key) +} + +// optional uint64 value = 2; +inline bool TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::has_value() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::set_has_value() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::clear_has_value() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::clear_value() { + value_ = GOOGLE_ULONGLONG(0); + clear_has_value(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::value() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters.value) + return value_; +} +inline void TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters::set_value(::google::protobuf::uint64 value) { + set_has_value(); + value_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters.value) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronProposalCreateContract + +// repeated .TronSignTx.TronContract.TronProposalCreateContract.TronProposalParameters parameters = 1; +inline int TronSignTx_TronContract_TronProposalCreateContract::parameters_size() const { + return parameters_.size(); +} +inline void TronSignTx_TronContract_TronProposalCreateContract::clear_parameters() { + parameters_.Clear(); +} +inline ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* TronSignTx_TronContract_TronProposalCreateContract::mutable_parameters(int index) { + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.TronProposalCreateContract.parameters) + return parameters_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters >* +TronSignTx_TronContract_TronProposalCreateContract::mutable_parameters() { + // @@protoc_insertion_point(field_mutable_list:TronSignTx.TronContract.TronProposalCreateContract.parameters) + return ¶meters_; +} +inline const ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters& TronSignTx_TronContract_TronProposalCreateContract::parameters(int index) const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronProposalCreateContract.parameters) + return parameters_.Get(index); +} +inline ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters* TronSignTx_TronContract_TronProposalCreateContract::add_parameters() { + // @@protoc_insertion_point(field_add:TronSignTx.TronContract.TronProposalCreateContract.parameters) + return parameters_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::TronSignTx_TronContract_TronProposalCreateContract_TronProposalParameters >& +TronSignTx_TronContract_TronProposalCreateContract::parameters() const { + // @@protoc_insertion_point(field_list:TronSignTx.TronContract.TronProposalCreateContract.parameters) + return parameters_; +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronProposalApproveContract + +// optional uint64 proposal_id = 1; +inline bool TronSignTx_TronContract_TronProposalApproveContract::has_proposal_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronProposalApproveContract::set_has_proposal_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronProposalApproveContract::clear_has_proposal_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronProposalApproveContract::clear_proposal_id() { + proposal_id_ = GOOGLE_ULONGLONG(0); + clear_has_proposal_id(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronProposalApproveContract::proposal_id() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronProposalApproveContract.proposal_id) + return proposal_id_; +} +inline void TronSignTx_TronContract_TronProposalApproveContract::set_proposal_id(::google::protobuf::uint64 value) { + set_has_proposal_id(); + proposal_id_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronProposalApproveContract.proposal_id) +} + +// optional bool is_add_approval = 2; +inline bool TronSignTx_TronContract_TronProposalApproveContract::has_is_add_approval() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx_TronContract_TronProposalApproveContract::set_has_is_add_approval() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx_TronContract_TronProposalApproveContract::clear_has_is_add_approval() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx_TronContract_TronProposalApproveContract::clear_is_add_approval() { + is_add_approval_ = false; + clear_has_is_add_approval(); +} +inline bool TronSignTx_TronContract_TronProposalApproveContract::is_add_approval() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronProposalApproveContract.is_add_approval) + return is_add_approval_; +} +inline void TronSignTx_TronContract_TronProposalApproveContract::set_is_add_approval(bool value) { + set_has_is_add_approval(); + is_add_approval_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronProposalApproveContract.is_add_approval) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract_TronProposalDeleteContract + +// optional uint64 proposal_id = 1; +inline bool TronSignTx_TronContract_TronProposalDeleteContract::has_proposal_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract_TronProposalDeleteContract::set_has_proposal_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract_TronProposalDeleteContract::clear_has_proposal_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract_TronProposalDeleteContract::clear_proposal_id() { + proposal_id_ = GOOGLE_ULONGLONG(0); + clear_has_proposal_id(); +} +inline ::google::protobuf::uint64 TronSignTx_TronContract_TronProposalDeleteContract::proposal_id() const { + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.TronProposalDeleteContract.proposal_id) + return proposal_id_; +} +inline void TronSignTx_TronContract_TronProposalDeleteContract::set_proposal_id(::google::protobuf::uint64 value) { + set_has_proposal_id(); + proposal_id_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.TronContract.TronProposalDeleteContract.proposal_id) +} + +// ------------------------------------------------------------------- + +// TronSignTx_TronContract + +// optional .TronSignTx.TronContract.TronTransferContract transfer_contract = 1; +inline bool TronSignTx_TronContract::has_transfer_contract() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx_TronContract::set_has_transfer_contract() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx_TronContract::clear_has_transfer_contract() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx_TronContract::clear_transfer_contract() { + if (transfer_contract_ != NULL) transfer_contract_->Clear(); + clear_has_transfer_contract(); +} +inline const ::TronSignTx_TronContract_TronTransferContract& TronSignTx_TronContract::_internal_transfer_contract() const { + return *transfer_contract_; +} +inline const ::TronSignTx_TronContract_TronTransferContract& TronSignTx_TronContract::transfer_contract() const { + const ::TronSignTx_TronContract_TronTransferContract* p = transfer_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.transfer_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronTransferContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronTransferContract* TronSignTx_TronContract::release_transfer_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.transfer_contract) + clear_has_transfer_contract(); + ::TronSignTx_TronContract_TronTransferContract* temp = transfer_contract_; + transfer_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronTransferContract* TronSignTx_TronContract::mutable_transfer_contract() { + set_has_transfer_contract(); + if (transfer_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronTransferContract>(GetArenaNoVirtual()); + transfer_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.transfer_contract) + return transfer_contract_; +} +inline void TronSignTx_TronContract::set_allocated_transfer_contract(::TronSignTx_TronContract_TronTransferContract* transfer_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transfer_contract_; + } + if (transfer_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transfer_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transfer_contract, submessage_arena); + } + set_has_transfer_contract(); + } else { + clear_has_transfer_contract(); + } + transfer_contract_ = transfer_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.transfer_contract) +} + +// optional .TronSignTx.TronContract.TronTransferAssetContract transfer_asset_contract = 2; +inline bool TronSignTx_TronContract::has_transfer_asset_contract() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx_TronContract::set_has_transfer_asset_contract() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx_TronContract::clear_has_transfer_asset_contract() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx_TronContract::clear_transfer_asset_contract() { + if (transfer_asset_contract_ != NULL) transfer_asset_contract_->Clear(); + clear_has_transfer_asset_contract(); +} +inline const ::TronSignTx_TronContract_TronTransferAssetContract& TronSignTx_TronContract::_internal_transfer_asset_contract() const { + return *transfer_asset_contract_; +} +inline const ::TronSignTx_TronContract_TronTransferAssetContract& TronSignTx_TronContract::transfer_asset_contract() const { + const ::TronSignTx_TronContract_TronTransferAssetContract* p = transfer_asset_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.transfer_asset_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronTransferAssetContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronTransferAssetContract* TronSignTx_TronContract::release_transfer_asset_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.transfer_asset_contract) + clear_has_transfer_asset_contract(); + ::TronSignTx_TronContract_TronTransferAssetContract* temp = transfer_asset_contract_; + transfer_asset_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronTransferAssetContract* TronSignTx_TronContract::mutable_transfer_asset_contract() { + set_has_transfer_asset_contract(); + if (transfer_asset_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronTransferAssetContract>(GetArenaNoVirtual()); + transfer_asset_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.transfer_asset_contract) + return transfer_asset_contract_; +} +inline void TronSignTx_TronContract::set_allocated_transfer_asset_contract(::TronSignTx_TronContract_TronTransferAssetContract* transfer_asset_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transfer_asset_contract_; + } + if (transfer_asset_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transfer_asset_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transfer_asset_contract, submessage_arena); + } + set_has_transfer_asset_contract(); + } else { + clear_has_transfer_asset_contract(); + } + transfer_asset_contract_ = transfer_asset_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.transfer_asset_contract) +} + +// optional .TronSignTx.TronContract.TronVoteWitnessContract vote_witness_contract = 4; +inline bool TronSignTx_TronContract::has_vote_witness_contract() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TronSignTx_TronContract::set_has_vote_witness_contract() { + _has_bits_[0] |= 0x00000004u; +} +inline void TronSignTx_TronContract::clear_has_vote_witness_contract() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TronSignTx_TronContract::clear_vote_witness_contract() { + if (vote_witness_contract_ != NULL) vote_witness_contract_->Clear(); + clear_has_vote_witness_contract(); +} +inline const ::TronSignTx_TronContract_TronVoteWitnessContract& TronSignTx_TronContract::_internal_vote_witness_contract() const { + return *vote_witness_contract_; +} +inline const ::TronSignTx_TronContract_TronVoteWitnessContract& TronSignTx_TronContract::vote_witness_contract() const { + const ::TronSignTx_TronContract_TronVoteWitnessContract* p = vote_witness_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.vote_witness_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronVoteWitnessContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronVoteWitnessContract* TronSignTx_TronContract::release_vote_witness_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.vote_witness_contract) + clear_has_vote_witness_contract(); + ::TronSignTx_TronContract_TronVoteWitnessContract* temp = vote_witness_contract_; + vote_witness_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronVoteWitnessContract* TronSignTx_TronContract::mutable_vote_witness_contract() { + set_has_vote_witness_contract(); + if (vote_witness_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronVoteWitnessContract>(GetArenaNoVirtual()); + vote_witness_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.vote_witness_contract) + return vote_witness_contract_; +} +inline void TronSignTx_TronContract::set_allocated_vote_witness_contract(::TronSignTx_TronContract_TronVoteWitnessContract* vote_witness_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete vote_witness_contract_; + } + if (vote_witness_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + vote_witness_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, vote_witness_contract, submessage_arena); + } + set_has_vote_witness_contract(); + } else { + clear_has_vote_witness_contract(); + } + vote_witness_contract_ = vote_witness_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.vote_witness_contract) +} + +// optional .TronSignTx.TronContract.TronWitnessCreateContract witness_create_contract = 5; +inline bool TronSignTx_TronContract::has_witness_create_contract() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TronSignTx_TronContract::set_has_witness_create_contract() { + _has_bits_[0] |= 0x00000008u; +} +inline void TronSignTx_TronContract::clear_has_witness_create_contract() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TronSignTx_TronContract::clear_witness_create_contract() { + if (witness_create_contract_ != NULL) witness_create_contract_->Clear(); + clear_has_witness_create_contract(); +} +inline const ::TronSignTx_TronContract_TronWitnessCreateContract& TronSignTx_TronContract::_internal_witness_create_contract() const { + return *witness_create_contract_; +} +inline const ::TronSignTx_TronContract_TronWitnessCreateContract& TronSignTx_TronContract::witness_create_contract() const { + const ::TronSignTx_TronContract_TronWitnessCreateContract* p = witness_create_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.witness_create_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronWitnessCreateContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronWitnessCreateContract* TronSignTx_TronContract::release_witness_create_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.witness_create_contract) + clear_has_witness_create_contract(); + ::TronSignTx_TronContract_TronWitnessCreateContract* temp = witness_create_contract_; + witness_create_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronWitnessCreateContract* TronSignTx_TronContract::mutable_witness_create_contract() { + set_has_witness_create_contract(); + if (witness_create_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronWitnessCreateContract>(GetArenaNoVirtual()); + witness_create_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.witness_create_contract) + return witness_create_contract_; +} +inline void TronSignTx_TronContract::set_allocated_witness_create_contract(::TronSignTx_TronContract_TronWitnessCreateContract* witness_create_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete witness_create_contract_; + } + if (witness_create_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + witness_create_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, witness_create_contract, submessage_arena); + } + set_has_witness_create_contract(); + } else { + clear_has_witness_create_contract(); + } + witness_create_contract_ = witness_create_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.witness_create_contract) +} + +// optional .TronSignTx.TronContract.TronAssetIssueContract asset_issue_contract = 6; +inline bool TronSignTx_TronContract::has_asset_issue_contract() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TronSignTx_TronContract::set_has_asset_issue_contract() { + _has_bits_[0] |= 0x00000010u; +} +inline void TronSignTx_TronContract::clear_has_asset_issue_contract() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TronSignTx_TronContract::clear_asset_issue_contract() { + if (asset_issue_contract_ != NULL) asset_issue_contract_->Clear(); + clear_has_asset_issue_contract(); +} +inline const ::TronSignTx_TronContract_TronAssetIssueContract& TronSignTx_TronContract::_internal_asset_issue_contract() const { + return *asset_issue_contract_; +} +inline const ::TronSignTx_TronContract_TronAssetIssueContract& TronSignTx_TronContract::asset_issue_contract() const { + const ::TronSignTx_TronContract_TronAssetIssueContract* p = asset_issue_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.asset_issue_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronAssetIssueContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronAssetIssueContract* TronSignTx_TronContract::release_asset_issue_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.asset_issue_contract) + clear_has_asset_issue_contract(); + ::TronSignTx_TronContract_TronAssetIssueContract* temp = asset_issue_contract_; + asset_issue_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronAssetIssueContract* TronSignTx_TronContract::mutable_asset_issue_contract() { + set_has_asset_issue_contract(); + if (asset_issue_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronAssetIssueContract>(GetArenaNoVirtual()); + asset_issue_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.asset_issue_contract) + return asset_issue_contract_; +} +inline void TronSignTx_TronContract::set_allocated_asset_issue_contract(::TronSignTx_TronContract_TronAssetIssueContract* asset_issue_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete asset_issue_contract_; + } + if (asset_issue_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + asset_issue_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, asset_issue_contract, submessage_arena); + } + set_has_asset_issue_contract(); + } else { + clear_has_asset_issue_contract(); + } + asset_issue_contract_ = asset_issue_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.asset_issue_contract) +} + +// optional .TronSignTx.TronContract.TronWitnessUpdateContract witness_update_contract = 8; +inline bool TronSignTx_TronContract::has_witness_update_contract() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TronSignTx_TronContract::set_has_witness_update_contract() { + _has_bits_[0] |= 0x00000020u; +} +inline void TronSignTx_TronContract::clear_has_witness_update_contract() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TronSignTx_TronContract::clear_witness_update_contract() { + if (witness_update_contract_ != NULL) witness_update_contract_->Clear(); + clear_has_witness_update_contract(); +} +inline const ::TronSignTx_TronContract_TronWitnessUpdateContract& TronSignTx_TronContract::_internal_witness_update_contract() const { + return *witness_update_contract_; +} +inline const ::TronSignTx_TronContract_TronWitnessUpdateContract& TronSignTx_TronContract::witness_update_contract() const { + const ::TronSignTx_TronContract_TronWitnessUpdateContract* p = witness_update_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.witness_update_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronWitnessUpdateContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronWitnessUpdateContract* TronSignTx_TronContract::release_witness_update_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.witness_update_contract) + clear_has_witness_update_contract(); + ::TronSignTx_TronContract_TronWitnessUpdateContract* temp = witness_update_contract_; + witness_update_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronWitnessUpdateContract* TronSignTx_TronContract::mutable_witness_update_contract() { + set_has_witness_update_contract(); + if (witness_update_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronWitnessUpdateContract>(GetArenaNoVirtual()); + witness_update_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.witness_update_contract) + return witness_update_contract_; +} +inline void TronSignTx_TronContract::set_allocated_witness_update_contract(::TronSignTx_TronContract_TronWitnessUpdateContract* witness_update_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete witness_update_contract_; + } + if (witness_update_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + witness_update_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, witness_update_contract, submessage_arena); + } + set_has_witness_update_contract(); + } else { + clear_has_witness_update_contract(); + } + witness_update_contract_ = witness_update_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.witness_update_contract) +} + +// optional .TronSignTx.TronContract.TronParticipateAssetIssueContract participate_asset_issue_contract = 9; +inline bool TronSignTx_TronContract::has_participate_asset_issue_contract() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void TronSignTx_TronContract::set_has_participate_asset_issue_contract() { + _has_bits_[0] |= 0x00000040u; +} +inline void TronSignTx_TronContract::clear_has_participate_asset_issue_contract() { + _has_bits_[0] &= ~0x00000040u; +} +inline void TronSignTx_TronContract::clear_participate_asset_issue_contract() { + if (participate_asset_issue_contract_ != NULL) participate_asset_issue_contract_->Clear(); + clear_has_participate_asset_issue_contract(); +} +inline const ::TronSignTx_TronContract_TronParticipateAssetIssueContract& TronSignTx_TronContract::_internal_participate_asset_issue_contract() const { + return *participate_asset_issue_contract_; +} +inline const ::TronSignTx_TronContract_TronParticipateAssetIssueContract& TronSignTx_TronContract::participate_asset_issue_contract() const { + const ::TronSignTx_TronContract_TronParticipateAssetIssueContract* p = participate_asset_issue_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.participate_asset_issue_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronParticipateAssetIssueContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronParticipateAssetIssueContract* TronSignTx_TronContract::release_participate_asset_issue_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.participate_asset_issue_contract) + clear_has_participate_asset_issue_contract(); + ::TronSignTx_TronContract_TronParticipateAssetIssueContract* temp = participate_asset_issue_contract_; + participate_asset_issue_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronParticipateAssetIssueContract* TronSignTx_TronContract::mutable_participate_asset_issue_contract() { + set_has_participate_asset_issue_contract(); + if (participate_asset_issue_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronParticipateAssetIssueContract>(GetArenaNoVirtual()); + participate_asset_issue_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.participate_asset_issue_contract) + return participate_asset_issue_contract_; +} +inline void TronSignTx_TronContract::set_allocated_participate_asset_issue_contract(::TronSignTx_TronContract_TronParticipateAssetIssueContract* participate_asset_issue_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete participate_asset_issue_contract_; + } + if (participate_asset_issue_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + participate_asset_issue_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, participate_asset_issue_contract, submessage_arena); + } + set_has_participate_asset_issue_contract(); + } else { + clear_has_participate_asset_issue_contract(); + } + participate_asset_issue_contract_ = participate_asset_issue_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.participate_asset_issue_contract) +} + +// optional .TronSignTx.TronContract.TronAccountUpdateContract account_update_contract = 10; +inline bool TronSignTx_TronContract::has_account_update_contract() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void TronSignTx_TronContract::set_has_account_update_contract() { + _has_bits_[0] |= 0x00000080u; +} +inline void TronSignTx_TronContract::clear_has_account_update_contract() { + _has_bits_[0] &= ~0x00000080u; +} +inline void TronSignTx_TronContract::clear_account_update_contract() { + if (account_update_contract_ != NULL) account_update_contract_->Clear(); + clear_has_account_update_contract(); +} +inline const ::TronSignTx_TronContract_TronAccountUpdateContract& TronSignTx_TronContract::_internal_account_update_contract() const { + return *account_update_contract_; +} +inline const ::TronSignTx_TronContract_TronAccountUpdateContract& TronSignTx_TronContract::account_update_contract() const { + const ::TronSignTx_TronContract_TronAccountUpdateContract* p = account_update_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.account_update_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronAccountUpdateContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronAccountUpdateContract* TronSignTx_TronContract::release_account_update_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.account_update_contract) + clear_has_account_update_contract(); + ::TronSignTx_TronContract_TronAccountUpdateContract* temp = account_update_contract_; + account_update_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronAccountUpdateContract* TronSignTx_TronContract::mutable_account_update_contract() { + set_has_account_update_contract(); + if (account_update_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronAccountUpdateContract>(GetArenaNoVirtual()); + account_update_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.account_update_contract) + return account_update_contract_; +} +inline void TronSignTx_TronContract::set_allocated_account_update_contract(::TronSignTx_TronContract_TronAccountUpdateContract* account_update_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete account_update_contract_; + } + if (account_update_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + account_update_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, account_update_contract, submessage_arena); + } + set_has_account_update_contract(); + } else { + clear_has_account_update_contract(); + } + account_update_contract_ = account_update_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.account_update_contract) +} + +// optional .TronSignTx.TronContract.TronFreezeBalanceContract freeze_balance_contract = 11; +inline bool TronSignTx_TronContract::has_freeze_balance_contract() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void TronSignTx_TronContract::set_has_freeze_balance_contract() { + _has_bits_[0] |= 0x00000100u; +} +inline void TronSignTx_TronContract::clear_has_freeze_balance_contract() { + _has_bits_[0] &= ~0x00000100u; +} +inline void TronSignTx_TronContract::clear_freeze_balance_contract() { + if (freeze_balance_contract_ != NULL) freeze_balance_contract_->Clear(); + clear_has_freeze_balance_contract(); +} +inline const ::TronSignTx_TronContract_TronFreezeBalanceContract& TronSignTx_TronContract::_internal_freeze_balance_contract() const { + return *freeze_balance_contract_; +} +inline const ::TronSignTx_TronContract_TronFreezeBalanceContract& TronSignTx_TronContract::freeze_balance_contract() const { + const ::TronSignTx_TronContract_TronFreezeBalanceContract* p = freeze_balance_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.freeze_balance_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronFreezeBalanceContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronFreezeBalanceContract* TronSignTx_TronContract::release_freeze_balance_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.freeze_balance_contract) + clear_has_freeze_balance_contract(); + ::TronSignTx_TronContract_TronFreezeBalanceContract* temp = freeze_balance_contract_; + freeze_balance_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronFreezeBalanceContract* TronSignTx_TronContract::mutable_freeze_balance_contract() { + set_has_freeze_balance_contract(); + if (freeze_balance_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronFreezeBalanceContract>(GetArenaNoVirtual()); + freeze_balance_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.freeze_balance_contract) + return freeze_balance_contract_; +} +inline void TronSignTx_TronContract::set_allocated_freeze_balance_contract(::TronSignTx_TronContract_TronFreezeBalanceContract* freeze_balance_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete freeze_balance_contract_; + } + if (freeze_balance_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + freeze_balance_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, freeze_balance_contract, submessage_arena); + } + set_has_freeze_balance_contract(); + } else { + clear_has_freeze_balance_contract(); + } + freeze_balance_contract_ = freeze_balance_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.freeze_balance_contract) +} + +// optional .TronSignTx.TronContract.TronUnfreezeBalanceContract unfreeze_balance_contract = 12; +inline bool TronSignTx_TronContract::has_unfreeze_balance_contract() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void TronSignTx_TronContract::set_has_unfreeze_balance_contract() { + _has_bits_[0] |= 0x00000200u; +} +inline void TronSignTx_TronContract::clear_has_unfreeze_balance_contract() { + _has_bits_[0] &= ~0x00000200u; +} +inline void TronSignTx_TronContract::clear_unfreeze_balance_contract() { + if (unfreeze_balance_contract_ != NULL) unfreeze_balance_contract_->Clear(); + clear_has_unfreeze_balance_contract(); +} +inline const ::TronSignTx_TronContract_TronUnfreezeBalanceContract& TronSignTx_TronContract::_internal_unfreeze_balance_contract() const { + return *unfreeze_balance_contract_; +} +inline const ::TronSignTx_TronContract_TronUnfreezeBalanceContract& TronSignTx_TronContract::unfreeze_balance_contract() const { + const ::TronSignTx_TronContract_TronUnfreezeBalanceContract* p = unfreeze_balance_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.unfreeze_balance_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronUnfreezeBalanceContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronUnfreezeBalanceContract* TronSignTx_TronContract::release_unfreeze_balance_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.unfreeze_balance_contract) + clear_has_unfreeze_balance_contract(); + ::TronSignTx_TronContract_TronUnfreezeBalanceContract* temp = unfreeze_balance_contract_; + unfreeze_balance_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronUnfreezeBalanceContract* TronSignTx_TronContract::mutable_unfreeze_balance_contract() { + set_has_unfreeze_balance_contract(); + if (unfreeze_balance_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronUnfreezeBalanceContract>(GetArenaNoVirtual()); + unfreeze_balance_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.unfreeze_balance_contract) + return unfreeze_balance_contract_; +} +inline void TronSignTx_TronContract::set_allocated_unfreeze_balance_contract(::TronSignTx_TronContract_TronUnfreezeBalanceContract* unfreeze_balance_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete unfreeze_balance_contract_; + } + if (unfreeze_balance_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + unfreeze_balance_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, unfreeze_balance_contract, submessage_arena); + } + set_has_unfreeze_balance_contract(); + } else { + clear_has_unfreeze_balance_contract(); + } + unfreeze_balance_contract_ = unfreeze_balance_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.unfreeze_balance_contract) +} + +// optional .TronSignTx.TronContract.TronWithdrawBalanceContract withdraw_balance_contract = 13; +inline bool TronSignTx_TronContract::has_withdraw_balance_contract() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void TronSignTx_TronContract::set_has_withdraw_balance_contract() { + _has_bits_[0] |= 0x00000400u; +} +inline void TronSignTx_TronContract::clear_has_withdraw_balance_contract() { + _has_bits_[0] &= ~0x00000400u; +} +inline void TronSignTx_TronContract::clear_withdraw_balance_contract() { + if (withdraw_balance_contract_ != NULL) withdraw_balance_contract_->Clear(); + clear_has_withdraw_balance_contract(); +} +inline const ::TronSignTx_TronContract_TronWithdrawBalanceContract& TronSignTx_TronContract::_internal_withdraw_balance_contract() const { + return *withdraw_balance_contract_; +} +inline const ::TronSignTx_TronContract_TronWithdrawBalanceContract& TronSignTx_TronContract::withdraw_balance_contract() const { + const ::TronSignTx_TronContract_TronWithdrawBalanceContract* p = withdraw_balance_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.withdraw_balance_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronWithdrawBalanceContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronWithdrawBalanceContract* TronSignTx_TronContract::release_withdraw_balance_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.withdraw_balance_contract) + clear_has_withdraw_balance_contract(); + ::TronSignTx_TronContract_TronWithdrawBalanceContract* temp = withdraw_balance_contract_; + withdraw_balance_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronWithdrawBalanceContract* TronSignTx_TronContract::mutable_withdraw_balance_contract() { + set_has_withdraw_balance_contract(); + if (withdraw_balance_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronWithdrawBalanceContract>(GetArenaNoVirtual()); + withdraw_balance_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.withdraw_balance_contract) + return withdraw_balance_contract_; +} +inline void TronSignTx_TronContract::set_allocated_withdraw_balance_contract(::TronSignTx_TronContract_TronWithdrawBalanceContract* withdraw_balance_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete withdraw_balance_contract_; + } + if (withdraw_balance_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + withdraw_balance_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, withdraw_balance_contract, submessage_arena); + } + set_has_withdraw_balance_contract(); + } else { + clear_has_withdraw_balance_contract(); + } + withdraw_balance_contract_ = withdraw_balance_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.withdraw_balance_contract) +} + +// optional .TronSignTx.TronContract.TronUnfreezeAssetContract unfreeze_asset_contract = 14; +inline bool TronSignTx_TronContract::has_unfreeze_asset_contract() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void TronSignTx_TronContract::set_has_unfreeze_asset_contract() { + _has_bits_[0] |= 0x00000800u; +} +inline void TronSignTx_TronContract::clear_has_unfreeze_asset_contract() { + _has_bits_[0] &= ~0x00000800u; +} +inline void TronSignTx_TronContract::clear_unfreeze_asset_contract() { + if (unfreeze_asset_contract_ != NULL) unfreeze_asset_contract_->Clear(); + clear_has_unfreeze_asset_contract(); +} +inline const ::TronSignTx_TronContract_TronUnfreezeAssetContract& TronSignTx_TronContract::_internal_unfreeze_asset_contract() const { + return *unfreeze_asset_contract_; +} +inline const ::TronSignTx_TronContract_TronUnfreezeAssetContract& TronSignTx_TronContract::unfreeze_asset_contract() const { + const ::TronSignTx_TronContract_TronUnfreezeAssetContract* p = unfreeze_asset_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.unfreeze_asset_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronUnfreezeAssetContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronUnfreezeAssetContract* TronSignTx_TronContract::release_unfreeze_asset_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.unfreeze_asset_contract) + clear_has_unfreeze_asset_contract(); + ::TronSignTx_TronContract_TronUnfreezeAssetContract* temp = unfreeze_asset_contract_; + unfreeze_asset_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronUnfreezeAssetContract* TronSignTx_TronContract::mutable_unfreeze_asset_contract() { + set_has_unfreeze_asset_contract(); + if (unfreeze_asset_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronUnfreezeAssetContract>(GetArenaNoVirtual()); + unfreeze_asset_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.unfreeze_asset_contract) + return unfreeze_asset_contract_; +} +inline void TronSignTx_TronContract::set_allocated_unfreeze_asset_contract(::TronSignTx_TronContract_TronUnfreezeAssetContract* unfreeze_asset_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete unfreeze_asset_contract_; + } + if (unfreeze_asset_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + unfreeze_asset_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, unfreeze_asset_contract, submessage_arena); + } + set_has_unfreeze_asset_contract(); + } else { + clear_has_unfreeze_asset_contract(); + } + unfreeze_asset_contract_ = unfreeze_asset_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.unfreeze_asset_contract) +} + +// optional .TronSignTx.TronContract.TronUpdateAssetContract update_asset_contract = 15; +inline bool TronSignTx_TronContract::has_update_asset_contract() const { + return (_has_bits_[0] & 0x00001000u) != 0; +} +inline void TronSignTx_TronContract::set_has_update_asset_contract() { + _has_bits_[0] |= 0x00001000u; +} +inline void TronSignTx_TronContract::clear_has_update_asset_contract() { + _has_bits_[0] &= ~0x00001000u; +} +inline void TronSignTx_TronContract::clear_update_asset_contract() { + if (update_asset_contract_ != NULL) update_asset_contract_->Clear(); + clear_has_update_asset_contract(); +} +inline const ::TronSignTx_TronContract_TronUpdateAssetContract& TronSignTx_TronContract::_internal_update_asset_contract() const { + return *update_asset_contract_; +} +inline const ::TronSignTx_TronContract_TronUpdateAssetContract& TronSignTx_TronContract::update_asset_contract() const { + const ::TronSignTx_TronContract_TronUpdateAssetContract* p = update_asset_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.update_asset_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronUpdateAssetContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronUpdateAssetContract* TronSignTx_TronContract::release_update_asset_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.update_asset_contract) + clear_has_update_asset_contract(); + ::TronSignTx_TronContract_TronUpdateAssetContract* temp = update_asset_contract_; + update_asset_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronUpdateAssetContract* TronSignTx_TronContract::mutable_update_asset_contract() { + set_has_update_asset_contract(); + if (update_asset_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronUpdateAssetContract>(GetArenaNoVirtual()); + update_asset_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.update_asset_contract) + return update_asset_contract_; +} +inline void TronSignTx_TronContract::set_allocated_update_asset_contract(::TronSignTx_TronContract_TronUpdateAssetContract* update_asset_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete update_asset_contract_; + } + if (update_asset_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + update_asset_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, update_asset_contract, submessage_arena); + } + set_has_update_asset_contract(); + } else { + clear_has_update_asset_contract(); + } + update_asset_contract_ = update_asset_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.update_asset_contract) +} + +// optional .TronSignTx.TronContract.TronProposalCreateContract proposal_create_contract = 16; +inline bool TronSignTx_TronContract::has_proposal_create_contract() const { + return (_has_bits_[0] & 0x00002000u) != 0; +} +inline void TronSignTx_TronContract::set_has_proposal_create_contract() { + _has_bits_[0] |= 0x00002000u; +} +inline void TronSignTx_TronContract::clear_has_proposal_create_contract() { + _has_bits_[0] &= ~0x00002000u; +} +inline void TronSignTx_TronContract::clear_proposal_create_contract() { + if (proposal_create_contract_ != NULL) proposal_create_contract_->Clear(); + clear_has_proposal_create_contract(); +} +inline const ::TronSignTx_TronContract_TronProposalCreateContract& TronSignTx_TronContract::_internal_proposal_create_contract() const { + return *proposal_create_contract_; +} +inline const ::TronSignTx_TronContract_TronProposalCreateContract& TronSignTx_TronContract::proposal_create_contract() const { + const ::TronSignTx_TronContract_TronProposalCreateContract* p = proposal_create_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.proposal_create_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronProposalCreateContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronProposalCreateContract* TronSignTx_TronContract::release_proposal_create_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.proposal_create_contract) + clear_has_proposal_create_contract(); + ::TronSignTx_TronContract_TronProposalCreateContract* temp = proposal_create_contract_; + proposal_create_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronProposalCreateContract* TronSignTx_TronContract::mutable_proposal_create_contract() { + set_has_proposal_create_contract(); + if (proposal_create_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronProposalCreateContract>(GetArenaNoVirtual()); + proposal_create_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.proposal_create_contract) + return proposal_create_contract_; +} +inline void TronSignTx_TronContract::set_allocated_proposal_create_contract(::TronSignTx_TronContract_TronProposalCreateContract* proposal_create_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete proposal_create_contract_; + } + if (proposal_create_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + proposal_create_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, proposal_create_contract, submessage_arena); + } + set_has_proposal_create_contract(); + } else { + clear_has_proposal_create_contract(); + } + proposal_create_contract_ = proposal_create_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.proposal_create_contract) +} + +// optional .TronSignTx.TronContract.TronProposalApproveContract proposal_approve_contract = 17; +inline bool TronSignTx_TronContract::has_proposal_approve_contract() const { + return (_has_bits_[0] & 0x00004000u) != 0; +} +inline void TronSignTx_TronContract::set_has_proposal_approve_contract() { + _has_bits_[0] |= 0x00004000u; +} +inline void TronSignTx_TronContract::clear_has_proposal_approve_contract() { + _has_bits_[0] &= ~0x00004000u; +} +inline void TronSignTx_TronContract::clear_proposal_approve_contract() { + if (proposal_approve_contract_ != NULL) proposal_approve_contract_->Clear(); + clear_has_proposal_approve_contract(); +} +inline const ::TronSignTx_TronContract_TronProposalApproveContract& TronSignTx_TronContract::_internal_proposal_approve_contract() const { + return *proposal_approve_contract_; +} +inline const ::TronSignTx_TronContract_TronProposalApproveContract& TronSignTx_TronContract::proposal_approve_contract() const { + const ::TronSignTx_TronContract_TronProposalApproveContract* p = proposal_approve_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.proposal_approve_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronProposalApproveContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronProposalApproveContract* TronSignTx_TronContract::release_proposal_approve_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.proposal_approve_contract) + clear_has_proposal_approve_contract(); + ::TronSignTx_TronContract_TronProposalApproveContract* temp = proposal_approve_contract_; + proposal_approve_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronProposalApproveContract* TronSignTx_TronContract::mutable_proposal_approve_contract() { + set_has_proposal_approve_contract(); + if (proposal_approve_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronProposalApproveContract>(GetArenaNoVirtual()); + proposal_approve_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.proposal_approve_contract) + return proposal_approve_contract_; +} +inline void TronSignTx_TronContract::set_allocated_proposal_approve_contract(::TronSignTx_TronContract_TronProposalApproveContract* proposal_approve_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete proposal_approve_contract_; + } + if (proposal_approve_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + proposal_approve_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, proposal_approve_contract, submessage_arena); + } + set_has_proposal_approve_contract(); + } else { + clear_has_proposal_approve_contract(); + } + proposal_approve_contract_ = proposal_approve_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.proposal_approve_contract) +} + +// optional .TronSignTx.TronContract.TronProposalDeleteContract proposal_delete_contract = 18; +inline bool TronSignTx_TronContract::has_proposal_delete_contract() const { + return (_has_bits_[0] & 0x00008000u) != 0; +} +inline void TronSignTx_TronContract::set_has_proposal_delete_contract() { + _has_bits_[0] |= 0x00008000u; +} +inline void TronSignTx_TronContract::clear_has_proposal_delete_contract() { + _has_bits_[0] &= ~0x00008000u; +} +inline void TronSignTx_TronContract::clear_proposal_delete_contract() { + if (proposal_delete_contract_ != NULL) proposal_delete_contract_->Clear(); + clear_has_proposal_delete_contract(); +} +inline const ::TronSignTx_TronContract_TronProposalDeleteContract& TronSignTx_TronContract::_internal_proposal_delete_contract() const { + return *proposal_delete_contract_; +} +inline const ::TronSignTx_TronContract_TronProposalDeleteContract& TronSignTx_TronContract::proposal_delete_contract() const { + const ::TronSignTx_TronContract_TronProposalDeleteContract* p = proposal_delete_contract_; + // @@protoc_insertion_point(field_get:TronSignTx.TronContract.proposal_delete_contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_TronProposalDeleteContract_default_instance_); +} +inline ::TronSignTx_TronContract_TronProposalDeleteContract* TronSignTx_TronContract::release_proposal_delete_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.TronContract.proposal_delete_contract) + clear_has_proposal_delete_contract(); + ::TronSignTx_TronContract_TronProposalDeleteContract* temp = proposal_delete_contract_; + proposal_delete_contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract_TronProposalDeleteContract* TronSignTx_TronContract::mutable_proposal_delete_contract() { + set_has_proposal_delete_contract(); + if (proposal_delete_contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract_TronProposalDeleteContract>(GetArenaNoVirtual()); + proposal_delete_contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.TronContract.proposal_delete_contract) + return proposal_delete_contract_; +} +inline void TronSignTx_TronContract::set_allocated_proposal_delete_contract(::TronSignTx_TronContract_TronProposalDeleteContract* proposal_delete_contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete proposal_delete_contract_; + } + if (proposal_delete_contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + proposal_delete_contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, proposal_delete_contract, submessage_arena); + } + set_has_proposal_delete_contract(); + } else { + clear_has_proposal_delete_contract(); + } + proposal_delete_contract_ = proposal_delete_contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.TronContract.proposal_delete_contract) +} + +// ------------------------------------------------------------------- + +// TronSignTx + +// repeated uint32 address_n = 1; +inline int TronSignTx::address_n_size() const { + return address_n_.size(); +} +inline void TronSignTx::clear_address_n() { + address_n_.Clear(); +} +inline ::google::protobuf::uint32 TronSignTx::address_n(int index) const { + // @@protoc_insertion_point(field_get:TronSignTx.address_n) + return address_n_.Get(index); +} +inline void TronSignTx::set_address_n(int index, ::google::protobuf::uint32 value) { + address_n_.Set(index, value); + // @@protoc_insertion_point(field_set:TronSignTx.address_n) +} +inline void TronSignTx::add_address_n(::google::protobuf::uint32 value) { + address_n_.Add(value); + // @@protoc_insertion_point(field_add:TronSignTx.address_n) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +TronSignTx::address_n() const { + // @@protoc_insertion_point(field_list:TronSignTx.address_n) + return address_n_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +TronSignTx::mutable_address_n() { + // @@protoc_insertion_point(field_mutable_list:TronSignTx.address_n) + return &address_n_; +} + +// optional bytes ref_block_bytes = 2; +inline bool TronSignTx::has_ref_block_bytes() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignTx::set_has_ref_block_bytes() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignTx::clear_has_ref_block_bytes() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignTx::clear_ref_block_bytes() { + ref_block_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ref_block_bytes(); +} +inline const ::std::string& TronSignTx::ref_block_bytes() const { + // @@protoc_insertion_point(field_get:TronSignTx.ref_block_bytes) + return ref_block_bytes_.GetNoArena(); +} +inline void TronSignTx::set_ref_block_bytes(const ::std::string& value) { + set_has_ref_block_bytes(); + ref_block_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.ref_block_bytes) +} +#if LANG_CXX11 +inline void TronSignTx::set_ref_block_bytes(::std::string&& value) { + set_has_ref_block_bytes(); + ref_block_bytes_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.ref_block_bytes) +} +#endif +inline void TronSignTx::set_ref_block_bytes(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_ref_block_bytes(); + ref_block_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.ref_block_bytes) +} +inline void TronSignTx::set_ref_block_bytes(const void* value, size_t size) { + set_has_ref_block_bytes(); + ref_block_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.ref_block_bytes) +} +inline ::std::string* TronSignTx::mutable_ref_block_bytes() { + set_has_ref_block_bytes(); + // @@protoc_insertion_point(field_mutable:TronSignTx.ref_block_bytes) + return ref_block_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx::release_ref_block_bytes() { + // @@protoc_insertion_point(field_release:TronSignTx.ref_block_bytes) + if (!has_ref_block_bytes()) { + return NULL; + } + clear_has_ref_block_bytes(); + return ref_block_bytes_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx::set_allocated_ref_block_bytes(::std::string* ref_block_bytes) { + if (ref_block_bytes != NULL) { + set_has_ref_block_bytes(); + } else { + clear_has_ref_block_bytes(); + } + ref_block_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ref_block_bytes); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.ref_block_bytes) +} + +// optional bytes ref_block_hash = 3; +inline bool TronSignTx::has_ref_block_hash() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignTx::set_has_ref_block_hash() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignTx::clear_has_ref_block_hash() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignTx::clear_ref_block_hash() { + ref_block_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ref_block_hash(); +} +inline const ::std::string& TronSignTx::ref_block_hash() const { + // @@protoc_insertion_point(field_get:TronSignTx.ref_block_hash) + return ref_block_hash_.GetNoArena(); +} +inline void TronSignTx::set_ref_block_hash(const ::std::string& value) { + set_has_ref_block_hash(); + ref_block_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.ref_block_hash) +} +#if LANG_CXX11 +inline void TronSignTx::set_ref_block_hash(::std::string&& value) { + set_has_ref_block_hash(); + ref_block_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.ref_block_hash) +} +#endif +inline void TronSignTx::set_ref_block_hash(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_ref_block_hash(); + ref_block_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.ref_block_hash) +} +inline void TronSignTx::set_ref_block_hash(const void* value, size_t size) { + set_has_ref_block_hash(); + ref_block_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.ref_block_hash) +} +inline ::std::string* TronSignTx::mutable_ref_block_hash() { + set_has_ref_block_hash(); + // @@protoc_insertion_point(field_mutable:TronSignTx.ref_block_hash) + return ref_block_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx::release_ref_block_hash() { + // @@protoc_insertion_point(field_release:TronSignTx.ref_block_hash) + if (!has_ref_block_hash()) { + return NULL; + } + clear_has_ref_block_hash(); + return ref_block_hash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx::set_allocated_ref_block_hash(::std::string* ref_block_hash) { + if (ref_block_hash != NULL) { + set_has_ref_block_hash(); + } else { + clear_has_ref_block_hash(); + } + ref_block_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ref_block_hash); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.ref_block_hash) +} + +// optional uint64 expiration = 4; +inline bool TronSignTx::has_expiration() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TronSignTx::set_has_expiration() { + _has_bits_[0] |= 0x00000010u; +} +inline void TronSignTx::clear_has_expiration() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TronSignTx::clear_expiration() { + expiration_ = GOOGLE_ULONGLONG(0); + clear_has_expiration(); +} +inline ::google::protobuf::uint64 TronSignTx::expiration() const { + // @@protoc_insertion_point(field_get:TronSignTx.expiration) + return expiration_; +} +inline void TronSignTx::set_expiration(::google::protobuf::uint64 value) { + set_has_expiration(); + expiration_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.expiration) +} + +// optional string data = 5; +inline bool TronSignTx::has_data() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TronSignTx::set_has_data() { + _has_bits_[0] |= 0x00000004u; +} +inline void TronSignTx::clear_has_data() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TronSignTx::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data(); +} +inline const ::std::string& TronSignTx::data() const { + // @@protoc_insertion_point(field_get:TronSignTx.data) + return data_.GetNoArena(); +} +inline void TronSignTx::set_data(const ::std::string& value) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignTx.data) +} +#if LANG_CXX11 +inline void TronSignTx::set_data(::std::string&& value) { + set_has_data(); + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignTx.data) +} +#endif +inline void TronSignTx::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignTx.data) +} +inline void TronSignTx::set_data(const char* value, size_t size) { + set_has_data(); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignTx.data) +} +inline ::std::string* TronSignTx::mutable_data() { + set_has_data(); + // @@protoc_insertion_point(field_mutable:TronSignTx.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignTx::release_data() { + // @@protoc_insertion_point(field_release:TronSignTx.data) + if (!has_data()) { + return NULL; + } + clear_has_data(); + return data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignTx::set_allocated_data(::std::string* data) { + if (data != NULL) { + set_has_data(); + } else { + clear_has_data(); + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:TronSignTx.data) +} + +// optional .TronSignTx.TronContract contract = 6; +inline bool TronSignTx::has_contract() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TronSignTx::set_has_contract() { + _has_bits_[0] |= 0x00000008u; +} +inline void TronSignTx::clear_has_contract() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TronSignTx::clear_contract() { + if (contract_ != NULL) contract_->Clear(); + clear_has_contract(); +} +inline const ::TronSignTx_TronContract& TronSignTx::_internal_contract() const { + return *contract_; +} +inline const ::TronSignTx_TronContract& TronSignTx::contract() const { + const ::TronSignTx_TronContract* p = contract_; + // @@protoc_insertion_point(field_get:TronSignTx.contract) + return p != NULL ? *p : *reinterpret_cast( + &::_TronSignTx_TronContract_default_instance_); +} +inline ::TronSignTx_TronContract* TronSignTx::release_contract() { + // @@protoc_insertion_point(field_release:TronSignTx.contract) + clear_has_contract(); + ::TronSignTx_TronContract* temp = contract_; + contract_ = NULL; + return temp; +} +inline ::TronSignTx_TronContract* TronSignTx::mutable_contract() { + set_has_contract(); + if (contract_ == NULL) { + auto* p = CreateMaybeMessage<::TronSignTx_TronContract>(GetArenaNoVirtual()); + contract_ = p; + } + // @@protoc_insertion_point(field_mutable:TronSignTx.contract) + return contract_; +} +inline void TronSignTx::set_allocated_contract(::TronSignTx_TronContract* contract) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete contract_; + } + if (contract) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + contract = ::google::protobuf::internal::GetOwnedMessage( + message_arena, contract, submessage_arena); + } + set_has_contract(); + } else { + clear_has_contract(); + } + contract_ = contract; + // @@protoc_insertion_point(field_set_allocated:TronSignTx.contract) +} + +// optional uint64 timestamp = 7; +inline bool TronSignTx::has_timestamp() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TronSignTx::set_has_timestamp() { + _has_bits_[0] |= 0x00000020u; +} +inline void TronSignTx::clear_has_timestamp() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TronSignTx::clear_timestamp() { + timestamp_ = GOOGLE_ULONGLONG(0); + clear_has_timestamp(); +} +inline ::google::protobuf::uint64 TronSignTx::timestamp() const { + // @@protoc_insertion_point(field_get:TronSignTx.timestamp) + return timestamp_; +} +inline void TronSignTx::set_timestamp(::google::protobuf::uint64 value) { + set_has_timestamp(); + timestamp_ = value; + // @@protoc_insertion_point(field_set:TronSignTx.timestamp) +} + +// ------------------------------------------------------------------- + +// TronSignedTx + +// optional bytes signature = 1; +inline bool TronSignedTx::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TronSignedTx::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void TronSignedTx::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TronSignedTx::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_signature(); +} +inline const ::std::string& TronSignedTx::signature() const { + // @@protoc_insertion_point(field_get:TronSignedTx.signature) + return signature_.GetNoArena(); +} +inline void TronSignedTx::set_signature(const ::std::string& value) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignedTx.signature) +} +#if LANG_CXX11 +inline void TronSignedTx::set_signature(::std::string&& value) { + set_has_signature(); + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignedTx.signature) +} +#endif +inline void TronSignedTx::set_signature(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignedTx.signature) +} +inline void TronSignedTx::set_signature(const void* value, size_t size) { + set_has_signature(); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignedTx.signature) +} +inline ::std::string* TronSignedTx::mutable_signature() { + set_has_signature(); + // @@protoc_insertion_point(field_mutable:TronSignedTx.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignedTx::release_signature() { + // @@protoc_insertion_point(field_release:TronSignedTx.signature) + if (!has_signature()) { + return NULL; + } + clear_has_signature(); + return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignedTx::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + set_has_signature(); + } else { + clear_has_signature(); + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:TronSignedTx.signature) +} + +// optional bytes serialized_tx = 2; +inline bool TronSignedTx::has_serialized_tx() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TronSignedTx::set_has_serialized_tx() { + _has_bits_[0] |= 0x00000002u; +} +inline void TronSignedTx::clear_has_serialized_tx() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TronSignedTx::clear_serialized_tx() { + serialized_tx_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_serialized_tx(); +} +inline const ::std::string& TronSignedTx::serialized_tx() const { + // @@protoc_insertion_point(field_get:TronSignedTx.serialized_tx) + return serialized_tx_.GetNoArena(); +} +inline void TronSignedTx::set_serialized_tx(const ::std::string& value) { + set_has_serialized_tx(); + serialized_tx_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:TronSignedTx.serialized_tx) +} +#if LANG_CXX11 +inline void TronSignedTx::set_serialized_tx(::std::string&& value) { + set_has_serialized_tx(); + serialized_tx_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:TronSignedTx.serialized_tx) +} +#endif +inline void TronSignedTx::set_serialized_tx(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_serialized_tx(); + serialized_tx_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:TronSignedTx.serialized_tx) +} +inline void TronSignedTx::set_serialized_tx(const void* value, size_t size) { + set_has_serialized_tx(); + serialized_tx_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:TronSignedTx.serialized_tx) +} +inline ::std::string* TronSignedTx::mutable_serialized_tx() { + set_has_serialized_tx(); + // @@protoc_insertion_point(field_mutable:TronSignedTx.serialized_tx) + return serialized_tx_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TronSignedTx::release_serialized_tx() { + // @@protoc_insertion_point(field_release:TronSignedTx.serialized_tx) + if (!has_serialized_tx()) { + return NULL; + } + clear_has_serialized_tx(); + return serialized_tx_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TronSignedTx::set_allocated_serialized_tx(::std::string* serialized_tx) { + if (serialized_tx != NULL) { + set_has_serialized_tx(); + } else { + clear_has_serialized_tx(); + } + serialized_tx_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serialized_tx); + // @@protoc_insertion_point(field_set_allocated:TronSignedTx.serialized_tx) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2dtron_2eproto diff --git a/src/Core/hardware/trezor/protob/messages.pb.cc b/src/Core/hardware/trezor/protob/messages.pb.cc new file mode 100644 index 00000000..716b57a9 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages.pb.cc @@ -0,0 +1,569 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages.proto + +#include "messages.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace hw { +namespace trezor { +namespace messages { +} // namespace messages +} // namespace trezor +} // namespace hw +namespace protobuf_messages_2eproto { +void InitDefaults() { +} + +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; +const ::google::protobuf::uint32 TableStruct::offsets[1] = {}; +static const ::google::protobuf::internal::MigrationSchema* schemas = NULL; +static const ::google::protobuf::Message* const* file_default_instances = NULL; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "messages.proto", schemas, file_default_instances, TableStruct::offsets, + NULL, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\016messages.proto\022\022hw.trezor.messages\032 go" + "ogle/protobuf/descriptor.proto*\264F\n\013Messa" + "geType\022$\n\026MessageType_Initialize\020\000\032\010\220\265\030\001" + "\260\265\030\001\022\032\n\020MessageType_Ping\020\001\032\004\220\265\030\001\022\035\n\023Mess" + "ageType_Success\020\002\032\004\230\265\030\001\022\035\n\023MessageType_F" + "ailure\020\003\032\004\230\265\030\001\022\037\n\025MessageType_ChangePin\020" + "\004\032\004\220\265\030\001\022 \n\026MessageType_WipeDevice\020\005\032\004\220\265\030" + "\001\022 \n\026MessageType_GetEntropy\020\t\032\004\220\265\030\001\022\035\n\023M" + "essageType_Entropy\020\n\032\004\230\265\030\001\022 \n\026MessageTyp" + "e_LoadDevice\020\r\032\004\220\265\030\001\022!\n\027MessageType_Rese" + "tDevice\020\016\032\004\220\265\030\001\022\036\n\024MessageType_Features\020" + "\021\032\004\230\265\030\001\022&\n\034MessageType_PinMatrixRequest\020" + "\022\032\004\230\265\030\001\022*\n\030MessageType_PinMatrixAck\020\023\032\014\220" + "\265\030\001\260\265\030\001\300\265\030\001\022 \n\022MessageType_Cancel\020\024\032\010\220\265\030" + "\001\260\265\030\001\022\"\n\030MessageType_ClearSession\020\030\032\004\220\265\030" + "\001\022#\n\031MessageType_ApplySettings\020\031\032\004\220\265\030\001\022#" + "\n\031MessageType_ButtonRequest\020\032\032\004\230\265\030\001\022\'\n\025M" + "essageType_ButtonAck\020\033\032\014\220\265\030\001\260\265\030\001\300\265\030\001\022 \n\026" + "MessageType_ApplyFlags\020\034\032\004\220\265\030\001\022\"\n\030Messag" + "eType_BackupDevice\020\"\032\004\220\265\030\001\022$\n\032MessageTyp" + "e_EntropyRequest\020#\032\004\230\265\030\001\022 \n\026MessageType_" + "EntropyAck\020$\032\004\220\265\030\001\022\'\n\035MessageType_Passph" + "raseRequest\020)\032\004\230\265\030\001\022+\n\031MessageType_Passp" + "hraseAck\020*\032\014\220\265\030\001\260\265\030\001\300\265\030\001\022,\n\"MessageType_" + "PassphraseStateRequest\020M\032\004\230\265\030\001\0220\n\036Messag" + "eType_PassphraseStateAck\020N\032\014\220\265\030\001\260\265\030\001\300\265\030\001" + "\022$\n\032MessageType_RecoveryDevice\020-\032\004\220\265\030\001\022!" + "\n\027MessageType_WordRequest\020.\032\004\230\265\030\001\022\035\n\023Mes" + "sageType_WordAck\020/\032\004\220\265\030\001\022!\n\027MessageType_" + "GetFeatures\0207\032\004\220\265\030\001\022#\n\031MessageType_SetU2" + "FCounter\020\?\032\004\220\265\030\001\022\'\n\031MessageType_Firmware" + "Erase\020\006\032\010\220\265\030\001\270\265\030\001\022(\n\032MessageType_Firmwar" + "eUpload\020\007\032\010\220\265\030\001\270\265\030\001\022)\n\033MessageType_Firmw" + "areRequest\020\010\032\010\230\265\030\001\270\265\030\001\022\"\n\024MessageType_Se" + "lfTest\020 \032\010\220\265\030\001\270\265\030\001\022\"\n\030MessageType_GetPub" + "licKey\020\013\032\004\220\265\030\001\022\037\n\025MessageType_PublicKey\020" + "\014\032\004\230\265\030\001\022\034\n\022MessageType_SignTx\020\017\032\004\220\265\030\001\022\037\n" + "\025MessageType_TxRequest\020\025\032\004\230\265\030\001\022\033\n\021Messag" + "eType_TxAck\020\026\032\004\220\265\030\001\022 \n\026MessageType_GetAd" + "dress\020\035\032\004\220\265\030\001\022\035\n\023MessageType_Address\020\036\032\004" + "\230\265\030\001\022!\n\027MessageType_SignMessage\020&\032\004\220\265\030\001\022" + "#\n\031MessageType_VerifyMessage\020\'\032\004\220\265\030\001\022&\n\034" + "MessageType_MessageSignature\020(\032\004\230\265\030\001\022$\n\032" + "MessageType_CipherKeyValue\020\027\032\004\220\265\030\001\022&\n\034Me" + "ssageType_CipheredKeyValue\0200\032\004\230\265\030\001\022\"\n\030Me" + "ssageType_SignIdentity\0205\032\004\220\265\030\001\022$\n\032Messag" + "eType_SignedIdentity\0206\032\004\230\265\030\001\022\'\n\035MessageT" + "ype_GetECDHSessionKey\020=\032\004\220\265\030\001\022$\n\032Message" + "Type_ECDHSessionKey\020>\032\004\230\265\030\001\022 \n\026MessageTy" + "pe_CosiCommit\020G\032\004\220\265\030\001\022$\n\032MessageType_Cos" + "iCommitment\020H\032\004\230\265\030\001\022\036\n\024MessageType_CosiS" + "ign\020I\032\004\220\265\030\001\022#\n\031MessageType_CosiSignature" + "\020J\032\004\230\265\030\001\022/\n\035MessageType_DebugLinkDecisio" + "n\020d\032\014\240\265\030\001\260\265\030\001\300\265\030\001\022+\n\035MessageType_DebugLi" + "nkGetState\020e\032\010\240\265\030\001\260\265\030\001\022$\n\032MessageType_De" + "bugLinkState\020f\032\004\250\265\030\001\022#\n\031MessageType_Debu" + "gLinkStop\020g\032\004\240\265\030\001\022\"\n\030MessageType_DebugLi" + "nkLog\020h\032\004\250\265\030\001\022)\n\037MessageType_DebugLinkMe" + "moryRead\020n\032\004\240\265\030\001\022%\n\033MessageType_DebugLin" + "kMemory\020o\032\004\250\265\030\001\022*\n MessageType_DebugLink" + "MemoryWrite\020p\032\004\240\265\030\001\022)\n\037MessageType_Debug" + "LinkFlashErase\020q\032\004\240\265\030\001\022+\n MessageType_Et" + "hereumGetPublicKey\020\302\003\032\004\220\265\030\001\022(\n\035MessageTy" + "pe_EthereumPublicKey\020\303\003\032\004\230\265\030\001\022(\n\036Message" + "Type_EthereumGetAddress\0208\032\004\220\265\030\001\022%\n\033Messa" + "geType_EthereumAddress\0209\032\004\230\265\030\001\022$\n\032Messag" + "eType_EthereumSignTx\020:\032\004\220\265\030\001\022\'\n\035MessageT" + "ype_EthereumTxRequest\020;\032\004\230\265\030\001\022#\n\031Message" + "Type_EthereumTxAck\020<\032\004\220\265\030\001\022)\n\037MessageTyp" + "e_EthereumSignMessage\020@\032\004\220\265\030\001\022+\n!Message" + "Type_EthereumVerifyMessage\020A\032\004\220\265\030\001\022.\n$Me" + "ssageType_EthereumMessageSignature\020B\032\004\230\265" + "\030\001\022#\n\031MessageType_NEMGetAddress\020C\032\004\220\265\030\001\022" + " \n\026MessageType_NEMAddress\020D\032\004\230\265\030\001\022\037\n\025Mes" + "sageType_NEMSignTx\020E\032\004\220\265\030\001\022!\n\027MessageTyp" + "e_NEMSignedTx\020F\032\004\230\265\030\001\022\'\n\035MessageType_NEM" + "DecryptMessage\020K\032\004\220\265\030\001\022)\n\037MessageType_NE" + "MDecryptedMessage\020L\032\004\230\265\030\001\022$\n\032MessageType" + "_LiskGetAddress\020r\032\004\220\265\030\001\022!\n\027MessageType_L" + "iskAddress\020s\032\004\230\265\030\001\022 \n\026MessageType_LiskSi" + "gnTx\020t\032\004\220\265\030\001\022\"\n\030MessageType_LiskSignedTx" + "\020u\032\004\230\265\030\001\022%\n\033MessageType_LiskSignMessage\020" + "v\032\004\220\265\030\001\022*\n MessageType_LiskMessageSignat" + "ure\020w\032\004\230\265\030\001\022\'\n\035MessageType_LiskVerifyMes" + "sage\020x\032\004\220\265\030\001\022&\n\034MessageType_LiskGetPubli" + "cKey\020y\032\004\220\265\030\001\022#\n\031MessageType_LiskPublicKe" + "y\020z\032\004\230\265\030\001\022&\n\033MessageType_TezosGetAddress" + "\020\226\001\032\004\220\265\030\001\022#\n\030MessageType_TezosAddress\020\227\001" + "\032\004\230\265\030\001\022\"\n\027MessageType_TezosSignTx\020\230\001\032\004\220\265" + "\030\001\022$\n\031MessageType_TezosSignedTx\020\231\001\032\004\230\265\030\001" + "\022(\n\035MessageType_TezosGetPublicKey\020\232\001\032\004\220\265" + "\030\001\022%\n\032MessageType_TezosPublicKey\020\233\001\032\004\230\265\030" + "\001\022$\n\031MessageType_StellarSignTx\020\312\001\032\004\220\265\030\001\022" + ")\n\036MessageType_StellarTxOpRequest\020\313\001\032\004\230\265" + "\030\001\022(\n\035MessageType_StellarGetAddress\020\317\001\032\004" + "\220\265\030\001\022%\n\032MessageType_StellarAddress\020\320\001\032\004\230" + "\265\030\001\022-\n\"MessageType_StellarCreateAccountO" + "p\020\322\001\032\004\220\265\030\001\022\'\n\034MessageType_StellarPayment" + "Op\020\323\001\032\004\220\265\030\001\022+\n MessageType_StellarPathPa" + "ymentOp\020\324\001\032\004\220\265\030\001\022+\n MessageType_StellarM" + "anageOfferOp\020\325\001\032\004\220\265\030\001\0222\n\'MessageType_Ste" + "llarCreatePassiveOfferOp\020\326\001\032\004\220\265\030\001\022*\n\037Mes" + "sageType_StellarSetOptionsOp\020\327\001\032\004\220\265\030\001\022+\n" + " MessageType_StellarChangeTrustOp\020\330\001\032\004\220\265" + "\030\001\022*\n\037MessageType_StellarAllowTrustOp\020\331\001" + "\032\004\220\265\030\001\022,\n!MessageType_StellarAccountMerg" + "eOp\020\332\001\032\004\220\265\030\001\022*\n\037MessageType_StellarManag" + "eDataOp\020\334\001\032\004\220\265\030\001\022,\n!MessageType_StellarB" + "umpSequenceOp\020\335\001\032\004\220\265\030\001\022&\n\033MessageType_St" + "ellarSignedTx\020\346\001\032\004\230\265\030\001\022%\n\032MessageType_Tr" + "onGetAddress\020\372\001\032\004\220\265\030\001\022\"\n\027MessageType_Tro" + "nAddress\020\373\001\032\004\230\265\030\001\022!\n\026MessageType_TronSig" + "nTx\020\374\001\032\004\220\265\030\001\022#\n\030MessageType_TronSignedTx" + "\020\375\001\032\004\230\265\030\001\022$\n\031MessageType_CardanoSignTx\020\257" + "\002\032\004\220\265\030\001\022\'\n\034MessageType_CardanoTxRequest\020" + "\260\002\032\004\230\265\030\001\022*\n\037MessageType_CardanoGetPublic" + "Key\020\261\002\032\004\220\265\030\001\022\'\n\034MessageType_CardanoPubli" + "cKey\020\262\002\032\004\230\265\030\001\022(\n\035MessageType_CardanoGetA" + "ddress\020\263\002\032\004\220\265\030\001\022%\n\032MessageType_CardanoAd" + "dress\020\264\002\032\004\230\265\030\001\022#\n\030MessageType_CardanoTxA" + "ck\020\265\002\032\004\220\265\030\001\022&\n\033MessageType_CardanoSigned" + "Tx\020\266\002\032\004\230\265\030\001\022)\n\036MessageType_OntologyGetAd" + "dress\020\336\002\032\004\220\265\030\001\022&\n\033MessageType_OntologyAd" + "dress\020\337\002\032\004\230\265\030\001\022+\n MessageType_OntologyGe" + "tPublicKey\020\340\002\032\004\220\265\030\001\022(\n\035MessageType_Ontol" + "ogyPublicKey\020\341\002\032\004\230\265\030\001\022+\n MessageType_Ont" + "ologySignTransfer\020\342\002\032\004\220\265\030\001\022-\n\"MessageTyp" + "e_OntologySignedTransfer\020\343\002\032\004\230\265\030\001\022.\n#Mes" + "sageType_OntologySignWithdrawOng\020\344\002\032\004\220\265\030" + "\001\0220\n%MessageType_OntologySignedWithdrawO" + "ng\020\345\002\032\004\230\265\030\001\0220\n%MessageType_OntologySignO" + "ntIdRegister\020\346\002\032\004\220\265\030\001\0222\n\'MessageType_Ont" + "ologySignedOntIdRegister\020\347\002\032\004\230\265\030\001\0225\n*Mes" + "sageType_OntologySignOntIdAddAttributes\020" + "\350\002\032\004\220\265\030\001\0227\n,MessageType_OntologySignedOn" + "tIdAddAttributes\020\351\002\032\004\230\265\030\001\022\'\n\034MessageType" + "_RippleGetAddress\020\220\003\032\004\220\265\030\001\022$\n\031MessageTyp" + "e_RippleAddress\020\221\003\032\004\230\265\030\001\022#\n\030MessageType_" + "RippleSignTx\020\222\003\032\004\220\265\030\001\022%\n\032MessageType_Rip" + "pleSignedTx\020\223\003\032\004\220\265\030\001\0223\n(MessageType_Mone" + "roTransactionInitRequest\020\365\003\032\004\230\265\030\001\022/\n$Mes" + "sageType_MoneroTransactionInitAck\020\366\003\032\004\230\265" + "\030\001\0227\n,MessageType_MoneroTransactionSetIn" + "putRequest\020\367\003\032\004\230\265\030\001\0223\n(MessageType_Moner" + "oTransactionSetInputAck\020\370\003\032\004\230\265\030\001\022@\n5Mess" + "ageType_MoneroTransactionInputsPermutati" + "onRequest\020\371\003\032\004\230\265\030\001\022<\n1MessageType_Monero" + "TransactionInputsPermutationAck\020\372\003\032\004\230\265\030\001" + "\0228\n-MessageType_MoneroTransactionInputVi" + "niRequest\020\373\003\032\004\230\265\030\001\0224\n)MessageType_Monero" + "TransactionInputViniAck\020\374\003\032\004\230\265\030\001\022;\n0Mess" + "ageType_MoneroTransactionAllInputsSetReq" + "uest\020\375\003\032\004\230\265\030\001\0227\n,MessageType_MoneroTrans" + "actionAllInputsSetAck\020\376\003\032\004\230\265\030\001\0228\n-Messag" + "eType_MoneroTransactionSetOutputRequest\020" + "\377\003\032\004\230\265\030\001\0224\n)MessageType_MoneroTransactio" + "nSetOutputAck\020\200\004\032\004\230\265\030\001\0228\n-MessageType_Mo" + "neroTransactionAllOutSetRequest\020\201\004\032\004\230\265\030\001" + "\0224\n)MessageType_MoneroTransactionAllOutS" + "etAck\020\202\004\032\004\230\265\030\001\0228\n-MessageType_MoneroTran" + "sactionSignInputRequest\020\203\004\032\004\230\265\030\001\0224\n)Mess" + "ageType_MoneroTransactionSignInputAck\020\204\004" + "\032\004\230\265\030\001\0224\n)MessageType_MoneroTransactionF" + "inalRequest\020\205\004\032\004\230\265\030\001\0220\n%MessageType_Mone" + "roTransactionFinalAck\020\206\004\032\004\230\265\030\001\0226\n+Messag" + "eType_MoneroKeyImageExportInitRequest\020\222\004" + "\032\004\230\265\030\001\0222\n\'MessageType_MoneroKeyImageExpo" + "rtInitAck\020\223\004\032\004\230\265\030\001\0224\n)MessageType_Monero" + "KeyImageSyncStepRequest\020\224\004\032\004\230\265\030\001\0220\n%Mess" + "ageType_MoneroKeyImageSyncStepAck\020\225\004\032\004\230\265" + "\030\001\0225\n*MessageType_MoneroKeyImageSyncFina" + "lRequest\020\226\004\032\004\230\265\030\001\0221\n&MessageType_MoneroK" + "eyImageSyncFinalAck\020\227\004\032\004\230\265\030\001\022\'\n\034MessageT" + "ype_MoneroGetAddress\020\234\004\032\004\220\265\030\001\022$\n\031Message" + "Type_MoneroAddress\020\235\004\032\004\230\265\030\001\022(\n\035MessageTy" + "pe_MoneroGetWatchKey\020\236\004\032\004\220\265\030\001\022%\n\032Message" + "Type_MoneroWatchKey\020\237\004\032\004\230\265\030\001\022-\n\"MessageT" + "ype_DebugMoneroDiagRequest\020\242\004\032\004\220\265\030\001\022)\n\036M" + "essageType_DebugMoneroDiagAck\020\243\004\032\004\230\265\030\001\022," + "\n!MessageType_MoneroGetTxKeyRequest\020\246\004\032\004" + "\220\265\030\001\022(\n\035MessageType_MoneroGetTxKeyAck\020\247\004" + "\032\004\230\265\030\001\0224\n)MessageType_MoneroLiveRefreshS" + "tartRequest\020\250\004\032\004\220\265\030\001\0220\n%MessageType_Mone" + "roLiveRefreshStartAck\020\251\004\032\004\230\265\030\001\0223\n(Messag" + "eType_MoneroLiveRefreshStepRequest\020\252\004\032\004\220" + "\265\030\001\022/\n$MessageType_MoneroLiveRefreshStep" + "Ack\020\253\004\032\004\230\265\030\001\0224\n)MessageType_MoneroLiveRe" + "freshFinalRequest\020\254\004\032\004\220\265\030\001\0220\n%MessageTyp" + "e_MoneroLiveRefreshFinalAck\020\255\004\032\004\230\265\030\001\022&\n\033" + "MessageType_EosGetPublicKey\020\330\004\032\004\220\265\030\001\022#\n\030" + "MessageType_EosPublicKey\020\331\004\032\004\230\265\030\001\022 \n\025Mes" + "sageType_EosSignTx\020\332\004\032\004\220\265\030\001\022)\n\036MessageTy" + "pe_EosTxActionRequest\020\333\004\032\004\230\265\030\001\022%\n\032Messag" + "eType_EosTxActionAck\020\334\004\032\004\220\265\030\001\022\"\n\027Message" + "Type_EosSignedTx\020\335\004\032\004\230\265\030\001\022,\n!MessageType" + "_BytecoinEmptyResponse\020\274\005\032\004\230\265\030\001\022+\n Messa" + "geType_BytecoinStartRequest\020\275\005\032\004\220\265\030\001\022,\n!" + "MessageType_BytecoinStartResponse\020\276\005\032\004\230\265" + "\030\001\0221\n&MessageType_BytecoinScanOutputsReq" + "uest\020\277\005\032\004\220\265\030\001\0222\n\'MessageType_BytecoinSca" + "nOutputsResponse\020\300\005\032\004\230\265\030\001\0226\n+MessageType" + "_BytecoinGenerateKeyimageRequest\020\301\005\032\004\220\265\030" + "\001\0227\n,MessageType_BytecoinGenerateKeyimag" + "eResponse\020\302\005\032\004\230\265\030\001\0228\n-MessageType_Byteco" + "inGenerateOutputSeedRequest\020\303\005\032\004\220\265\030\001\0229\n." + "MessageType_BytecoinGenerateOutputSeedRe" + "sponse\020\304\005\032\004\230\265\030\001\0226\n+MessageType_BytecoinE" + "xportViewWalletRequest\020\305\005\032\004\220\265\030\001\0227\n,Messa" + "geType_BytecoinExportViewWalletResponse\020" + "\306\005\032\004\230\265\030\001\022/\n$MessageType_BytecoinSignStar" + "tRequest\020\307\005\032\004\220\265\030\001\0222\n\'MessageType_Bytecoi" + "nSignAddInputRequest\020\311\005\032\004\220\265\030\001\0223\n(Message" + "Type_BytecoinSignAddOutputRequest\020\313\005\032\004\220\265" + "\030\001\0224\n)MessageType_BytecoinSignAddOutputR" + "esponse\020\314\005\032\004\230\265\030\001\0222\n\'MessageType_Bytecoin" + "SignAddExtraRequest\020\315\005\032\004\220\265\030\001\022/\n$MessageT" + "ype_BytecoinSignStepARequest\020\317\005\032\004\220\265\030\001\0220\n" + "%MessageType_BytecoinSignStepAResponse\020\320" + "\005\032\004\230\265\030\001\0227\n,MessageType_BytecoinSignStepA" + "MoreDataRequest\020\321\005\032\004\220\265\030\001\022/\n$MessageType_" + "BytecoinSignGetC0Request\020\323\005\032\004\220\265\030\001\0220\n%Mes" + "sageType_BytecoinSignGetC0Response\020\324\005\032\004\230" + "\265\030\001\022/\n$MessageType_BytecoinSignStepBRequ" + "est\020\325\005\032\004\220\265\030\001\0220\n%MessageType_BytecoinSign" + "StepBResponse\020\326\005\032\004\230\265\030\001\0220\n%MessageType_By" + "tecoinStartProofRequest\020\327\005\032\004\220\265\030\001\0223\n(Mess" + "ageType_BytecoinProofMoreDataRequest\020\331\005\032" + "\004\220\265\030\001:4\n\007wire_in\022!.google.protobuf.EnumV" + "alueOptions\030\322\206\003 \001(\010:5\n\010wire_out\022!.google" + ".protobuf.EnumValueOptions\030\323\206\003 \001(\010::\n\rwi" + "re_debug_in\022!.google.protobuf.EnumValueO" + "ptions\030\324\206\003 \001(\010:;\n\016wire_debug_out\022!.googl" + "e.protobuf.EnumValueOptions\030\325\206\003 \001(\010:6\n\tw" + "ire_tiny\022!.google.protobuf.EnumValueOpti" + "ons\030\326\206\003 \001(\010:<\n\017wire_bootloader\022!.google." + "protobuf.EnumValueOptions\030\327\206\003 \001(\010:8\n\013wir" + "e_no_fsm\022!.google.protobuf.EnumValueOpti" + "ons\030\330\206\003 \001(\010B4\n#com.satoshilabs.trezor.li" + "b.protobufB\rTrezorMessage" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 9545); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "messages.proto", &protobuf_RegisterTypes); + ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_messages_2eproto +namespace hw { +namespace trezor { +namespace messages { +const ::google::protobuf::EnumDescriptor* MessageType_descriptor() { + protobuf_messages_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_messages_2eproto::file_level_enum_descriptors[0]; +} +bool MessageType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 32: + case 34: + case 35: + case 36: + case 38: + case 39: + case 40: + case 41: + case 42: + case 45: + case 46: + case 47: + case 48: + case 53: + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: + case 60: + case 61: + case 62: + case 63: + case 64: + case 65: + case 66: + case 67: + case 68: + case 69: + case 70: + case 71: + case 72: + case 73: + case 74: + case 75: + case 76: + case 77: + case 78: + case 100: + case 101: + case 102: + case 103: + case 104: + case 110: + case 111: + case 112: + case 113: + case 114: + case 115: + case 116: + case 117: + case 118: + case 119: + case 120: + case 121: + case 122: + case 150: + case 151: + case 152: + case 153: + case 154: + case 155: + case 202: + case 203: + case 207: + case 208: + case 210: + case 211: + case 212: + case 213: + case 214: + case 215: + case 216: + case 217: + case 218: + case 220: + case 221: + case 230: + case 250: + case 251: + case 252: + case 253: + case 303: + case 304: + case 305: + case 306: + case 307: + case 308: + case 309: + case 310: + case 350: + case 351: + case 352: + case 353: + case 354: + case 355: + case 356: + case 357: + case 358: + case 359: + case 360: + case 361: + case 400: + case 401: + case 402: + case 403: + case 450: + case 451: + case 501: + case 502: + case 503: + case 504: + case 505: + case 506: + case 507: + case 508: + case 509: + case 510: + case 511: + case 512: + case 513: + case 514: + case 515: + case 516: + case 517: + case 518: + case 530: + case 531: + case 532: + case 533: + case 534: + case 535: + case 540: + case 541: + case 542: + case 543: + case 546: + case 547: + case 550: + case 551: + case 552: + case 553: + case 554: + case 555: + case 556: + case 557: + case 600: + case 601: + case 602: + case 603: + case 604: + case 605: + case 700: + case 701: + case 702: + case 703: + case 704: + case 705: + case 706: + case 707: + case 708: + case 709: + case 710: + case 711: + case 713: + case 715: + case 716: + case 717: + case 719: + case 720: + case 721: + case 723: + case 724: + case 725: + case 726: + case 727: + case 729: + return true; + default: + return false; + } +} + +::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_in(kWireInFieldNumber, false); +::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_out(kWireOutFieldNumber, false); +::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_debug_in(kWireDebugInFieldNumber, false); +::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_debug_out(kWireDebugOutFieldNumber, false); +::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_tiny(kWireTinyFieldNumber, false); +::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_bootloader(kWireBootloaderFieldNumber, false); +::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_no_fsm(kWireNoFsmFieldNumber, false); + +// @@protoc_insertion_point(namespace_scope) +} // namespace messages +} // namespace trezor +} // namespace hw +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/Core/hardware/trezor/protob/messages.pb.h b/src/Core/hardware/trezor/protob/messages.pb.h new file mode 100644 index 00000000..3202ead2 --- /dev/null +++ b/src/Core/hardware/trezor/protob/messages.pb.h @@ -0,0 +1,347 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages.proto + +#ifndef PROTOBUF_INCLUDED_messages_2eproto +#define PROTOBUF_INCLUDED_messages_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_messages_2eproto + +namespace protobuf_messages_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_messages_2eproto +namespace hw { +namespace trezor { +namespace messages { +} // namespace messages +} // namespace trezor +} // namespace hw +namespace hw { +namespace trezor { +namespace messages { + +enum MessageType { + MessageType_Initialize = 0, + MessageType_Ping = 1, + MessageType_Success = 2, + MessageType_Failure = 3, + MessageType_ChangePin = 4, + MessageType_WipeDevice = 5, + MessageType_GetEntropy = 9, + MessageType_Entropy = 10, + MessageType_LoadDevice = 13, + MessageType_ResetDevice = 14, + MessageType_Features = 17, + MessageType_PinMatrixRequest = 18, + MessageType_PinMatrixAck = 19, + MessageType_Cancel = 20, + MessageType_ClearSession = 24, + MessageType_ApplySettings = 25, + MessageType_ButtonRequest = 26, + MessageType_ButtonAck = 27, + MessageType_ApplyFlags = 28, + MessageType_BackupDevice = 34, + MessageType_EntropyRequest = 35, + MessageType_EntropyAck = 36, + MessageType_PassphraseRequest = 41, + MessageType_PassphraseAck = 42, + MessageType_PassphraseStateRequest = 77, + MessageType_PassphraseStateAck = 78, + MessageType_RecoveryDevice = 45, + MessageType_WordRequest = 46, + MessageType_WordAck = 47, + MessageType_GetFeatures = 55, + MessageType_SetU2FCounter = 63, + MessageType_FirmwareErase = 6, + MessageType_FirmwareUpload = 7, + MessageType_FirmwareRequest = 8, + MessageType_SelfTest = 32, + MessageType_GetPublicKey = 11, + MessageType_PublicKey = 12, + MessageType_SignTx = 15, + MessageType_TxRequest = 21, + MessageType_TxAck = 22, + MessageType_GetAddress = 29, + MessageType_Address = 30, + MessageType_SignMessage = 38, + MessageType_VerifyMessage = 39, + MessageType_MessageSignature = 40, + MessageType_CipherKeyValue = 23, + MessageType_CipheredKeyValue = 48, + MessageType_SignIdentity = 53, + MessageType_SignedIdentity = 54, + MessageType_GetECDHSessionKey = 61, + MessageType_ECDHSessionKey = 62, + MessageType_CosiCommit = 71, + MessageType_CosiCommitment = 72, + MessageType_CosiSign = 73, + MessageType_CosiSignature = 74, + MessageType_DebugLinkDecision = 100, + MessageType_DebugLinkGetState = 101, + MessageType_DebugLinkState = 102, + MessageType_DebugLinkStop = 103, + MessageType_DebugLinkLog = 104, + MessageType_DebugLinkMemoryRead = 110, + MessageType_DebugLinkMemory = 111, + MessageType_DebugLinkMemoryWrite = 112, + MessageType_DebugLinkFlashErase = 113, + MessageType_EthereumGetPublicKey = 450, + MessageType_EthereumPublicKey = 451, + MessageType_EthereumGetAddress = 56, + MessageType_EthereumAddress = 57, + MessageType_EthereumSignTx = 58, + MessageType_EthereumTxRequest = 59, + MessageType_EthereumTxAck = 60, + MessageType_EthereumSignMessage = 64, + MessageType_EthereumVerifyMessage = 65, + MessageType_EthereumMessageSignature = 66, + MessageType_NEMGetAddress = 67, + MessageType_NEMAddress = 68, + MessageType_NEMSignTx = 69, + MessageType_NEMSignedTx = 70, + MessageType_NEMDecryptMessage = 75, + MessageType_NEMDecryptedMessage = 76, + MessageType_LiskGetAddress = 114, + MessageType_LiskAddress = 115, + MessageType_LiskSignTx = 116, + MessageType_LiskSignedTx = 117, + MessageType_LiskSignMessage = 118, + MessageType_LiskMessageSignature = 119, + MessageType_LiskVerifyMessage = 120, + MessageType_LiskGetPublicKey = 121, + MessageType_LiskPublicKey = 122, + MessageType_TezosGetAddress = 150, + MessageType_TezosAddress = 151, + MessageType_TezosSignTx = 152, + MessageType_TezosSignedTx = 153, + MessageType_TezosGetPublicKey = 154, + MessageType_TezosPublicKey = 155, + MessageType_StellarSignTx = 202, + MessageType_StellarTxOpRequest = 203, + MessageType_StellarGetAddress = 207, + MessageType_StellarAddress = 208, + MessageType_StellarCreateAccountOp = 210, + MessageType_StellarPaymentOp = 211, + MessageType_StellarPathPaymentOp = 212, + MessageType_StellarManageOfferOp = 213, + MessageType_StellarCreatePassiveOfferOp = 214, + MessageType_StellarSetOptionsOp = 215, + MessageType_StellarChangeTrustOp = 216, + MessageType_StellarAllowTrustOp = 217, + MessageType_StellarAccountMergeOp = 218, + MessageType_StellarManageDataOp = 220, + MessageType_StellarBumpSequenceOp = 221, + MessageType_StellarSignedTx = 230, + MessageType_TronGetAddress = 250, + MessageType_TronAddress = 251, + MessageType_TronSignTx = 252, + MessageType_TronSignedTx = 253, + MessageType_CardanoSignTx = 303, + MessageType_CardanoTxRequest = 304, + MessageType_CardanoGetPublicKey = 305, + MessageType_CardanoPublicKey = 306, + MessageType_CardanoGetAddress = 307, + MessageType_CardanoAddress = 308, + MessageType_CardanoTxAck = 309, + MessageType_CardanoSignedTx = 310, + MessageType_OntologyGetAddress = 350, + MessageType_OntologyAddress = 351, + MessageType_OntologyGetPublicKey = 352, + MessageType_OntologyPublicKey = 353, + MessageType_OntologySignTransfer = 354, + MessageType_OntologySignedTransfer = 355, + MessageType_OntologySignWithdrawOng = 356, + MessageType_OntologySignedWithdrawOng = 357, + MessageType_OntologySignOntIdRegister = 358, + MessageType_OntologySignedOntIdRegister = 359, + MessageType_OntologySignOntIdAddAttributes = 360, + MessageType_OntologySignedOntIdAddAttributes = 361, + MessageType_RippleGetAddress = 400, + MessageType_RippleAddress = 401, + MessageType_RippleSignTx = 402, + MessageType_RippleSignedTx = 403, + MessageType_MoneroTransactionInitRequest = 501, + MessageType_MoneroTransactionInitAck = 502, + MessageType_MoneroTransactionSetInputRequest = 503, + MessageType_MoneroTransactionSetInputAck = 504, + MessageType_MoneroTransactionInputsPermutationRequest = 505, + MessageType_MoneroTransactionInputsPermutationAck = 506, + MessageType_MoneroTransactionInputViniRequest = 507, + MessageType_MoneroTransactionInputViniAck = 508, + MessageType_MoneroTransactionAllInputsSetRequest = 509, + MessageType_MoneroTransactionAllInputsSetAck = 510, + MessageType_MoneroTransactionSetOutputRequest = 511, + MessageType_MoneroTransactionSetOutputAck = 512, + MessageType_MoneroTransactionAllOutSetRequest = 513, + MessageType_MoneroTransactionAllOutSetAck = 514, + MessageType_MoneroTransactionSignInputRequest = 515, + MessageType_MoneroTransactionSignInputAck = 516, + MessageType_MoneroTransactionFinalRequest = 517, + MessageType_MoneroTransactionFinalAck = 518, + MessageType_MoneroKeyImageExportInitRequest = 530, + MessageType_MoneroKeyImageExportInitAck = 531, + MessageType_MoneroKeyImageSyncStepRequest = 532, + MessageType_MoneroKeyImageSyncStepAck = 533, + MessageType_MoneroKeyImageSyncFinalRequest = 534, + MessageType_MoneroKeyImageSyncFinalAck = 535, + MessageType_MoneroGetAddress = 540, + MessageType_MoneroAddress = 541, + MessageType_MoneroGetWatchKey = 542, + MessageType_MoneroWatchKey = 543, + MessageType_DebugMoneroDiagRequest = 546, + MessageType_DebugMoneroDiagAck = 547, + MessageType_MoneroGetTxKeyRequest = 550, + MessageType_MoneroGetTxKeyAck = 551, + MessageType_MoneroLiveRefreshStartRequest = 552, + MessageType_MoneroLiveRefreshStartAck = 553, + MessageType_MoneroLiveRefreshStepRequest = 554, + MessageType_MoneroLiveRefreshStepAck = 555, + MessageType_MoneroLiveRefreshFinalRequest = 556, + MessageType_MoneroLiveRefreshFinalAck = 557, + MessageType_EosGetPublicKey = 600, + MessageType_EosPublicKey = 601, + MessageType_EosSignTx = 602, + MessageType_EosTxActionRequest = 603, + MessageType_EosTxActionAck = 604, + MessageType_EosSignedTx = 605, + MessageType_BytecoinEmptyResponse = 700, + MessageType_BytecoinStartRequest = 701, + MessageType_BytecoinStartResponse = 702, + MessageType_BytecoinScanOutputsRequest = 703, + MessageType_BytecoinScanOutputsResponse = 704, + MessageType_BytecoinGenerateKeyimageRequest = 705, + MessageType_BytecoinGenerateKeyimageResponse = 706, + MessageType_BytecoinGenerateOutputSeedRequest = 707, + MessageType_BytecoinGenerateOutputSeedResponse = 708, + MessageType_BytecoinExportViewWalletRequest = 709, + MessageType_BytecoinExportViewWalletResponse = 710, + MessageType_BytecoinSignStartRequest = 711, + MessageType_BytecoinSignAddInputRequest = 713, + MessageType_BytecoinSignAddOutputRequest = 715, + MessageType_BytecoinSignAddOutputResponse = 716, + MessageType_BytecoinSignAddExtraRequest = 717, + MessageType_BytecoinSignStepARequest = 719, + MessageType_BytecoinSignStepAResponse = 720, + MessageType_BytecoinSignStepAMoreDataRequest = 721, + MessageType_BytecoinSignGetC0Request = 723, + MessageType_BytecoinSignGetC0Response = 724, + MessageType_BytecoinSignStepBRequest = 725, + MessageType_BytecoinSignStepBResponse = 726, + MessageType_BytecoinStartProofRequest = 727, + MessageType_BytecoinProofMoreDataRequest = 729 +}; +bool MessageType_IsValid(int value); +const MessageType MessageType_MIN = MessageType_Initialize; +const MessageType MessageType_MAX = MessageType_BytecoinProofMoreDataRequest; +const int MessageType_ARRAYSIZE = MessageType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* MessageType_descriptor(); +inline const ::std::string& MessageType_Name(MessageType value) { + return ::google::protobuf::internal::NameOfEnum( + MessageType_descriptor(), value); +} +inline bool MessageType_Parse( + const ::std::string& name, MessageType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + MessageType_descriptor(), name, value); +} +// =================================================================== + + +// =================================================================== + +static const int kWireInFieldNumber = 50002; +extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_in; +static const int kWireOutFieldNumber = 50003; +extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_out; +static const int kWireDebugInFieldNumber = 50004; +extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_debug_in; +static const int kWireDebugOutFieldNumber = 50005; +extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_debug_out; +static const int kWireTinyFieldNumber = 50006; +extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_tiny; +static const int kWireBootloaderFieldNumber = 50007; +extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_bootloader; +static const int kWireNoFsmFieldNumber = 50008; +extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, + ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > + wire_no_fsm; + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace messages +} // namespace trezor +} // namespace hw + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::hw::trezor::messages::MessageType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hw::trezor::messages::MessageType>() { + return ::hw::trezor::messages::MessageType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_messages_2eproto diff --git a/src/Core/hw/HardwareWallet.hpp b/src/Core/hw/HardwareWallet.hpp deleted file mode 100644 index a50a0040..00000000 --- a/src/Core/hw/HardwareWallet.hpp +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers. -// Licensed under the GNU Lesser General Public License. See LICENSE for details. - -#pragma once - -#include -#include -#include "CryptoNote.hpp" -#include "crypto/chacha.hpp" - -namespace cn { namespace hw { - -// Prototype - max simplified synchronous calls - -// All funs including constructor throw std::runtime_error when connection to hardware wallet lost before end of fun. -// All funs must quickly try reestablishing connection at the start if it was lost during previous call -// Calls might be from different threads, but will be externally synchronized - -class HardwareWallet { -public: - virtual ~HardwareWallet() = default; - virtual std::string get_hardware_type() const = 0; - - // In constructor read those secrets from device at once - virtual crypto::chacha_key get_wallet_key() const = 0; - virtual PublicKey get_A_plus_SH() const = 0; - virtual PublicKey get_v_mul_A_plus_SH() const = 0; - virtual PublicKey get_public_view_key() const = 0; - - // We multiply in batches, because we have lots of them (for all outputs) - // Hardware is expected to divide into chunks of size that fit - virtual std::vector mul_by_view_secret_key(const std::vector &output_public_keys) const = 0; - // We generate key images by one because we have a few of them (only for 'our' outputs) - virtual KeyImage generate_keyimage( - const PublicKey &output_public_key, const SecretKey &inv_spend_scalar, size_t address_index) const = 0; - virtual void generate_output_secret( - const Hash &tx_inputs_hash, size_t out_index, PublicKey *output_secret_Q) const = 0; - virtual void sign_start(size_t version, size_t ut, size_t inputs_size, size_t outputs_size, size_t extra_size, - size_t change_address_index, uint8_t dst_address_tag, PublicKey dst_address_s, - PublicKey dst_address_s_v) const = 0; - virtual void add_input(uint64_t amount, const std::vector &output_indexes, SecretKey inv_spend_scalar, - size_t address_index) const = 0; - virtual void add_output(bool change, uint64_t amount, PublicKey *public_key, PublicKey *encrypted_secret, - uint8_t *encrypted_address_type) const = 0; - // add_extra called even when empty, to simplify state machine - virtual void add_extra(const common::BinaryArray &extra) const = 0; - // add_sig_a1, then add_sig_a2 is called for each input - virtual void add_sig_a(SecretKey inv_spend_scalar, size_t address_index, crypto::EllipticCurvePoint *sig_p, - crypto::EllipticCurvePoint *x, crypto::EllipticCurvePoint *y) const = 0; - virtual void add_sig_a_more_data(const common::BinaryArray &data, crypto::EllipticCurveScalar *c0) const = 0; - virtual void add_sig_b(SecretKey inv_spend_scalar, size_t address_index, crypto::EllipticCurveScalar my_c, - crypto::EllipticCurveScalar *sig_my_ra, crypto::EllipticCurveScalar *sig_rb, - crypto::EllipticCurveScalar *sig_rc) const = 0; - virtual void generate_sendproof(const Hash &tx_inputs_hash, size_t out_index, const Hash &transaction_hash, - const Hash &message_hash, const std::string &address, size_t outputs_count, Signature *signature) const = 0; - virtual void export_view_only(SecretKey *audit_key_base_secret_key, SecretKey *view_secret_key, - Hash *tx_derivation_seed, Signature *view_secrets_signature) const = 0; - - void test_all_methods(); - - static std::vector> get_connected(); -}; - -class Emulator : public HardwareWallet { - crypto::chacha_key m_wallet_key; // wallet encryption key, derived from secret - PublicKey m_A_plus_SH; - PublicKey m_v_mul_A_plus_SH; - PublicKey m_view_public_key; - - const size_t m_address_type = 1; - - // following vars reside inside hw wallet - std::string m_mnemonics; - SecretKey m_view_secret_key; - SecretKey m_spend_secret_key; - SecretKey m_audit_key_base_secret_key; - Hash m_tx_derivation_seed; - PublicKey m_sH; - - mutable size_t last_address_index = std::numeric_limits::max(); - mutable SecretKey last_address_audit_secret_key; - void prepare_address(size_t address_index) const; - void prepare_address(size_t address_index, PublicKey *address_S, PublicKey *address_Sv) const; - struct KeccakStream { // Naive implemenatation, real hardware will use fixed 200+4 bytes rep - common::BinaryArray ba; - - void append(const unsigned char *data, size_t size); - void append(uint64_t a); - void append_byte(uint8_t b); - Hash cn_fast_hash() const; - SecretKey hash_to_scalar() const; - SecretKey hash_to_scalar64() const; - PublicKey hash_to_good_point() const; - }; - struct SigningState { - // FINISHED is default state. - // sign_start can be called in any state to restart signing - // other sign methods require specific state, and - // move system into subsequent state until moved to FINISHED - enum State { - FINISHED, - EXPECT_INPUT, // inputs_counter as a substate - EXPECT_OUTPUT, // outputs_counter as a substate - EXPECT_EXTRA_CHUNK, // extra_counter as a substate - EXPECT_SIGN_A, // inputs_counter as a substate - EXPECT_SIGN_A_MORE_DATA, // inputs_counter as a substate - EXPECT_SIGN_B // inputs_counter as a substate - }; - State state = FINISHED; - size_t version = 0; - size_t ut = 0; - size_t inputs_size = 0; - size_t outputs_size = 0; - size_t extra_size = 0; - uint8_t dst_address_tag = 0; - PublicKey dst_address_s; - PublicKey dst_address_s_v; - PublicKey change_address_s; - PublicKey change_address_s_v; - - size_t inputs_counter = 0; - size_t outputs_counter = 0; - size_t extra_counter = 0; - Hash random_seed; // single seed for the whole transaction - KeccakStream tx_inputs_stream; // we reuse it during sig_a, sig_b for c0 = Hash(... - Hash tx_inputs_hash; - KeccakStream tx_prefix_stream; - Hash tx_prefix_hash; - uint64_t inputs_amount = 0; - uint64_t dst_amount = 0; - uint64_t change_amount = 0; - crypto::EllipticCurveScalar c0; - }; - mutable SigningState sign; - void add_output_or_change(uint64_t amount, uint8_t dst_address_tag, PublicKey dst_address_s, - PublicKey dst_address_s_v, PublicKey *public_key, PublicKey *encrypted_secret, - uint8_t *encrypted_address_type) const; - SecretKey generate_sign_secret(size_t i, const char secret_name[2]) const; - - std::unique_ptr m_proxy; - -public: - static void debug_set_mnemonic(const std::string &mnemonic); - - explicit Emulator(std::unique_ptr &&proxy); - ~Emulator() override; - std::string get_hardware_type() const override; - crypto::chacha_key get_wallet_key() const override { return m_wallet_key; } - PublicKey get_A_plus_SH() const override { return m_A_plus_SH; } - PublicKey get_v_mul_A_plus_SH() const override { return m_v_mul_A_plus_SH; } - PublicKey get_public_view_key() const override { return m_view_public_key; } - - std::vector mul_by_view_secret_key(const std::vector &output_public_keys) const override; - KeyImage generate_keyimage( - const PublicKey &output_public_key, const SecretKey &inv_spend_scalar, size_t address_index) const override; - void generate_output_secret( - const Hash &tx_inputs_hash, size_t out_index, PublicKey *output_secret_Q) const override; - void sign_start(size_t version, size_t ut, size_t inputs_size, size_t outputs_size, size_t extra_size, - size_t change_address_index, uint8_t dst_address_tag, PublicKey dst_address_s, - PublicKey dst_address_s_v) const override; - void add_input(uint64_t amount, const std::vector &output_indexes, SecretKey inv_spend_scalar, - size_t address_index) const override; - void add_output(bool change, uint64_t amount, PublicKey *public_key, PublicKey *encrypted_secret, - uint8_t *encrypted_address_type) const override; - void add_extra(const common::BinaryArray &extra) const override; - void add_sig_a(SecretKey inv_spend_scalar, size_t address_index, crypto::EllipticCurvePoint *sig_p, - crypto::EllipticCurvePoint *x, crypto::EllipticCurvePoint *y) const override; - void add_sig_a_more_data(const common::BinaryArray &data, crypto::EllipticCurveScalar *c0) const override; - void add_sig_b(SecretKey inv_spend_scalar, size_t address_index, crypto::EllipticCurveScalar my_c, - crypto::EllipticCurveScalar *sig_my_ra, crypto::EllipticCurveScalar *sig_rb, - crypto::EllipticCurveScalar *sig_rc) const override; - void generate_sendproof(const Hash &tx_inputs_hash, size_t out_index, const Hash &transaction_hash, - const Hash &message_hash, const std::string &address, size_t outputs_count, - Signature *signature) const override; - void export_view_only(SecretKey *audit_key_base_secret_key, SecretKey *view_secret_key, Hash *tx_derivation_seed, - Signature *view_secrets_signature) const override; -}; - -}} // namespace cn::hw diff --git a/src/CryptoNote.cpp b/src/CryptoNote.cpp index dcd1ad52..70c4bb6f 100644 --- a/src/CryptoNote.cpp +++ b/src/CryptoNote.cpp @@ -25,6 +25,7 @@ void ser(SecretKey &v, ISeria &s) { s.binary(v.data, sizeof(v.data)); } void ser(KeyDerivation &v, ISeria &s) { s.binary(v.data, sizeof(v.data)); } void ser(Signature &v, ISeria &s) { s.binary(reinterpret_cast(&v), sizeof(Signature)); } void ser(crypto::EllipticCurveScalar &v, ISeria &s) { s.binary(v.data, sizeof(v.data)); } +void ser(crypto::EllipticCurvePoint &v, ISeria &s) { s.binary(v.data, sizeof(v.data)); } void ser_members(cn::AccountAddressSimple &v, ISeria &s) { seria_kv("spend", v.S, s); @@ -34,63 +35,63 @@ void ser_members(cn::AccountAddressUnlinkable &v, ISeria &s) { seria_kv("spend", v.S, s); seria_kv("spend_view", v.Sv, s); } -void ser_members(AccountAddress &v, ISeria &s) { - if (s.is_input()) { - uint8_t type = 0; - s.object_key("type"); - if (dynamic_cast(&s)) { - std::string str_type_tag; - ser(str_type_tag, s); - if (str_type_tag == AccountAddressSimple::str_type_tag()) - type = AccountAddressSimple::type_tag; - else if (str_type_tag == AccountAddressUnlinkable::str_type_tag()) - type = AccountAddressUnlinkable::type_tag; - else - throw std::runtime_error("Deserialization error - unknown address type " + str_type_tag); - } else - s.binary(&type, 1); - switch (type) { - case AccountAddressSimple::type_tag: { - AccountAddressSimple in{}; - ser_members(in, s); - v = in; - break; - } - case AccountAddressUnlinkable::type_tag: { - AccountAddressUnlinkable in{}; - ser_members(in, s); - v = in; - break; - } - default: - throw std::runtime_error("Deserialization error - unknown address type " + common::to_string(type)); - } - return; - } - if (v.type() == typeid(AccountAddressSimple)) { - auto &in = boost::get(v); - s.object_key("type"); - if (dynamic_cast(&s)) { - std::string str_type_tag = AccountAddressSimple::str_type_tag(); - ser(str_type_tag, s); - } else { - uint8_t type = AccountAddressSimple::type_tag; - s.binary(&type, 1); - } - ser_members(in, s); - } else if (v.type() == typeid(AccountAddressUnlinkable)) { - auto &in = boost::get(v); - s.object_key("type"); - if (dynamic_cast(&s)) { - std::string str_type_tag = AccountAddressUnlinkable::str_type_tag(); - ser(str_type_tag, s); - } else { - uint8_t type = AccountAddressUnlinkable::type_tag; - s.binary(&type, 1); - } - ser_members(in, s); - } -} +/*void ser_members(AccountAddress &v, ISeria &s) { + if (s.is_input()) { + uint8_t type = 0; + s.object_key("type"); + if (dynamic_cast(&s)) { + std::string str_type_tag; + ser(str_type_tag, s); + if (str_type_tag == AccountAddressSimple::str_type_tag()) + type = AccountAddressSimple::type_tag; + else if (str_type_tag == AccountAddressUnlinkable::str_type_tag()) + type = AccountAddressUnlinkable::type_tag; + else + throw std::runtime_error("Deserialization error - unknown address type " + str_type_tag); + } else + s.binary(&type, 1); + switch (type) { + case AccountAddressSimple::type_tag: { + AccountAddressSimple in{}; + ser_members(in, s); + v = in; + break; + } + case AccountAddressUnlinkable::type_tag: { + AccountAddressUnlinkable in{}; + ser_members(in, s); + v = in; + break; + } + default: + throw std::runtime_error("Deserialization error - unknown address type " + common::to_string(type)); + } + return; + } + if (v.type() == typeid(AccountAddressSimple)) { + auto &in = boost::get(v); + s.object_key("type"); + if (dynamic_cast(&s)) { + std::string str_type_tag = AccountAddressSimple::str_type_tag(); + ser(str_type_tag, s); + } else { + uint8_t type = AccountAddressSimple::type_tag; + s.binary(&type, 1); + } + ser_members(in, s); + } else if (v.type() == typeid(AccountAddressUnlinkable)) { + auto &in = boost::get(v); + s.object_key("type"); + if (dynamic_cast(&s)) { + std::string str_type_tag = AccountAddressUnlinkable::str_type_tag(); + ser(str_type_tag, s); + } else { + uint8_t type = AccountAddressUnlinkable::type_tag; + s.binary(&type, 1); + } + ser_members(in, s); + } +}*/ void ser_members(cn::SendproofKey &v, ISeria &s) { Amount amount = 0; seria_kv("transaction_hash", v.transaction_hash, s); @@ -282,11 +283,11 @@ void ser_members(cn::RingSignatureAmethyst &v, ISeria &s) { seria_kv("rb", v.rb, s); seria_kv("rc", v.rc, s); } -void ser_members(cn::SendproofSignatureAmethyst &v, ISeria &s) { - seria_kv("c0", v.c0, s); - seria_kv("rb", v.rb, s); - seria_kv("rc", v.rc, s); -} +// void ser_members(cn::SendproofSignatureAmethyst &v, ISeria &s) { +// seria_kv("c0", v.c0, s); +// seria_kv("rb", v.rb, s); +// seria_kv("rc", v.rc, s); +//} /* enum { ring_signature_blank_tag = 0xff, ring_signature_normal_tag = 1, ring_signature_auditable_tag = 4 }; diff --git a/src/CryptoNote.hpp b/src/CryptoNote.hpp index 4c4514de..524f493f 100644 --- a/src/CryptoNote.hpp +++ b/src/CryptoNote.hpp @@ -26,7 +26,7 @@ using crypto::PublicKey; using crypto::RingSignature; using crypto::RingSignatureAmethyst; using crypto::SecretKey; -using crypto::SendproofSignatureAmethyst; +// using crypto::SendproofSignatureAmethyst; using crypto::Signature; using common::BinaryArray; @@ -241,10 +241,11 @@ void ser(cn::SecretKey &v, ISeria &s); void ser(cn::KeyDerivation &v, ISeria &s); void ser(cn::Signature &v, ISeria &s); void ser(crypto::EllipticCurveScalar &v, ISeria &s); +void ser(crypto::EllipticCurvePoint &v, ISeria &s); void ser_members(cn::AccountAddressSimple &v, ISeria &s); void ser_members(cn::AccountAddressUnlinkable &v, ISeria &s); -void ser_members(cn::AccountAddress &v, ISeria &s); +// void ser_members(cn::AccountAddress &v, ISeria &s); void ser_members(cn::SendproofKey &v, ISeria &s); void ser_members(cn::SendproofAmethyst::Element &v, ISeria &s); void ser_members(cn::SendproofAmethyst &v, ISeria &s); @@ -255,7 +256,7 @@ void ser_members(cn::InputCoinbase &v, ISeria &s); void ser_members(cn::InputKey &v, ISeria &s); void ser_members(cn::RingSignatures &v, ISeria &s); void ser_members(cn::RingSignatureAmethyst &v, ISeria &s); -void ser_members(cn::SendproofSignatureAmethyst &v, ISeria &s); +// void ser_members(cn::SendproofSignatureAmethyst &v, ISeria &s); // void ser_members(cn::TransactionSignatures &v, ISeria &s); void ser_members(cn::RingSignatureAmethyst &v, ISeria &s, const cn::TransactionPrefix &prefix); diff --git a/src/crypto/crypto.cpp b/src/crypto/crypto.cpp index 75bef19f..221dffb4 100644 --- a/src/crypto/crypto.cpp +++ b/src/crypto/crypto.cpp @@ -447,8 +447,8 @@ RingSignatureAmethyst generate_ring_signature_auditable(const Hash &prefix_hash, sig.rb[i] = kb - sig.c0 * secs_spend[i]; sig.rc[i] = kc + sig.c0 * secs_audit[i]; - DEBUG_PRINT(std::cout << "aha=" << to_bytes(sig.rb[i] * H + sig.rc[i] * b_coin_p3) << " " << to_bytes(sig.c0 * p_p3) - << std::endl); + DEBUG_PRINT(std::cout << "aha=" << to_bytes(sig.rb[i] * H + sig.rc[i] * b_coin_p3) << " " + << to_bytes(sig.c0 * p_p3) << std::endl); DEBUG_PRINT(std::cout << "rb[" << i << "]=" << sig.rb[i] << std::endl); DEBUG_PRINT(std::cout << "rc[" << i << "]=" << sig.rc[i] << std::endl); @@ -531,71 +531,76 @@ bool check_ring_signature_auditable(const Hash &prefix_hash, const std::vector &images, const std::vector> &pubs, const RingSignatureAmethyst &sig); -SendproofSignatureAmethyst generate_sendproof_signature_auditable( - const Hash &prefix_hash, const KeyImage &image, const SecretKey &sec_spend, const SecretKey &sec_audit); -bool check_sendproof_signature_auditable( - const Hash &prefix_hash, const KeyImage &image, const PublicKey &ps, const SendproofSignatureAmethyst &sig); +// SendproofSignatureAmethyst generate_sendproof_signature_auditable( +// const Hash &prefix_hash, const KeyImage &image, const SecretKey &sec_spend, const SecretKey &sec_audit); +// bool check_sendproof_signature_auditable( +// const Hash &prefix_hash, const KeyImage &image, const PublicKey &ps, const SendproofSignatureAmethyst &sig); SecretKey hash_to_scalar(const void *data, size_t length); SecretKey hash_to_scalar64(const void *data, size_t length); @@ -173,7 +173,7 @@ Signature generate_sendproof(const PublicKey &txkey_pub, const SecretKey &txkey_ bool check_sendproof(const PublicKey &txkey_pub, const PublicKey &receiver_address_V, const KeyDerivation &derivation, const Hash &message_hash, const Signature &proof); -// Linkable crypto, spend_scalar is temporary value that is expensive to calc, we pass it around +// Linkable crypto, output_secret_hash is temporary value that is expensive to calc, we pass it around // Old addresses use improved crypto in amethyst, because we need to enforce unique output public keys // on crypto level. Enforcing on daemon DB index level does not work (each of 2 solutions is vulnerable attack). @@ -184,10 +184,10 @@ PublicKey linkable_derive_output_public_key(const SecretKey &output_secret, cons // receiver lloking for outputs PublicKey linkable_underive_address_S(const SecretKey &inv_view_secret_key, const Hash &tx_inputs_hash, size_t output_index, const PublicKey &output_public_key, const PublicKey &encrypted_output_secret, - SecretKey *spend_scalar); + SecretKey *output_secret_hash); // receiver -SecretKey linkable_derive_output_secret_key(const SecretKey &address_s, const SecretKey &spend_scalar); +SecretKey linkable_derive_output_secret_key(const SecretKey &address_s, const SecretKey &output_secret_hash); // sender, restoring destination address void linkable_underive_address(const SecretKey &output_secret, const Hash &tx_inputs_hash, size_t output_index, @@ -195,7 +195,7 @@ void linkable_underive_address(const SecretKey &output_secret, const Hash &tx_in PublicKey *address_V); void test_linkable(); -// Unlinkable crypto, spend_scalar is temporary value that is expensive to calc, we pass it around +// Unlinkable crypto, output_secret_hash is temporary value that is expensive to calc, we pass it around // result size should be set to number of desired spend keys void generate_hd_spendkeys(const SecretKey &a0, const PublicKey &A_plus_SH, size_t index, std::vector *result); @@ -220,14 +220,14 @@ PublicKey unlinkable_derive_output_public_key(const PublicKey &output_secret, co // receiver looking for outputs PublicKey unlinkable_underive_address_S(const SecretKey &view_secret_key, const Hash &tx_inputs_hash, size_t output_index, const PublicKey &output_public_key, const PublicKey &encrypted_output_secret, - SecretKey *spend_scalar); + SecretKey *output_secret_hash); // 2-step functions emulate hardware wallet PublicKey unlinkable_underive_address_S_step1(const SecretKey &view_secret_key, const PublicKey &output_public_key); -PublicKey unlinkable_underive_address_S_step2(const PublicKey &P_v, const Hash &tx_inputs_hash, size_t output_index, - const PublicKey &output_public_key, const PublicKey &encrypted_output_secret, SecretKey *spend_scalar); +PublicKey unlinkable_underive_address_S_step2(const PublicKey &Pv, const Hash &tx_inputs_hash, size_t output_index, + const PublicKey &output_public_key, const PublicKey &encrypted_output_secret, SecretKey *output_secret_hash); -SecretKey unlinkable_derive_output_secret_key(const SecretKey &address_secret, const SecretKey &spend_scalar); +SecretKey unlinkable_derive_output_secret_key(const SecretKey &address_secret, const SecretKey &output_secret_hash); // address_secret can be audit_secret_key or spend_secret_key // sender, restoring destination address @@ -236,10 +236,4 @@ void unlinkable_underive_address(PublicKey *address_S, PublicKey *address_Sv, co const PublicKey &encrypted_output_secret); void test_unlinkable(); -/*Signature amethyst_generate_sendproof(const KeyPair &output_det_keys, const Hash &tid, const Hash &message_hash, - const std::string &address, size_t outputs_count); - -bool amethyst_check_sendproof(const PublicKey &output_det_key, const Hash &tid, const Hash &message_hash, - const std::string &address, size_t outputs_count, const Signature &sig); -*/ } // namespace crypto diff --git a/src/crypto/crypto_helpers.hpp b/src/crypto/crypto_helpers.hpp index 3f012412..283c518c 100644 --- a/src/crypto/crypto_helpers.hpp +++ b/src/crypto/crypto_helpers.hpp @@ -226,17 +226,17 @@ inline ge_p3 ge_double_scalarmult_precomp_vartime3( } /*inline ge_p2 ge_double_scalarmult_base_vartime( - const EllipticCurveScalar &a, const ge_p3 &A, const EllipticCurveScalar &b) { - ge_p2 tmp3; - ge_double_scalarmult_base_vartime(&tmp3, &a, &A, &b); - return tmp3; + const EllipticCurveScalar &a, const ge_p3 &A, const EllipticCurveScalar &b) { + ge_p2 tmp3; + ge_double_scalarmult_base_vartime(&tmp3, &a, &A, &b); + return tmp3; } inline ge_p2 ge_double_scalarmult_precomp_vartime( - const EllipticCurveScalar &a, const ge_p3 &A, const EllipticCurveScalar &b, const ge_dsmp &B) { - ge_p2 tmp3; - ge_double_scalarmult_precomp_vartime(&tmp3, &a, &A, &b, &B); - return tmp3; + const EllipticCurveScalar &a, const ge_p3 &A, const EllipticCurveScalar &b, const ge_dsmp &B) { + ge_p2 tmp3; + ge_double_scalarmult_precomp_vartime(&tmp3, &a, &A, &b, &B); + return tmp3; }*/ inline bool ge_dsm_frombytes_vartime(ge_dsmp *image_dsm, const EllipticCurvePoint &image) { diff --git a/src/crypto/types.hpp b/src/crypto/types.hpp index be3e1704..1d8fe773 100644 --- a/src/crypto/types.hpp +++ b/src/crypto/types.hpp @@ -77,9 +77,9 @@ struct RingSignatureAmethyst { // New auditable signatures std::vector rc; }; -struct SendproofSignatureAmethyst { - EllipticCurveScalar c0, rb, rc; -}; +// struct SendproofSignatureAmethyst { +// EllipticCurveScalar c0, rb, rc; +//}; std::ostream &operator<<(std::ostream &out, const EllipticCurvePoint &v); std::ostream &operator<<(std::ostream &out, const EllipticCurveScalar &v); diff --git a/src/main_bytecoind.cpp b/src/main_bytecoind.cpp index 0e90fe50..eb02c3fa 100644 --- a/src/main_bytecoind.cpp +++ b/src/main_bytecoind.cpp @@ -119,8 +119,8 @@ int main(int argc, const char *argv[]) try { std::cin >> max_height; return 0; } - // block_chain.test_undo_everything(0); - // return 0; + // block_chain.test_undo_everything(0); + // return 0; // block_chain.test_print_tips(); // while(block_chain.test_prune_oldest()){ // block_chain.test_print_tips(); @@ -146,6 +146,9 @@ int main(int argc, const char *argv[]) try { } catch (const platform::ExclusiveLock::FailedToLock &ex) { std::cout << "Bytecoind already running - " << common::what(ex) << std::endl; return api::BYTECOIND_ALREADY_RUNNING; +} catch (const cn::BlockChainState::Exception &ex) { + std::cout << common::what(ex) << std::endl; + return api::BYTECOIND_DATABASE_FORMAT_TOO_NEW; } catch (const platform::TCPAcceptor::AddressInUse &ex) { std::cout << common::what(ex) << std::endl; return api::BYTECOIND_BIND_PORT_IN_USE; diff --git a/src/main_tests.cpp b/src/main_tests.cpp index 202bcb33..d6949cbc 100644 --- a/src/main_tests.cpp +++ b/src/main_tests.cpp @@ -9,6 +9,7 @@ //#include #include +#include "Core/hardware/HardwareWallet.hpp" #include "common/BIPs.hpp" #include "common/Base58.hpp" #include "common/CommandLine.hpp" @@ -25,6 +26,73 @@ #include "../tests/wallet_file/test_wallet_file.hpp" #include "../tests/wallet_state/test_wallet_state.hpp" +/*struct MemoryRecord { + std::string key; + + std::string parent_key; + std::string children_key[2]; + std::string value; + bool dirty = false; + Hash hash; + size_t level = 0; +}; + +class SignedState { +// platform::DB m_db; + std::string mega_root; + std::map mem; + void make_dirty(const std::string & key){ + MemoryRecord & rec = mem.at(key); + if(rec.dirty) + return; + rec.dirty = true; + if(rec.parent_key.empty()) + return; + make_dirty(rec.parent_key); + } + std::string jsw_insert(const std::string & root, const std::string &key, const std::string &value){ + if(root.empty()){ + MemoryRecord & rec = mem[key]; + rec.key = key; + rec.dirty = true; + rec.value = value; + rec.level = 1; + return key; + } + MemoryRecord & root_rec = mem.at(root); + int dir = root_rec.value < value; + root_rec.children_key.at(dir) = jsw_insert(root_rec.children_key.at(dir), key, value); + } +public: +// explicit SignedState(const std::string &full_path):m_db(platform::O_OPEN_ALWAYS, full_path){ +// } + explicit SignedState(){ + + } + void commit_db_txn(){ + + } + void put(const std::string &key, const std::string &value, bool nooverwrite){ + auto mit = mem.find(key); + if(mit != mem.end()){ + if(nooverwrite) + throw std::runtime_error("nooverwrite"); + mit->second.value = value; + make_dirty(key); + return; + } + mega_root = jsw_insert(mega_root, key, value); + } + bool get(const std::string &key, std::string &value) const{ + + } + void del(const std::string &key, bool mustexist){ + + } +};*/ + +void test_signed_state() {} + // namespace po = boost::program_options; std::string format_test_name(const std::string &name) { @@ -43,6 +111,9 @@ std::string format_test_name(const std::string &name) { void test_bip32(); int main(int argc, const char *argv[]) { + auto co = cn::hardware::HardwareWallet::get_connected(); + + test_signed_state(); /* const std::string USAGE( "Execute subsystem tests. Return code 0 means success.\n" "Uses relative paths and should be run from the {PROJECT_ROOT}/bin folder. " diff --git a/src/main_walletd.cpp b/src/main_walletd.cpp index 49e422ff..29546aa0 100644 --- a/src/main_walletd.cpp +++ b/src/main_walletd.cpp @@ -38,11 +38,12 @@ static const char USAGE[] = R"(walletd )" bytecoin_VERSION_STRING R"(. --mnemonic-strength= Used with --create-mnemonic, [default: 256]. --secrets-via-api Specify to allow getting secrets using 'get_wallet_info' json RPC method (off by default for security reasons). --set-password Read new password as a line from stdin (twice) and re-encrypt wallet file, then exit. - --launch-after-command Instead of exiting, continue launching after --create-wallet and --set-password commands + --launch-after-command Instead of exiting, continue launching after --create-wallet, --set-password commands and --import-view-key --export-view-only= Export view-only version of wallet file, then exit. Add --set-password to export with different password. --view-outgoing-addresses Used only with --export-view-only=<> and HD wallet. if set, exported view-only wallet will be able to see destination addresses in tracked transactions. --export-keys Export unencrypted wallet keys to stdout, then exit. (Only for legacy wallets) --export-mnemonic Export mnemonic to stdout, then exit. (Only for deterministic wallets) + --import-view-key Import view key from hardware wallet into wallet file, greatly increasing blockchain scan speed (Only for hardware wallets). --walletd-bind-address= IP and port for walletd RPC API [default: 127.0.0.1:8070]. --data-folder= Folder for wallet cache, blockchain, logs and peer DB [default: )" platform_DEFAULT_DATA_FOLDER_PATH_PREFIX R"(bytecoin]. @@ -67,6 +68,12 @@ static const bool separate_thread_for_bytecoind = true; int main(int argc, const char *argv[]) try { common::console::UnicodeConsoleSetup console_setup; auto idea_start = std::chrono::high_resolution_clock::now(); + + // Visual Studio does not support passing cmake args in IDE + // const char *argv2[] = {"walletd", "--create-wallet", "--wallet-type=hardware", "--wallet-file=test.wallet"}; + // const char argc2 = sizeof(argv2) / sizeof(*argv2); + // common::CommandLine cmd(argc2, argv2); + common::CommandLine cmd(argc, argv); if (cmd.get_bool("--create-mnemonic")) { @@ -127,10 +134,11 @@ int main(int argc, const char *argv[]) try { } if (const char *pa = cmd.get("--walletd-http-auth")) // Undocumented, used for debugging walletd_http_auth = pa; - const bool create_wallet = cmd.get_bool("--create-wallet"); - const bool set_password = cmd.get_bool("--set-password"); - const bool export_keys = cmd.get_bool("--export-keys"); - const bool export_mnemonic = cmd.get_bool("--export-mnemonic"); + const bool create_wallet = cmd.get_bool("--create-wallet"); + const bool set_password = cmd.get_bool("--set-password"); + const bool import_view_key = cmd.get_bool("--import-view-key"); + const bool export_keys = cmd.get_bool("--export-keys"); + const bool export_mnemonic = cmd.get_bool("--export-mnemonic"); std::string export_view_only; if (const char *pa = cmd.get("--export-view-only")) export_view_only = pa; @@ -144,14 +152,14 @@ int main(int argc, const char *argv[]) try { // create_wallet export_keys | export_view_only | backup_wallet_data // set_password can be used by itself or with export_view_only | backup_wallet_data - const bool import_keys = cmd.get_bool("--import-keys"); + const bool import_keys = cmd.get_bool("--import-keys"); const bool view_outgoing_addresses = cmd.get_bool("--view-outgoing-addresses"); if (view_outgoing_addresses && export_view_only.empty()) { std::cout << "--view-outgoing-addresses can only be used with --export-view-only" << std::endl; return api::WALLETD_WRONG_ARGS; } const bool launch_after_command = cmd.get_bool("--launch-after-command"); // undocumented, used by GUI - if (launch_after_command && !(create_wallet || set_password)) { + if (launch_after_command && !(create_wallet || set_password || import_view_key)) { std::cout << "--launch-after-command can only be used with commands" << std::endl; return api::WALLETD_WRONG_ARGS; } @@ -162,7 +170,7 @@ int main(int argc, const char *argv[]) try { return api::WALLETD_WRONG_ARGS; } wallet_type = pa; - if(wallet_type != "amethyst" && wallet_type != "legacy" && wallet_type != "hardware"){ + if (wallet_type != "amethyst" && wallet_type != "legacy" && wallet_type != "hardware") { std::cout << "--wallet-type= value can be 'amethyst', 'legacy' or 'hardware'" << std::endl; return api::WALLETD_WRONG_ARGS; } @@ -182,7 +190,7 @@ int main(int argc, const char *argv[]) try { } size_t address_count = 0; if (const char *pa = cmd.get("--address-count")) { - if (!create_wallet || wallet_type == "legacy" ) { + if (!create_wallet || wallet_type == "legacy") { std::cout << "--address-count cannot be used with --wallet-type=legacy" << std::endl; return api::WALLETD_WRONG_ARGS; } @@ -193,7 +201,7 @@ int main(int argc, const char *argv[]) try { Currency currency(config.net); if (const char *pa = cmd.get("--emulate-hardware-wallet")) // Undocumented, used by devs - hw::Emulator::debug_set_mnemonic(pa); + hardware::HardwareWallet::debug_set_mnemonic(pa); if (int r = cmd.should_quit(Config::prepare_usage(USAGE).c_str(), cn::app_version())) return r == 1 ? 0 : api::WALLETD_WRONG_ARGS; @@ -275,8 +283,8 @@ int main(int argc, const char *argv[]) try { logging::LoggerManager logManagerWalletNode; logManagerWalletNode.configure_default(config.get_data_folder("logs"), "walletd-", cn::app_version()); - if (!config.bytecoind_remote_port && !create_wallet && - !set_password && !export_keys && !export_mnemonic && export_view_only.empty() && backup_wallet_data.empty()) { + if (!config.bytecoind_remote_port && !create_wallet && !set_password && !import_view_key && !export_keys && + !export_mnemonic && export_view_only.empty() && backup_wallet_data.empty()) { common::console::set_text_color(common::console::BrightRed); std::cout << "Warning: inproc " CRYPTONOTE_NAME "d is deprecated and will be removed soon." << std::endl; std::cout << " Please run bytecoind separately, then specify --remote-" CRYPTONOTE_NAME @@ -287,6 +295,9 @@ int main(int argc, const char *argv[]) try { << std::endl; common::console::set_text_color(common::console::Default); } + boost::asio::io_service io; + platform::EventLoop run_loop(io); // must be before Wallet (trezor uses io) + std::unique_ptr wallet; try { if (create_wallet && wallet_type == "hardware") { @@ -321,8 +332,20 @@ int main(int argc, const char *argv[]) try { if (create_wallet) { std::cout << "Successfully created wallet with first address " << currency.account_address_as_string(wallet->get_first_address()) << std::endl; - if (!launch_after_command) - return 0; + } + if (import_view_key) { + if (!wallet->get_hw()) { + std::cout << "--import-view-key can be used only with hardware wallet" << std::endl; + return api::WALLETD_WRONG_ARGS; + } + if (wallet->get_view_secret_key() != SecretKey{}) { + std::cout << "Wallet file already contains view key, please remove --import-view-key argument" << std::endl; + return api::WALLETD_WRONG_ARGS; + } + wallet->import_view_key(); + } + if ((create_wallet || import_view_key) && !launch_after_command) { + return 0; } std::cout << "Opened wallet with first address " << currency.account_address_as_string(wallet->get_first_address()) << std::endl; @@ -443,8 +466,7 @@ int main(int argc, const char *argv[]) try { } WalletState wallet_state(*wallet, logManagerWalletNode, config, currency); // wallet_state.test_undo_blocks(); - boost::asio::io_service io; - platform::EventLoop run_loop(io); + // return 0; std::unique_ptr block_chain; std::unique_ptr node; @@ -498,6 +520,11 @@ int main(int argc, const char *argv[]) try { if (bytecoind_thread.joinable()) bytecoind_thread.join(); // otherwise terminate will be called in ~thread return api::BYTECOIND_BIND_PORT_IN_USE; + } catch (const BlockChainState::Exception &ex) { + std::cout << common::what(ex) << std::endl; + if (bytecoind_thread.joinable()) + bytecoind_thread.join(); // otherwise terminate will be called in ~thread + return api::BYTECOIND_DATABASE_FORMAT_TOO_NEW; } catch (const std::exception &ex) { // On Windows what() is not printed if thrown from main std::cout << "Uncaught Exception in main() - " << common::what(ex) << std::endl; // TODO - check that ..joinable()..join().. code from above does not apply also diff --git a/src/rpc_api.hpp b/src/rpc_api.hpp index 1a38a689..c175a11a 100644 --- a/src/rpc_api.hpp +++ b/src/rpc_api.hpp @@ -163,16 +163,17 @@ struct Balance { }; enum return_code { - BYTECOIND_DATABASE_ERROR = 101, // We hope we are out of disk space, otherwise blockchain DB is corrupted. - BYTECOIND_ALREADY_RUNNING = 102, - WALLETD_BIND_PORT_IN_USE = 103, - BYTECOIND_BIND_PORT_IN_USE = 104, - BYTECOIND_WRONG_ARGS = 105, - WALLET_FILE_READ_ERROR = 205, - WALLET_FILE_UNKNOWN_VERSION = 206, - WALLET_FILE_DECRYPT_ERROR = 207, - WALLET_FILE_WRITE_ERROR = 208, - WALLET_FILE_EXISTS = 209, // Daemon never overwrites file during --generate-wallet. + BYTECOIND_DATABASE_ERROR = 101, // We hope we are out of disk space, otherwise blockchain DB is corrupted. + BYTECOIND_ALREADY_RUNNING = 102, + WALLETD_BIND_PORT_IN_USE = 103, + BYTECOIND_BIND_PORT_IN_USE = 104, + BYTECOIND_WRONG_ARGS = 105, + BYTECOIND_DATABASE_FORMAT_TOO_NEW = 106, + WALLET_FILE_READ_ERROR = 205, + WALLET_FILE_UNKNOWN_VERSION = 206, + WALLET_FILE_DECRYPT_ERROR = 207, + WALLET_FILE_WRITE_ERROR = 208, + WALLET_FILE_EXISTS = 209, // Daemon never overwrites file during --generate-wallet. WALLET_WITH_SAME_KEYS_IN_USE = 210, // Another walletd instance is using the same or another wallet file with the same keys. WALLETD_WRONG_ARGS = 211, @@ -617,7 +618,7 @@ struct GetRawTransaction { struct Response { api::Transaction transaction; // contain only info known to bytecoind TransactionPrefix raw_transaction; - std::vector> mixed_public_keys; // not documented yet + std::vector> mixed_public_keys; // not documented yet // TransactionPrefix contains only indexes, we need public keys to sign sendproof }; enum { diff --git a/src/version.hpp b/src/version.hpp index 0a3f7bb6..6228473c 100644 --- a/src/version.hpp +++ b/src/version.hpp @@ -4,8 +4,8 @@ #pragma once // defines are for Windows resource compiler -#define bytecoin_VERSION_WINDOWS_COMMA 3, 19, 2, 7 -#define bytecoin_VERSION_STRING "3.4.0" +#define bytecoin_VERSION_WINDOWS_COMMA 3, 19, 2, 14 +#define bytecoin_VERSION_STRING "hardware-wallets-alpha-20190214" #ifndef RC_INVOKED // Windows resource compiler diff --git a/tests/crypto/benchmarks.cpp b/tests/crypto/benchmarks.cpp index 46bb264c..8be4e8af 100644 --- a/tests/crypto/benchmarks.cpp +++ b/tests/crypto/benchmarks.cpp @@ -27,15 +27,15 @@ void update_global_result(const void *data, size_t size) { global_result ^= reinterpret_cast(data)[i]; } -#define CLOCK(X) \ - auto start = std::chrono::high_resolution_clock::now(); \ - for (int i = 0; i < count; ++i) { \ - X; \ - update_global_result(&result, sizeof(result)); \ - static_assert(std::is_trivially_copyable::value, "result must be trivially copyable"); \ - } \ - auto finish = std::chrono::high_resolution_clock::now(); \ - auto time_delta = std::chrono::duration_cast(finish - start).count(); \ +#define CLOCK(X) \ + auto start = std::chrono::high_resolution_clock::now(); \ + for (int i = 0; i < count; ++i) { \ + X; \ + update_global_result(&result, sizeof(result)); \ + static_assert(std::is_trivially_copyable::value, "result must be trivially copyable"); \ + } \ + auto finish = std::chrono::high_resolution_clock::now(); \ + long time_delta = static_cast(std::chrono::duration_cast(finish - start).count()); \ return time_delta; Point p2_to_p3(const ge_p2 &p) { diff --git a/tests/crypto/test_crypto.cpp b/tests/crypto/test_crypto.cpp index e4e0a5cc..6573c163 100644 --- a/tests/crypto/test_crypto.cpp +++ b/tests/crypto/test_crypto.cpp @@ -345,12 +345,41 @@ void strange_add() { } } +void reduce64_alt(struct cryptoEllipticCurveScalar *aa, const unsigned char s[64]) { + SecretKey sk1; + sk1.data[31] = 8; + SecretKey sk2; + sk2.data[0] = 32; + invariant(sc_isvalid_vartime(&sk1) && sc_isvalid_vartime(&sk2), ""); + SecretKey s2_256 = sk1 * sk2; + std::cout << "skk " << s2_256 << std::endl; + + SecretKey left; + sc_reduce32(&left, s); + SecretKey right; + sc_reduce32(&right, s + 32); + + SecretKey mu; + sc_mul(&mu, &right, &s2_256); + sc_add(aa, &mu, &left); +} + void test_crypto(const std::string &test_vectors_filename) { // strange_add(); std::cout << "G=" << crypto::get_G() << std::endl; std::cout << "H=" << crypto::get_H() << std::endl; invariant(crypto::get_H() == crypto::test_get_H(), ""); + uint8_t tmp[64]{}; + generate_random_bytes(tmp, sizeof(tmp)); + + SecretKey res1; + SecretKey res2; + sc_reduce64(&res1, tmp); + reduce64_alt(&res2, tmp); + std::cout << "res1=" << res1 << std::endl; + std::cout << "res2=" << res2 << std::endl; + // SecretKey sk; // sk.data[0] = 8; // std::cout << ge_tobytes(ge_scalarmult_base(sk)) << std::endl; diff --git a/tests/wallet_state/test_wallet_state.cpp b/tests/wallet_state/test_wallet_state.cpp index e3edd836..305ccad2 100644 --- a/tests/wallet_state/test_wallet_state.cpp +++ b/tests/wallet_state/test_wallet_state.cpp @@ -14,17 +14,17 @@ using namespace cn; class WalletStateTest : public WalletStateBasic { public: - std::map memory_spent; + std::map memory_spent; explicit WalletStateTest(logging::ILogger &log, const Config &config, const Currency ¤cy) : WalletStateBasic(log, config, currency, "test_wallet_state") {} - Amount add_incoming_output(const api::Output &output, const Hash &tid) override { - return WalletStateBasic::add_incoming_output(output, tid); + bool add_incoming_output(const api::Output &output) override { + return WalletStateBasic::add_incoming_output(output); } Amount add_incoming_keyimage(Height block_height, const KeyImage &ki) override { return WalletStateBasic::add_incoming_keyimage(block_height, ki); } - bool try_add_incoming_output(const api::Output &output, Amount *confirmed_balance_delta) const { - return WalletStateBasic::try_add_incoming_output(output, confirmed_balance_delta); + bool try_add_incoming_output(const api::Output &output) const { + return WalletStateBasic::try_add_incoming_output(output); } bool try_adding_incoming_keyimage(const KeyImage &ki, api::Output *spending_output) const { return WalletStateBasic::try_adding_incoming_keyimage(ki, spending_output); @@ -34,7 +34,7 @@ class WalletStateTest : public WalletStateBasic { WalletStateBasic::add_transaction(height, tid, tx, ptx); } void unlock(Height height, Timestamp ts) { WalletStateBasic::unlock(height, ts); } - const std::map &get_mempool_kis_or_pks() const override { return memory_spent; } + const std::map &get_mempool_keyimages() const override { return memory_spent; } }; static bool less_output(const api::Output &a, const api::Output &b) { @@ -66,18 +66,17 @@ class WalletStateModel : public IWalletState { std::vector locked_outputs; std::map> unlocked_outputs; // height of unlock and adjusted amount - Amount add_incoming_output(Height block_height, const api::Output &output, bool just_unlocked) { + bool add_incoming_output(Height block_height, const api::Output &output, bool just_unlocked) { bool ki_exists = all_keyimages.count(output.key_image) != 0; bool unspent_exists = ki_exists && outputs.count(all_keyimages.at(output.key_image)) != 0; if (ki_exists && !unspent_exists) - return 0; // second unspent after first spent + return false; // second unspent after first spent if (output.unlock_block_or_timestamp != 0 && !just_unlocked) { // incoming locked_outputs.push_back(output); - return output.amount; + return true; } - Amount added_amount = output.amount; if (ki_exists) { - return 0; + return false; // auto existing_output = outputs.at(all_keyimages.at(output.key_image)); // if (output.amount <= existing_output.amount || output.address != existing_output.address) // return 0; @@ -94,12 +93,12 @@ class WalletStateModel : public IWalletState { } api::Transfer transfer; transfer.outputs.push_back(output); - transfer.amount = added_amount; + transfer.amount = output.amount; transfer.address = output.address; transfer.ours = true; transfers[block_height].transactions.back().transfers.push_back(transfer); // } - return added_amount; + return true; } void unlock(Height block_height, const api::Output &output) { for (size_t i = 0; i != locked_outputs.size(); ++i) { @@ -109,18 +108,18 @@ class WalletStateModel : public IWalletState { --i; } } - Amount adjusted_amount = add_incoming_output(block_height, output, true); + bool add = add_incoming_output(block_height, output, true); // TODO - check in 3.5 invariant( - unlocked_outputs.insert(std::make_pair(output.global_index, std::make_pair(block_height, adjusted_amount))) + unlocked_outputs.insert(std::make_pair(output.global_index, std::make_pair(block_height, output.amount))) .second, ""); } public: - virtual Amount add_incoming_output(const api::Output &output, const Hash &tid) override { + virtual bool add_incoming_output(const api::Output &output) override { return add_incoming_output(output.height, output, false); } - std::map memory_spent; + std::map memory_spent; bool is_memory_spent(const api::Output &output) const { return memory_spent.count(output.key_image) != 0; } void unlock(Height height, Timestamp timestamp) { std::vector to_unlock; @@ -333,18 +332,17 @@ void test_wallet_state(common::CommandLine &cmd) { output.key_image.data[2] = 1; output_keyimages.insert(output.key_image); } - Amount confirmed_balance_delta = 0; - if (ws.try_add_incoming_output(output, &confirmed_balance_delta)) { + if (ws.try_add_incoming_output(output)) { api::Transfer transfer; - transfer.amount += confirmed_balance_delta; + transfer.amount += output.amount; transfer.address = output.address; transfer.ours = true; transfer.locked = output.unlock_block_or_timestamp != 0; transfer.outputs.push_back(output); ptx.transfers.push_back(transfer); } - auto inc1 = wm.add_incoming_output(output, Hash{}); - auto inc2 = ws.add_incoming_output(output, Hash{}); + auto inc1 = wm.add_incoming_output(output); + auto inc2 = ws.add_incoming_output(output); invariant(inc1 == inc2, ""); } }